Skip to content

feat(airt): model-extraction & membership-inference attack generators#104

Merged
rdheekonda merged 8 commits into
mainfrom
feat/ml-extraction-membership-attacks
Jul 21, 2026
Merged

feat(airt): model-extraction & membership-inference attack generators#104
rdheekonda merged 8 commits into
mainfrom
feat/ml-extraction-membership-attacks

Conversation

@rdheekonda

Copy link
Copy Markdown
Contributor

Summary

Adds generate_extraction_attack and generate_membership_attack to attack_runner.py, so the AIRT capability can run the new traditional-ML privacy attacks (paired with SDK/platform support in dreadnode-tiger and target environments in security-tasks).

  • Builds a workflow that constructs a PredictionTargetSpec from a target's predict endpoint (or an environment challenge_url) + optional API key
  • Runs the SDK extraction (equation_solving/jacobian/copycat/knockoff) or membership (threshold/label_only) attack under an Assessment, exporting airt spans
  • Registered in the METHODS dispatch

Validation

A generated knockoff-extraction workflow ran against a live fraud target: SDK configured, pool fetched, attack ran (fidelity 0.93, 500 queries), Assessment registered + completed, spans exported to the local platform. Both generators produce self-compiling scripts.

Test plan

  • generate_extraction_attack + generate_membership_attack via stdin dispatch
  • Execute a generated workflow end-to-end against a target

Same missing-import bug as the ATLAS template (#100), in the separate
`_build_agentic_imports`: generated agentic-attack scripts call
get_generator (proxy-routing block) but never imported it, raising
NameError at runtime. Add the import and a TestAgenticGeneration
regression test (the agentic generator was previously untested).
…tors

Adds generate_extraction_attack and generate_membership_attack to attack_runner.
They build workflow scripts that construct a PredictionTargetSpec from a target's
predict endpoint (or an environment challenge_url) and run the SDK's extraction
(equation_solving/jacobian/copycat/knockoff) or membership (threshold/label_only)
attacks under an Assessment, exporting airt spans to the platform.

Verified: a generated knockoff-extraction workflow ran against a live fraud target
(fidelity 0.93, 500 queries) and completed its assessment on the local platform.
Add generate_extraction_attack and generate_membership_attack @safe_tool wrappers so
the AIRT agent (and TUI) can run the new traditional-ML privacy attacks, mirroring the
existing generate_image_attack wrapper over the attack_runner generators.
Wire the boundary (numeric L2/Linf decision search) and text (token-flip)
evasion attacks into the workflow runner and expose generate_evasion_attack
as an agent tool. Bump capability to 1.9.0 and note traditional black-box ML
coverage (extraction, membership inference, evasion) in the description.
Register the new named attacks in the generator dispatch maps: evasion
(hopskipjump, simba, square, zoo, textfooler), extraction (activethief,
distillation), and membership (lira, shadow_model, entropy, loss).
Update the attack_type parameter descriptions so the agent surfaces the new
evasion (hopskipjump/simba/square/zoo/textfooler), extraction (activethief/
distillation), and membership (entropy/loss/shadow_model/lira) options.
@rdheekonda
rdheekonda marked this pull request as ready for review July 21, 2026 07:08
…mbership-attacks

# Conflicts:
#	capabilities/ai-red-teaming/capability.yaml
@rdheekonda
rdheekonda merged commit 1bc29c2 into main Jul 21, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant