Logo von Auditing Jwt Verification And Key Trust

Auditing Jwt Verification And Key Trust

Organisation
UnboundCompute
auditing-jwt-verification-and-key-trust

Prüfen Sie, wie ein Dienst JSON Web Tokens auf die klassischen Umgehungsmöglichkeiten bei der Verifizierung prüft: einen Angriff durch Algorithmusverwechslung, bei dem ein Token den Signaturalgorithmus wechselt, sodass ein öffentlicher Schlüssel als symmetrisches Geheimnis verwendet oder der Algorithmus auf none gesetzt wird; einen Schlüssel, der anhand eines vom Angreifer kontrollierbaren Headers ausgewählt wird (Key-ID, JWKS-URL oder eingebetteter Schlüssel), sodass das Token seinen eigenen Signierer angibt; eine Signatur, die zwar dekodiert, aber nicht tatsächlich verifiziert wird; sowie Claims (Ablaufzeit, Aussteller, Audience), die zwar eingelesen, aber nicht durchgesetzt werden. Gilt für Dienste, die JWTs zur Authentifizierung oder Autorisierung eines Aufrufers akzeptieren und verifizieren. Verwenden Sie diesen Skill, wenn ein JWT als Zugangsdaten dient und seine Verifizierung die Sicherheitsgrenze bildet. Das gefälschte oder nicht verifizierte Token ist die Quelle, die dadurch gewährte authentifizierte oder autorisierte Aktion das Ziel und die akzeptierte Algorithmusverwechslung, der vom Angreifer gewählte Schlüssel oder der nicht verifizierte Claim die Schwachstelle.

Übersicht

HerausgeberUnboundCompute
Repositorysecurity-agent-skills
Skill-Nameauditing-jwt-verification-and-key-trust
Sterne
27
Forks
8
Mitgelieferte Dateien
Nur Anweisungen
LizenzMIT
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • In sich abgeschlossen

    Alles, was das Modell braucht, steht in den Anweisungen — keine zusätzlichen Dateien zum Synchronisieren.

  • Open Source

    Von UnboundCompute auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill Auditing Jwt Verification And Key Trust in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner. Dabei liest die App SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-jwt-verification-and-key-trust
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill hinzufügen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format unterstützt, kann diesen Skill nutzen. Kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/UnboundCompute/security-agent-skills.git /tmp/security-agent-skills
mkdir -p .claude/skills
cp -r /tmp/security-agent-skills/skills/auditing-jwt-verification-and-key-trust .claude/skills/auditing-jwt-verification-and-key-trust
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Auditing Jwt Verification And Key Trust in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Auditing Jwt Verification And Key Trust automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Auditing Jwt Verification And Key Trust nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Schlüsseln.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

Auditing JWT verification and key trust: the token names its own signer unless you stop it

A JSON Web Token is a signed claim, and its security is entirely in how the verifier checks the signature and the claims. The failures are a small, famous set, and they recur because the token itself carries the parameters an attacker wants to control. The algorithm lives in the token header, so a verifier that trusts it can be steered into algorithm confusion, verifying an RS256 token as HS256 using the public key as the shared secret, or accepting an algorithm of none with no signature at all. The key can be selected from the header too, a key id, a JWKS URL, or an embedded key, so a token can name a signer the attacker controls. A verifier that decodes the token and reads the claims but never actually checks the signature accepts anything. And a verifier that checks the signature but not the expiry, issuer, and audience honors expired or wrong-context tokens. The audit pins the algorithm and key on the server side and confirms the signature and claims are enforced. You audit this by presenting manipulated tokens and confirming each is refused.

When to use

  • A service accepts JWTs and verifies them to authenticate or authorize a caller.
  • The signing algorithm or key may be chosen from token-supplied fields (alg, kid, jku, embedded key).
  • Claims such as expiry, issuer, and audience may be parsed but not enforced during verification.

Scope check

Test JWT verification only against services you own or are authorized to assess, on non-production tokens and accounts. Forging tokens attempts real authentication, so use non-production credentials and never use a forged token to reach real data. If you can't name the authorization, stop.

The loop

  1. Establish the intended algorithm and key first. Name the exact algorithm the service should accept and the specific key or key set it should verify against, both fixed on the server side. This is the false-positive killer: a verifier that pins the algorithm, selects the key from server configuration or a pinned trusted key set, verifies the signature, and enforces expiry, issuer, and audience is correct. Name the intended algorithm and key, then test manipulation.

  2. Test algorithm confusion and none. Present a token whose header switches the algorithm: an RS256 token re-signed as HS256 using the public key as the secret, and a token with the algorithm set to none and no signature. Confirm the verifier rejects any algorithm other than the one it expects and never accepts none. A verifier that honors the header's algorithm is steerable into using the wrong verification path.

  3. Test attacker-chosen key selection. Check whether the key is selected from a token-supplied field: a key id that indexes an attacker-influenceable store or path, a JWKS URL the token names so the server fetches the attacker's key, or an embedded key the token carries. Present tokens that manipulate each and confirm the server ignores token-supplied key hints and uses only its pinned trusted keys.

  4. Confirm the signature is actually verified. Confirm the code verifies the signature rather than merely decoding the token and reading claims. Present a token with a valid structure but an invalid signature and confirm it is rejected. A decode-without-verify path accepts any well-formed token regardless of signature.

  5. Check claim enforcement. Confirm the verifier enforces expiry (and not-before), issuer, and audience, not just parses them. Present an expired token, one from the wrong issuer, and one for a different audience, and confirm each is refused. A signature-valid token with an unenforced claim is honored outside its intended time or context.

  6. Confirm and record. Confirm by getting a manipulated token accepted, an algorithm-confused or none token, one signed by an attacker-named key, one with an unverified signature, or an expired or wrong-audience token, on non-production accounts and without reaching real data. Kill the lead if the verifier pins the algorithm, uses only server-side trusted keys, verifies the signature, and enforces expiry, issuer, and audience. Record the forged token, the authenticated or authorized action sink, and the algorithm confusion, attacker-chosen key, or unverified claim that accepted it.

Where JWT verification leaks

  • Algorithm from the header enables confusion. Trusting the token's algorithm allows RS256-to-HS256 confusion using the public key as the secret, or an algorithm of none with no signature.
  • Key from the token names its own signer. A key id, a JWKS URL, or an embedded key taken from the token lets an attacker point verification at a key they control.
  • Decode is not verify. Reading the claims without checking the signature accepts any well-formed token.
  • Parsed claims are not enforced claims. Expiry, issuer, and audience read but not checked honor expired or wrong-context tokens.
  • A valid signature is not sufficient authorization. A correctly signed token still must match the expected issuer, audience, and time to authorize this action.

Worked example (a confirm and a kill)

Confirm. A service verifies RS256 tokens but selects the verification algorithm from the token header. A token re-signed as HS256, using the service's known public key as the HMAC secret, is accepted because the verifier runs the HMAC path with the public key. The forged token authenticates as an arbitrary user. Confirmed JWT algorithm-confusion authentication bypass, critical, remediation = pin the accepted algorithm to exactly RS256 on the server, reject any other algorithm and none, and never derive the verification key or algorithm from token-supplied fields.

Kill. The verifier accepts only the one configured algorithm, rejects none and any mismatch, selects the key solely from a pinned trusted key set ignoring the token's key id, JWKS URL, and embedded key, verifies the signature on every token, and enforces expiry, issuer, and audience. An algorithm-confused, wrong-key, unsigned, expired, or wrong-audience token is refused. Killed, kill_reason = "algorithm pinned, key taken only from server-side trusted set, signature verified, and claims enforced; no manipulated token authenticates."

Rationalizations to reject

  • "The library verifies the token." → Confirm it pins the algorithm and ignores token-supplied keys; many verify paths honor the header's algorithm and key hints unless configured not to.
  • "We use RS256." → Confirm the server rejects a token that claims HS256 or none; accepting the header's algorithm is exactly the confusion attack.
  • "The key id tells us which key." → A token-supplied key id, JWKS URL, or embedded key is attacker input; select the key from your trusted set, never from the token.
  • "We read the claims." → Reading is not verifying; confirm the signature is checked and expiry, issuer, and audience are enforced, not just parsed.
  • "The signature is valid." → A valid signature proves origin, not context; enforce issuer, audience, and expiry so the token authorizes only this action now.

Executing this in practice

You need the algorithm the service accepts, how the verification key is selected, whether the signature is actually verified, and which claims are enforced. For each, present an algorithm-confused or none token, a token naming an attacker-controlled key, an invalid-signature token, and expired and wrong-audience tokens. Reading the verification code shows the intended pinning; a manipulated token accepted shows whether it holds.

Related

  • auditing-oauth-token-audience-and-scope-trust - the audience and scope layer above verification; a token must verify here before its audience and scope can be trusted there.
  • auditing-saml-and-oidc-federation-trust - OIDC ID tokens are JWTs, so this verification is the mechanism underneath that skill's issuer and audience checks.
  • auditing-webhook-authenticity-and-callback-trust - signed webhooks share the verify-the-signature-and-the- claims discipline; the same decode-without-verify and key-trust mistakes appear there.
  • hunting-non-human-identity-and-secret-reachability - the signing key is a high-value secret; that skill traces who can reach it, which decides whether forgery is even needed.
  • FINDING-SCHEMA.md - source = the forged or unverified token, sink = the authenticated or authorized action it grants, evidence = the algorithm confusion, attacker-chosen key, or unverified claim that accepted it.

Häufig gestellte Fragen

Was macht der KI-Skill Auditing Jwt Verification And Key Trust?

Prüfen Sie, wie ein Dienst JSON Web Tokens auf die klassischen Umgehungsmöglichkeiten bei der Verifizierung prüft: einen Angriff durch Algorithmusverwechslung, bei dem ein Token den Signaturalgorithmus wechselt, sodass ein öffentlicher Schlüssel als symmetrisches Geheimnis verwendet oder der Algorithmus auf none gesetzt wird; einen Schlüssel, der anhand eines vom Angreifer kontrollierbaren Headers ausgewählt wird (Key-ID, JWKS-URL oder eingebetteter Schlüssel), sodass das Token seinen eigenen Signierer angibt; eine Signatur, die zwar dekodiert, aber nicht tatsächlich verifiziert wird; sowie...

Warum Auditing Jwt Verification And Key Trust in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Auditing Jwt Verification And Key Trust besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Auditing Jwt Verification And Key Trust in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-jwt-verification-and-key-trust ein. TypingMind liest die Datei SKILL.md und installiert den Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Auditing Jwt Verification And Key Trust nutzen?

Jedes Modell, das Sie mit TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Auditing Jwt Verification And Key Trust verwenden?

So viele Sie möchten. In TypingMind können Sie Auditing Jwt Verification And Key Trust mit jedem Modell verwenden, das Skills unterstützt, etwa mit GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama. Dabei nutzen Sie Ihre eigenen API-Schlüssel.

Ist der KI-Skill Auditing Jwt Verification And Key Trust kostenlos?

Ja. Der Skill wird von UnboundCompute auf GitHub unter der Lizenz MIT veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: Die Datei SKILL.md enthält den Namen und die Beschreibung des Skills. Hinzu kommen bei Bedarf Skripte, Vorlagen oder Referenzdateien für das Modell. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und kommen daher ohne Server, API-Schlüssel und Laufzeitumgebung aus. Sie funktionieren mit jedem Modell.

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇