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
2.3 KB Raw Blame API Reference: Testing API Security with OWASP Top 10
requests Library
Installation
pip install requests
Key Methods
| Method |
Description |
requests.get(url, headers=, params=, timeout=) |
Send GET request |
requests.post(url, json=, headers=, timeout=) |
Send POST request |
requests.put(url, json=, headers=) |
Send PUT request |
requests.patch(url, json=, headers=) |
Send PATCH request |
requests.delete(url, headers=) |
Send DELETE request |
requests.options(url, headers=) |
Send OPTIONS preflight |
Response Object
| Attribute |
Description |
resp.status_code |
HTTP status code (200, 401, 403, 429) |
resp.headers |
Response headers dict |
resp.json() |
Parse response body as JSON |
resp.text |
Response body as string |
resp.elapsed |
Response time as timedelta |
OWASP API Security Top 10 (2023)
| ID |
Risk |
Test Approach |
| API1 |
Broken Object Level Auth |
Iterate object IDs with another user's token |
| API2 |
Broken Authentication |
Brute-force login, test JWT weaknesses |
| API3 |
Broken Object Property Level Auth |
Check excessive data + mass assignment |
| API4 |
Unrestricted Resource Consumption |
Test pagination limits, rate limiting |
| API5 |
Broken Function Level Auth |
Access admin endpoints as regular user |
| API6 |
Unrestricted Access to Sensitive Flows |
Abuse OTP, reset, registration flows |
| API7 |
Server-Side Request Forgery |
Inject internal URLs in URL parameters |
| API8 |
Security Misconfiguration |
Check headers, CORS, error verbosity |
| API9 |
Improper Inventory Management |
Find deprecated API versions |
| API10 |
Unsafe Consumption of APIs |
Test trust boundaries with third-party data |
Security Header Checks
| Header |
Expected Value |
Strict-Transport-Security |
max-age=31536000; includeSubDomains |
X-Content-Type-Options |
nosniff |
X-Frame-Options |
DENY or SAMEORIGIN |
Content-Security-Policy |
Restrictive policy |
References