Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

adversarial-robustness-toolbox

БесплатноБез исполняемых скриптовНе проверен

Use Adversarial Robustness Toolbox (ART) for estimator wrappers, adversarial attacks, defences, poisoning/privacy/extraction, metrics, and certification…

lza6от lza6★ 19 звёзд на GitHub

Об этом скилле

Adversarial Robustness Toolbox (ART)

Use this repo skill when a task names adversarial-robustness-toolbox, art, ART estimators, adversarial examples, robustness defences, poisoning/backdoor attacks, privacy inference attacks, model extraction, robustness metrics, or certification workflows.

ART is a Python library for wrapping ML models as estimators, attacking and defending them, and evaluating robustness. This skill covers the core CPU-capable Python workflows verified for ART 1.20.1; heavy speech, object-detection, tracking, malware, GAN/generation, experimental, notebook, and container-only workflows are treated as out of selected runtime scope unless a future refresh expands them.

Start here

  1. If ART is not installed or imports fail, go to sub-skills/setup-and-backends/.

  2. For a quick installed-environment check, run the bundled diagnostic from this skill directory:

    python scripts/inspect_art_install.py --json
    
  3. If a model is not yet wrapped as an ART estimator, use sub-skills/estimators-and-models/ before choosing attacks or metrics.

  4. Choose the workflow owner from the route table below, then read that sub-skill's references and bundled scripts.

  5. Before deciding whether this skill matches a newer checkout, read references/repo-provenance.md.

Route map

User request Load this sub-skill Why
Install ART, verify import art, choose CPU/GPU packages, resolve optional dependency or backend errors setup-and-backends Owns package groups, backend matrix, and import diagnostics.
Wrap sklearn, PyTorch, TensorFlow/Keras, boosted-tree, GPy, black-box, or regression models for ART estimators-and-models Owns estimator constructor contracts, labels, shapes, clip_values, gradients, and black-box limitations.
Generate evasion adversarial examples, choose FGSM/PGD/AutoAttack/HopSkipJump/patch attacks, add preprocessors, or plan adversarial training evasion-and-preprocessing Owns attack-family compatibility, perturbation budgets, preprocessing defences, and trainer recipes.
Plan poisoning/backdoor, membership/attribute inference, model inversion/reconstruction, model extraction/stealing, or detector/mitigation workflows poisoning-inference-extraction Owns poisoning, privacy inference, extraction, Neural Cleanse, Activation Defence, STRIP, and query/data split guidance.
Compute robustness/privacy metrics, run SecurityCurve or GREAT score, use SummaryWriter routing, run tree verification, or choose certification wrappers evaluation-and-certification Owns ART metrics, evaluation objects, gradient checks, tree verification, randomized smoothing, DeepZ, and interval/IBP routes.

Shared references

Public install check

For a normal user environment, start with the base package and only add backend libraries needed by the selected workflow:

python -m pip install adversarial-robustness-toolbox
python -c "import art; print(art.__version__)"

For PyTorch CPU workflows, be explicit in ART wrappers that accept a device parameter:

classifier = PyTorchClassifier(..., device_type="cpu")

ART's PyTorch wrappers often default to GPU-oriented device selection, so this explicit CPU choice avoids no-CUDA confusion.

Guardrails

  • Do not run original repository examples, notebooks, tests, or CI scripts as runtime instructions for users. Use the bundled scripts and distilled references in this skill tree.
  • Do not claim a black-box estimator supports white-box attacks requiring loss_gradient; route to compatible attacks or rebuild a gradient-enabled estimator.
  • Do not treat successful attack generation as proof of robustness. Use the metrics/certification sub-skill for evaluation, stronger attacks, and gradient-obfuscation checks
Полный SKILL.md на GitHub

Установить adversarial-robustness-toolbox в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/backend-matrix.mdreferences/examples-and-tests-map.mdreferences/repo-provenance.mdreferences/repo-routing-metadata.jsonreferences/troubleshooting.mdreferences/workflow-overview.mdsub-skills/estimators-and-models/SKILL.mdsub-skills/estimators-and-models/references/api-reference.mdsub-skills/estimators-and-models/references/troubleshooting.mdsub-skills/estimators-and-models/references/workflows.mdsub-skills/evaluation-and-certification/SKILL.mdsub-skills/evaluation-and-certification/references/metrics-evaluations-certification.mdsub-skills/evaluation-and-certification/references/troubleshooting.mdsub-skills/evasion-and-preprocessing/SKILL.mdsub-skills/evasion-and-preprocessing/references/attack-api-reference.mdsub-skills/evasion-and-preprocessing/references/preprocessing-and-training.mdsub-skills/evasion-and-preprocessing/references/troubleshooting.mdsub-skills/poisoning-inference-extraction/SKILL.mdsub-skills/poisoning-inference-extraction/references/attack-families.mdsub-skills/poisoning-inference-extraction/references/defences-and-mitigations.mdsub-skills/poisoning-inference-extraction/references/troubleshooting.mdsub-skills/setup-and-backends/SKILL.mdsub-skills/setup-and-backends/references/install-and-backends.mdsub-skills/setup-and-backends/references/troubleshooting.md

FAQ

Что делает скилл adversarial-robustness-toolbox?

Use Adversarial Robustness Toolbox (ART) for estimator wrappers, adversarial attacks, defences, poisoning/privacy/extraction, metrics, and certification workflows.

Как установить скилл adversarial-robustness-toolbox?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл adversarial-robustness-toolbox запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить adversarial-robustness-toolbox с