Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
yolo-cage — AI coding agents that can't exfiltrate secrets or merge their own PRs. | Kitploit
Tools/GitHubGitHub/borenstein/yolo-cage
Container SecurityIDS/IPS EvasionData ExfiltrationNetwork SecurityCloud SecurityDevSecOpsSecret DetectionSupply Chain SecurityMisconfigurationAI SecurityArchived
GitHub
10946 months agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
borenstein/yolo-cage

yolo-cage

AI coding agents that can't exfiltrate secrets or merge their own PRs.

View Repository

yolo-cage: autonomous coding agents that do no harm

You're a responsible engineer. You'd never just let an AI run roughshod through your most sensitive systems and codebases.

That's why you'd never just shut off the safeguards for a tool like Claude Code. It asks permission for every dangerous action! Safe!

So you wait. And you answer. Decision fatigue sets in. And that's when it happens.

Agent deletes entire repo

Permission prompts neglect the weakest part of the thread model: a tired user. What if we could empower the agent while limiting its blast radius, thus deferring your decisions until PR review?

That would be great! And that would be yolo-cage.

Escape attempts blocked

Try it

root@kitploit:~
curl -fsSL https://github.com/borenstein/yolo-cage/releases/latest/download/yolo-cage -o yolo-cage
chmod +x yolo-cage && sudo mv yolo-cage /usr/local/bin/
yolo-cage build --interactive --up

Then create a sandbox and start coding:

root@kitploit:~
yolo-cage create feature-branch
yolo-cage attach feature-branch   # Attach to agent in tmux

Prerequisites: Vagrant with libvirt (Linux) or QEMU (macOS, experimental), 8GB RAM, 4 CPUs, GitHub PAT (repo scope), Claude account. See setup docs for details.


What gets blocked

Secrets in HTTP/HTTPS - egress proxy scans request bodies, headers, URLs:

  • sk-ant-*, AKIA*, ghp_*, SSH private keys, generic credential patterns

Git operations - dispatcher enforces branch isolation:

  • Push to any branch except the assigned branch
  • git remote, git clone, git config, git credential

GitHub CLI - dispatcher blocks dangerous commands:

  • gh pr merge, gh repo delete, gh api

GitHub API - proxy blocks at HTTP layer:

  • PUT /repos/*/pulls/*/merge, DELETE /repos/*, webhook modifications

Exfiltration sites: pastebin.com, file.io, transfer.sh, etc.

See Architecture for the full threat model.


How it works

root@kitploit:~
┌──────────────────────────────────────────────────────────────────────────┐
│ Runtime (Vagrant VM + MicroK8s)                                          │
│                                                                          │
│  ┌────────────────────────────────────────────────────────────────────┐  │
│  │ Sandbox                                                            │  │
│  │                                                                    │  │
│  │  Agent (Claude Code in YOLO mode)                                  │  │
│  │       │                                                            │  │
│  │       ├── git/gh ──▶ Dispatcher ──▶ GitHub                         │  │
│  │       │              • Branch isolation enforcement                │  │
│  │       │              • TruffleHog pre-push scanning                │  │
│  │       │                                                            │  │
│  │       └── HTTP/S ──▶ Egress Proxy ──▶ Internet                     │  │
│  │                      • Secret scanning (LLM-Guard)                 │  │
│  │                      • Domain blocklist                            │  │
│  └────────────────────────────────────────────────────────────────────┘  │
│                                                                          │
└──────────────────────────────────────────────────────────────────────────┘

One sandbox per branch. Agents can only push to their assigned branch. All outbound traffic is filtered.


CLI

Port forwarding

Access web apps running inside a sandbox:

root@kitploit:~
yolo-cage port-forward feature-x 8080           # localhost:8080 → sandbox:8080
yolo-cage port-forward feature-x 9000:3000      # localhost:9000 → sandbox:3000
yolo-cage port-forward feature-x 8080 --bind 0.0.0.0  # LAN accessible

See Configuration for proxy bypass, hooks, and resource limits.


Documentation

  • Glossary - Ubiquitous language and terminology
  • Architecture - Threat model, design rationale
  • Configuration - Egress policy, proxy bypass, hooks
  • Customization - Adding tools, resource limits
  • Security Audit - Escape testing guide

Limitations

This reduces risk. It does not eliminate it.

  • DNS exfiltration - data encoded in DNS queries
  • Timing side channels - information leaked via response timing
  • Steganography - secrets hidden in images or binary data
  • Sophisticated encoding - bypassing pattern matching

Use scoped credentials. Don't use production secrets where exfiltration would be catastrophic. See Security Audit to test it yourself.


License

MIT. See LICENSE.

Download Tool
CommandDescription
create <branch>Create sandbox
attach <branch>Attach (Claude in tmux)
shell <branch>Attach (bash)
listList sandboxes
delete <branch>Delete sandbox
port-forward <branch> <port>Forward port from sandbox
up / downStart/stop VM
upgrade [--rebuild]Upgrade to latest version
versionShow version