api-security-testing
यह क्या करती है
यह स्किल API के स्वचालित सुरक्षा स्कैन का मार्गदर्शन करती है, उसके स्कीमा और OWASP API Security Top 10 को चेकलिस्ट के रूप में इस्तेमाल करते हुए। यह उन सुरक्षा परीक्षकों और डेवलपर्स के लिए है जो API में कमज़ोरियाँ जाँचना चाहते हैं।
कब इस्तेमाल करें
- ✓जब किसी को REST, GraphQL या gRPC API में सुरक्षा समस्याएँ जाँचनी हों।
- ✓जब किसी API के पास OpenAPI या Postman स्कीमा हो जो जाँच का मार्गदर्शन कर सके।
- ✓जब API में प्राधिकरण दोष जाँचने हों, जैसे एक यूज़र का दूसरे यूज़र का डेटा पढ़ पाना।
Skill का लिंक
https://github.com/usestrix/strix/blob/main/skills/api-security-testing/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे पास हमारे API की OpenAPI फ़ाइल है। क्या आप एक सुरक्षा टेस्ट चला सकते हैं जो जाँचे कि यूज़र एक-दूसरे का डेटा देख सकते हैं या नहीं?”
हर हफ़्ते 5 नई skills, 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 needsPOSTMAN_API_KEYin 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.ymlspecs are recognized as targets, so-t ./service.protofails 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-filewhen 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 introspection या 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
- अपडेट की गई
- 30/10/2026
कमेंट
- …
इस repository की और skills
application-security-testing
73kयह आपके एजेंट को पूरे प्रोडक्ट के लिए सुरक्षा टेस्ट की योजना बनाने देती है, हर हिस्से के लिए सही टेस्ट चुनकर, चलाकर, और असली जोखिम के आधार पर सुधार क्रम देकर।
ci-security-scanning-with-strix
73kयह आपके एजेंट को pull requests पर स्वचालित सुरक्षा स्कैन जोड़ना दिखाती है, ताकि मर्ज होने से पहले जोखिम भरा कोड चिह्नित हो सके।
find-security-vulnerabilities-in-code
73kयह आपके एजेंट को injection और टूटे हुए एक्सेस कंट्रोल जैसी सुरक्षा कमियों के लिए कोड की समीक्षा करने में मदद करती है, और टेस्ट हमलों से साबित करती है कि कौन-सी असली हैं।
fix-security-vulnerabilities-with-strix
73kयह आपके एजेंट को पुष्ट सुरक्षा निष्कर्षों को लक्षित कोड सुधारों में बदलने देती है, फिर टेस्ट दोबारा चलाकर साबित करती है कि हर हमला अब काम नहीं करता।
मिलती-जुलती skills
reverse-engineer-anything
422kयह आपके एजेंट को REA टूल से शिप हुई ऐप्स और पैकेज को अंदर से समझने, वर्ज़न की तुलना करने या दोबारा बनाने में मदद करती है।
1password
394kयह आपके एजेंट को 1Password CLI सेट करने, साइन इन करने और सीक्रेट्स की वैल्यू चैट में छापे बिना उन्हें पढ़ने या इस्तेमाल करने में मदद करती है।
healthcheck
394kयह आपके एजेंट को उस कंप्यूटर या सर्वर का सुरक्षा ऑडिट करने देती है जिस पर OpenClaw चलता है, जिसमें SSH, firewall, अपडेट और बैकअप शामिल हैं, और फिर सुरक्षित सुधार सुझाती है।