Skip to main content

Strands Agents tool for accessing hackerone

Project description

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

@cagataycali

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

strands_hackerone-0.1.2.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

strands_hackerone-0.1.2-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file strands_hackerone-0.1.2.tar.gz.

File metadata

  • Download URL: strands_hackerone-0.1.2.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for strands_hackerone-0.1.2.tar.gz
Algorithm Hash digest
SHA256 19913df7fd3d88e58dee27abc07adf255b45aaacb7eb9d8092d2b05b841a685d
MD5 b91b267cbf89ad8710949776ad508874
BLAKE2b-256 c827c7833bd441de869fb8a0fcb35bbaf28c13142b554b08be7f99a04f39c4f9

See more details on using hashes here.

File details

Details for the file strands_hackerone-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for strands_hackerone-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7bed5dd7655f0e5d2303432c73964423884ed8beea7d697ce1f4e09b085a5004
MD5 a14ae6929498a4f9bca5ad3f3733100f
BLAKE2b-256 2ded8bcc007ec205089ff469676b9e9e3a37becb426645bef39d3df81cbdbda1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page