Sandbox
@VAIBHAVSING/openghost

Agent skill for web app pentesting in Docker

OpenGhost packages an authorized pentesting workflow for AI agents. The skill tells the agent how to scope the target, run checks through Docker, capture evidence, record findings, and generate a report. It keeps engagement data under `.openghost/` and expects you to verify authorization before testing.

37 stars2 forksPythonUpdated 1mo ago
Who it's for

Builders who want Claude Code, Codex, Cursor, or similar agents to follow a repeatable authorized pentest workflow.

What it delivers

You can run scoped security assessments with evidence, findings, and reports instead of ad hoc agent probing.

What it does

Scoped engagement setup

Creates an engagement workspace and scope file with allowed targets, exclusions, rate limits, and test windows.

Docker sandbox execution

Runs security tools through the OpenGhost sandbox instead of directly on your host machine.

Evidence and finding tracking

Stores requests, responses, screenshots, tool output, and confirmed findings with severity, confidence, and remediation notes.

Reusable assessment modules

Loads focused modules for surface mapping, auth, access control, injection, APIs, browser policy, edge behavior, and business logic.

Report generation

Validates evidence and coverage, then generates a final report from confirmed findings.

Script templates

Provides ready-made scripts such as `web-baseline`, `api-inventory`, and `cors-check`.

How to get it

  1. 1Install the skill with the skills CLI
    npx skills@latest add https://github.com/VAIBHAVSING/openghost --skill openghost-skill
  2. 2Then ask your agent to use OpenGhost for an authorized assessment
    Use $openghost-skill to assess https://target.example.
    Authorization and scope details are in the engagement notes.
  3. 3Make sure Docker is running and Bash 4.3+ plus Python 3 are available. Security tools…
    git clone https://github.com/VAIBHAVSING/openghost.git
    cd openghost
    export PATH="$PWD/skills:$PWD/skills/openghost-skill:$PATH"
    openghost help
  4. 4Prefer the skills CLI install command above. If you install manually, copy the skill…
    git clone https://github.com/VAIBHAVSING/openghost.git /tmp/openghost
    mkdir -p ~/.agents/skills
    cp -R /tmp/openghost/skills/openghost-skill ~/.agents/skills/

README

OpenGhost

skills.sh License Agent Skill

Agent Skill for authorized web application and supporting server integrity penetration testing.

OpenGhost helps an AI coding agent run a scoped security assessment. The agent plans the work, tests carefully, validates evidence, and writes findings. OpenGhost provides the Docker sandbox, scope files, evidence folders, reusable checks, and report templates.

OpenGhost is fully local and open source. It has no hosted service, account, API key, telemetry requirement, or managed control plane.

[!IMPORTANT] Use OpenGhost only on systems you are explicitly authorized to test.

Write the allowed targets, exclusions, accounts, rate limits, test windows, emergency contacts, and rules of engagement into the generated scope file before active testing.

How to Use

Install the skill with the skills CLI:

npx skills@latest add https://github.com/VAIBHAVSING/openghost --skill openghost-skill

Then ask your agent to use OpenGhost for an authorized assessment:

Use $openghost-skill to assess https://target.example.
Authorization and scope details are in the engagement notes.

Make sure Docker is running and Bash 4.3+ plus Python 3 are available. Security tools are executed through the OpenGhost sandbox, not directly on your host machine.

Use from a local checkout
git clone https://github.com/VAIBHAVSING/openghost.git
cd openghost
export PATH="$PWD/skills:$PWD/skills/openghost-skill:$PATH"
openghost help
Use with Codex or another Agent Skills client

Prefer the skills CLI install command above. If you install manually, copy the skill folder into your client skill directory:

git clone https://github.com/VAIBHAVSING/openghost.git /tmp/openghost
mkdir -p ~/.agents/skills
cp -R /tmp/openghost/skills/openghost-skill ~/.agents/skills/

Codex and other Agent Skills clients can then discover the openghost-skill package from the skill directory.

Start an Engagement

Create a scoped workspace before testing:

openghost sandbox start
openghost engagement init --url https://target.example --name target-example
export OPENGHOST_SCOPE=.openghost/engagements/target-example/scope.yaml
# Edit scope.yaml, set authorization.reviewed: true, then validate it.
openghost scope validate

Edit the generated scope file:

.openghost/engagements/target-example/scope.yaml

Add the allowed hosts, ports, paths, accounts, roles, tenants, exclusions, rate limits, test windows, destructive-test rules, emergency contacts, and notes.

OpenGhost keeps generated engagement data under .openghost/. That data is operational evidence and should normally stay out of commits.

What OpenGhost Includes

OpenGhost
|-- Agent Skill instructions
|-- Docker sandbox launcher
|-- Engagement state and scope helpers
|-- Evidence, finding, and report helpers
|-- Reusable assessment scripts
`-- Reference modules for common web and API test areas
AreaWhat it does
SKILL.mdTells the agent how to run an authorized assessment.
openghost launcherStarts the sandbox and runs allowlisted tools inside Docker.
Scope filesDefine what is allowed and what is out of bounds.
Evidence helpersSave proof such as requests, responses, screenshots, and tool output.
Finding helpersRecord confirmed issues with impact, confidence, priority, and remediation.
Report templatesBuild a final report from confirmed evidence.

Assessment Modules

OpenGhost is one skill package with several focused modules. The agent loads the deeper reference only when that topic is needed.

ModuleUse it for
surface-mapHosts, technologies, routes, endpoints, forms, and exposed files.
server-integrityTLS, headers, DNS, services, and server posture.
session-authLogin, cookies, JWT, OAuth/OIDC, SAML, API keys, and sessions.
access-controlRoles, tenants, object IDs, admin actions, BOLA, and BFLA.
injectionSQL, NoSQL, XSS, XML, command, template, and parser issues.
api-protocolsREST, OpenAPI, GraphQL, WebSocket, SOAP/XML, and gRPC.
browser-policyCORS, CSP, clickjacking, browser behavior, and ZAP with Playwright.
http-edgeCDN, cache, proxy, WAF, host routing, and HTTP parameter pollution.
business-logicPayments, approvals, invites, quotas, entitlements, races, and abuse cases.

Basic Workflow

Run safe checks through the sandbox:

openghost sandbox status
openghost script list
openghost script run web-baseline -- --target-url https://target.example
openghost script run api-inventory -- --target-url https://target.example

Record evidence:

openghost evidence add --path response.txt --kind response --title "Baseline response" --redaction redacted

Save a confirmed finding:

openghost finding add \
  --title "Example finding title" \
  --severity medium \
  --priority P3 \
  --module server-integrity \
  --url "https://target.example/" \
  --confidence 95 \
  --evidence E-001 \
  --step "Captured the baseline response." \
  --impact "Documented confirmed behavior." \
  --priority-rationale "P3 because impact is limited." \
  --remediation "Apply the recommended hardening."

Generate the report:

openghost context show
openghost coverage set --module server-integrity --status tested
openghost evidence verify
openghost report validate
openghost report generate

Common Commands

Sandbox

openghost sandbox start
openghost sandbox status
openghost sandbox stop
openghost sandbox update
openghost sandbox shell

Tool Execution

openghost run <tool> [args...]
openghost bash '<command>'
openghost python code '<script>'
openghost python file <path> -- [args...]

ZAP and Browser Workflows

openghost zap start
openghost zap baseline --target https://target.example --minutes 5
openghost zap api-scan --target https://target.example/openapi.json --format openapi --target-url https://target.example
openghost zap alerts --format md
openghost browser devtools --url https://target.example --zap

Engagement Helpers

openghost todo add --task "Complete surface mapping" --module surface-map --priority high
openghost evidence add --path <file> --kind <kind> --title <title> --redaction <raw|redacted|sanitized>
openghost artifact add --path <file> --kind <kind> --title <title>
openghost finding add --title <title> --severity <severity> --module <module> --url <url> --confidence <90-100> --evidence E-001
openghost coverage set --module <module> --status <status>
openghost evidence verify
openghost report validate
openghost report generate

Script Templates

openghost script list
openghost script show api-inventory
openghost script copy xss-check
openghost script run cors-check -- --base-url https://target.example --endpoints /api/me /

Safety Model

  • Confirm authorization, targets, exclusions, rate limits, and test windows before testing.
  • Set OPENGHOST_SCOPE and verify scope before each target, module, and tool run.
  • Run security tooling through openghost, not directly on the host.
  • Treat scanner output as leads until validated with evidence.
  • Keep generated engagement data under .openghost/ and normally out of commits.
  • Use destructive, high-volume, or state-changing checks only when the rules of engagement explicitly allow them.
  • Separate confirmed findings from notes, draft leads, and speculation.

Repository Map

.
|-- README.md
|-- ARCHITECTURE.md
|-- DEVELOPMENT.md
|-- AGENTS.md
|-- CONTRIBUTING.md
|-- SECURITY.md
|-- Dockerfile
|-- docker/
|-- openghost
`-- skills/
    |-- openghost
    `-- openghost-skill/
        |-- SKILL.md
        |-- agents/
        |-- assets/
        |-- openghost
        |-- references/
        |   `-- modules/
        `-- scripts/
            `-- pentest/

Developer Docs

  • Architecture - components, command flow, trust boundaries, and engagement state.
  • Development - local setup, validation commands, and release checklist.
  • AGENTS.md - coding-agent maintenance context.
  • Contributing - contribution rules and pull request expectations.
  • Security - vulnerability reporting policy.
  • Attribution - attribution and provenance notes.

Contribute

Keep OpenGhost direct and practical:

  • Keep README.md simple: purpose, install, basic use, safety, and repo map.
  • Keep detailed methodology in skills/openghost-skill/SKILL.md and skills/openghost-skill/references/.
  • Keep security tools inside the Docker sandbox.
  • Keep examples scoped and non-destructive.
  • Keep confirmed findings evidence-backed.

License

OpenGhost is licensed under the Apache License 2.0. See LICENSE.

Files in the repo

Repository payload17 top-level entries
  • .github
  • docker
  • runtime
  • skills
  • tests
  • .gitignore
  • AGENTS.md
  • ARCHITECTURE.md
  • ATTRIBUTION.md
  • CODE_OF_CONDUCT.md
  • CONTRIBUTING.md
  • DEVELOPMENT.md
  • Dockerfile
  • LICENSE
  • openghost
  • README.md
  • SECURITY.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More skills

obra/
superpowers

An agentic skills framework & software development methodology that works.

285k
1 add

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

117k
1 add
Vincentwei1021/
anything2explainer

Topic in, narrated explainer video out. A Claude Code / Codex skill that turns any topic into a black-canvas motion-graphics explainer video with TTS voiceover, subtitles and a chapter progress bar. Chinese or English; every frame drawn in code with Remotion.

666

Open-source AI job search: scan job portals, evaluate listings into a structured A-H report with a global 1-5 score, tailor your CV, track applications — runs locally in your AI coding CLI (Claude Code, Codex, OpenCode, Antigravity…)

71k