<!-- Copyright (c) 2026 defconxt. All rights reserved. -->
<!-- Licensed under AGPL-3.0 — see LICENSE file for details. -->
<!-- NERF is a trademark of defconxt. -->
# Building Abuse Case Models — API Reference

## agent.js CLI

```bash
# Use Cases action
node scripts/agent.js --action use-cases

# Abuse Cases action
node scripts/agent.js --action abuse-cases

# Mitigations action
node scripts/agent.js --action mitigations

# Report action
node scripts/agent.js --action report
```

## Abuse Case Schema

```json
{
  "id": "AC-001",
  "name": "Credential stuffing",
  "threatens": "UC-001",
  "attacker": "cybercriminal",
  "persona": {"capability": "medium", "motivation": "financial"},
  "scenario": "Attacker uses leaked credentials to access accounts"
}
```

## Security Use Case Mapping

```json
{
  "abuse_case": "AC-001",
  "security_use_cases": ["Rate limiting", "CAPTCHA", "Account lockout"],
  "priority": "High"
}
```
