Strands HackerOne
HackerOne API tool for Strands Agents. Automate bug bounty research, program monitoring, and report management with AI.
Installation
pip install strands-hackerone
Setup
Get API credentials from HackerOne Settings:
export HACKERONE_USERNAME="your_username"
export HACKERONE_API_KEY="your_api_key"
Usage
Standalone
from strands_hackerone import hackerone
# List programs
hackerone(action="programs", limit=10)
# Check hacktivity
hackerone(action="hacktivity", query="severity:critical")
# View balance
hackerone(action="balance")
With Strands Agent
from strands import Agent
from strands_hackerone import hackerone
agent = Agent(tools=[hackerone])
agent("Find high-paying programs accepting XSS vulnerabilities")
Actions
| Action | Description | Parameters |
|---|---|---|
programs |
List bug bounty programs | page, limit |
program_info |
Get program details | program_handle |
program_scope |
View program scope | program_handle, page, limit |
program_weaknesses |
List accepted vulnerability types | program_handle, page, limit |
hacktivity |
Browse public disclosures | query, page, limit |
my_reports |
List your reports | page, limit |
report_details |
Get report details | report_id |
balance |
Check current balance | - |
earnings |
View earnings history | page, limit |
payouts |
View payout history | page, limit |
Examples
Search hacktivity
# Critical vulnerabilities
hackerone(action="hacktivity", query="severity:critical")
# High bounties
hackerone(action="hacktivity", query="bounty:>5000")
# Specific program
hackerone(action="hacktivity", query="program:security")
Get program info
hackerone(action="program_info", program_handle="security")
hackerone(action="program_scope", program_handle="github")
hackerone(action="program_weaknesses", program_handle="security")
Track your activity
hackerone(action="my_reports", limit=25)
hackerone(action="report_details", report_id="274387")
hackerone(action="balance")
hackerone(action="earnings", page=1, limit=50)
AI Agent Examples
Research Assistant
agent = Agent(
tools=[hackerone],
system_prompt="Bug bounty research assistant"
)
agent("Find programs with web apps in scope that offer fast payments")
Monitor
agent = Agent(
tools=[hackerone],
system_prompt="Monitor HackerOne for important events"
)
agent("Check for new critical disclosures in the last 24 hours")
Troubleshooting
401 Unauthorized
Check HACKERONE_USERNAME and HACKERONE_API_KEY
403 Forbidden
You must be enrolled in the program
Rate Limited
Reduce request frequency, use pagination, cache results
Development
git clone https://github.com/cagataycali/strands-hackerone.git
cd strands-hackerone
pip install -e .
python test_hackerone.py
Resources
License
MIT
Author
Metadata
Release files for strands-hackerone 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| strands_hackerone-0.1.3.tar.gz | 9.8 kB | Without provenance | Details for strands_hackerone-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| strands_hackerone-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for strands_hackerone-0.1.3-py3-none-any.whl |
Total release size: 17.7 kB
Release files / strands_hackerone-0.1.3.tar.gz
| Download URL | strands_hackerone-0.1.3.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b3bb4de65931b4959a8da181a1a8b12a672e6193dd388a9666c2a0d585a2ead1
|
|
BLAKE2b-256 checksum How to use checksums |
d87d9f22a71fc27b13a75792666ada1883051e8560a7a9c7a144c2e729db4932
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / strands_hackerone-0.1.3-py3-none-any.whl
| Download URL | strands_hackerone-0.1.3-py3-none-any.whl |
|---|---|
| Size | 7.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c8f27a9b10a54ca4d54baf8ef320e31eebe8df354b8aae25e56ee1640be0a5c0
|
|
BLAKE2b-256 checksum How to use checksums |
3d3c758187140817a1a04628ddccf5c560b53238edc3c1f9aba6057aae11dd94
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Security for strands-hackerone 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.