<!-- Copyright (c) 2026 defconxt. All rights reserved. -->
<!-- Licensed under AGPL-3.0 — see LICENSE file for details. -->

# API Reference — Analyzing Phishing Kit Artifacts

## Agent Script

### Commands

| Command | Description |
|---|---|
| `node agent.js scan-kit --kit-dir <dir>` | Scan kit for exfil methods |
| `node agent.js extract-actor-iocs --kit-dir <dir>` | Extract actor fingerprints |
| `node agent.js analyze-evasion --kit-dir <dir>` | Analyze evasion techniques |
| `node agent.js extract-iocs --kit-dir <dir>` | Extract all IOCs |
| `node agent.js generate-yara --kit-dir <dir> --rule-name <name>` | Generate YARA rule |
| `node agent.js generate-report --kit-dir <dir> --output <file>` | Full analysis report |

### Examples

```bash
node agent.js scan-kit --kit-dir /tmp/kit_contents/
node agent.js extract-actor-iocs --kit-dir /tmp/kit_contents/
node agent.js generate-yara --kit-dir /tmp/kit_contents/ --rule-name "PhishKit_ActorX"
```
