Logo di Auditing Kms Key Policy And Envelope Encryption

Auditing Kms Key Policy And Envelope Encryption

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

Verifica le policy di gestione delle chiavi e la progettazione della crittografia envelope per individuare percorsi di decrittazione più ampi del previsto: una policy o una concessione per una chiave che ammette un principal che non dovrebbe mai poter decrittare; una risorsa chiave con carattere jolly in una policy di identità che include chiavi non correlate; un contesto di crittografia non applicato, per cui una chiave dati può decrittare dati al di fuori dell’ambito previsto; oppure una concessione di chiave tra account che amplia l’insieme di chi può decrittare. Riguarda i servizi cloud di gestione delle chiavi, le policy e le concessioni delle chiavi e la crittografia envelope, in cui una chiave dati protegge il payload e la policy della chiave protegge la chiave dati. Usalo quando i dati sono protetti da una chiave gestita e la policy della chiave, insieme al contesto di crittografia, definisce chi può decrittarli. Il principal ammesso dalla policy della chiave è la fonte, l’operazione di decrittazione è la destinazione, e il bug è consentire la decrittazione a qualcuno che non dovrebbe avere accesso ai dati.

Panoramica

Pubblicato daUnboundCompute
Repositorysecurity-agent-skills
Nome della skillauditing-kms-key-policy-and-envelope-encryption
Stelle
27
Fork
8
File inclusi
Solo istruzioni
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da UnboundCompute su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Auditing Kms Key Policy And Envelope Encryption in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-kms-key-policy-and-envelope-encryption
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Auditing Kms Key Policy And Envelope Encryption in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Auditing Kms Key Policy And Envelope Encryption non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Auditing Kms Key Policy And Envelope Encryption non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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.

Domande frequenti

Cosa fa la skill IA Auditing Kms Key Policy And Envelope Encryption?

Verifica le policy di gestione delle chiavi e la progettazione della crittografia envelope per individuare percorsi di decrittazione più ampi del previsto: una policy o una concessione per una chiave che ammette un principal che non dovrebbe mai poter decrittare; una risorsa chiave con carattere jolly in una policy di identità che include chiavi non correlate; un contesto di crittografia non applicato, per cui una chiave dati può decrittare dati al di fuori dell’ambito previsto; oppure una concessione di chiave tra account che amplia l’insieme di chi può decrittare. Riguarda i servizi cloud...

Perché usare Auditing Kms Key Policy And Envelope Encryption su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Auditing Kms Key Policy And Envelope Encryption è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Auditing Kms Key Policy And Envelope Encryption in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-kms-key-policy-and-envelope-encryption. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Auditing Kms Key Policy And Envelope Encryption?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Auditing Kms Key Policy And Envelope Encryption?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Auditing Kms Key Policy And Envelope Encryption: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Auditing Kms Key Policy And Envelope Encryption è gratuita?

Sì. È pubblicata su GitHub da UnboundCompute con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇