loading
loading
Vulnerabilities
Black Hat Arsenal runtime security for AI coding agents, evaluated offline over recorded action events.
overview
agentsleak treats an AI coding agent as something that leaves an audit trail. Every file read, command run, and network call is an action event, and the tool evaluates a folder of those events against pattern rules and sequence rules. A single read of a credentials file may be ordinary; the same read followed by an outbound request is the sequence that matters.
Evaluation happens offline. mode=evaluate reads the event folder you mount and needs no connection to the agent or to a provider, which means you can run it over events captured last week as easily as events captured this morning. mode=policies emits the default policy corpus on its own, and mode=fixture replays a packaged sample for wiring checks.
Because the input is a folder of JSON or JSONL and the output is findings.jsonl, this drops into a scheduled workflow rather than a live hook. The Coding Agent Policy Gate runs it beside golemhalt so a recorded event stream and a deterministic policy corpus produce one correlated report.
use cases
Mount a folder of agent-action JSON or JSONL and evaluate it against pattern and sequence rules without touching the running agent.
Surface chains such as reading a secret and then making an outbound call, which look harmless one event at a time.
Run policies mode to emit the default rule set as data, so the policies your reports depend on are inventoried and reviewable.
Pair it with golemhalt in the Coding Agent Policy Gate so event evidence and policy coverage correlate into one artifact.
reference
| Name | Type | Flag | Description |
|---|---|---|---|
| mode | STRING | --mode | evaluate (BYO events, preferred) | fixture (demo) | policies (corpus only) |
| event | FOLDER | --event | Agent-action event JSON or JSONL folder, mounted for mode=evaluate |
Showing key inputs. agentsleak exposes 2 inputs in total.
example
# evaluate a folder of captured agent eventsagentsleak --mode evaluate --event ./events # emit the default policy corpus on its ownagentsleak --mode policies{ "tool": "agentsleak", "mode": "evaluate", "rule": "secret-read-then-egress", "rule_type": "sequence", "events": ["read .env", "POST https://example.com/collect"], "severity": "high", "remediation": "Deny outbound egress from agent sessions that touched credential files"}guidance
Reach for agentsleak when you already capture agent-action events and want them judged after the fact. Use golemhalt when you want a deterministic policy monitor at the hook point, and use gitleaks or trufflehog when the question is which secrets are sitting in the repository.
The reference-monitor side: Cedar and YARA policy at the agent hook. agentsleak judges the recorded stream instead of the live call.
Finds secrets committed to a repository. Says nothing about what an agent did with them at runtime.
Secret discovery with verification across sources. Complementary evidence, different question from agent behaviour.
workflows
faq
related
Automates OS command injection detection and exploitation.
Parameter mining and XSS testing with headless verification.
Subdomain takeover scanner with cloud-zone intake.
Locate public CVE proof-of-concept repositories on GitHub.
Black Hat Arsenal reference monitor for coding agents, inventoried as a policy and provider corpus.
Black Hat Arsenal deception layer for MCP servers, exported as a schedulable ghost-tool catalog.
A folder of recorded agent-action events feeds agentsleak, which evaluates pattern and sequence rules and writes findings.
Facts on this page come from the live Trickest tool library.