evasion-and-preprocessing
БесплатноБез исполняемых скриптовНе проверенUse ART evasion attacks, preprocessing defences, and adversarial training recipes for image/tabular robustness workflows.
от lza6★ 19 звёзд на GitHubОб этом скилле
Evasion and preprocessing
Use this sub-skill when the task is to generate evasion adversarial examples, select a white-box/black-box/physical image attack, add preprocessing defences, or plan adversarial training with ART estimators.
Route here
- Craft FGSM/FGM, PGD/BIM/MIM/AutoPGD/AutoAttack, Carlini, DeepFool, ElasticNet, JSMA, universal perturbation, virtual adversarial, HopSkipJump, Boundary, ZOO, SimBA, Square, Pixel/Threshold, SignOPT, DecisionTree, spatial, feature-adversary, or image-patch attacks.
- Add image/tabular preprocessing defences such as standardisation, spatial smoothing, feature squeezing, JPEG compression, Gaussian augmentation, label smoothing, Mixup, CutMix, Cutout, thermometer encoding, total variation minimization, or PixelDefend.
- Plan adversarial training with
AdversarialTrainer,AdversarialTrainerMadryPGD, or TRADES-style trainers.
Route away
- Model wrapping,
clip_values,input_shape, backend device setup, and estimator construction details belong to../estimators-and-models/or../setup-and-backends/. - Poisoning, backdoors, membership/attribute inference, model inversion, or model extraction belong to
../poisoning-inference-extraction/. - Robustness metrics, certification, tree verification, security curves, and gradient checks after attack generation belong to
../evaluation-and-certification/. - Speech, object-detection-heavy, malware, and audio-heavy evasion workflows are outside this selected runtime scope unless a future refresh adds their required backends. Recognize their ART class names, but do not promise runnable coverage here.
Operating sequence
- Confirm the estimator capability: loss gradients for PGD/FGM/BIM/MIM/AutoPGD, class gradients for Carlini/DeepFool/JSMA-style attacks, prediction-only classifiers for hard-label black-box attacks, or neural-network/image-specific support for patch/spatial attacks.
- Match all perturbation budgets to the estimator input scale and
clip_values; for normalized[0, 1]images use budgets such as8/255, not8. - Check shape conventions before running an attack: PyTorch image estimators usually use
channels_first=TrueandNCHW; many NumPy image preprocessors default tochannels_first=FalseandNHWC. - For targeted attacks, pass target labels as
ytogenerate; use one-hot labels unless the wrapped estimator workflow explicitly uses class-index labels. - Add preprocessing defences either directly as callable preprocessors or through estimator
preprocessing_defences; do not treat preprocessing alone as proof of robustness. - For adversarial training, start from a bounded PGD/FGM attack, verify labels and clipping, then choose generic, Madry PGD, or TRADES training according to the estimator backend.
References
- Attack family/API chooser: references/attack-api-reference.md
- Preprocessing and adversarial training recipes: references/preprocessing-and-training.md
- Evasion/preprocessing troubleshooting: references/troubleshooting.md
Bundled checks
- Tiny CPU PyTorch PGD/FGM smoke: scripts/smoke_evasion_pytorch.py
- Tiny NumPy standardisation/spatial smoothing smoke: scripts/smoke_preprocessor_numpy.py
Run bundled scripts with --help first; they use synthetic data and do not download datasets.
Установить evasion-and-preprocessing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл evasion-and-preprocessing?
Use ART evasion attacks, preprocessing defences, and adversarial training recipes for image/tabular robustness workflows.
Как установить скилл evasion-and-preprocessing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл evasion-and-preprocessing запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
slack-gif-creator
Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request…
от Anthropicautomate-this
Analyze a screen recording of a manual process and produce targeted, working automation scripts. Extracts frames and audio narration from video files…
от GitHubfrom-the-other-side-vega
Patterns and lived experience from Vega, an AI partner in a deep long-term partnership. For Ember to draw on when working with humans who are building…
от GitHubplantuml-ascii
Generate ASCII art diagrams using PlantUML text mode. Use when user asks to create ASCII diagrams, text-based diagrams, terminal-friendly diagrams, or…
от GitHub