شعار Strix•JWT 身份认证测试

Strix•JWT 身份认证测试

المجتمع
asdfgh1445
Strix•JWT 身份认证测试

Strix JWT 与 OIDC 安全测试手册,覆盖令牌伪造、算法混淆与声明篡改;触发名:strix-authentication-jwt

Add to TypingMind

نظرة عامة

الناشرasdfgh1445
المستودعctf-super-hub
اسم المهارةStrix•JWT 身份认证测试
النجوم
836
التفريعات
105
الملفات المرفقة
تعليمات فقط
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها asdfgh1445 على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Strix•JWT 身份认证测试 في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/asdfgh1445/ctf-super-hub/tree/main/strix-authentication-jwt
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/asdfgh1445/ctf-super-hub.git /tmp/ctf-super-hub
mkdir -p .claude/skills
cp -r /tmp/ctf-super-hub/strix-authentication-jwt .claude/skills/asdfgh1445-strix-jwt
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Strix•JWT 身份认证测试 في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Strix•JWT 身份认证测试 تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Strix•JWT 身份认证测试 بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Authentication / JWT / OIDC

JWT/OIDC failures often enable token forgery, token confusion, cross-service acceptance, and durable account takeover. Do not trust headers, claims, or token opacity without strict validation bound to issuer, audience, key, and context.

Attack Surface

  • Web/mobile/API authentication using JWT (JWS/JWE) and OIDC/OAuth2
  • Access vs ID tokens, refresh tokens, device/PKCE/Backchannel flows
  • First-party and microservices verification, gateways, and JWKS distribution

Reconnaissance

Endpoints

  • Well-known: /.well-known/openid-configuration, /oauth2/.well-known/openid-configuration
  • Keys: /jwks.json, rotating key endpoints, tenant-specific JWKS
  • Auth: /authorize, /token, /introspect, /revoke, /logout, device code endpoints
  • App: /login, /callback, /refresh, /me, /session, /impersonate

Token Features

  • Headers: {"alg":"RS256","kid":"...","typ":"JWT","jku":"...","x5u":"...","jwk":{...}}
  • Claims: {"iss":"...","aud":"...","azp":"...","sub":"user","scope":"...","exp":...,"nbf":...,"iat":...}
  • Formats: JWS (signed), JWE (encrypted). Note unencoded payload option ("b64":false) and critical headers ("crit")

Key Vulnerabilities

Signature Verification

  • RS256→HS256 confusion: change alg to HS256 and use the RSA public key as HMAC secret if algorithm is not pinned
  • "none" algorithm acceptance: set "alg":"none" and drop the signature if libraries accept it
  • ECDSA malleability/misuse: weak verification settings accepting non-canonical signatures

Header Manipulation

  • kid injection: path traversal ../../../../keys/prod.key, SQL/command/template injection in key lookup, or pointing to world-readable files
  • jku/x5u abuse: host attacker-controlled JWKS/X509 chain; if not pinned/whitelisted, server fetches and trusts attacker keys
  • jwk header injection: embed attacker JWK in header; some libraries prefer inline JWK over server-configured keys
  • SSRF via remote key fetch: exploit JWKS URL fetching to reach internal hosts

Key and Cache Issues

  • JWKS caching TTL and key rollover: accept obsolete keys; race rotation windows; missing kid pinning → accept any matching kty/alg
  • Mixed environments: same secrets across dev/stage/prod; key reuse across tenants or services
  • Fallbacks: verification succeeds when kid not found by trying all keys or no keys (implementation bugs)

Claims Validation Gaps

  • iss/aud/azp not enforced: cross-service token reuse; accept tokens from any issuer or wrong audience
  • scope/roles fully trusted from token: server does not re-derive authorization; privilege inflation via claim edits when signature checks are weak
  • exp/nbf/iat not enforced or large clock skew tolerance; accept long-expired or not-yet-valid tokens
  • typ/cty not enforced: accept ID token where access token required (token confusion)

Token Confusion and OIDC

  • Access vs ID token swap: use ID token against APIs when they only verify signature but not audience/typ
  • OIDC mix-up: redirect_uri and client mix-ups causing tokens for Client A to be redeemed at Client B
  • PKCE downgrades: missing S256 requirement; accept plain or absent code_verifier
  • State/nonce weaknesses: predictable or missing → CSRF/logical interception of login
  • Device/Backchannel flows: codes and tokens accepted by unintended clients or services

Refresh and Session

  • Refresh token rotation not enforced: reuse old refresh token indefinitely; no reuse detection
  • Long-lived JWTs with no revocation: persistent access post-logout
  • Session fixation: bind new tokens to attacker-controlled session identifiers or cookies

Transport and Storage

  • Token in localStorage/sessionStorage: susceptible to XSS exfiltration; cookie vs header trade-offs with SameSite/CSRF
  • Insecure CORS: wildcard origins with credentialed requests expose tokens and protected responses
  • TLS and cookie flags: missing Secure/HttpOnly; lack of mTLS or DPoP/"cnf" binding permits replay from another device

Advanced Techniques

Microservices and Gateways

  • Audience mismatch: internal services verify signature but ignore aud → accept tokens for other services
  • Header trust: edge or gateway injects X-User-Id; backend trusts it over token claims
  • Asynchronous consumers: workers process messages with bearer tokens but skip verification on replay

JWS Edge Cases

  • Unencoded payload (b64=false) with crit header: libraries mishandle verification paths
  • Nested JWT (JWT-in-JWT) verification order errors; outer token accepted while inner claims ignored

Special Contexts

Mobile

  • Deep-link/redirect handling bugs leak codes/tokens; insecure WebView bridges exposing tokens
  • Token storage in plaintext files/SQLite/Keychain/SharedPrefs; backup/adb accessible

SSO Federation

  • Misconfigured trust between multiple IdPs/SPs, mixed metadata, or stale keys lead to acceptance of foreign tokens

Chaining Attacks

  • XSS → token theft → replay across services with weak audience checks
  • SSRF → fetch private JWKS → sign tokens accepted by internal services
  • Host header poisoning → OIDC redirect_uri poisoning → code capture
  • IDOR in sessions/impersonation endpoints → mint tokens for other users

Testing Methodology

  1. Inventory issuers/consumers - Identity providers, API gateways, services, mobile/web clients
  2. Capture tokens - Access and ID tokens for multiple roles; note header, claims, signature
  3. Map verification endpoints - /.well-known, /jwks.json
  4. Build matrix - Token Type × Audience × Service; attempt cross-use
  5. Mutate components - Headers (alg, kid, jku/x5u/jwk), claims (iss/aud/azp/sub/exp), signatures
  6. Verify enforcement - What is actually checked vs assumed

Validation

  1. Show forged or cross-context token acceptance (wrong alg, wrong audience/issuer, or attacker-signed JWKS)
  2. Demonstrate access token vs ID token confusion at an API
  3. Prove refresh token reuse without rotation detection or revocation
  4. Confirm header abuse (kid/jku/x5u/jwk) leading to key selection under attacker control
  5. Provide owner vs non-owner evidence with identical requests differing only in token context

False Positives

  • Token rejected due to strict audience/issuer enforcement
  • Key pinning with JWKS whitelist and TLS validation
  • Short-lived tokens with rotation and revocation on logout
  • ID token not accepted by APIs that require access tokens

Impact

  • Account takeover and durable session persistence
  • Privilege escalation via claim manipulation or cross-service acceptance
  • Cross-tenant or cross-application data access
  • Token minting by attacker-controlled keys or endpoints

Pro Tips

  1. Pin verification to issuer and audience; log and diff claim sets across services
  2. Attempt RS256→HS256 and "none" first only if algorithm pinning is unclear; otherwise focus on header key control (kid/jku/x5u/jwk)
  3. Test token reuse across all services; many backends only check signature, not audience/typ
  4. Exploit JWKS caching and rotation races; try retired keys and missing kid fallbacks
  5. Exercise OIDC flows with PKCE/state/nonce variants and mixed clients; look for mix-up
  6. Try DPoP/mTLS absence to replay tokens from different devices
  7. Treat refresh as its own surface: rotation, reuse detection, and audience scoping
  8. Validate every acceptance path: gateway, service, worker, WebSocket, and gRPC
  9. Favor minimal PoCs that clearly show cross-context acceptance and durable access
  10. When in doubt, assume verification differs per stack (mobile vs web vs gateway) and test each

Summary

Verification must bind the token to the correct issuer, audience, key, and client context on every acceptance path. Any missing binding enables forgery or confusion.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Strix•JWT 身份认证测试؟

Strix JWT 与 OIDC 安全测试手册,覆盖令牌伪造、算法混淆与声明篡改;触发名:strix-authentication-jwt

لماذا تستخدم Strix•JWT 身份认证测试 على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Strix•JWT 身份认证测试 عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Strix•JWT 身份认证测试 في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/asdfgh1445/ctf-super-hub/tree/main/strix-authentication-jwt. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Strix•JWT 身份认证测试؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Strix•JWT 身份认证测试؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Strix•JWT 身份认证测试 معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Strix•JWT 身份认证测试 مجانية؟

نشرها asdfgh1445 على GitHub. راجع المستودع للاطلاع على شروط الترخيص. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇