Logo von Auditing Kms Key Policy And Envelope Encryption

Auditing Kms Key Policy And Envelope Encryption

Organisation
UnboundCompute
auditing-kms-key-policy-and-envelope-encryption

Prüfen Sie Schlüsselverwaltungsrichtlinien und das Design der Envelope-Verschlüsselung auf einen zu weit gefassten Entschlüsselungspfad: eine Schlüsselrichtlinie oder Berechtigung, die einem Principal das Entschlüsseln erlaubt, der dies niemals dürfen sollte; eine Wildcard-Schlüsselressource in einer Identitätsrichtlinie, die auch unbeteiligte Schlüssel erfasst; ein Verschlüsselungskontext, der nicht durchgesetzt wird, sodass ein Datenschlüssel außerhalb seines vorgesehenen Geltungsbereichs entschlüsselt; sowie eine kontenübergreifende Schlüsselberechtigung, die den Kreis der Entschlüsselungsberechtigten erweitert. Gilt für Cloud-Schlüsselverwaltungsdienste, Schlüsselrichtlinien und Berechtigungen sowie für Envelope-Verschlüsselung, bei der ein Datenschlüssel die Nutzdaten und die Schlüsselrichtlinie den Datenschlüssel schützt. Verwenden Sie diesen Skill, wenn Daten durch einen verwalteten Schlüssel geschützt sind und Schlüsselrichtlinie sowie Verschlüsselungskontext festlegen, wer entschlüsseln darf. Der durch die Schlüsselrichtlinie zugelassene Principal ist die Quelle, der Entschlüsselungsvorgang das Ziel und jeder Entschlüsselungsberechtigte, der nicht zu den vorgesehenen Lesern der Daten gehört, die Schwachstelle.

Übersicht

HerausgeberUnboundCompute
Repositorysecurity-agent-skills
Skill-Nameauditing-kms-key-policy-and-envelope-encryption
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 Kms Key Policy And Envelope Encryption 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-kms-key-policy-and-envelope-encryption
  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-kms-key-policy-and-envelope-encryption .claude/skills/auditing-kms-key-policy-and-envelope-encryption
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Auditing Kms Key Policy And Envelope Encryption 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 Kms Key Policy And Envelope Encryption 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 Kms Key Policy And Envelope Encryption 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 KMS key policy and envelope encryption: who can actually decrypt

Envelope encryption protects data with a data key and protects the data key with a managed master key, so the real access boundary is the master key's policy plus whatever encryption context constrains the data key. That indirection hides over-broad access. A key policy or grant can admit a principal who should never decrypt this data; a wildcard key resource in an identity policy can cover keys the author never considered; and an encryption context, meant to bind a data key to a specific scope, does nothing if the decrypt path does not enforce it. Cross-account grants widen the set further. The payload can be perfectly encrypted while the decrypt set quietly includes the wrong principals. You audit these by computing who can decrypt and comparing that to who should read the data.

When to use

  • Data is protected by a managed key through envelope encryption, with a data key under a master key.
  • Decrypt access is governed by a key policy, key grants, and identity policies that may use wildcards.
  • An encryption context is used to scope a data key, and you need to confirm it is enforced on decrypt.

Scope check

Audit key access only in accounts and key stores you own or are authorized to assess. Confirming a decrypt recovers real plaintext, so stay inside the authorized keys and treat recovered data as sensitive within scope, never exfiltrating it. If you can't name the authorization, stop.

The loop

  1. Establish the data's intended readers first. For the data a key protects, name the principals that legitimately need to decrypt it. This is the false-positive killer: a key policy admitting exactly those readers is correct however sensitive the key is. Name the intended readers, then compute the decrypt set against them.

  2. Read the key policy and grants for who they admit. The master key's policy and any grants name the principals allowed to decrypt. Determine the true admitted set, noting broad principals (an account-wide grant, a wildcard) and any condition intended to scope it. Grants are easy to miss because they live apart from the policy document.

  3. Add identity policies with key wildcards. A principal whose identity policy grants decrypt on a wildcard key resource can decrypt with keys the key policy never named, if the key policy also delegates to identity policies. Expand wildcard key resources against the real key inventory and add every principal they admit to the decrypt set.

  4. Check that the encryption context is enforced. An encryption context binds a data key to a scope (a tenant, a purpose) only if every decrypt call supplies and the policy requires the matching context. If the context is set on encrypt but not required on decrypt, any holder of decrypt permission recovers the data regardless of scope. Confirm the context is a required condition, not a convention.

  5. Resolve cross-account and service grants. A grant to another account or to a service principal widens the decrypt set beyond the key's home account. Confirm each cross-account decrypt grant corresponds to an intended reader and is scoped, not a broad delegation that admits an entire external account.

  6. Confirm and record. Confirm by decrypting the data as a principal that should not be a reader but is admitted by the combined policy, or by decrypting a data key without supplying the intended encryption context, within scope and without exfiltrating plaintext. Kill the lead if the union of key policy, grants, and identity policies admits only intended readers, the encryption context is required on decrypt, and no cross-account grant widens the set beyond intent. Record the admitting term, the decrypt sink, and the decryptor beyond intended readers.

Where KMS and envelope encryption leak

  • The decrypt set is a union, and grants hide. Key policy, grants, and identity policies each add principals; a grant living apart from the policy is the common miss.
  • A wildcard key resource covers unrelated keys. An identity policy granting decrypt on all keys reaches keys the author never considered.
  • An unenforced encryption context scopes nothing. If decrypt does not require the matching context, the data key decrypts outside its intended scope.
  • Cross-account grants widen the set beyond the home account. A broad delegation admits an entire external account to the decrypt path.
  • Encrypted is not the same as access-controlled. Strong encryption with a loose key policy protects the bytes on disk but not against an admitted decryptor.

Worked example (a confirm and a kill)

Confirm. A per-tenant data key is encrypted with a tenant-scoped encryption context, but the decrypt path does not require the context, and an analytics role holds decrypt on the master key. The analytics role decrypts any tenant's data key without supplying that tenant's context, recovering cross-tenant plaintext. Confirmed cross-tenant decrypt through unenforced encryption context, high, remediation = require the tenant encryption context as a condition on every decrypt, scope the analytics role's decrypt to the keys it needs, and confirm the effective decrypt set matches intended readers per tenant.

Kill. The master key policy, grants, and identity policies together admit only the per-tenant service roles, decrypt requires the matching tenant encryption context as a policy condition, and no cross-account grant widens the set. A principal outside a tenant's readers, or a decrypt without the tenant context, is denied. Killed, kill_reason = "combined key policy, grants, and identity policies admit only intended readers, the encryption context is required on decrypt, and no cross-account grant widens access; no unintended principal recovers plaintext."

Rationalizations to reject

  • "The data is encrypted." → Encryption protects the bytes; the key policy decides who decrypts. Compute the decrypt set separately.
  • "The key policy is tight." → Add grants and wildcard identity policies; a grant apart from the policy or a broad identity policy widens the set.
  • "We set an encryption context." → Confirm decrypt requires it; a context set on encrypt but not enforced on decrypt scopes nothing.
  • "It is only shared with a partner account." → A cross-account grant to a whole account admits every principal in it; scope it to the intended reader.
  • "Analytics needs to read across the board." → Broad decrypt on a master key makes analytics a reader of everything it protects; scope to the specific keys and require the context.

Executing this in practice

You need the data's intended readers, the master key policy and grants, identity policies with key wildcards, the encryption context and whether decrypt enforces it, and any cross-account grants. Compute the effective decrypt set as the union and compare it to the readers. Reading the policies and the context requirement shows the intended boundary; decrypting as an unintended-but-admitted principal shows whether it holds.

Related

  • reviewing-secrets-manager-access-policy-trust - the secret side of the same union; a broad decrypt grant here is a back door there, so audit the two together.
  • hunting-non-human-identity-and-secret-reachability - the reachability companion; once the decrypt set is known, that skill traces which identity actually performs the decrypt.
  • finding-crypto-misuse - envelope-encryption design errors beyond access, such as reusing a data key across scopes, are that skill's territory.
  • adjudicating-taint-paths - use it to confirm an admitted principal's credentials reach the decrypt call with or without the required context.
  • FINDING-SCHEMA.md - source = the principal the key policy admits, sink = the decrypt operation, evidence = the decryptor beyond the data's intended readers.

Häufig gestellte Fragen

Was macht der KI-Skill Auditing Kms Key Policy And Envelope Encryption?

Prüfen Sie Schlüsselverwaltungsrichtlinien und das Design der Envelope-Verschlüsselung auf einen zu weit gefassten Entschlüsselungspfad: eine Schlüsselrichtlinie oder Berechtigung, die einem Principal das Entschlüsseln erlaubt, der dies niemals dürfen sollte; eine Wildcard-Schlüsselressource in einer Identitätsrichtlinie, die auch unbeteiligte Schlüssel erfasst; ein Verschlüsselungskontext, der nicht durchgesetzt wird, sodass ein Datenschlüssel außerhalb seines vorgesehenen Geltungsbereichs entschlüsselt; sowie eine kontenübergreifende Schlüsselberechtigung, die den Kreis der Entschlüsselun...

Warum Auditing Kms Key Policy And Envelope Encryption in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Auditing Kms Key Policy And Envelope Encryption 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 Kms Key Policy And Envelope Encryption 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-kms-key-policy-and-envelope-encryption 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 Kms Key Policy And Envelope Encryption 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 Kms Key Policy And Envelope Encryption verwenden?

So viele Sie möchten. In TypingMind können Sie Auditing Kms Key Policy And Envelope Encryption 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 Kms Key Policy And Envelope Encryption 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 👇