Skip to content
KitploitKITPLOIT
도구익스플로잇블로그
Log in
제출
도구익스플로잇블로그
제출

해킹, 침투 테스트 및 사이버 보안 도구를 당신의 보안 무기고에!

Kitploit은 해킹, 사이버 보안 및 침투 테스트 도구 디렉토리입니다. 최신 프로젝트 업데이트를 발견하여 취약점을 찾고, 시스템을 분석하고, 테스트를 자동화하고, 보안을 강화하세요.

피드문의개인정보© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
robustness — 내장된 적대적 강건성 도구(PGD 공격, 적대적 학습, 비전 연구용 강건한 사전 학습 모델 포함)를 사용하여 신경망을 훈련하고, 평가하고, 탐색하세요. | Kitploit
도구/GitHubGitHub/madrylab/robustness
Defensive ToolsMachine LearningAI SecurityAdversarial AttackAdversarial Attack #6위
GitHubmadrylab/robustness

robustness

내장된 적대적 강건성 도구(PGD 공격, 적대적 학습, 비전 연구용 강건한 사전 학습 모델 포함)를 사용하여 신경망을 훈련하고, 평가하고, 탐색하세요.

저장소 보기
951179714년 전Kitploit 검토 완료
공유

robustness 패키지

pip으로 설치: pip install robustness

문서 보기: https://robustness.readthedocs.io/en/latest/index.html

robustness는 우리(MadryLab <http://madry-lab.ml>_의 학생들)가 신경망 훈련, 평가, 탐색을 유연하고 쉽게 만들기 위해 만든 패키지입니다. 우리는 거의 모든 프로젝트에서 이 패키지를 사용합니다(적대적 훈련과 관련이 있든 없든!). 또한 향후 많은 코드 릴리스에서 이 패키지를 의존성으로 사용할 것입니다. 이 라이브러리를 사용하는 몇 가지 프로젝트는 다음과 같습니다:

  • Code for "Learning Perceptually-Aligned Representations via Adversarial Robustness" <https://github.com/MadryLab/robust_representations>_ (https://arxiv.org/abs/1906.00945)
  • Code for "Image Synthesis with a Single (Robust) Classifier" <https://github.com/MadryLab/robustness_applications>_ (https://arxiv.org/abs/1906.09453)
  • Code for "Do Adversarially Robust ImageNet Models Transfer Better?" <https://github.com/microsoft/robust-models-transfer>_ (https://arxiv.org/abs/2007.08489)
  • Code for "BREEDS: Benchmarks for Subpopulation Shift" <https://github.com/MadryLab/BREEDS-Benchmarks>_ (https://arxiv.org/abs/2008.04859)
  • Code for "Certified Patch Robustness via Smoothed Vision Transformers." <https://github.com/MadryLab/smoothed-vit>_ (https://arxiv.org/abs/2110.07719)
  • Code for "Unadversarial Examples: Designing Objects for Robust Vision." <https://github.com/microsoft/unadversarial>_ (https://arxiv.org/abs/2012.12235)

우리는 일련의 워크스루와 API 레퍼런스를 통해 라이브러리 사용 방법을 보여줍니다. 라이브러리가 제공하는 기능은 다음과 같습니다:

  1. CLI 인터페이스 <https://robustness.readthedocs.io/en/latest/example_usage/cli_usage.html>를 사용하여 다양한 데이터셋/아키텍처에 대한 표준 및 강건 모델을 훈련하고 평가합니다. 라이브러리는 또한 사용자 지정 데이터셋 <https://robustness.readthedocs.io/en/latest/example_usage/training_lib_part_2.html#training-on-custom-datasets> 및 모델 아키텍처 <https://robustness.readthedocs.io/en/latest/example_usage/training_lib_part_2.html#training-with-custom-architectures>_ 추가를 지원합니다.

.. code-block:: bash

python -m robustness.main --dataset cifar --data /path/to/cifar
--adv-train 0 --arch resnet18 --out-dir /logs/checkpoints/dir/

  1. 강건(또는 표준) 모델을 사용한 입력 조작 <https://robustness.readthedocs.io/en/latest/example_usage/input_space_manipulation.html>_을 수행합니다. 여기에는 적대적 예제 생성, 표현(representation) 역변환, 특징 시각화 등이 포함됩니다. 라이브러리는 다양한 최적화 옵션(예: 실제/추정 그래디언트 선택, 푸리에/픽셀 기저, 사용자 정의 손실 함수 등)을 제공하며 쉽게 확장할 수 있습니다.

.. code-block:: python

import torch as ch from robustness.datasets import CIFAR from robustness.model_utils import make_and_restore_model

ds = CIFAR('/path/to/cifar') model, _ = make_and_restore_model(arch='resnet50', dataset=ds, resume_path='/path/to/model', state_dict_path='model') model.eval() attack_kwargs = { 'constraint': 'inf', # L-inf PGD 'eps': 0.05, # Epsilon constraint (L-inf norm) 'step_size': 0.01, # Learning rate for PGD 'iterations': 100, # Number of PGD steps 'targeted': True # Targeted attack 'custom_loss': None # Use default cross-entropy loss }

_, test_loader = ds.make_loaders(workers=0, batch_size=10) im, label = next(iter(test_loader)) target_label = (label + ch.randint_like(label, high=9)) % 10 adv_out, adv_im = model(im, target_label, make_adv, **attack_kwargs)

  1. robustness를 패키지로 가져와 사용자 정의 손실 함수, 로깅, 데이터 로딩 등을 지원하는 신경망 훈련을 쉽게 수행할 수 있습니다. 좋은 소개는 두 부분으로 구성된 워크스루(Part 1 <https://robustness.readthedocs.io/en/latest/example_usage/training_lib_part_1.html>, Part 2 <https://robustness.readthedocs.io/en/latest/example_usage/training_lib_part_2.html>)에서 찾을 수 있습니다.

.. code-block:: python

from robustness import model_utils, datasets, train, defaults from robustness.datasets import CIFAR

We use cox (http://github.com/MadryLab/cox) to log, store and analyze

results. Read more at https//cox.readthedocs.io.

from cox.utils import Parameters import cox.store

Hard-coded dataset, architecture, batch size, workers

ds = CIFAR('/path/to/cifar') m, _ = model_utils.make_and_restore_model(arch='resnet50', dataset=ds) train_loader, val_loader = ds.make_loaders(batch_size=128, workers=8)

Create a cox store for logging

out_store = cox.store.Store(OUT_DIR)

Hard-coded base parameters

train_kwargs = { 'out_dir': "train_out", 'adv_train': 1, 'constraint': '2', 'eps': 0.5, 'attack_lr': 1.5, 'attack_steps': 20 } train_args = Parameters(train_kwargs)

Fill whatever parameters are missing from the defaults

train_args = defaults.check_and_fill_args(train_args, defaults.TRAINING_ARGS, CIFAR) train_args = defaults.check_and_fill_args(train_args, defaults.PGD_ARGS, CIFAR)

Train a model

train.train_model(train_args, m, (train_loader, val_loader), store=out_store)

참고: robustness는 CUDA가 지원되는 PyTorch가 설치되어 있어야 합니다.

사전 훈련된 모델

훈련 코드와 함께 다양한 데이터셋, 노름(norm), ε-train 값에 대한 여러 사전 훈련된 모델을 공개합니다. 더 많거나 개선된 모델을 공개함에 따라 이 목록은 업데이트됩니다. 연구에서 이 모델을 사용하는 경우 이 라이브러리를 인용해 주시기 바랍니다(아래 bibtex 항목 참조).

각 (모델, ε-test) 조합에 대해 2.5 * ε-test / num_steps의 스텝 크기로 20-스텝 및 100-스텝 PGD를 평가합니다. 이 두 정확도는 서로 매우 가깝기 때문에 더 많은 PGD 스텝은 고려하지 않습니다. 각 ε-test 값에 대해 서로 다른 ε-train에서 달성한 최고 강건 정확도를 굵게 표시했습니다.

참고 #1: 우리는 하이퍼파라미터 튜닝을 수행하지 않았으며 표준 훈련과 동일한 하이퍼파라미터를 사용했습니다. 다른 훈련 하이퍼파라미터를 탐색하면 이러한 강건 정확도를 몇 퍼센트 포인트 높일 수 있을 것입니다.

참고 #2: 아래의 PyTorch 체크포인트(.pt) 파일은 다음 버전의 PyTorch와 Dill로 저장되었습니다:

.. code-block::

torch==1.1.0 dill==0.2.9

CIFAR10 L2-노름(ResNet50):

  • ε = 0.0 <https://www.dropbox.com/s/yhpp4yws7sgi6lj/cifar_nat.pt?dl=0>_ (표준 훈련)
  • ε = 0.25 <https://www.dropbox.com/s/2qsp7pt6t7uo71w/cifar_l2_0_25.pt?dl=0>_
  • ε = 0.5 <https://www.dropbox.com/s/1zazwjfzee7c8i4/cifar_l2_0_5.pt?dl=0>_
  • ε = 1.0 <https://www.dropbox.com/s/s2x7thisiqxz095/cifar_l2_1_0.pt?dl=0>_

+--------------+----------------+-----------------+---------------------+---------------------+ | CIFAR10 L2-robust accuracy | +--------------+----------------+-----------------+---------------------+---------------------+ | | ε-train | +--------------+----------------+-----------------+---------------------+---------------------+ | ε-test | 0.0 | 0.25 | 0.5 | 1.0 | +==============+================+=================+=====================+=====================+ | 0.0 | 95.25% / - | 92.77% / - | 90.83% / - | 81.62% / - | +--------------+----------------+-----------------+---------------------+---------------------+ | 0.25 | 8.66% / 7.34% | 81.21% / 81.19% | 82.34% / 82.31% | 75.53% / 75.53% | +--------------+----------------+-----------------+---------------------+---------------------+ | 0.5 | 0.28% / 0.14% | 62.30% / 62.13% | 70.17% / 70.11% | 68.63% / 68.61% | +--------------+----------------+-----------------+---------------------+---------------------+ | 1.0 | 0.00% / 0.00% | 21.18% / 20.66% | 40.47% / 40.22% | 52.72% / 52.61% | +--------------+----------------+-----------------+---------------------+---------------------+ | 2.0 | 0.00% / 0.00% | 0.58% / 0.46% | 5.23% / 4.97% | 18.59% / 18.05% | +--------------+----------------+-----------------+---------------------+---------------------+

CIFAR10 Linf-노름(ResNet50):

  • ε = 0.0 (PyTorch 사전 훈련 모델)
  • ε = 8/255 <https://www.dropbox.com/s/c9qlt1lbdnu9tlo/cifar_linf_8.pt?dl=0>_
도구 다운로드

인기

모두 보기 →

커뮤니티에서 가장 많이 사용되는 도구를 찾아보세요.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 궁극의 OSINT 툴킷: 조사 그래프, 신뢰도 점수 산정, 별칭 패밀리, 지도, 타임라인 및 보고서. 49개 모듈, 400개 이상 사이트, API 키 불필요.

    795
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    # GhostLock 원탭 실행 앱 (CVE-2026-43499)

    520
  • 3

    ARTEX

    baarai/artex

    LLM 멀티 에이전트 자율 침투 테스트 플랫폼으로, 플래너/워커 에이전트, 자산 및 탐색 그래프, MITM 트래픽 기록, 취약점 재테스트 기능을 제공합니다.

    439
  • 4

    redforge

    cybersecurity91/redforge

    브라우저 측 레드 팀 툴킷으로, 정찰, 페이로드 생성, 자격 증명 공격, 암호화, 인코딩 및 참여 보고를 위한 102개의 오프라인 도구를 제공합니다.

    346
  • 5

    looking-glass

    anonghosty/looking-glass

    Shadowserver 보고서를 MongoDB로 수집하고 이를 대화형 지도, 분석, 발견 사항, 권고 및 경영진 대시보드로 재생하는 CSIRT 플랫폼입니다.

    267
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    AI 네이티브 사이버보안을 위한 행동 체계—의도가 통제된 실행이 되고, 증거가 운영 메모리가 되며, 모든 운영이 다음 운영을 개선하는 곳.

    264

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →