LLM Powered Automated Hacking Playbooks.
An autonomous daemon that scans, enumerates, and escalates while you steer.
You set the scope; PK handles the methodology, evidence, and reporting.
You can work from the web interface, directly in your favorite harness, or the CLI if you're that kind of kiddo. Script your own playbooks with the provided SDK.
Key features:
- Event-driven playbooks. Write playbooks that react to events, trigger an automated portscan on engagement start, and act on the findings programmatically or delegate to an agent.
- Judgment stays with the LLM, mechanics don't. Port scanning, fingerprinting, and directory brute-forcing are scripted actions. The LLM only gets called for decisions that need reasoning: exploit selection, source code analysis, privesc path planning.
- Everything in a database. Targets, ports, services, findings, evidence, credentials, flags, activity log. Nothing lives only in chat history. Reports generate from DB state, not from some LLM memory.
- Multi-harness. Works with any harness; Claude Code, Codex, OpenCode, Pi.dev, or the built-in web chat via Vercel AI SDK.
npx @promptkiddie/initHost mode runs your AI agent locally (Claude Code, Codex, etc.) with PK services in Docker. Hosted mode runs everything in Docker with a web UI and SSH access.
Open your agent or the web chat and tell it:
Add 127.0.0.1:3000 as a CTF engagement named "OWASP Juice Shop" then start it
View progress at localhost:3100.
graph LR
Human <--> WebUI["Web UI<br>(Next.js)"]
Human <--> Orchestrator["Orchestrator<br>(AI harness)"]
WebUI <--> DB[(Postgres)]
WebUI <-->|WebSocket| Supervisor
Orchestrator <-->|pk CLI / MCP| DB
Orchestrator -->|docker| Agents["Agent containers"]
Supervisor <-->|LISTEN/NOTIFY| DB
Supervisor -->|playbook actions| Agents
Agents <-->|pk CLI| DB
Agents --> Target["Target"]
Agents <--> Gleipnir["Gleipnir<br>(reverse shells)"]
Gleipnir <--> Target
| Type | Use case |
|---|---|
ctf |
Hack The Box, TryHackMe, Proving Grounds. Flag tracking + auto-phase. |
blackbox |
Authorized pentest, no prior knowledge. Phase-gated methodology. |
whitebox |
Source access, architecture docs. Deeper analysis actions. |
bugbounty |
Scoped bug bounty. Respects rate limits and exclusions. |
PK ships exploits and techniques as structured knowledge in OKF format. The daemon auto-matches discovered versions against the exploit index and fires when it finds a hit. Sources include HackTricks and GTFOBins.
- Getting started: host mode - AI agent runs locally, infra in Docker
- Getting started: hosted mode - everything in Docker, web UI + SSH
- Methodology - phased process and rules of engagement
- Architecture - how the pieces fit together
- AGENTS.md - repo structure, package scopes, build and contribution guide
For authorized testing, CTFs, and education only. Every engagement requires a Rules-of-Engagement record with scope, allowed actions, and time windows. The supervisor refuses to act outside defined scope.
LLMs with access to live machines and networks can be quite dangerous. Use at your own risk.