pi-casefile
Offensive security case tracker for pi and Codex — bug bounties, CTFs, security audits
Package details
Install pi-casefile from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-casefile- Package
pi-casefile- Version
1.3.7- Published
- Jun 18, 2026
- Downloads
- 575/mo · 351/wk
- Author
- xaccefy
- License
- unknown
- Types
- extension
- Size
- 89.5 KB
- Dependencies
- 3 dependencies · 3 peers
Pi manifest JSON
{
"extensions": [
"./index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
Casefile — Offensive Security Case Tracker
Track durable security cases during bug bounties, CTFs, and security audits.
Surface Support
- pi extension — registers tools and
/casefiledashboard. - Codex plugin — MCP server and Skill for autonomous work.
Tools (pi / MCP)
| pi | MCP | Description |
|---|---|---|
| CaseAdd | casefile_add |
Open a new hypothesis or investigation |
| CaseUpdate | casefile_update |
Update fields (status, evidence, impact, etc.) |
| PromoteFinding | casefile_promote |
PoC Runner: Verify PoC in Docker to confirm |
| CaseGet | casefile_get |
Get full details of a single case |
| CaseList / Search | casefile_list / _search |
Browse or search across fields |
| CaseLink / Unlink | casefile_link / _unlink |
Connect primitives into exploit chains |
| CaseReport | casefile_report |
Generate markdown report (confirmed/reported only) |
PoC Runner (Docker / Local)
To promote a case from investigating to confirmed, you must use PromoteFinding with an on-disk PoC path.
- Sandbox (Docker): Default. Runs in a
--network nonecontainer with read-only mounts. Usespython:3.12-slim(.py) oralpine(.sh). - Local: Use
local: true. Runs directly on the host (e.g. for network-dependent bugs). - Verification: Only promotes to
confirmedif the PoC returns exit code 0. - Timeout: 30 second limit.
Offensive Security Workflow
- Hypothesize:
CaseAdd(status: hypothesis) - Investigate:
CaseUpdate(status: investigating, evidence, confidence) - Confirm:
PromoteFinding(id, poc_path, local?)-> Exit 0 verifies and confirms. - Chain:
CaseLinkprimitives to escalations. - Report:
CaseReport->CaseUpdate(status: reported). - Kill:
CaseUpdate(status: killed)for dead ends.
State Gates
hypothesis→investigatingrequiresevidence+confidence.investigating→confirmedrequires a verified PoC run (exit 0) andpoc,evidence,impact,severity.confirmed→reportedrequiresCaseReportto have been generated.killedandreportedare terminal.
Storage & Environment
Stored as JSONL at .casefile/casefile.jsonl (project) or ~/.casefile/casefile.jsonl (global).
CASEFILE_PATH: Force exact ledger path.CASEFILE_SCOPE=project|global: Set storage scope.
Install: pi install npm:pi-casefile or codex plugin marketplace add x4cc3/casefile