ai-act-security-review

ai-act-security-review is a command for Claude Code from Peaky8linders/eu-ai-act-scanner. It costs 38 tokens per session (915 once invoked), scanned A, original, Apache-2.0.

A command that reviews a code branch or directory for cybersecurity and EU AI Act Article 15 risks. It can combine built-in checks with reports from security tools and export confirmed findings in SARIF, a standard format for security results.

In plain words
What is it for?
Use it to review a branch against a Git base, inspect AI-system cybersecurity controls, import local SARIF or Claude Security reports, and export confirmed results.
Why use it?
It brings findings from different security checks into one review and focuses on changes or selected code instead of always scanning everything. Adversarial verification helps filter findings marked as mitigated, false positives, or unverified.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths; positional $N argument; mentions Claude Code.

Part of the eu-ai-act-scanner plugin — 17 skills, 11 commands, 1 MCP server shipped together

Good fit Use it to review a branch against a Git base, inspect AI-system cybersecurity controls, import local SARIF or Claude Security reports, and export confirmed results.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/peaky8linders/eu-ai-act-scanner/ai-act-security-review
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/Peaky8linders/eu-ai-act-scanner

Made for: Claude Code.

Or install eu-ai-act-scanner, the plugin that ships this one along with the rest of its 17 skills, 11 commands, 1 MCP server.

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 ai-act-security-review

README.md
[![agentmods](https://agentmods.dev/badge/commands/peaky8linders/eu-ai-act-scanner/ai-act-security-review/github.svg)](https://agentmods.dev/commands/peaky8linders/eu-ai-act-scanner/ai-act-security-review)
Your own site
<a href="https://agentmods.dev/commands/peaky8linders/eu-ai-act-scanner/ai-act-security-review"><img src="https://agentmods.dev/badge/commands/peaky8linders/eu-ai-act-scanner/ai-act-security-review/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ai-act-security-review

Your own site · 80×15
<a href="https://agentmods.dev/commands/peaky8linders/eu-ai-act-scanner/ai-act-security-review"><img src="https://agentmods.dev/badge/commands/peaky8linders/eu-ai-act-scanner/ai-act-security-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 915 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.00038 $0.00915
Opus 5.5 $0.00015 $0.00366
Sonnet 5.5 $0.00008 $0.00183
Haiku 4.5 $0.00004 $0.00092

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

Security

Grade A, and why

ai-act-security-review 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 8d 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.

commands/ai-act-security-review.md · 26 lines

What it actually says

/ai-act-security-review

A security review of the current branch that keeps only findings with real, line-level evidence.

  1. Collect evidence
    • Changed files: git diff origin/main...HEAD --name-only (fall back to main...HEAD or git status --short; use --base REF if given).
    • Scanner: eu-ai-act-scan "$1" --markdown, adding any reports the user has: --ingest-claude-security FILE (Claude Code Security JSONL, JSON, Markdown or SARIF), --ingest-sarif FILE (Semgrep, Bandit, Snyk, CodeQL), --ingest-compliance-api FILE (Claude Compliance API export, anthropic-version: 2026-10-21). With the scanner MCP server, ingest_security_reports does the same.
    • Read each changed file and check for: exposed secrets; prompt injection that can reach tools; MCP tool poisoning, SSRF or unauthenticated servers; .claude/settings.json with Bash(*) or bypassPermissions; shell=True, eval, or unsafe deserialization (pickle, torch.load, yaml.load); private data plus untrusted input plus an outbound action with no human approval step; unbounded agent loops; unpinned MCP servers, images or CI actions; AI endpoints without auth or timeouts.
  2. Filter false positives in three passes:
    • Finder: list candidates with a severity. Critical: exposed production credentials, unauthenticated remote execution, injection reaching privileged tools, deserialization of untrusted input. High: command injection, bypassPermissions / Bash(*), SSRF, unauthenticated AI endpoints, unbounded loops. Medium: unpinned dependencies, missing timeouts, silenced errors, missing audit logs. Low: hardening.
    • Adversary: drop anything in tests, fixtures, examples, generated code, migrations or .env.example; anything that is a comment, string or detection pattern rather than running code; and anything an upstream check you have read really prevents. List what you dropped under "Cleared false positives".
    • Referee: keep a finding only if it sits in shipped code or the developer security boundary (.claude/, .mcp.json, CI), has a concrete exploit path at a specific file:line, and has a minimal fix.
  3. Report: a table of counts per severity, then each finding with file:line, its impact in one sentence, the fix, and the EU AI Act link (security issues map to Art. 15(4), missing approval gates to Art. 14). Redact secret values. If nothing survives, say: "Security review passed: no confirmed security findings in this diff."
  4. Go further (offer, do not run unasked):
    • Claude Code Security (https://code.claude.com/docs/en/claude-security): install claude-security@claude-plugins-official, run /threat-model to keep a THREAT_MODEL.md, then /claude-security, and feed CLAUDE-SECURITY-RESULTS.jsonl back with --ingest-claude-security.
    • Claude Compliance API (Enterprise or Team): from your clone of eu-ai-act-scanner run python <scanner-clone>/scripts/fetch_claude_compliance.py --output compliance-api-export.json, then add --ingest-compliance-api compliance-api-export.json.
    • CI: --sarif writes SARIF 2.1.0 for GitHub Code Scanning; the anthropics/claude-code-security-review Action can use templates/security-scan-instructions.md and templates/false-positive-filter.md from the scanner repo as custom instructions.

Local and defensive only: never run untrusted code or send repository contents anywhere.

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. 8d ago Changed · -90 lines · -46 tokens per session ae930894d4e8
  2. 9d ago First seen · 116 lines · 84 tokens per session scan A 5dc32b9a32dc

Subscribe to this mod's changes

ai-act-security-review is a command published in the GitHub repository Peaky8linders/eu-ai-act-scanner (7 stars, last pushed 8d ago), licensed Apache-2.0. It adds 38 tokens to every session and 915 once invoked, about $0.0002 per session on Opus 5.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-11-22.

Related

ai-act-security-review compared with commands from other repositories

ai-act-security-review next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ai-act-security-reviewPeaky8linders/eu-ai-act-scannerCommand78d agoApache-2.0A38Claude Code
evidenceairblackbox/airblackboxCommand258d agoApache-2.0A14Claude Code
complyairblackbox/airblackboxCommand258d agoApache-2.0A13Claude Code
auditdingdawg/dingdawg-governanceCommand14mo agoMITC0Claude Code
service-auditor-prepGRCEngClub/claude-grc-engineeringCommand444yesterdaynoneA10Claude Code
soa-generatorGRCEngClub/claude-grc-engineeringCommand444yesterdaynoneA18Claude Code
ssp-section-generateGRCEngClub/claude-grc-engineeringCommand444yesterdaynoneA17Claude Code