conducting-api-security-testing
Что он делает
Этот агент тестирует безопасность API (интерфейсов, с помощью которых программы обмениваются данными друг с другом). Он ищет уязвимости, которые хакеры могли бы использовать для получения несанкционированного доступа, изменения данных или нарушения работы сервиса.
Когда использовать
- ✓Когда нужно проверить, защищен ли API от вторжений.
- ✓Когда запускается новый API и требуется убедиться в его безопасности.
- ✓Для аудита безопасности существующих API.
Ссылка на скилл
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/conducting-api-security-testing/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Проверь безопасность API входа, чтобы выяснить, можно ли обойти аутентификацию.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Агент имитирует распространенные атаки с помощью специализированных инструментов и документации к API. Цель в том, чтобы найти слабые места раньше, чем это сделают злоумышленники.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
Conducting API Security Testing
When to Use
- Testing API endpoints for authorization flaws, injection vulnerabilities, and business logic bypasses
- Assessing the security of microservices architecture where APIs are the primary communication method
- Validating that API gateway protections (rate limiting, authentication, input validation) are properly enforced
- Testing third-party API integrations for data exposure and insecure configurations
- Evaluating GraphQL APIs for introspection disclosure, query complexity attacks, and authorization bypasses
Do not use against APIs without written authorization, for load testing or denial-of-service testing unless explicitly scoped, or for testing production APIs that process real financial transactions without safeguards.
Prerequisites
- API documentation (OpenAPI/Swagger, GraphQL schema, Postman collection) or application access to reverse-engineer the API
- Burp Suite Professional configured to intercept API traffic with JSON/XML content type handling
- Postman or Insomnia for organizing and replaying API requests across different authentication contexts
- Valid API tokens or credentials at multiple privilege levels (unauthenticated, standard user, admin)
- Target API base URL and version information
Workflow
Step 1: API Discovery and Documentation
Map the complete API attack surface:
- Import API documentation: Load OpenAPI/Swagger specs into Postman or Burp Suite to catalog all endpoints, methods, parameters, and authentication requirements
- Reverse-engineer undocumented APIs: Proxy the mobile app or web frontend through Burp Suite and exercise all features to capture API calls. Export the Burp sitemap as the baseline endpoint inventory.
- GraphQL introspection: Send an introspection query to discover the full schema:
{"query": "{__schema{types{name,fields{name,args{name,type{name}}}}}}"} - Endpoint enumeration: Fuzz for hidden API versions (
/api/v1/,/api/v2/,/api/internal/), debug endpoints (/api/debug,/api/health,/api/metrics), and administrative endpoints - Document authentication mechanisms: Identify if the API uses API keys, OAuth 2.0 Bearer tokens, JWT, session cookies, or mutual TLS
Step 2: Authentication and Token Testing
Test authentication mechanisms for weaknesses:
- JWT analysis: Decode the JWT and inspect claims (sub, exp, iss, aud, role). Test:
- Algorithm confusion: Change
algtononeand remove the signature - Key confusion: Change
algfrom RS256 to HS256 and sign with the public key - Weak secret: Brute-force the HMAC secret with
hashcat -m 16500 jwt.txt wordlist.txt - Token expiration: Verify tokens expire and cannot be used after expiration
- Claim tampering: Modify role, userId, or permission claims and re-sign
- Algorithm confusion: Change
- OAuth 2.0 testing: Check for redirect_uri manipulation, authorization code reuse, token leakage in Referer headers, and missing state parameter (CSRF)
- API key security: Test if API keys are validated per-endpoint, if revoked keys are immediately rejected, and if keys in query strings appear in access logs or analytics
Step 3: Authorization Testing (BOLA/BFLA)
Test for Broken Object Level Authorization (BOLA) and Broken Function Level Authorization (BFLA):
- BOLA (IDOR) testing: For every endpoint that returns user-specific data, replace the object identifier with another user's identifier:
GET /api/users/123/orders->GET /api/users/456/orders- Test with numeric IDs, UUIDs, usernames, and email addresses
- Automate with Burp Autorize extension: configure it with two sessions (attacker and victim) and replay all requests
- BFLA testing: Using a low-privilege token, attempt to access administrative endpoints:
DELETE /api/users/456(admin-only delete)PUT /api/users/456/role(role modification)GET /api/admin/dashboard(admin panel data)
- Mass assignment: Send additional JSON properties not shown in the documentation:
PUT /api/users/123 {"name": "Test", "role": "admin", "isVerified": true, "balance": 99999} - HTTP method testing: If GET works on an endpoint, try PUT, PATCH, DELETE, and OPTIONS to discover unprotected methods
Step 4: Input Validation and Injection Testing
Test API inputs for injection and validation flaws:
…
Частые вопросы
Что такое API?
API это «посредники», которые позволяют разным программам организованно обмениваться информацией и функциями.
Что такое уязвимости безопасности?
Это ошибки или брешь в системе, которые злоумышленники могут использовать, чтобы нанести вред, украсть данные или получить несанкционированный доступ.
Что такое OWASP Top 10?
Это список из 10 самых критических и распространенных уязвимостей веб-приложений и API, который используется как руководство при тестировании безопасности.
Подробности
Оригинальное описание автора
Conducts security testing of REST, GraphQL, and gRPC APIs to identify vulnerabilities in authentication, authorization, rate limiting, input validation, and business logic. The tester uses the OWASP API Security Top 10 as the testing framework, combining Burp Suite interception with Postman collections and custom scripts to test endpoint security at every privilege level. Activates for requests in
Популярность
- Звёзды на GitHub
- 35k
- Место в рейтинге
- #7731
- Лицензия
- Apache-2.0
- Обновлён
- 31.08.2026
Комментарии
- …
Другие скиллы из этого репозитория
abusing-dpapi-for-credential-access
35kДаёт ИИ-агенту готовые инструкции для конкретной задачи, чтобы он делал её лучше и быстрее.
abusing-shadow-credentials-for-privesc
35kУчит ИИ-агента писать ясные структурированные тексты.
achieving-cmmc-level-2-compliance
35kПомогает агенту подготовить среду к соответствию CMMC уровня 2.
acquiring-disk-image-with-dd-and-dcfldd
35kПомогает агенту создавать точные копии дисков для расследований.
Похожие скиллы
reverse-engineer-anything
422kПомогает агенту изучить готовые приложения и пакеты, объяснить их функции, сравнить версии или помочь с пересборкой через REA.
1password
394kПомогает агенту настроить командную строку 1Password, войти в нее и читать или подставлять секреты, не выводя их значения в чат.
healthcheck
394kПомогает агенту проверить компьютер или сервер, на котором работает OpenClaw, на риски безопасности, такие как SSH, файрвол, обновления и резервные копии, а затем предложить безопасные исправления.