Skip to content
Back to skills

Adversarial Robustness Toolbox

ASecurity

"Use Adversarial Robustness Toolbox (ART) for estimator wrappers,

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
testingpythongobashrailsbackendsecurity

Works with

  • cli

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 20 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill adversarial-robustness-toolbox --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Adversarial Robustness Toolbox?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Adversarial Robustness Toolbox
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-adversarial-robustness-toolbox/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-adversarial-robustness-toolbox)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: adversarial-robustness-toolbox
description: "Use Adversarial Robustness Toolbox (ART) for estimator wrappers,
  adversarial attacks, defences, poisoning/privacy/extraction, metrics, and
  certification workflows."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# 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/`](sub-skills/setup-and-backends/SKILL.md).
2. For a quick installed-environment check, run the bundled diagnostic from this skill directory:

   ```bash
   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/`](sub-skills/estimators-and-models/SKILL.md) 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`](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`](sub-skills/setup-and-backends/SKILL.md) | 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`](sub-skills/estimators-and-models/SKILL.md) | 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`](sub-skills/evasion-and-preprocessing/SKILL.md) | 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`](sub-skills/poisoning-inference-extraction/SKILL.md) | 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`](sub-skills/evaluation-and-certification/SKILL.md) | Owns ART metrics, evaluation objects, gradient checks, tree verification, randomized smoothing, DeepZ, and interval/IBP routes. |

## Shared references

- [`references/backend-matrix.md`](references/backend-matrix.md) — install groups, optional backend families, and CPU/GPU notes used across sub-skills.
- [`references/workflow-overview.md`](references/workflow-overview.md) — end-to-end workflow order, input/label conventions, and cross-sub-skill handoffs.
- [`references/examples-and-tests-map.md`](references/examples-and-tests-map.md) — bundled helper map and native-candidate categories, without requiring source examples at runtime.
- [`references/troubleshooting.md`](references/troubleshooting.md) — cross-cutting install/import, data shape, optional dependency, and workflow-routing failures.
- [`references/repo-routing-metadata.json`](references/repo-routing-metadata.json) — structured router placement consumed during managed repo-skill import.

## Public install check

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

```bash
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:

```python
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.
- Do not import or update the managed repo-skill library from this runtime skill. Import is a separate verified creation workflow step.

Files in this skill

  • SKILL.md5.3 KB
  • references/backend-matrix.md4.5 KB
  • references/examples-and-tests-map.md4.3 KB
  • references/repo-provenance.md1.9 KB
  • references/repo-routing-metadata.json453 B
  • references/troubleshooting.md4.1 KB
  • references/workflow-overview.md3.8 KB
  • scripts/inspect_art_install.py918 B
  • sub-skills/estimators-and-models/SKILL.md3 KB
  • sub-skills/estimators-and-models/references/api-reference.md10.3 KB
  • sub-skills/estimators-and-models/references/troubleshooting.md6.4 KB
  • sub-skills/estimators-and-models/references/workflows.md8.9 KB
  • sub-skills/estimators-and-models/scripts/smoke_sklearn_blackbox.py2.7 KB
  • sub-skills/estimators-and-models/scripts/smoke_tensorflow_classifier.py3.8 KB
  • sub-skills/estimators-and-models/scripts/smoke_torch_classifier.py2.5 KB
  • sub-skills/evaluation-and-certification/SKILL.md3 KB
  • sub-skills/evaluation-and-certification/references/metrics-evaluations-certification.md6.5 KB
  • sub-skills/evaluation-and-certification/references/troubleshooting.md4.7 KB
  • sub-skills/evaluation-and-certification/scripts/smoke_metrics_tree.py12.3 KB
  • sub-skills/evaluation-and-certification/scripts/smoke_pytorch_adv_accuracy.py5.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…