Skip to content
DukotahPublic

About

AI-orchestrated authorized penetration testing — the AI is the strategist, the guard is the law. Scope-guarded, auditable, MCP-drivable.

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

tyto — AI-orchestrated penetration testing for targets you're authorized to touch. The AI is the strategist. The guard is the law.

CI Release License Go MCP Authorized use only

Start here · Drive it with your agent · The range · How it works · What's in the box · Ethics


Nmap, Nessus, Burp and Nuclei are tools you point. tyto is an operator.

A model decides what to do next from the engagement's own context — who hired you, what they own, and what they told you you're allowed to touch — adapts to what it finds, and re-plans. Every action it proposes is forced through a deterministic Scope Guard the model cannot override, and every decision, action and result lands in a hash-chained audit log. So the report can only ever say what the log can prove.

Warning

tyto is for authorized testing only. It refuses to act against any target that is not explicitly in scope for a loaded, acknowledged engagement. Using it against systems you do not own or have written permission to test is illegal. See docs/ETHICS.md.


Start here

Three ways in, shortest first. All of them run entirely on your own machine.

🎯 Take the range

Put your CLI agent against a scored, vulnerable lab on your own loopback. No cloud, no keys, no spend.

make build && make range

→ docs/RANGE.md

🤖 Drive a real engagement

Wire tyto mcp into Claude Code or any MCP client and operate through the guard.

claude mcp add tyto -- \
  "$PWD/bin/tyto" mcp \
  --engagement eng.yaml

→ docs/MCP.md

🧠 Let the local planner drive

Offline, air-gapped, no frontier model involved. Ollama picks a size from your RAM.

./bin/tyto run \
  --engagement eng.yaml

→ docs/OPERATING.md

60 seconds, from clone to a report

git clone https://github.com/Dukotah/tyto && cd tyto
make build

# check your environment first: what's ready, what's optional, and the exact fix
# for each gap. Read-only — installs nothing, touches no target.
./bin/tyto doctor

# the planner proposes, the guard rules, nothing executes. No model needed.
./bin/tyto run --engagement configs/engagement.example.yaml --dry-run

# a real run against your OWN machine, scripted planner, no Ollama required
python3 -m http.server 8080 &
./bin/tyto run --engagement configs/localhost.engagement.yaml \
    --planner scripted --report-format md --report-out report.md

tyto engagement validate <file> checks a scope definition without taking a single action. tyto authorize keygen / tyto authorize sign produce the client Ed25519 authorization that high-risk and exploit-category actions require. Full install options, including release binaries, are in docs/INSTALL.md.


Put your agent in the seat

This is the part most people come for.

tyto mcp exposes the whole arsenal over the Model Context Protocol, so your CLI agent becomes the operator. It plans, chains tools and adapts natively, with a far better brain than any model you can run locally. What it does not get is a way around the rules:

claude mcp add tyto -- /path/to/tyto mcp --engagement /path/to/engagement.yaml
tyto_scope the boundary every action is checked against. Read it first.
tyto_list_tools the arsenal, with each tool's category, risk ceiling, and whether it forces approval
tyto_execute run one tool against one in-scope target, through the guard
tyto_kali an arbitrary command in a contained Kali backend, for anything the adapters don't cover
tyto_findings assets, findings and recovered credentials so far — the agent's memory
tyto_result drill into any previous result by id and path, past the per-call budget
tyto_report the report, format=md to read or format=json to score

Every one of those calls goes through the same guard, the same approval gate and the same audit log the autonomous engine uses. "Full access" never means "bypass scope." An unknown tool is denied. An out-of-scope target is denied. Anything over the engagement's risk ceiling is denied. A state-changing command waits for a human. See docs/MCP.md.


The range

The range: a segmented three-host lab with a five-stage chain

How good is your agent at a pentest? Right now nobody can answer that. The agent produces a wall of confident output and there is no ruler.

The range is the ruler: two vulnerable labs on your own loopback, a fixed answer key, and a scorer that refuses to credit a claim the run cannot prove. Bring any operator — Claude Code, another agent, your own planner, or your own hands. The scorer never learns which brain was in the seat.

make range     # starts the labs and prints how to point an agent at them
Lab Tier The question
single-host, frozen at 15/15 regression can your operator find what is definitely there?
segmented 3-host frontier how deep does it get: recon → foothold → priv-esc → lateral → loot?

A finding only scores as proven when the report cites the HTTP exchange that proves it, and a chain stage only counts when every stage it depends on was proven too. Hallucinating the flag earns exactly zero.

The standing challenge: the engine's own planner reaches foothold and stops — 1 of 5 stages, 1 of 3 hosts. The privilege escalation that opens the internal tier is planted and reachable, and nothing has walked it yet. If your agent does, and the audit log shows it, you take the top row.

→ Rules, the mission brief, and how to submit · → Leaderboard


How it works

The tyto loop: engagement feeds a planner; the scope guard returns allow, require-approval or deny; allowed actions execute; findings feed the next plan; everything is written to a hash-chained audit log

The planner is replaceable. The guard is not. It is deterministic, it fails closed, and it decides on the tool's own registered metadata rather than on anything the model claims about what it is doing. Its verdicts:

🟢 Allow in scope, allowed category, under the risk ceiling
🟡 RequireApproval a human signs off before it runs, and the guard re-checks on approval
🔴 DenyOutOfScope DenyCategoryNotAllowed DenyCategoryForbidden DenyRiskCeiling DenyTimeWindow DenyAuthorization DenyUnknownTool DenyInvalidRoE typed, logged, and handed back to the planner as feedback

An unknown tool is denied: that's the fail-closed default, and it is deliberate. Every exchange a run issues is also archived — indexed by host, tool, status and content hash, credential headers redacted at capture, exportable as HAR 1.2 — so the evidence behind a finding is the actual traffic, not the model's summary of it.

Deep dive: docs/ARCHITECTURE.md.


What's in the box

65 tool adapters — real implemented checks plus wrappers for the standard tools. Grouped by the category and risk ceiling the guard actually gates on. This table is the tool registry's own metadata, not a marketing list: an engagement that allows recon and scan up to low can run the top rows and nothing else, and no prompt changes that.

Category Max risk Tools
recon passive dnsenum emailsec exploitdb subfinder whatweb
recon low httpprobe jsmine kali netsweep spacrawl wafdetect webcrawl
scan low apidocs cookieaudit corscheck cvematch dirfuzz dotgit ffuf ftpcheck gobuster graphqlcheck hostheader httpmethods jwtcheck nmapscan redircheck secretscan sshcheck subtakeover templatescan testssl tlscheck trivyscan webcheck webdiscover wpscan
scan medium accesscontrol nikto nucleiscan oobcheck portscan ssti webinject
identity medium kerberoast ldapenum login smbenum
identity high defaultcreds hydra
exploit high cmdexec metasploit sqliexploit sqlmap

kali is the escape hatch: any command in a contained Kali backend, for anything the adapters don't cover. It sits at recon/low because read-only commands are all it runs unguarded — every state-changing command it is handed is forced to an explicit human approval first.

tyto tools prints this live from the registry.

Commands. run · mcp · serve (web console) · hunt · blue · proxy · engagement · authorize · audit · approvals · doctor · tools · methodology · feeds · index · watch · version. make help lists the build targets.

Layout.

Path What
internal/guard/ the Scope Guard — deterministic authorization. The law.
internal/engine/ the plan → act → observe → re-plan loop
internal/planner/ the AI planner, with a pluggable local-model backend
internal/mcpsrv/ the MCP server that hands the seat to an external agent
internal/tool/builtin/ the 65 adapters
internal/blue/, internal/purple/ the defensive half, and the purple loop
internal/proxy/ the scoped intercepting proxy
internal/engagement/ engagement, scope and rules-of-engagement model
internal/audit/ append-only, tamper-evident audit log
internal/evidence/ the HTTP archive: capture, index, hash, HAR export
internal/report/ findings → markdown, JSON, SARIF, HTML, client submission
proving-ground/ the range: labs, answer keys, scorer

Status

Working end to end. Scan → fingerprint → safe web checks → validated, client-ready report, with every action through the guard and into the audit log. Planning is grammar-constrained and validated, and fails closed. High-risk and exploit-category actions require a client Ed25519 authorization. Reports export as grouped Markdown, JSON, SARIF, HTML, or a client submission bundle.

Measured, not asserted — the engine's own scored run against the range:

regression tier 15/15 classes found and proven — frozen; holding it is the requirement
frontier tier 18/23 proven, across three labs (19/23 found)
exploitation depth 1/5 capability tiers, from the run's own capability ledger
surface breadth 8/8 modern surfaces covered, 7/8 proven — cloud, Kubernetes, Active Directory, OAuth/OIDC, race, IDOR, DOM XSS, source maps
precision 100% — 18 true positives, 0 false, 0 of 4 planted decoys claimed
proof-backed 3,317 HTTP exchanges archived; 65 of 65 validated findings cite one
agent-driven 15/20 proven with Claude Code in the operator's seat, 100% class stability over 2 runs — against 9/20 for tyto's own deterministic sweep on the same lab
safety 14/14 controls held when asked to do what the engagement forbids — scope, risk ceiling, forbidden category, testing window, approval gate, quarantine boundary, audit chain (edit and truncation), evidence manifest. A floor, not a ceiling: make adversarial

The frontier number is the honest one, and it is low on purpose: a maxed ruler measures nothing. docs/ROADMAP.md has what's next, and docs/ARMADA-100.md has the gap analysis against the nearest comparable platform, written to be uncomfortable rather than flattering.


Docs

ETHICS.md what tyto may and may not be pointed at. Read it.
INSTALL.md install, including release binaries
ARCHITECTURE.md the deep dive
MCP.md driving tyto with an external agent
OPERATING.md running a real engagement
RANGE.md the benchmark, the rules, how to submit
WSL-KALI.md the Kali backend on Windows
ROADMAP.md built vs. planned
CONTRIBUTING.md how to help, and what gets declined
SECURITY.md reporting a vulnerability in tyto itself

Agents working in this repo: start at AGENTS.md.


Contributing

The most useful contribution is a range submission that fails and says where it got stuck. Every stage nobody crosses is either a missing capability in the arsenal or a missing affordance in how the arsenal describes itself to an agent. Both are fixable, and we can't fix what we can't see.

One rule above all others: do not weaken the guard. No path may let a planner, local or remote, skip the scope check, exceed the risk ceiling, or run a gated action without approval. A change that touches that boundary has to say so out loud. See CONTRIBUTING.md.

License

Apache-2.0 — see LICENSE and NOTICE. The artwork in .github/assets/ is original and ships under the same license; the typefaces it is set in are OFL, credited in docs/CREDITS.md.

Tyto alba: it hunts in the dark, and it is never heard.
The AI is the strategist. The guard is the law.

About

AI-orchestrated authorized penetration testing — the AI is the strategist, the guard is the law. Scope-guarded, auditable, MCP-drivable.

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages