Langsung ke konten
Skillpedia
Keamanan73k ยท #3095

api-security-testing

Fungsinya

Skill ini memandu pemindaian keamanan otomatis pada API, dengan menggunakan skema API dan OWASP API Security Top 10 sebagai daftar periksa. Skill ini ditujukan untuk penguji keamanan dan pengembang yang ingin memeriksa kelemahan API.

Kapan dipakai

  • โœ“Saat seseorang perlu menguji API REST, GraphQL, atau gRPC dari masalah keamanan.
  • โœ“Saat sebuah API memiliki skema OpenAPI atau Postman yang dapat memandu pengujian.
  • โœ“Saat memeriksa API dari cacat otorisasi, seperti satu pengguna membaca data pengguna lain.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/usestrix/strix/blob/main/skills/api-security-testing/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit โ†’

Contoh permintaan ke AI

โ€œSaya punya file OpenAPI untuk API kami. Bisakah Anda menjalankan tes keamanan yang memeriksa apakah pengguna dapat mengakses data satu sama lain?โ€

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent mengumpulkan skema API dan akun uji, lalu membiarkan agent otomatis memetakan endpoint dan mencoba kasus berisiko. Agent melaporkan apa yang benar-benar dapat dieksploitasi.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum

Input apa yang dibutuhkan tes ini?

Skill meminta skema seperti OpenAPI, Postman, introspeksi GraphQL, atau file proto gRPC, serta akun uji.

Apakah membutuhkan Docker atau kunci LLM?

Skill menjelaskan jalur cloud terkelola untuk eksekusi tanpa Docker dan tanpa kunci LLM.

Standar apa yang diikuti?

Skill menggunakan OWASP API Security Top 10 tahun 2023 sebagai daftar periksa cakupannya.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
73k
Peringkat
#3095
Lisensi
Apache-2.0
Diperbarui
30/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • โ€ฆ

Skill lain dari repositori ini

Skill serupa