본문으로 건너뛰기
Skillpedia
보안73k · #3095

api-security-testing

하는 일

이 스킬은 API의 스키마와 OWASP API 보안 Top 10을 체크리스트로 삼아 API의 자동 보안 검사를 안내합니다. API에서 취약점을 점검하려는 보안 테스터와 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓REST, GraphQL, gRPC API의 보안 문제를 테스트해야 할 때.
  • ✓테스트를 안내할 OpenAPI나 Postman 스키마가 있는 API가 있을 때.
  • ✓한 사용자가 다른 사용자의 데이터를 읽는 것 같은 권한 결함을 확인할 때.

스킬 링크

https://github.com/usestrix/strix/blob/main/skills/api-security-testing/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/usestrix/strix/blob/main/skills/api-security-testing/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“저희 API용 OpenAPI 파일이 있습니다. 사용자가 서로의 데이터에 접근할 수 있는지 확인하는 보안 테스트를 실행해 주실 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 API 스키마와 테스트 계정을 모은 뒤, 자동화된 에이전트가 엔드포인트를 매핑하고 위험한 경우를 시도하게 합니다. 실제로 악용할 수 있었던 내용을 보고합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Security-test an API

APIs fail differently from web UIs: there is no rendered surface to crawl, the interesting bugs are authorization-shaped rather than injection-shaped, and the same endpoint behaves differently per token. This workflow targets those specifics with Strix's autonomous agents, using the current OWASP API Security Top 10 (2023) as the coverage checklist. For the web-app equivalent, the current edition is the OWASP Top 10:2025 — see owasp-top-10-testing.

Install, LLM setup, full CLI flags, and the managed-cloud path are in the penetration-testing-with-strix skill. Read it if strix --version fails or the target is not an API. For a run with no Docker and no LLM key, the same binary drives the managed platform: strix cloud login, then strix cloud scans start ... (details in managed-pentesting-with-strix).

1. Gather what the agents need

APIs are near-impossible to test blind, so collect first:

Input Why it matters
Schema — OpenAPI/Swagger file, Postman collection, GraphQL endpoint (introspection), or a gRPC .proto Turns guesswork into full endpoint enumeration. Biggest single win in coverage. An OpenAPI/Swagger or Postman spec (.json/.yaml/.yml) is a target Strix takes directly; a .proto is not, so pass it with --workspace-file.
Two sets of credentials/tokens, ideally in different tenants BOLA/IDOR — API1:2023, still the #1 API risk — can only be proven by accessing tenant A's objects with tenant B's token.
A low-privilege and a high-privilege token Required to prove broken function-level authorization (API5:2023 — a user calling admin-only routes).
Example object IDs Lets agents test ID tampering immediately instead of hunting for valid identifiers.
Out-of-scope routes Payments, mass notification, destructive admin endpoints.
Rate limits / WAF in front of the API Avoids agents burning budget on throttled requests; mention them so testing adapts.

Ask the user for anything missing — do not fabricate tokens or scan an API they do not own.

2. Run the scan

Pass the spec as a target, not as prose in the instruction — Strix parses OpenAPI/Swagger (.json/.yaml) and Postman collection exports directly, so the agents start from the real endpoint list:

strix -n -t ./openapi.yaml -t https://api.staging.example.com --max-budget 20 \
  --instruction "Tenant A token: <tokenA> (org 1111, user id 11, order id 501).
Tenant B token: <tokenB> (org 2222, user id 22).
Admin token: <tokenAdmin>.
Focus: BOLA across orgs (API1), function-level authz on /admin/* (API5), object property level authz on PATCH /users/{id} — both mass assignment and over-exposed fields in list responses (API3), unrestricted resource consumption (API4).
Out of scope: POST /billing/*, POST /notifications/broadcast."
  • Postman instead of OpenAPI: a collection export works as a target (-t ./collection.postman_collection.json), or pull one live with -t postman://<collection-uuid> (optionally "postman://<collection-uuid>?env=<environment-uuid>"), which needs POSTMAN_API_KEY in the environment.
  • Many services at once: put one target per line in a file and pass --target-list ./targets.txt, repeatable and combinable with -t.
  • Add the backend source for depth: -t ./services/api -t https://api.staging.example.com. With code access the agents can reason about authorization checks and object ownership rather than inferring them from responses.
  • gRPC: target the endpoint and pass the definition as a workspace file, -t https://grpc.staging.example.com --workspace-file ./service.proto. Only .json, .yaml, and .yml specs are recognized as targets, so -t ./service.proto fails with "Path exists but is not a directory".
  • GraphQL: point at the GraphQL endpoint and say whether introspection is enabled; call out that you want batching/aliasing abuse, depth/complexity limits, and per-field authorization tested.
  • Internal/private APIs unreachable from your machine: use the managed platform's network connector — see managed-pentesting-with-strix.
  • Use --instruction-file when the credential/context block gets long, and keep tokens out of shell history and out of committed files.
  • Supporting files the agents should read but not test, such as an endpoint wordlist or handwritten notes about the tenancy model: pas
자주 묻는 질문

테스트에 어떤 입력이 필요한가요?

스킬은 OpenAPI, Postman, GraphQL 인트로스펙션, gRPC proto 파일 같은 스키마와 테스트 계정을 요청합니다.

Docker나 LLM 키가 필요한가요?

스킬은 Docker와 LLM 키 없이 실행할 수 있는 관리형 클라우드 경로를 설명합니다.

어떤 표준을 따르나요?

2023년판 OWASP API Security Top 10을 검사 범위의 체크리스트로 사용합니다.

상세 정보

작성자의 원본 설명

Security-test a REST, GraphQL, or gRPC API with Strix — autonomous agents that enumerate endpoints from an OpenAPI/GraphQL schema (or by crawling), then actually exploit the API-specific vulnerability classes in the OWASP API Security Top 10 (2023) — broken object-level authorization (BOLA/IDOR), broken object property level authorization (excessive data exposure and mass assignment), broken function-level authorization, unrestricted resource consumption, SSRF, injection, and auth/token flaws. Every finding comes with a working proof-of-concept request. Use when the user asks to pentest, secur

repo: usestrix/strix

인기도

GitHub 스타
73k
순위
#3095
라이선스
Apache-2.0
업데이트
2026. 10. 30.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬