SSZcreate/Pentab_server / .agents/skills/cybersecurity/skills/detecting-api-enumeration-attacks
detecting-api-enumeration-attacks
VerifiedDetect API enumeration attacks (BOLA/IDOR, OWASP API1:2023) by writing SIEM detection rules that flag sequential or UUID identifier iteration, parameter tampering, and mixed 200/401/403 response patterns from API gateway and WAF logs. Use when investigating suspected object-level authorization abuse, building threat-hunting queries for API access-control bypass, or hardening API logging/rate-limiting against enumeration.
| File | Kind | Size |
|---|---|---|
| LICENSE | other | 11.0 KB |
| SKILL.md | skill md | 14.3 KB |
| references/api-reference.md | markdown | 1.9 KB |
| scripts/agent.py | script | 6.6 KB |
references/api-reference.md
View on GitHub# API Enumeration Attack Detection — API Reference
## Libraries
| Library | Install | Purpose |
|---------|---------|---------|
| requests | `pip install requests` | WAF and SIEM API queries |
## Detection Techniques
| Technique | Indicator | Severity |
|-----------|-----------|----------|
| Sequential ID enumeration | /api/users/1, /api/users/2, ... | HIGH |
| Endpoint fuzzing | High 404 rate on /api/* paths | HIGH |
| Rate abuse | >50 API requests/minute from single IP | MEDIUM |
| Path discovery | Requests to /swagger, /api-docs, /graphql | HIGH |
| BOLA/IDOR probing | Access to other users' resource IDs | CRITICAL |
## NGINX Combined Log Format
```
$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"
```
## Common Enumeration Paths
| Pattern | Description |
|---------|-------------|
| `/api/v1/users/{id}` | User ID enumeration |
| `/api/v1/accounts/{uuid}` | Account UUID guessing |
| `/graphql?query={__schema}` | GraphQL introspection |
| `/swagger/v1/swagger.json` | API documentation discovery |
| `/api-docs`, `/.well-known` | Endpoint discovery |
## WAF Rule Categories
| Category | Description |
|----------|-------------|
| `rate-limit` | Request rate exceeds threshold |
| `api-abuse` | Automated API enumeration |
| `bola` | Broken Object Level Authorization |
| `scanner` | Known scanner/fuzzer user-agent |
## OWASP API Security Top 10
| ID | Risk |
|----|------|
| API1 | Broken Object Level Authorization |
| API2 | Broken Authentication |
| API3 | Broken Object Property Level Auth |
| API4 | Unrestricted Resource Consumption |
| API5 | Broken Function Level Authorization |
## External References
- [OWASP API Security Top 10](https://owasp.org/API-Security/)
- [OWASP Testing Guide — API Testing](https://owasp.org/www-project-web-security-testing-guide/)
- [ModSecurity API Protection Rules](https://coreruleset.org/)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 465k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 465k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 465k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 192k | Updated | Claude CodeCodex | Verified | Install |