Api Security Audit
Comprehensive security audit for REST and GraphQL APIs
- Type
- Slash Command
- Repository
- jeremylongshore/tons-of-skills-marketplace
- GitHub stars
- 2.8k
- License
- MIT
- Repo last updated
- Sep 27, 2026
What Api Security Audit is
Api Security Audit is a slash command published in the jeremylongshore/tons-of-skills-marketplace repository on GitHub, which has about 2.8k stars. The repository describes itself as: “Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.”
A slash command is a reusable prompt saved as a markdown file and run by typing its name after a slash. In Claude Code, custom commands have been merged into skills: a file in .claude/commands/ and a skill folder in .claude/skills/ both create the same kind of command, and existing command files keep working.
Api Security Audit gives you a repeatable way to run the same instructions without retyping them, optionally with arguments.
How to install Api Security Audit
Claude Code
- Download api-security-audit.md from the repository.
- Save it to ~/.claude/commands/ (all projects) or .claude/commands/ (one project). As a skill, you can instead save it as ~/.claude/skills/<name>/SKILL.md.
- Run it by typing / followed by its name.
Claude Cowork
- Turn the command into a skill: create a folder with the file saved as SKILL.md and zip it.
- In Customize → Skills, click +, then upload the ZIP.
- Run it from any task with / and the skill name.
New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.
Inside the source file
An excerpt from plugins/packages/security-pro-pack/plugins/04-infrastructure-security/commands/api-security-audit.md, shared under the repository's MIT license. Read the full file on GitHub.
Performs comprehensive security audit of REST and GraphQL APIs, checking for OWASP API Security Top 10 vulnerabilities, authentication/authorization flaws, injection risks, and business logic issues.
What This Command Does
Complete API Security Assessment:
- Tests for OWASP API Security Top 10 vulnerabilities
- Validates authentication and authorization mechanisms
- Checks for injection vulnerabilities (SQL, NoSQL, command)
- Identifies excessive data exposure and mass assignment
- Tests rate limiting and resource consumption controls
- Analyzes GraphQL-specific security issues (deep queries, introspection)
- Reviews API documentation for security misconfigurations
Output: Detailed security audit report with exploitability ratings and remediation guidance
Time: 15-30 minutes per API
When to Use This Command
Perfect For:
- Pre-production API security validation
- External API security assessments
- Compliance requirements (PCI DSS, HIPAA)
- After API changes or new endpoint additions
- Regular security audits (quarterly)
Use This When:
- Building new API endpoints
- Before public API launch
- After authentication/authorization changes
- Responding to security incidents
- Preparing for penetration test
Usage
# Audit REST API
/api-security-audit https://api.example.com
# Audit GraphQL API
/api-security-audit https://api.example.com/graphql --type graphql
# Audit with authentication
/api-security-audit https://api.example.com --auth "Bearer TOKEN"
# Audit specific endpoints
/api-security-audit https://api.example.com/users --endpoints /users,/orders
# Generate detailed report
/api-security-audit https://api.example.com --output api-security-report.mdShortcut:
/asa https://api.example.com # Quick auditOWASP API Security Top 10 Coverage
API1:2023 - Broken Object Level Authorization (BOLA/IDOR)
Vulnerability: Users can access objects belonging to other users
Example Attack:
# User 123 accesses their own order
GET /api/orders/456
Authorization: Bearer USER_123_TOKEN
# Attack: Change order ID to access other user's order
GET /api/orders/789 # ← Belongs to User 456!
Authorization: Bearer USER_123_TOKEN
# If API doesn't validate ownership, User 123 can see User 456's orderDetection Method:
# Test IDOR vulnerability
1. Create two test users (User A, User B)
2. User A creates resource (e.g., order ID 100)
3. User B tries to access: GET /api/orders/100
4. If successful → IDOR vulnerability existsRemediation:
// VULNERABLE: No authorization check
app.get('/api/orders/:id', authenticate, async (req, res) => {
const order = await Order.findById(req.params.id)
res.json(order) // Returns ANY order if it exists!
})
// SECURE: Verify ownership
app.get('/api/orders/:id', authenticate, async (req, res) => {
const order = await Order.findById(req.params.id)
if (!order) {
return res.status(404).json({ error: 'Order not found' })
}
if (order.userId !== req.user.id && !req.user.isAdmin) {
return res.status(403).json({ error: 'Forbidden' })
}
…API2:2023 - Broken Authentication
Vulnerability: Weak authentication allowing unauthorized access
Common Issues:
- No authentication required
- Weak password requirements
- No rate limiting on login
- Predictable API keys
- JWT with weak secrets
- No token expiration
Example Attack:
# Brute force login (no rate limiting)
for password in $(cat passwords.txt); do
curl -X POST https://api.example.com/login \
-d "username=admin&password=$password"
doneRemediation:
// SECURE: Rate limiting on login
const rateLimit = require('express-rate-limit')
const loginLimiter = rateLimit({
windowMs: 15 * 60 * 1000, // 15 minutes
max: 5, // 5 attempts
message: 'Too many login attempts, please try again later'
})
app.post('/login', loginLimiter, async (req, res) => {
// Login logic with strong password requirements
// - Minimum 12 characters
// - Require uppercase, lowercase, numbers, symbols
// - Check against common password list
})API3:2023 - Broken Object Property Level Authorization
Vulnerability: Users can modify properties they shouldn't access
Example Attack (Mass Assignment):
# Normal user update
PATCH /api/users/123
{
"name": "John Doe",
"email": "[email protected]"
}
# Attack: Add admin flag
PATCH /api/users/123
{
"name": "John Doe",
"email": "[email protected]",
"isAdmin": true # ← Attacker tries to elevate privileges!
} Before you install
- Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
- Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
- Try it in a test project or a copy of your files before pointing it at real work.
- Pin the version you tested, and review changes before updating.
- Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.
FAQ
What is Api Security Audit?
Api Security Audit is a slash command for Claude Code and Claude Cowork from the jeremylongshore/tons-of-skills-marketplace repository on GitHub. Comprehensive security audit for REST and GraphQL APIs
How do I install Api Security Audit in Claude Code?
Download api-security-audit.md from the repository. Save it to ~/.claude/commands/ (all projects) or .claude/commands/ (one project). As a skill, you can instead save it as ~/.claude/skills/<name>/SKILL.md. Run it by typing / followed by its name.
Can I use Api Security Audit in Claude Cowork?
Turn the command into a skill: create a folder with the file saved as SKILL.md and zip it. In Customize → Skills, click +, then upload the ZIP. Run it from any task with / and the skill name.
Is Api Security Audit safe to install?
It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.
Similar resources
- Web Analytics Push-based web analytics intelligence — self-hosted Umami (primary) via MCP + GA4 (fallback). 9 specialist agents fetch data, detect anomalies, analyze funnels, verify claims, and deliver narrative reports across your entire site portfolio. Three tiers: 30-second pulse, 2-min brief, 5-min full deep-dive. Plugin · jeremylongshore/tons-of-skills-marketplace
- Website Designer Designs conversion-focused static marketing websites from sprint specs — applies SEO best practices, clear CTAs, mobile-first responsive layouts, and WCAG accessibility, then returns a concise IMPLEMENTATION REPORT. Use when building or redesigning a product landing page or GitHub Pages site. Trigger with "design website", "build landing page". Subagent · jeremylongshore/tons-of-skills-marketplace
- Windsurf Pack Claude Code skill pack for Devin Desktop (formerly Windsurf): 30 current operations skills Plugin · jeremylongshore/tons-of-skills-marketplace
- Whale Alert Monitor Monitor large crypto transactions and whale wallet movements in real-time Plugin · jeremylongshore/tons-of-skills-marketplace
- Archival Archive old database records with automated retention policies and cold Slash Command · jeremylongshore/tons-of-skills-marketplace
- Ansible Playbook Create Ansible playbooks for configuration management Slash Command · jeremylongshore/tons-of-skills-marketplace
- Audit Codebase PM-focused codebase exploration and capability mapping Slash Command · jeremylongshore/tons-of-skills-marketplace
- Analyze Trends Analyze price trends with technical indicators, pattern recognition, and Slash Command · jeremylongshore/tons-of-skills-marketplace