Agent skill

Implementing Envelope Encryption With AWS Kms

by mukul975 in mukul975/Anthropic-Cybersecurity-Skills

Implements envelope encryption with AWS KMS, encrypting data locally with a data encryption key (DEK) and protecting that DEK with a KMS-managed key (KEK), covering the encrypt/decrypt flow, KMS key…

Apache-2.0Auto-check passedSecurity

Install Implementing Envelope Encryption With AWS Kms

skills CLI
$ npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill implementing-envelope-encryption-with-aws-kms -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mukul975/Anthropic-Cybersecurity-Skills implementing-envelope-encryption-with-aws-kms --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mukul975/Anthropic-Cybersecurity-Skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/implementing-envelope-encryption-with-aws-kms .claude/skills/implementing-envelope-encryption-with-aws-kms && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
implementing-envelope-encryption-with-aws-kms
GitHub stars
34k
Token cost
~954 tokens
SKILL.md length
401 words
Files
8 (incl. scripts, references, assets)
Skills in repo
637
Repo updated
First seen
Licence
Apache-2.0

At a glance

Implements envelope encryption with AWS KMS, encrypting data locally with a data encryption key (DEK) and protecting that DEK with a KMS-managed key (KEK), covering the encrypt/decrypt flow, KMS key…

  • Works in 5 steps: Call kms:GenerateDataKey to get… → Use plaintext DEK to encrypt data… → Store encrypted DEK alongside ciphertext → …
  • Designing key management for encrypting large
  • SKILL.md covers Overview, When to Use, Prerequisites and Objectives, plus 3 more sections
  • Runs Python scripts from its folder

What it does

Implementing Envelope Encryption With AWS Kms is an agent skill from mukul975/Anthropic-Cybersecurity-Skills. Implements envelope encryption with AWS KMS, encrypting data locally with a data encryption key (DEK) and protecting that DEK with a KMS-managed key (KEK), covering the encrypt/decrypt flow, KMS key types, and security validation criteria. Use when designing key management for encrypting large or numerous data objects on AWS, or when reducing direct KMS API call volume.

Its SKILL.md is about 950 tokens, which your agent loads only when the skill is triggered. The skill folder holds 10 other files, including scripts, reference files and assets (for example `assets/template.md`, `references/api-reference.md` and `references/standards.md`).

It sits in Security, covering Cryptography. It works with Amazon Web Services. The repository describes itself as: 817 structured cybersecurity skills for AI agents · Mapped to 6 frameworks: MITRE ATT&CK, NIST CSF 2.0, MITRE ATLAS, D3FEND, NIST AI RMF & MITRE F3 (Fight Fraud) · agentskills.io…. The licence is Apache-2.0.

When your agent uses it

  • Designing key management for encrypting large
  • Numerous data objects on AWS
  • Reducing direct KMS API call volume

Example prompts

  • “Use the implementing-envelope-encryption-with-aws-kms skill to implement envelope encryption with AWS KMS, encrypting data locally with a data…”
  • “/implementing-envelope-encryption-with-aws-kms”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Call kms:GenerateDataKey to get plaintext DEK + encrypted DEK
  2. Use plaintext DEK to encrypt data locally (AES-256-GCM)
  3. Store encrypted DEK alongside ciphertext
  4. Discard plaintext DEK from memory
  5. For decryption: call kms:Decrypt on encrypted DEK, then decrypt data

What it can do on your machine

Read from SKILL.md and the folder at commit 54a7988. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (Python), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Implementing Envelope Encryption With AWS Kms loads about 954 tokens when it runs, and up to ~2.3k if it reads all its reference files. Until then it costs about 105 tokens; SKILL.md has 401 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~105
When it runs · the whole SKILL.md, loaded when a task matches
~954
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from mukul975/Anthropic-Cybersecurity-Skills at commit 54a7988, republished under its Apache-2.0 licence (© mukul975). 401 words, ~954 tokens.

Download SKILL.mdSave it as .claude/skills/implementing-envelope-encryption-with-aws-kms/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.
name
implementing-envelope-encryption-with-aws-kms
description
Implements envelope encryption with AWS KMS, encrypting data locally with a data encryption key (DEK) and protecting that DEK with a KMS-managed key (KEK), covering the encrypt/decrypt flow, KMS key types, and security validation criteria. Use when designing key management for encrypting large or numerous data objects on AWS, or when reducing direct KMS API call volume.
domain
cybersecurity
subdomain
cryptography
tags
cryptography, encryption, aws, kms, envelope-encryption, key-management
version
1.0
author
mahipal
license
Apache-2.0
nist_csf
PR.DS-01, PR.DS-02, PR.DS-10
mitre_attack
T1600, T1573, T1553, T1078.004, T1530

Implementing Envelope Encryption with AWS KMS

Overview

Envelope encryption is a strategy where data is encrypted with a data encryption key (DEK), and the DEK itself is encrypted with a master key (KEK) managed by AWS KMS. This approach allows encrypting large volumes of data locally while keeping the master key secure in a hardware security module (HSM) managed by AWS. This skill covers implementing envelope encryption using AWS KMS GenerateDataKey API.

When to Use

  • When deploying or configuring implementing envelope encryption with aws kms capabilities in your environment
  • When establishing security controls aligned to compliance requirements
  • When building or improving security architecture for this domain
  • When conducting security assessments that require this implementation

Prerequisites

  • Familiarity with cryptography concepts and tools
  • Access to a test or lab environment for safe execution
  • Python 3.8+ with required dependencies installed
  • Appropriate authorization for any testing activities

Objectives

  • Understand the envelope encryption pattern and its advantages
  • Generate data encryption keys using AWS KMS GenerateDataKey
  • Encrypt/decrypt data locally using DEKs
  • Store encrypted DEK alongside ciphertext
  • Implement key caching to reduce KMS API calls
  • Handle key rotation with automatic re-encryption
  • Implement multi-region encryption for disaster recovery

Key Concepts

Envelope Encryption Flow
  1. Call kms:GenerateDataKey to get plaintext DEK + encrypted DEK
  2. Use plaintext DEK to encrypt data locally (AES-256-GCM)
  3. Store encrypted DEK alongside ciphertext
  4. Discard plaintext DEK from memory
  5. For decryption: call kms:Decrypt on encrypted DEK, then decrypt data
Show full SKILL.md (165 more words)Show less
Advantages Over Direct KMS Encryption
AspectDirect KMSEnvelope Encryption
Max data size4 KBUnlimited
LatencyNetwork round-trip per operationLocal encryption
Cost$0.03/10,000 requestsFewer KMS requests
OfflineNot possibleYes (with cached DEKs)
KMS Key Types
  • AWS Managed: AWS creates and manages (aws/s3, aws/ebs)
  • Customer Managed: You create and manage policies
  • Custom Key Store: Backed by CloudHSM cluster

Security Considerations

  • Never store plaintext DEK; only keep encrypted DEK
  • Use key policies to restrict who can call GenerateDataKey and Decrypt
  • Enable AWS CloudTrail logging for all KMS API calls
  • Implement key rotation (automatic annual rotation for CMKs)
  • Use encryption context for authenticated encryption metadata
  • Handle KMS throttling with exponential backoff

Validation Criteria

  • GenerateDataKey returns plaintext and encrypted DEK
  • Data encrypts correctly with plaintext DEK using AES-256-GCM
  • Encrypted DEK can be decrypted via KMS Decrypt API
  • Decrypted DEK recovers the original data
  • Plaintext DEK is wiped from memory after use
  • Encryption context is validated during decryption
  • Key rotation re-encrypts DEKs with new master key

© mukul975, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 7 other files (scripts, references, assets) in skills/implementing-envelope-encryption-with-aws-kms of mukul975/Anthropic-Cybersecurity-Skills.

  • SKILL.md
  • LICENSE
  • assets/template.md
  • references/api-reference.md
  • references/standards.md
  • references/workflows.md
  • scripts/agent.py
  • scripts/process.py

Open the folder on GitHubat commit 54a7988

Compare with similar skills

Implementing Envelope Encryption With AWS Kms next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Implementing Envelope Encryption With AWS Kms compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Implementing Envelope Encryption With AWS Kms this skillmukul975/Anthropic-Cybersecurity-Skills34k—~954Automated safety check: PassApache-2.0
External SignerNethereum/Nethereum2.3k—~2.3kAutomated safety check: PassMIT
Credentialsalinaqi/maggy707—~2.4kAutomated safety check: NotesMIT
Hashicorp VaultBagelHole/DevOps-Security-Agent-Skills1.1k—~2kAutomated safety check: PassMIT
AWS SDK Java V2 Kmsgiuseppe-trisciuoglio/developer-kit3551 repos~3.6kAutomated safety check: NotesMIT
Sops EncryptionBagelHole/DevOps-Security-Agent-Skills1.1k—~539Automated safety check: PassMIT

Similar skills

  • External Signer

    Nethereum/Nethereum

    Help users own an ERC-4337 smart account whose ECDSA key never lives in the application process — sign UserOperations with AWS KMS, Azure Key Vault, an HSM, a Ledger, or a Trezor instead of an…

    2.3k GitHub stars~2.3k tokensUpdated 3 days ago
    SecurityAuto-check passed
  • Credentials

    alinaqi/maggy

    Centralized API key management from Access.txt. An agent skill from alinaqi/maggy.

    707 GitHub stars~2.4k tokensUpdated 14 days ago
    SecurityAuto-check: notes
  • Hashicorp Vault

    BagelHole/DevOps-Security-Agent-Skills

    Manage secrets and PKI with HashiCorp Vault. An agent skill from BagelHole/DevOps-Security-Agent-Skills.

    1.1k GitHub stars~2k tokensUpdated 4 mo ago
    DevOps & CloudAuto-check passed
  • AWS SDK Java V2 Kms

    giuseppe-trisciuoglio/developer-kit

    Provides AWS Key Management Service (KMS) patterns using AWS SDK for Java 2.x.

    355 GitHub starsUsed in 1 repo~3.6k tokens
    Backend & APIsAuto-check: notes
  • Sops Encryption

    BagelHole/DevOps-Security-Agent-Skills

    Encrypt files and configs with Mozilla SOPS. An agent skill from BagelHole/DevOps-Security-Agent-Skills.

    1.1k GitHub stars~539 tokensUpdated 4 mo ago
    DevOps & CloudAuto-check passed
  • Bom Explore

    cdxgen/cdxgen

    Explores and triages a CycloneDX BOM interactively with the cdxi REPL, using built-in commands for dependency trees, licenses, services, cryptographic assets, audit findings, evidence occurrences…

    1.1k GitHub stars~1.2k tokensUpdated yesterday
    SecurityAuto-check passed

More from mukul975/Anthropic-Cybersecurity-Skills

All 637 skills in this repo
  • Campaign Attribution Evidence Analysis

    mukul975/Anthropic-Cybersecurity-Skills

    Weighs infrastructure, TTP, malware code and timing evidence with the Diamond Model and competing hypotheses to reach a confidence-rated attribution.

    34k GitHub stars~2.3k tokensUpdated 1 mo ago
    Auto-check passed
  • Go Malware Analysis in Ghidra

    mukul975/Anthropic-Cybersecurity-Skills

    Walks through reverse engineering Go-compiled malware in Ghidra: parsing buildinfo and pclntab, recovering stripped function names and extracting dependencies.

    34k GitHub stars~2.8k tokensUpdated 1 mo ago
    Auto-check passed
  • LNK and Jump List Forensics

    mukul975/Anthropic-Cybersecurity-Skills

    Guides forensic analysis of Windows LNK shortcut files and Jump Lists with LECmd, JLECmd and manual parsing to show file access and program execution.

    34k GitHub stars~2.8k tokensUpdated 1 mo ago
    Auto-check passed
  • Malware Persistence Analysis with Autoruns

    mukul975/Anthropic-Cybersecurity-Skills

    Hunts Windows malware persistence with Sysinternals Autoruns, covering run keys, services, scheduled tasks and drivers, with baseline comparison.

    34k GitHub stars~1.2k tokensUpdated 1 mo ago
    Auto-check passed
  • NTFS MFT Deleted File Recovery

    mukul975/Anthropic-Cybersecurity-Skills

    Guides a Windows forensic examination of the NTFS Master File Table to recover deleted-file evidence, build timelines and spot timestomping.

    34k GitHub stars~2.7k tokensUpdated 1 mo ago
    Auto-check passed
  • Network Covert Channel Analysis

    mukul975/Anthropic-Cybersecurity-Skills

    Detects DNS tunneling, ICMP exfiltration and HTTP-based covert channels in packet captures and DNS logs when hunting for hidden command-and-control traffic.

    34k GitHub stars~2k tokensUpdated 1 mo ago
    Auto-check passed

Categories

Questions about Implementing Envelope Encryption With AWS Kms

What does Implementing Envelope Encryption With AWS Kms do?

Implements envelope encryption with AWS KMS, encrypting data locally with a data encryption key (DEK) and protecting that DEK with a KMS-managed key (KEK), covering the encrypt/decrypt flow, KMS key…. Implementing Envelope Encryption With AWS Kms is an agent skill from mukul975/Anthropic-Cybersecurity-Skills. Implements envelope encryption with AWS KMS, encrypting data locally with a data encryption key (DEK) and protecting that DEK with a KMS-managed key (KEK), covering the encrypt/decrypt flow, KMS key types, and security validation criteria.

When should I use Implementing Envelope Encryption With AWS Kms?

Implementing Envelope Encryption With AWS Kms fits situations like: designing key management for encrypting large; numerous data objects on AWS; reducing direct KMS API call volume.

How do I install Implementing Envelope Encryption With AWS Kms in Claude Code?

Run `npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill implementing-envelope-encryption-with-aws-kms -a claude-code`. Or copy the skill folder (skills/implementing-envelope-encryption-with-aws-kms in mukul975/Anthropic-Cybersecurity-Skills) into .claude/skills/implementing-envelope-encryption-with-aws-kms in your project. Claude Code loads it when a task matches its description.

How do I install Implementing Envelope Encryption With AWS Kms in Codex?

Run `npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill implementing-envelope-encryption-with-aws-kms -a codex`. Or copy the skill folder (skills/implementing-envelope-encryption-with-aws-kms in mukul975/Anthropic-Cybersecurity-Skills) into .agents/skills/implementing-envelope-encryption-with-aws-kms in your project. Codex loads it when a task matches its description.

Can I use Implementing Envelope Encryption With AWS Kms in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill implementing-envelope-encryption-with-aws-kms -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/implementing-envelope-encryption-with-aws-kms, .gemini/skills/implementing-envelope-encryption-with-aws-kms, .github/skills/implementing-envelope-encryption-with-aws-kms and .opencode/skills/implementing-envelope-encryption-with-aws-kms in your project.

What does Implementing Envelope Encryption With AWS Kms need to run?

Going by SKILL.md and its folder, Implementing Envelope Encryption With AWS Kms needs Python for the scripts in its folder. Our summary lists: Python 3.

Does Implementing Envelope Encryption With AWS Kms access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Implementing Envelope Encryption With AWS Kms safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Implementing Envelope Encryption With AWS Kms use?

Implementing Envelope Encryption With AWS Kms is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Implementing Envelope Encryption With AWS Kms use?

About 954 tokens (SKILL.md is roughly 3.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.3k tokens, read only when the agent opens those files.

What are the alternatives to Implementing Envelope Encryption With AWS Kms?

Skills that share tags, products or a category with Implementing Envelope Encryption With AWS Kms: External Signer (Nethereum/Nethereum, 2.3k stars), Credentials (alinaqi/maggy, 707 stars), Hashicorp Vault (BagelHole/DevOps-Security-Agent-Skills, 1.1k stars) and AWS SDK Java V2 Kms (giuseppe-trisciuoglio/developer-kit, 355 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Implementing Envelope Encryption With AWS Kms?

mukul975 (a GitHub user) maintains it in mukul975/Anthropic-Cybersecurity-Skills, which has 33,922 GitHub stars. The repository holds 637 skills in this directory. The repository was last updated on August 31, 2026.

Source: mukul975/Anthropic-Cybersecurity-Skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.