h1grep
grep for disclosed HackerOne reports. A zero-dependency CLI that searches HackerOne's public Hacktivity feed of disclosed, resolved vulnerability reports — by keyword, severity, CWE, program, top votes, or top bounty — and prints structured results for recon and research.
No API key. No account. Read-only. Standard-library Python only.
$ h1grep --top-voted --limit 3
========================================================================
h1grep — top voted
showing 3 of 50 matches from 50 fetched reports — raise with --limit/-n
========================================================================
[01] Takeover an account that doesn't have a Shopify ID and more
Severity : CRITICAL | CWE: n/a
Program : shopify | Reporter: imgnotfound
Bounty : no bounty | Votes: 2993
URL : https://hackerone.com/reports/867513
Why
It isn't "another recon script." The value is the reverse-engineered GraphQL
knowledge baked in. HackerOne's Hacktivity endpoint is public but undocumented,
and it moves. For a long stretch it hard-crashed on several otherwise-natural
query shapes (substate filter + sort + report fields; disclosed_at + substate;
named variables + substate + report fields), so h1grep encodes empirical
crash-avoidance rules. More recently it tightened team_id to a strict [Int!],
which silently breaks any client still quoting the value. Tracking that drift is
the work — it's why searching disclosed reports from the terminal just works
here.
Studying disclosed reports is one of the highest-signal ways to learn validated techniques: what got voted up by the community, what paid out, and how impact was framed for a specific program.
Install
pip install h1grep
Or run straight from source (nothing to install — it's stdlib-only):
git clone https://github.com/sonnycroco/h1grep
cd h1grep
python3 h1grep.py --top-voted --limit 25
Requires Python 3.9+.
Usage
# Top-voted reports — best validated techniques, great starting point
h1grep --top-voted --limit 25
# Highest-bounty reports — signal for business-impact framing
h1grep --top-bounty --limit 10
# Keyword search in report titles across multiple pages
h1grep --query "SSRF" --pages 10
h1grep --query "OAuth bypass" --pages 5
# Filter by severity (client-side)
h1grep --top-voted --severity critical high --limit 20
# Filter by CWE label (client-side regex)
h1grep --top-voted --cwe "SSRF" "Request Forgery"
# Program-specific disclosures
h1grep --program shopify --pages 3
# Resolve a program handle to its numeric team ID
h1grep --lookup-program gitlab
# Full combo: top-bounty SSRF reports, critical/high only
h1grep --top-bounty --query "SSRF" --severity critical high --pages 10
# JSON output for piping into jq, etc.
h1grep --top-voted --query "XSS" --pages 5 --json
Options
| Flag | Description |
|---|---|
--query, -q |
Keyword regex matched against report titles (client-side) |
--severity, -s |
Filter by severity: none low medium high critical (client-side) |
--cwe |
Filter by CWE label regex, e.g. "SSRF" "Traversal" (client-side) |
--program, -p |
Filter by program handle (e.g. shopify) |
--lookup-program |
Resolve a program handle to its numeric team ID and exit |
--top-voted |
Sort by community votes (validated techniques) |
--top-bounty |
Sort by bounty amount (impact framing) |
--limit, -n |
Max results to display (default: 20) |
--pages |
Pages to fetch, 50 results/page (default: 1; use 5–20 for keyword searches) |
--json |
Emit raw JSON instead of formatted text |
Keyword, severity, and CWE filtering are applied client-side after fetching,
so widen --pages when you filter aggressively.
How it works
- Query building — inline GraphQL strings are assembled per mode to route around the endpoint's crash triggers. Pure sort (no program) uses server-side sorting; program filtering uses a substate/team filter with no server-side sort, then sorts client-side.
- Pagination — walks pages of 50, following the server-supplied
pageInfo.endCursorand sleeping 0.3s between pages (polite rate limiting), up to--pages. - Client-side filter & sort — keyword/severity/CWE and the fallback sort are applied locally.
- Output — color-coded text by default, or
--json. The header reports how many matches were shown versus found, and how many fetched rows were dropped for being undisclosed.
Caveats
- Undocumented endpoint.
h1grepuses the same public GraphQL endpoint the Hacktivity web UI calls. It is not an official API and may change without notice. When the response shape changes,h1grepfails with a clear "HackerOne API shape changed — please open an issue" message rather than a stack trace — please do open an issue if you hit it. - Disclosed reports only. It can only see what HackerOne has publicly disclosed — never private program data.
--top-bountyhas a low yield per page. The highest-paying entries are mostly still undisclosed: they carry a bounty amount but no public report, so they get dropped. Typically only ~5 of 50 fetched rows survive on the first page. The header tells you how many were dropped — widen--pages.- Read-only and rate-limited by design. It fetches and prints; it does not write, submit, or scrape aggressively. Please keep it that way and be a good citizen of the endpoint.
License
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file h1grep-0.2.0.tar.gz.
File metadata
- Download URL: h1grep-0.2.0.tar.gz
- Upload date:
- Size: 13.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7fb49f88b20696c225ee36d9df984574583961bf389b677f5c34ca92c314e20f
|
|
| MD5 |
40bffbb942928b7ab3ae293be8eae037
|
|
| BLAKE2b-256 |
fb9e1fbfaecea816b90714acf63d504ba3415015a6fce7fb9e337b4e1a4096a2
|
Provenance
The following attestation bundles were made for h1grep-0.2.0.tar.gz:
Publisher:
workflow.yml on sonnycroco/h1grep
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
h1grep-0.2.0.tar.gz -
Subject digest:
7fb49f88b20696c225ee36d9df984574583961bf389b677f5c34ca92c314e20f - Sigstore transparency entry: 2306110170
- Sigstore integration time:
-
Permalink:
sonnycroco/h1grep@8385b00c9360c2476091e6906ae23a5f15dc3085 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/sonnycroco
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@8385b00c9360c2476091e6906ae23a5f15dc3085 -
Trigger Event:
release
-
Statement type:
File details
Details for the file h1grep-0.2.0-py3-none-any.whl.
File metadata
- Download URL: h1grep-0.2.0-py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9b81b201c26a5e1f26f4809eac89161a24d41d2988dec97c59405c5b97128ce
|
|
| MD5 |
3cffe6a670a9c7a9a5367ae85a686685
|
|
| BLAKE2b-256 |
be60e4bf246bcd8907069e2fa56dbb47d7c0082340983ca85177e09646b2667b
|
Provenance
The following attestation bundles were made for h1grep-0.2.0-py3-none-any.whl:
Publisher:
workflow.yml on sonnycroco/h1grep
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
h1grep-0.2.0-py3-none-any.whl -
Subject digest:
e9b81b201c26a5e1f26f4809eac89161a24d41d2988dec97c59405c5b97128ce - Sigstore transparency entry: 2306110215
- Sigstore integration time:
-
Permalink:
sonnycroco/h1grep@8385b00c9360c2476091e6906ae23a5f15dc3085 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/sonnycroco
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@8385b00c9360c2476091e6906ae23a5f15dc3085 -
Trigger Event:
release
-
Statement type: