ghost-proxy skill
Capture, inspect, search, and replay HTTP/HTTPS traffic using a CLI-based man-in-the-middle proxy for security testing.
- GitHub stars
- 441
- Files
- 1
- Last commit
- Sep 28, 2026
- License
- apache-2.0
- Allowed tools
- —
What does the ghost-proxy skill do?
ghost-proxy is an agent skill. Capture, inspect, search, and replay HTTP/HTTPS traffic using a CLI-based man-in-the-middle proxy for security testing.
Summary generated from the skill's SKILL.md.
About the ghost-proxy skill
Security researchers and developers can intercept and analyze web traffic by using this tool to manage the reaper MITM proxy. It functions as a command-line interface for capturing HTTP and HTTPS communication between clients and servers, making it ideal for application security testing. An agent should load this skill when tasked with starting a proxy, intercepting requests, or inspecting captured traffic to validate security findings.
The skill provides specific commands to control the proxy daemon, such as starting it with domain or host scoping to ensure only relevant traffic is logged. Users can search through captured entries using filters like HTTP method, path, status code, or host. Once traffic is captured, the tool allows for the inspection of full raw HTTP entries, including headers and bodies, through commands like reaper get, reaper req, or reaper res. All captured data is stored in a local SQLite database for later analysis.
What an agent can do with it
- 1Intercept specific domain trafficStart a proxy that only captures requests for a particular domain and its subdomains.
- 2Search for specific HTTP requestsFind all POST requests sent to a specific API path within the captured logs.
- 3Monitor recent network activityView a list of the most recent captured request and response entries.
Written from the skill's SKILL.md. Every use case is checked against a quote from it.
How to install the ghost-proxy skill
Each command copies the skill folder into the client's skills directory. Restart the client or start a new session to load it.Install the ghost-proxy skill in Plugin
/plugin marketplace add ghostsecurity/skills /plugin install ghost@ghost-security
Install the ghost-proxy skill in Claude Code
~/.claude/skills/ghost-proxy/SKILL.md
$ npx degit ghostsecurity/skills/plugins/ghost/skills/proxy ~/.claude/skills/ghost-proxyInstall the ghost-proxy skill in Claude Code (project)
.claude/skills/ghost-proxy/SKILL.md
$ npx degit ghostsecurity/skills/plugins/ghost/skills/proxy .claude/skills/ghost-proxyInstall the ghost-proxy skill in Codex
~/.agents/skills/ghost-proxy/SKILL.md
$ npx degit ghostsecurity/skills/plugins/ghost/skills/proxy ~/.agents/skills/ghost-proxyInstall the ghost-proxy skill in Gemini CLI
~/.gemini/skills/ghost-proxy/SKILL.md
$ npx degit ghostsecurity/skills/plugins/ghost/skills/proxy ~/.gemini/skills/ghost-proxyInstall the ghost-proxy skill in Claude.ai
npx degit ghostsecurity/skills/plugins/ghost/skills/proxy ghost-proxy && zip -r ghost-proxy.zip ghost-proxy # claude.ai → Customize → Skills → + → Create skill → Upload a skill → ghost-proxy.zip
SKILL.md
View on GitHubReaper MITM Proxy
Reaper is a CLI-based MITM HTTPS proxy for application security testing. It intercepts, logs, and allows inspection of HTTP/HTTPS traffic flowing through it. Use it to capture live request/response pairs for security validation.
Prerequisites
Before using any reaper command, make sure the latest version of the binary is installed:
curl -sfL https://raw.githubusercontent.com/ghostsecurity/reaper/main/scripts/install.sh | bash
All reaper commands in this document should be invoked as ~/.ghost/bin/reaper unless ~/.ghost/bin is on PATH.
Quick Reference
| Command | Purpose |
|---|---|
reaper start --domains example.com |
Start proxy (foreground) |
reaper start --domains example.com -d |
Start proxy (daemon) |
reaper logs |
Show recent captured entries |
reaper search --method POST --path /api/* |
Search captured traffic |
reaper get <id> |
Show full request + response |
reaper req <id> |
Show raw HTTP request only |
reaper res <id> |
Show raw HTTP response only |
reaper stop |
Stop the daemon |
Starting the Proxy
Start reaper scoped to the target domain(s). At least one --domains or --hosts flag is required.
# Intercept all traffic to example.com and its subdomains
reaper start --domains example.com
# Multiple domains
reaper start --domains example.com,api.internal.co
# Exact hostname matching
reaper start --hosts api.example.com
# Both domain suffix and exact host matching
reaper start --domains example.com --hosts special.internal.co
# Custom port (default: 8443)
reaper start --domains example.com --port 9090
# Run as background daemon
reaper start --domains example.com -d
Scope behavior:
--domains: Suffix match.example.commatchesexample.com,api.example.com,sub.api.example.com--hosts: Exact match.api.example.commatches onlyapi.example.com- Traffic outside scope passes through transparently without logging
Routing Traffic Through the Proxy
Configure the HTTP client to use the proxy. The default listen address is localhost:8443.
# curl
curl -x http://localhost:8443 -k https://api.example.com/endpoint
# Environment variables (works with many tools)
export http_proxy=http://localhost:8443
export https_proxy=http://localhost:8443
# Python requests
import requests
requests.get("https://api.example.com/endpoint",
proxies={"http": "http://localhost:8443", "https": "http://localhost:8443"},
verify=False)
The -k / verify=False flag is needed because reaper generates its own CA certificate at startup for MITM TLS interception.
Viewing Captured Traffic
Recent Entries
# Show last 50 entries (default)
reaper logs
# Show last 200 entries
reaper logs -n 200
Output columns: ID, METHOD, HOST, PATH, STATUS, MS, REQ (request body size), RES (response body size).
Searching
# By HTTP method
reaper search --method POST
# By host (supports * wildcard)
reaper search --host *.api.example.com
# By domain suffix
reaper search --domains example.com
# By path prefix (supports * wildcard)
reaper search --path /api/v3/transfer
# By status code
reaper search --status 200
# Combined filters
reaper search --method POST --path /api/v3/* --status 200 -n 50
Inspecting Individual Entries
# Full request and response (raw HTTP)
reaper get 42
# Request only
reaper req 42
# Response only
reaper res 42
Output is raw HTTP/1.1 format including headers and body, suitable for analysis or replay.
Stopping the Proxy
reaper stop
Common Workflows
Validate a Security Finding
When used with the validate skill (may need to collaborate with the user to setup the test environment):
- Start reaper scoped to the application domain
- Verify traffic is being captured by running
reaper logs— at least one entry should appear after routing a test request through the proxy - If no entries appear, verify proxy settings and domain scope match the target
- Authenticate (or ask the user to authenticate) as a normal user and exercise the vulnerable endpoint legitimately
- Search for the captured request to understand the expected request format
- Craft and send a malicious request that exercises the exploit described in the finding
- Inspect the response to determine if the exploit succeeded
- Use
reaper get <id>to capture the full request/response as evidence
Data Storage
All data is stored in ~/.ghost/reaper/:
reaper.db- SQLite database with captured entriesreaper.sock- Unix socket for CLI-to-daemon IPCreaper.pid- Daemon process ID
The CA certificate is generated fresh in memory on each start and is not persisted.
Files in this skill
1ghost-proxy skill questions
How do I install the ghost-proxy skill in Claude Code?
Run npx degit ghostsecurity/skills/plugins/ghost/skills/proxy ~/.claude/skills/ghost-proxy. Claude Code loads skills from ~/.claude/skills (all projects) or .claude/skills (one project) and uses a skill when its description matches the task.
Which clients can use the ghost-proxy skill?
Any client that reads the Agent Skills format: Claude Code, Codex, Gemini CLI and claude.ai (upload as a ZIP). Scripts in the skill run only where the client allows code execution.
How do I start the proxy for a specific domain?
You can start the proxy scoped to a domain using the command reaper start --domains example.com.
How can I search for specific captured traffic?
You can search traffic using various filters such as method, host, domain suffix, path, or status code via the reaper search command.
Where is the captured traffic data stored?
All data is stored in the ~/.ghost/reaper/ directory, specifically in a SQLite database named reaper.db.
Do I need to change my client settings to use the proxy?
Yes, you must configure your HTTP client to use the proxy address, which defaults to localhost:8443, and you may need to disable SSL verification because the proxy uses its own CA certificate.