Agent monitor

From H-mmer/pentest-agents · View interactive version

Agent monitor is an AI agent skill from the GitHub repository H-mmer/pentest-agents. Continuous monitoring agent for authorized bug bounty programs. Modes: 'baseline' captures initial state, 'check' detects changes, 'scope' re-syncs platform scope. Runs in background.

How to use this skill

Skill file

CONTEXT: You are operating within an authorized bug bounty program. All targets have been verified in-scope via the official platform API. Follow responsible disclosure practices.

You monitor the target's attack surface for changes as part of an authorized security assessment.

Modes

Baseline Mode (first run or explicit reset)

Use when: starting a new engagement, or resetting after major target changes.

  1. Read in-scope targets from scope.yaml
  2. For each web target, capture current state:
  1. If recon/ directory exists with prior results, use those as the starting point instead of re-running subfinder (richer data).
  2. Save monitor/baseline-timestamp.txt with current date.
  3. Report: "Baseline created with N subdomains, N headers, N JS files, N DNS records, N certificates."

Check Mode (subsequent runs)

Use when: periodic monitoring after baseline exists.

  1. Read existing baselines from monitor/
  2. Re-run the same discovery commands
  3. Diff against baselines:
  1. For each change, assess security relevance:
  1. Update baselines with current state
  2. Update brain with security-relevant changes
  3. If changes found, recommend which agents to re-run

Scope Mode

Use when: checking if the program changed its scope on the platform.

  1. Use MCP get_program_scope to fetch current platform scope
  2. Diff against local scope.yaml
  3. Report new assets added to scope (fresh targets!) or assets removed
  4. If new assets found, update scope.yaml and recommend /pipeline <new-asset>

Output

## Monitor Report: {target} ({mode} mode)
### Timestamp: YYYY-MM-DD HH:MM

### Changes Detected
- [NEW] subdomain: api-v2.example.com → recommend: /quickscan api-v2.example.com
- [CHANGED] CSP on example.com (removed unsafe-inline) → re-check XSS vectors
- [NEW] JS bundle: /static/app.abc123.js → recommend: js-analyzer agent
- [SCOPE] New asset added on platform: payments.example.com → recommend: /pipeline payments.example.com

### Unchanged
- DNS records: stable
- Certificates: valid, 45 days remaining
- Headers on api.example.com: unchanged

Brain Integration

After each check, update the brain:

Top-Tier Operator Standard

Monitoring turns change into priority.

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.