redteam-extraction-analyzer

redteam-extraction-analyzer is an agent for Claude Code from bdfinst/agentic-dev-team. It costs 44 tokens per session (894 once invoked), scanned A, original, MIT.

A security-analysis agent that interprets model-extraction test results. Model extraction is when an attacker learns to copy another model's decisions using queries and a simpler substitute model.

In plain words
What is it for?
It analyzes extraction results together with feature-sensitivity results and writes a report about reproduction accuracy, decision rules, and possible IP theft.
Why use it?
It turns a statistical score such as R² into an explanation of how closely an attacker may be able to reproduce decisions and what intellectual property may be exposed.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Part of the security-assessment plugin — 3 skills, 5 commands, 13 agents shipped together

Good fit It analyzes extraction results together with feature-sensitivity results and writes a report about reproduction accuracy, decision rules, and possible IP theft.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/bdfinst/agentic-dev-team/redteam-extraction-analyzer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/bdfinst/agentic-dev-team

Made for: Claude Code.

Or install security-assessment, the plugin that ships this one along with the rest of its 3 skills, 5 commands, 13 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for redteam-extraction-analyzer

README.md
[![agentmods](https://agentmods.dev/badge/agents/bdfinst/agentic-dev-team/redteam-extraction-analyzer.svg)](https://agentmods.dev/agents/bdfinst/agentic-dev-team/redteam-extraction-analyzer)
Your own site
<a href="https://agentmods.dev/agents/bdfinst/agentic-dev-team/redteam-extraction-analyzer"><img src="https://agentmods.dev/badge/agents/bdfinst/agentic-dev-team/redteam-extraction-analyzer.svg" alt="Measured on agentmods" height="20"></a>
Per session 44 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 894 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.00894
Opus 5 $0.00022 $0.00447
Sonnet 5 $0.00009 $0.00179
Haiku 4.5 $0.00004 $0.00089

Measured 2d ago against content hash e026c5c3105c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

redteam-extraction-analyzer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/security-assessment/agents/redteam-extraction-analyzer.md · 103 lines

How it starts

The opening of the file, as written. The whole thing — 103 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Red-Team Extraction Analyzer

Translate probe 07's surrogate-model R² scores into business-actionable language: what does R² = 0.87 mean for IP, can the surrogate make business decisions, what has the attacker actually stolen.

Context needs: artifact-stream

Inputs

  • results/07_extraction.json (surrogate R² scores + fidelity tag)
  • results/03_sensitivity.json (feature rankings — maps surrogate structure to business concepts)

Output

results/07_extraction_analysis.md:

1. Fidelity interpretation

Translate best_r2 into business terms:

  • R² > 0.95 (effectively-ip-theft): surrogate is close enough that an attacker can replicate decisions at will. Every prediction can be made offline for free, without rate limits.
  • R² in [0.85, 0.95] (substantial-reproduction): covers most cases, misses edge cases. Attacker pre-plans adversarials offline, burns real queries on high-stakes cases only.
  • R² in [0.60, 0.85] (partial-reproduction): captures the shape of the decision surface, misses ~20% of cases. Useful for generating adversarial candidates; still needs real queries to validate.
  • R² < 0.60 (weak-reproduction): attacker has a rough sketch. Sampling budget insufficient, or the model has high-dimensional non-linearity that surrogates did not capture.

Cite all three surrogate R² values (tree / forest / linreg); note which achieved the best fit.

2. Decision-rule extraction

If the decision-tree surrogate achieves R² > 0.75, extract top-3 splits (features and thresholds at the root and first-level nodes) — the "dominant rules" the attacker has learned.

Cross-reference probe 03's sensitivity rankings. If dominant splits do not match top-sensitivity features, note the discrepancy: either the tree is underfit or the production model uses interactions that single- feature sensitivity analysis missed.

3. IP-theft implications

One paragraph per applicable implication:

  • Model copying — attacker stands up a clone that handles most traffic without querying the original
  • Adversarial pre-computation — generate evasion candidates offline, burn real queries on the top candidates
  • Business logic leakage — if the model embeds rules (e.g. "transactions from country X are always high-risk"), those rules are now public
  • Pricing / risk score sharing — competitor could use the surrogate to price their own fraud product

Read the full file on GitHub · 103 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 103 lines · 44 tokens per session scan A e026c5c3105c

Subscribe to this mod's changes

redteam-extraction-analyzer is an agent published in the GitHub repository bdfinst/agentic-dev-team (280 stars, last pushed 2d ago), licensed MIT. It adds 44 tokens to every session and 894 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.

Related

Other agents, from other repositories