Skip to content

817 structured cybersecurity skills for AI agents · Mapped to 6 frameworks: MITRE ATT&CK, NIST CSF 2.0, MITRE ATLAS, D3FEND, NIST AI RMF & MITRE F3 (Fight Fraud) · agentskills.io standard · Works with Claude Code, GitHub Copilot, Codex CLI, Cursor, Gemini CLI & 20+ platforms · 29 security domains · Apache 2.0

1.4 KB
Raw Blame

API Reference — Performing Paste Site Monitoring for Credentials

Libraries Used

  • requests: HIBP API v3 for breach and paste lookup
  • re: Credential pattern matching (email:pass, API keys, AWS keys, JWTs)
  • time: Rate limiting for HIBP API (1.6s between requests)

CLI Interface

python agent.py [--api-key <hibp_key>] check --email [email protected]
python agent.py [--api-key <hibp_key>] pastes --email [email protected]
python agent.py [--api-key <hibp_key>] bulk --domain example.com --emails employee_list.txt
python agent.py scan --file paste_dump.txt
python agent.py [--api-key <hibp_key>] report --domain example.com --emails employees.txt

Core Functions

check_haveibeenpwned(email, api_key) — Breach database lookup

Endpoint: GET /api/v3/breachedaccount/{email}

check_paste_dumps(email, api_key) — Paste site exposure check

Endpoint: GET /api/v3/pasteaccount/{email}

bulk_check_domain(domain, email_list_file, api_key) — Organization-wide scan

Rate-limited to 1.6s between requests. Max 50 emails per run.

scan_text_for_credentials(text_file) — Pattern-based credential detection

Patterns: email:password, username:password, API keys, AWS keys (AKIA*), private keys, JWTs.

generate_exposure_report(...) — Executive exposure summary

Rate Limiting

HIBP free tier: ~1 request/1.6 seconds. Agent auto-sleeps between requests.

Dependencies

pip install requests