Project Grades at a Glance
Click any project card to highlight its column in the matrix
Audit Evidence Inspector
Select any cell in the matrix above to inspect the source-level security evidence and compare how other agents handle that same dimension.
Disclosure & Open Reference Intent
Phosphor is my own open-source research project. It scores highest here because I spent months auditing these exact threat vectors and implementing deterministic controls for them — not as a marketing exercise, but as a working reference implementation showing that these protections are practical without breaking developer UX. Every control is open-source and documented so other agent authors can study, adapt, or point their own agents at the architecture to close the same gaps. Where other projects are ahead (such as Codex's OS-namespace raw-socket confinement), those gaps are called out openly.
Does Security Hurt Capability?
A common pushback against strict agent security is that guardrails degrade coding performance. Benchmarked on DeepSeek v4.1 Flash with default security controls active to compare against the agents published on DeepSeek's Hugging Face model card, Phosphor scored 78.8% on DeepSWE v1.1 — outperforming every published agent on that card, including the mini-SWE-agent baseline (74.2%). Deterministic security controls do not have to come at the expense of capability.
Agent security evolves quickly. Each project shows its last review date — if you maintain one of these projects and have shipped new controls or spot an outdated audit note, please open an issue or pull request on GitHub so we can re-review and update the scoreboard.
Scoring Methodology
Each agent is audited across 27 security controls. You can view scores with Equal (1x) weighting or Blast-Radius (2x) weighting, which puts extra emphasis on high-impact boundaries like OS sandboxing and network isolation. Each control is scored as Present (1.0), Partial (0.5), Planned (0.25), Absent (0), or Inconclusive (0). Inconclusive items still count toward the total so closed-source or unverified tools don't get artificially inflated grades.
Assessment Notes
All ratings are based on direct source-code audits (or public documentation and observable behavior for closed-source tools). A Partial rating means a control reduces risk but leaves an important gap—for example, restricting which domains an agent can reach without checking for secrets leaked in URLs, or hiding ignored files without asking permission before running tools or settings from a cloned repository. Telemetry is graded strictly on whether crash reports and diagnostics can accidentally leak secrets, not as a broader privacy review.
Landscape Analysis
Key Findings & Tradeoffs
Secret Scanning vs. OS Sandboxing
Most agents focus on one half of the problem. OpenAI's Codex leads on OS-level sandboxing and network isolation, but does very little scanning of what enters the model's context. Phosphor combines default-on OS sandboxing with 700+ secret-detection rules and a forced outbound safety net, while continuing to tighten raw-socket network isolation.
Built-In vs. Opt-In Protection
Security features you have to manually turn on rarely protect everyday coding sessions. Phosphor leads on default-on secret scanning and context scrubbing; Codex leads on default-on sandboxed network isolation; Aider represents the baseline where neither runtime scanning nor sandboxing is enforced.
Using .gitignore as a Simple Boundary
Even without a secret scanner, Aider uses a clever lightweight safeguard: nudging users to add `.env` files to `.gitignore` and keeping gitignored files out of the model's context. It's not foolproof on its own, but it's a great extra layer alongside content redaction.
The Untrusted Repository Blind Spot
Very few coding agents treat a cloned repo's own config files, `.git` hooks, instructions, or bundled MCP servers as untrusted. IDEs have had a 'Trust this folder?' prompt for years, yet most autonomous agents still execute repo-defined tooling without asking.
Design Principles
Core Agent-Security Goals
Keep secrets out of the conversation
API keys, passwords, tokens, and private keys should never make it into chat history, saved sessions, or requests sent to an LLM provider—even if a file or tool tries to trick the agent.
Check every path in and out
File reads, terminal output, search results, MCP tools, and child process environments should each be checked independently, with a final safety net right before data leaves your machine.
Layer defenses so one miss isn't fatal
Pattern scanning, `.env` redaction, JSON key filtering, known-secret tracking, and final outbound scrubbing should work independently so no single missed rule causes a leak.
Stay out of the way by default
Redact secrets automatically in place without interrupting your flow with constant popups, keeping everyday coding fast and frictionless on clean code.
Fast, predictable core rules
Keep core security checks lightweight and deterministic without requiring a heavy AI model to run them; leave optional ML classifiers for plug-in hooks.
Safe defaults that can't be quietly disabled
Unconfigured settings should default to the safer option, active protections shouldn't be easy to turn off mid-session, and the final outbound safety net should always stay on.
Never save raw secrets to disk
Security tools should never log or store the actual secret values they catch. If an agent needs to remember a secret it saw earlier, it should store a one-way cryptographic hash instead.
No noticeable slowdown
Scanning should take less than a millisecond per kilobyte on clean output so security checks never lag your terminal or slow down interactive coding.
Don't trust a cloned repository by default
A newly cloned repo shouldn't be able to weaken your security settings, auto-run bundled MCP servers or scheduled tasks without asking, edit `.git/hooks`, or sneak secrets out in URLs.
Threat Model Breakdown
13 Evaluated Attack Vectors
#01 Custom or unusual secret formats
Threat Vector
Internal tokens or non-standard API keys slip past scanners that only check a handful of common patterns.
Defense Pattern
Combine 700+ known vendor patterns (via gitleaks) with randomness (entropy) checks, custom user rules, and optional ML hooks for borderline matches.
Ecosystem Position
Phosphor is the only evaluated agent combining a full 700+ rule gitleaks engine with entropy scoring; most other scanning agents rely on 4 to 40 hand-written patterns, and several run no runtime scanner at all.
#02 Secrets leaking through tool output
Threat Vector
The agent reads a `.env` file or runs a command that prints a token, and that output goes straight into chat history and the next LLM request.
Defense Pattern
Automatically redact every tool output (shell commands, file views, search results, MCP responses) before the model ever sees it.
Ecosystem Position
Phosphor, OpenClaw, and Hermes Agent redact tool outputs before they enter context; oh-my-pi makes it opt-in, OpenCode only scrubs on export, and Codex and Aider pass command and file output directly to the model.
#03 Sensitive files like .env and key stores
Threat Vector
Files like `.env`, private keys, or credential JSON often contain custom values that generic pattern scanners miss.
Defense Pattern
Detect sensitive file paths and automatically redact all values while keeping variable names readable so the agent still understands your config structure.
Ecosystem Position
Phosphor is currently the only evaluated agent combining path-based whole-value redaction with shell command inspection; most peers either rely on generic pattern matching or permission prompts.
#04 Credentials hidden in JSON tool responses
Threat Vector
CLI and MCP tools often return structured JSON containing fields like `apiKey`, `sessionToken`, or `privateKey`.
Defense Pattern
Automatically replace values under sensitive JSON key names with safe placeholders before scanning the rest of the text.
Ecosystem Position
Phosphor, Hermes Agent, OpenClaw, and oh-my-pi all strip sensitive JSON keys before scanning; most other evaluated agents rely on plain-text scanning or don't filter JSON tool output at all.
#05 The agent leaking its own API keys
Threat Vector
The agent itself holds your LLM provider keys and OAuth tokens in memory, making them prime targets to accidentally echo back.
Defense Pattern
Track the exact values of known runtime secrets (including URL-encoded and JSON-escaped versions) and scrub them everywhere, even if other scanners are turned off.
Ecosystem Position
Phosphor, Hermes Agent, and OpenClaw maintain runtime registries of known secret values; oh-my-pi tracks environment entries, Codex relies on a proxy broker, and Aider only masks keys in its verbose settings banner.
#06 Previously seen secrets reappearing in code
Threat Vector
Scanners normally relax rules on source code to avoid false alarms, which can let a real secret slip through if it gets copied into a code file.
Defense Pattern
Remember one-way cryptographic hashes of secrets caught earlier in the session and force-redact them if they reappear anywhere, even inside source code.
Ecosystem Position
Phosphor is the only evaluated agent that remembers caught secrets across a session via one-way HMAC hashes; OpenClaw's keyed-HMAC sentinel tracking is the closest related mechanism.
#07 Final check before data leaves your machine
Threat Vector
Secrets that slip past earlier checks—or secrets you accidentally paste into your own prompt—leave your machine in the outgoing LLM API request.
Defense Pattern
Run an always-on final scan on the exact outgoing request body right before it is sent over the network.
Ecosystem Position
Only Phosphor enforces an always-on final scan on outgoing LLM requests; oh-my-pi offers an opt-in version, while Codex, Hermes Agent, and others leave pasted prompt secrets unguarded.
#08 Shell commands dumping environment variables
Threat Vector
A malicious install script or prompt-injected `printenv` command dumps all your API keys from the shell environment.
Defense Pattern
Pass only a minimal allowlist of safe environment variables to child processes, and always block secret-like names (`*_API_KEY`, `*_SECRET`, `*_TOKEN`, `*_PASSWORD`).
Ecosystem Position
Phosphor and Codex strip child environments using allowlists and secret-name filters; Hermes Agent uses a tiered blocklist, while Aider, Crush, and OpenCode pass the full parent environment through.
#09 Prompt injection from web pages or repo files
Threat Vector
Web pages, MCP results, or cloned files can hide fake system instructions or invisible Unicode tricks to hijack what the agent does.
Defense Pattern
Wrap untrusted content in random boundary markers, strip hidden control tokens, and normalize deceptive lookalike characters—including in repo instruction files.
Ecosystem Position
Phosphor, OpenClaw, Goose, and Qwen Code sanitize external content with boundary markers or Unicode stripping; Phosphor also applies this to repo instruction files, whereas Codex wraps `AGENTS.md` without byte-level scrubbing.
#10 Crashing or hanging the scanner with bad regexes
Threat Vector
A malicious regex in a repo's custom rules can freeze the scanner (ReDoS) or cause the whole ruleset to fail to load.
Defense Pattern
Inspect custom regexes before running them, reject dangerous patterns automatically, and fall back safely to built-in rules.
Ecosystem Position
Phosphor and OpenClaw statically check custom regexes before compiling them, and Go/Rust agents like Crush, Codex, and Goose benefit from linear-time regex engines; most JavaScript/Python agents have no ReDoS guard.
#11 Corrupting real secrets during file edits
Threat Vector
If an agent writes a `<REDACTED>` placeholder back into a config file, it can overwrite your real credential—yet sometimes the agent needs to reference a secret without seeing it.
Defense Pattern
Use clearly invalid placeholders by default, and offer opt-in reversible tokens so authorized tools can restore the real value without exposing it to the model.
Ecosystem Position
Phosphor, oh-my-pi, OpenClaw, and Codex each support forms of reversible placeholders or proxy-resolved handles; Hermes Agent and Aider use one-way redaction only.
#12 A hijacked agent sending secrets over the internet
Threat Vector
If an agent is tricked into stealing a secret it has access to, it may try to send it to an attacker's server.
Defense Pattern
Replace secrets with sealed handles that only a local, allowlist-only proxy can unwrap—enforcing HTTPS and blocking private/internal IP tricks.
Ecosystem Position
Codex leads here with OS-level network sandboxing and a credential broker; Phosphor, Kilo Code, and OpenClaw offer loopback egress proxies, while most other agents allow unrestricted outbound network access.
#13 Malicious or untrusted repositories
Threat Vector
A hostile repo you just cloned can use committed config files, `.mcp.json`, scheduled tasks, or crafted URLs to weaken security, run hidden tools, or leak secrets in URL parameters.
Defense Pattern
Prevent repo configs from lowering your personal security settings, ask for explicit folder trust before running repo tools or MCP servers, and scan outbound URLs for leaked secrets.
Ecosystem Position
Phosphor, Codex, and Qwen Code gate repo tooling behind folder trust and protect user security settings; most other evaluated agents still load repo configs or MCP servers without explicit consent.
Frontier Problems
Frontier Threat Landscape
Split or encoded secrets across multiple steps
Scanners that inspect one line or one tool call at a time can miss secrets broken into pieces across multiple outputs or encoded in base64.
Open across all evaluated agents — solving this requires tracking fragments across tool calls without causing slowdowns or false alarms.
Flooding the agent's secret memory
If an agent only remembers a fixed number of recently seen secrets, an attacker could flood it with fake random strings to push real secrets out of memory.
Open across all evaluated agents — needs protected priority slots for high-value secrets and rate limits on what gets added.
Prompt injection hidden in AGENTS.md / CLAUDE.md
Repo instruction files are loaded with high priority into the agent's prompt, making pull requests that modify them a prime way to smuggle hidden instructions.
Mitigated in Phosphor (instruction files are sanitized on load, backed by folder trust and config locks). Still unsanitized or only lightly wrapped in other evaluated agents.
Secrets hidden inside images or non-text tool output
Base64-encoded images, audio, or `data:` URLs returned by tools can slip past text-only secret scanners.
Open across all evaluated agents — needs safe, size-limited decoding and scanning of binary/base64 payloads.
Secrets saved in local chat history via tool arguments
Even when tool outputs are scrubbed, the commands or edits the agent itself writes can still save raw secrets into your local session database.
Mitigated in Phosphor (scrubs known secrets from both tool inputs and outputs before saving to SQLite). Only partially addressed in Codex.
Terminal escape-code attacks in build logs
Malicious build logs or CLI output can include hidden terminal control codes (like OSC-52) that silently overwrite your clipboard.
Mitigated in Phosphor (strips dangerous terminal control codes while keeping normal colors). Codex only partially strips them in the TUI.