Yeswehack

From mvanhorn/printing-press-library · View interactive version

Yeswehack is an AI agent skill from the GitHub repository mvanhorn/printing-press-library. Every YesWeHack researcher feature, plus an offline SQLite-backed cockpit for scope cartography, drift detection,... Trigger phrases: `hunt on yeswehack`, `qualify a yeswehack program`, `triage my yeswehack programs`, `draft a yeswehack report`, `is this yeswehack bug a duplicate`, `what changed in

How to use this skill

Skill file

YesWeHack — Printing Press CLI

Prerequisites: Install the CLI

This skill drives the yeswehack-pp-cli binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:

  1. Install via the Printing Press installer:

```bash

npx -y @mvanhorn/printing-press-library install yeswehack --cli-only

```

  1. Verify: yeswehack-pp-cli --version
  2. Ensure $GOPATH/bin (or $HOME/go/bin) is on $PATH.

If the npx install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.6 or newer):

go install github.com/mvanhorn/printing-press-library/library/developer-tools/yeswehack/cmd/yeswehack-pp-cli@latest

If --version reports "command not found" after install, the install step did not put the binary on $PATH. Do not proceed with skill commands until verification succeeds.

yeswehack-pp-cli is the researcher-side cockpit for the YesWeHack bug bounty platform. It syncs every program you can see, every scope, every hacktivity disclosure into a local SQLite store so an agent can answer 'what should I work on', 'has this been reported', and 'what is in scope here' in milliseconds, offline. Submit and draft commands are guard-railed by design - the goal is better reports, not more reports.

When to Use This CLI

Reach for this CLI when a security researcher (or their agent) is qualifying YesWeHack programs, drafting a report, or trying to calibrate severity from prior disclosures. Particularly strong for agent-driven triage workflows where the agent needs structured local state to answer 'has this been reported', 'what is in scope', and 'which program pays the most for this asset'. Skip it for program-manager workflows (use ywh2bugtracker) and for one-off curl calls to the public API.

When Not to Use This CLI

Do not activate this CLI for requests that require creating, updating, deleting, publishing, commenting, upvoting, inviting, ordering, sending messages, booking, purchasing, or changing remote state. This printed CLI exposes read-only commands for inspection, export, sync, and analysis.

Unique Capabilities

These capabilities aren't available in any other tool for this API.

Local state that compounds

_Use this before local triage or backfill. It establishes the visible program set that later scope, hacktivity, and membership commands enrich._

```bash

yeswehack-pp-cli programs list --all --results-per-page 100 --json

```

_When an agent triages where to spend the hunter's week, drift is the highest-signal source of fresh attack surface. Pick this over a generic program list when the user has already chosen programs and wants to know what changed._

```bash

yeswehack-pp-cli programs scope-drift --since-days 7 --json

```

_Use this when the user asks for a project plan from the policy/scope data. The cache records program_slug so later local lookup and overlap analysis can stay program-aware._

```bash

yeswehack-pp-cli programs list-scopes swiss-post-evoting --json

```

_When the agent finds a candidate finding on an asset, this answers 'which program pays the most for this asset' before drafting the report._

```bash

yeswehack-pp-cli scopes overlap --min-programs 2 --json

```

_Picks the right starting move when the hunter (or their agent) has limited time and needs a confidence-weighted plan, not a feed._

```bash

yeswehack-pp-cli triage weekend --hours 6 --json

```

_Answers 'which program am I most likely to land on this week' before time is spent on scope reading or report drafting._

```bash

yeswehack-pp-cli programs fit --specialty xss,ssrf,idor --json

```

_Surfaces time-bound opportunities (renewal bumps, CTF gates) the hunter would otherwise miss until after the fact._

```bash

yeswehack-pp-cli events calendar --mine --json

```

Anti-spam guard-rails

_Aligns with the YesWeHack Platform Code of Conduct's anti-spam rule. Before an agent drafts a report, this answers 'has someone already filed this' deterministically._

```bash

yeswehack-pp-cli report dedupe --title 'SQLi in /api/users/{id}' --asset api.example.com --cwe CWE-89 --json

```

_Catches CVSS misrepresentations before the report is filed - the kind of mistake that loses credibility with triagers._

```bash

yeswehack-pp-cli report cvss-check 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H' --steps draft.md --json

```

_Gives an agent a deterministic shape for a report instead of letting it fabricate the structure. Quality multiplier per the Platform CoC._

```bash

yeswehack-pp-cli report draft yes-we-hack --output ./my-draft.md

```

_Lets an agent close the loop on submission without violating the platform's anti-AI-slop policy. No batch flag, no template-flood._

```bash

yeswehack-pp-cli report submit ./my-draft.md --confirm

```

Agent-native plumbing

_Use this instead of assuming hacktivity list --programs <slug> filters the global feed. It is the reliable project activity source when a program exposes hacktivity._

```bash

yeswehack-pp-cli programs hacktivity digital-flanders-vulnerability-disclosure-program --json

```

_Calibrates severity expectations and report-style for a target program before the agent starts hunting it._

```bash

yeswehack-pp-cli hacktivity trends gojek --since-days 90 --json

```

_Lets the agent calibrate from prior art before the hunter writes a single line - turning hacktivity into a learning surface, not just a feed._

```bash

yeswehack-pp-cli hacktivity learn --program gojek --cwe CWE-89 --since-days 90 --json | claude 'summarize what worked'

```

HTTP Transport

This CLI uses Chrome-compatible HTTP transport for browser-facing endpoints. It does not require a resident browser process for normal API calls.

Command Reference

business_units — Customer organizations that run programs

events — Platform events (CTFs, dojos, live sessions)

hacktivity — Public disclosed reports feed (the platform's learning surface)

hunters — Researcher profiles (other hunters on the platform)

programs — Bug bounty programs (public and private the user is invited to)

ranking — Global researcher leaderboard

taxonomies — Reference data used by the platform (vulnerability parts, countries, profile URL types)

user — Authenticated user account, reports, invitations, email aliases

Finding the right command

When you know what you want to do but not which command does it, ask the CLI directly:

yeswehack-pp-cli which "<capability in your own words>"

which resolves a natural-language capability query to the best matching command from this CLI's curated feature index. Exit code 0 means at least one match; exit code 2 means no confident match — fall back to --help or use a narrower query.

Recipes

Triage a hunting session

yeswehack-pp-cli triage weekend --hours 6 --json --select programs,reports,cwes

Single ranked plan for a time-boxed session. --select narrows the JSON to the three high-gravity fields so agents don't burn context on full payloads.

Detect new scope before competitors do

yeswehack-pp-cli programs scope-drift --since-days 7 --json

Compares this week's scope snapshot to last week's. Catches the asset that quietly got added between Sunday syncs.

Pre-submit dedupe before drafting

yeswehack-pp-cli report dedupe --title 'SQLi /api/users/{id}' --asset api.example.com --cwe CWE-89 --json

Run before you spend an hour drafting. Exit 2 = high-confidence collision; the agent should stop and look at the matching disclosure.

Calibrate severity from disclosed reports

yeswehack-pp-cli hacktivity learn --program gojek --cwe CWE-89 --since-days 90 --json | claude 'summarize the highest-bounty tactics'

Pipes a deterministic data slice into an LLM for synthesis - the CLI stays auditable; the model only sees the curated slice.

Pick the right program for an asset finding

yeswehack-pp-cli scopes find 'api-v3.*example\\.com' --json --select asset,program_slug,bounty_reward_max

Regex lookup across every synced scope. Picks the program with the highest payout when the asset is in multiple scopes.

Build a local YesWeHack workbench

yeswehack-pp-cli sync --resources programs,user,user-members,hunter-access-programs,events,ranking,hacktivity --full --json
yeswehack-pp-cli programs list --all --results-per-page 100 --json --select slug | jq -r '.results[].slug' |
  while read -r slug; do
    yeswehack-pp-cli programs get "$slug" --json >/dev/null
    yeswehack-pp-cli programs list-scopes "$slug" --json >/dev/null
  done

This fills the local SQLite store with visible programs, detailed policies, per-program scope rows, membership/access records, and public hacktivity. Use local reads for fast planning after the backfill.

Auth Setup

Authentication is JWT-based and tied to your logged-in browser session. Run yeswehack-pp-cli auth login --chrome and the CLI reads the access_token from your Chrome profile's localStorage - no copy-paste from DevTools. The JWT refreshes automatically against the OAuth2 token endpoint when it expires. YesWeHack's Personal Access Tokens are gated to manager-tier accounts; the CLI does not support them for the researcher surface.

Run yeswehack-pp-cli doctor to verify setup.

Agent Mode

Add --agent to any command. Expands to: --json --compact --no-input --no-color --yes.

```bash

yeswehack-pp-cli business_units --agent --select id,name,status

```

Response envelope

Commands that read from the local store or the API wrap output in a provenance envelope:

{
  "meta": {"source": "live" | "local", "synced_at": "...", "reason": "..."},
  "results": <data>
}

Parse .results for data and .meta.source to know whether it's live or local. A human-readable N results (live) summary is printed to stderr only when stdout is a terminal — piped/agent consumers get pure JSON on stdout.

Agent Feedback

When you (or the agent) notice something off about this CLI, record it:

yeswehack-pp-cli feedback "the --since flag is inclusive but docs say exclusive"
yeswehack-pp-cli feedback --stdin < notes.txt
yeswehack-pp-cli feedback list --json --limit 10

Entries are stored locally at ~/.yeswehack-pp-cli/feedback.jsonl. They are never POSTed unless YESWEHACK_FEEDBACK_ENDPOINT is set AND either --send is passed or YESWEHACK_FEEDBACK_AUTO_SEND=true. Default behavior is local-only.

Write what surprised you, not a bug report. Short, specific, one line: that is the part that compounds.

Output Delivery

Every command accepts --deliver <sink>. The output goes to the named sink in addition to (or instead of) stdout, so agents can route command results without hand-piping. Three sinks are supported:

| Sink | Effect |

|------|--------|

| stdout | Default; write to stdout only |

| file:<path> | Atomically write output to <path> (tmp + rename) |

| webhook:<url> | POST the output body to the URL (application/json or application/x-ndjson when --compact) |

Unknown schemes are refused with a structured error naming the supported set. Webhook failures return non-zero and log the URL + HTTP status on stderr.

Named Profiles

A profile is a saved set of flag values, reused across invocations. Use it when a scheduled agent calls the same command every run with the same configuration - HeyGen's "Beacon" pattern.

yeswehack-pp-cli profile save briefing --json
yeswehack-pp-cli --profile briefing business_units
yeswehack-pp-cli profile list --json
yeswehack-pp-cli profile show briefing
yeswehack-pp-cli profile delete briefing --yes

Explicit flags always win over profile values; profile values win over defaults. agent-context lists all available profiles under available_profiles so introspecting agents discover them at runtime.

Exit Codes

| Code | Meaning |

|------|---------|

| 0 | Success |

| 2 | Usage error (wrong arguments) |

| 3 | Resource not found |

| 4 | Authentication required |

| 5 | API error (upstream issue) |

| 7 | Rate limited (wait and retry) |

| 10 | Config error |

Argument Parsing

Parse $ARGUMENTS:

  1. Empty, help, or --help → show yeswehack-pp-cli --help output
  2. Starts with install → ends with mcp → MCP installation; otherwise → see Prerequisites above
  3. Anything else → Direct Use (execute as CLI command with --agent)

MCP Server Installation

Install the MCP binary from this CLI's published public-library entry or pre-built release, then register it:

claude mcp add yeswehack-pp-mcp -- yeswehack-pp-mcp

Verify: claude mcp list

Direct Use

  1. Check if installed: which yeswehack-pp-cli

If not found, offer to install (see Prerequisites at the top of this skill).

  1. Match the user query to the best command from the Unique Capabilities and Command Reference above.
  2. Execute with the --agent flag:

```bash

yeswehack-pp-cli <command> [subcommand] [args] --agent

```

  1. If ambiguous, drill into subcommand help: yeswehack-pp-cli <command> --help.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.