[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7E464VDRKDEV5Q182ZZ3WMV":3,"skill-same:01M7E464VDRKDEV5Q182ZZ3WMV":99},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M7E464VDRKDEV5Q182ZZ3WMV","implementing-aes-encryption-for-data-at-rest",null,"Guides implementing AES-256 encryption in GCM mode (FIPS 197) for files and data stores at rest, covering key derivation, IV\u002Fnonce management, and authenticated encryption. Use when deploying or configuring encryption for data at rest, establishing controls to meet compliance requirements, or reviewing an implementation during a security assessment.","sanjeevafk\u002Fagent-skills","sanjeevafk","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F230678117?v=4","01M7C540EFY46ETG1NNWKS5X3Q","Sanjeev","01M7C540F366J5C1D587BMKH9Q",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fimplementing-aes-encryption-for-data-at-rest\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fimplementing-aes-encryption-for-data-at-rest\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: implementing-aes-encryption-for-data-at-rest\ndescription: Guides implementing AES-256 encryption in GCM mode (FIPS 197) for files and data stores at rest, covering key derivation, IV\u002Fnonce management, and authenticated encryption. Use when deploying or configuring encryption for data at rest, establishing controls to meet compliance requirements, or reviewing an implementation during a security assessment.\ndomain: cybersecurity\nsubdomain: cryptography\ntags:\n- cryptography\n- encryption\n- aes\n- data-at-rest\n- symmetric-encryption\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- PR.DS-01\n- PR.DS-02\n- PR.DS-10\nmitre_attack:\n- T1600\n- T1573\n- T1553\n- T1486\n---\n# Implementing AES Encryption for Data at Rest\n\n## Overview\n\nAES (Advanced Encryption Standard) is a symmetric block cipher standardized by NIST (FIPS 197) used to protect classified and sensitive data. This skill covers implementing AES-256 encryption in GCM mode for encrypting files and data stores at rest, including proper key derivation, IV\u002Fnonce management, and authenticated encryption.\n\n\n## When to Use\n\n- When deploying or configuring implementing aes encryption for data at rest capabilities in your environment\n- When establishing security controls aligned to compliance requirements\n- When building or improving security architecture for this domain\n- When conducting security assessments that require this implementation\n\n## Prerequisites\n\n- Familiarity with cryptography concepts and tools\n- Access to a test or lab environment for safe execution\n- Python 3.8+ with required dependencies installed\n- Appropriate authorization for any testing activities\n\n## Objectives\n\n- Implement AES-256-GCM encryption and decryption for files\n- Derive encryption keys from passwords using PBKDF2 and Argon2\n- Manage initialization vectors (IVs) and nonces securely\n- Encrypt and decrypt entire directory trees\n- Implement authenticated encryption to detect tampering\n- Handle large files with streaming encryption\n\n## Key Concepts\n\n### AES Modes of Operation\n\n| Mode | Authentication | Parallelizable | Use Case |\n|------|---------------|----------------|----------|\n| GCM  | Yes (AEAD)    | Yes            | Network data, file encryption |\n| CBC  | No            | Decrypt only   | Legacy systems, disk encryption |\n| CTR  | No            | Yes            | Streaming encryption |\n| CCM  | Yes (AEAD)    | No             | IoT, constrained environments |\n\n### Key Derivation\n\nNever use raw passwords as encryption keys. Always derive keys using:\n- **PBKDF2**: NIST-approved, widely supported (minimum 600,000 iterations as of 2024)\n- **Argon2id**: Winner of Password Hashing Competition, memory-hard\n- **scrypt**: Memory-hard, good alternative to Argon2\n\n### Nonce\u002FIV Management\n\n- GCM requires a 96-bit (12-byte) nonce that must NEVER be reused with the same key\n- Generate nonces using `os.urandom()` (CSPRNG)\n- Store nonce alongside ciphertext (it is not secret)\n\n## Workflow\n\n1. Install the `cryptography` library: `pip install cryptography`\n2. Generate or derive an encryption key\n3. Create a random nonce for each encryption operation\n4. Encrypt data using AES-256-GCM with the key and nonce\n5. Store nonce + ciphertext + authentication tag together\n6. For decryption, extract nonce, verify tag, and decrypt\n\n## Encrypted File Format\n\n```\n[salt: 16 bytes][nonce: 12 bytes][ciphertext: variable][tag: 16 bytes]\n```\n\n## Security Considerations\n\n- Always use authenticated encryption (GCM, CCM) to prevent tampering\n- Never reuse a nonce with the same key (catastrophic in GCM)\n- Use at least 256-bit keys for long-term data protection\n- Securely wipe keys from memory after use when possible\n- Rotate encryption keys periodically per organizational policy\n- For disk-level encryption, consider XTS mode (AES-XTS)\n\n## Validation Criteria\n\n- [ ] AES-256-GCM encryption produces valid ciphertext\n- [ ] Decryption recovers original plaintext exactly\n- [ ] Authentication tag detects any ciphertext modification\n- [ ] Key derivation uses sufficient iterations\u002Fparameters\n- [ ] Nonces are never reused for the same key\n- [ ] Large files (>1GB) can be processed via streaming\n- [ ] Encrypted file format includes all necessary metadata\n","# Implementing AES Encryption for Data at Rest\n\n## Overview\n\nAES (Advanced Encryption Standard) is a symmetric block cipher standardized by NIST (FIPS 197) used to protect classified and sensitive data. This skill covers implementing AES-256 encryption in GCM mode for encrypting files and data stores at rest, including proper key derivation, IV\u002Fnonce management, and authenticated encryption.\n\n\n## When to Use\n\n- When deploying or configuring implementing aes encryption for data at rest capabilities in your environment\n- When establishing security controls aligned to compliance requirements\n- When building or improving security architecture for this domain\n- When conducting security assessments that require this implementation\n\n## Prerequisites\n\n- Familiarity with cryptography concepts and tools\n- Access to a test or lab environment for safe execution\n- Python 3.8+ with required dependencies installed\n- Appropriate authorization for any testing activities\n\n## Objectives\n\n- Implement AES-256-GCM encryption and decryption for files\n- Derive encryption keys from passwords using PBKDF2 and Argon2\n- Manage initialization vectors (IVs) and nonces securely\n- Encrypt and decrypt entire directory trees\n- Implement authenticated encryption to detect tampering\n- Handle large files with streaming encryption\n\n## Key Concepts\n\n### AES Modes of Operation\n\n| Mode | Authentication | Parallelizable | Use Case |\n|------|---------------|----------------|----------|\n| GCM  | Yes (AEAD)    | Yes            | Network data, file encryption |\n| CBC  | No            | Decrypt only   | Legacy systems, disk encryption |\n| CTR  | No            | Yes            | Streaming encryption |\n| CCM  | Yes (AEAD)    | No             | IoT, constrained environments |\n\n### Key Derivation\n\nNever use raw passwords as encryption keys. Always derive keys using:\n- **PBKDF2**: NIST-approved, widely supported (minimum 600,000 iterations as of 2024)\n- **Argon2id**: Winner of Password Hashing Competition, memory-hard\n- **scrypt**: Memory-hard, good alternative to Argon2\n\n### Nonce\u002FIV Management\n\n- GCM requires a 96-bit (12-byte) nonce that must NEVER be reused with the same key\n- Generate nonces using `os.urandom()` (CSPRNG)\n- Store nonce alongside ciphertext (it is not secret)\n\n## Workflow\n\n1. Install the `cryptography` library: `pip install cryptography`\n2. Generate or derive an encryption key\n3. Create a random nonce for each encryption operation\n4. Encrypt data using AES-256-GCM with the key and nonce\n5. Store nonce + ciphertext + authentication tag together\n6. For decryption, extract nonce, verify tag, and decrypt\n\n## Encrypted File Format\n\n```\n[salt: 16 bytes][nonce: 12 bytes][ciphertext: variable][tag: 16 bytes]\n```\n\n## Security Considerations\n\n- Always use authenticated encryption (GCM, CCM) to prevent tampering\n- Never reuse a nonce with the same key (catastrophic in GCM)\n- Use at least 256-bit keys for long-term data protection\n- Securely wipe keys from memory after use when possible\n- Rotate encryption keys periodically per organizational policy\n- For disk-level encryption, consider XTS mode (AES-XTS)\n\n## Validation Criteria\n\n- [ ] AES-256-GCM encryption produces valid ciphertext\n- [ ] Decryption recovers original plaintext exactly\n- [ ] Authentication tag detects any ciphertext modification\n- [ ] Key derivation uses sufficient iterations\u002Fparameters\n- [ ] Nonces are never reused for the same key\n- [ ] Large files (>1GB) can be processed via streaming\n- [ ] Encrypted file format includes all necessary metadata\n",{"name":5,"tags":25,"author":31,"domain":32,"license":15,"version":33,"nist_csf":34,"subdomain":26,"description":7,"mitre_attack":38},[26,27,28,29,30],"cryptography","encryption","aes","data-at-rest","symmetric-encryption","mahipal","cybersecurity","1.0",[35,36,37],"PR.DS-01","PR.DS-02","PR.DS-10",[39,40,41,42],"T1600","T1573","T1553","T1486","main","4e084e84eb42fc53e144c89c0f7f48b39c8a4b0f","collections\u002Fcybersecurity-skills\u002Fskills\u002Fimplementing-aes-encryption-for-data-at-rest",1,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills","https:\u002F\u002Fgithub.com\u002Fsanjeevafk","First make it work. Then make it right. Then make it fast.","2026-11-14 13:36:16",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add sanjeevafk\u002Fagent-skills --skill implementing-aes-encryption-for-data-at-rest",{"tool":57,"command":58},"bunx","bunx skills add sanjeevafk\u002Fagent-skills --skill implementing-aes-encryption-for-data-at-rest",{"tool":60,"command":61},"pnpm","pnpm dlx skills add sanjeevafk\u002Fagent-skills --skill implementing-aes-encryption-for-data-at-rest","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fimplementing-aes-encryption-for-data-at-rest\u002FSKILL.md",true,[65,71,75,81,85,89,95],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"assets\u002Ftemplate.md","ASSET","资产文件",2977,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fimplementing-aes-encryption-for-data-at-rest\u002Fassets\u002Ftemplate.md",{"path":72,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":74,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":76,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Fapi-reference.md","REFERENCE","参考文档",1854,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fimplementing-aes-encryption-for-data-at-rest\u002Freferences\u002Fapi-reference.md",{"path":82,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":83,"sourceHtmlUrl":84},"references\u002Fstandards.md",3334,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fimplementing-aes-encryption-for-data-at-rest\u002Freferences\u002Fstandards.md",{"path":86,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":87,"sourceHtmlUrl":88},"references\u002Fworkflows.md",2963,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fimplementing-aes-encryption-for-data-at-rest\u002Freferences\u002Fworkflows.md",{"path":90,"resourceType":91,"resourceTypeDesc":92,"sizeBytes":93,"sourceHtmlUrl":94},"scripts\u002Fagent.py","SCRIPT","脚本",5383,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fimplementing-aes-encryption-for-data-at-rest\u002Fscripts\u002Fagent.py",{"path":96,"resourceType":91,"resourceTypeDesc":92,"sizeBytes":97,"sourceHtmlUrl":98},"scripts\u002Fprocess.py",11679,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fimplementing-aes-encryption-for-data-at-rest\u002Fscripts\u002Fprocess.py",[100,108,116,124,132,139],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":104,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":20},"01M7EFHX67M3KKXT1BXVPA5ADT","zarr-python","Chunked N-D arrays for cloud storage (Zarr-Python 3). Compressed arrays, parallel I\u002FO, S3\u002FGCS via fsspec, NumPy\u002FDask\u002FXarray compatible, for large-scale scientific computing pipelines.","MIT","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":104,"licenseFileUrl":112,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":20},"01M7EFFQGM51TZBGRENXY50ZYM","whiteboard-diagrams","Create accurate, simple, hand-drawn whiteboard diagrams from a user's process, system, architecture, learning workflow, comparison, or causal explanation. Use when the user asks for a scribbly whiteboard visual, educational workflow graphic, hand-drawn explainer, or diagram like the bundled reference; ask one focused clarification question when the subject or relationships are missing, then generate and visually verify the final image.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwhiteboard-diagrams\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwhiteboard-diagrams\u002FSKILL.md",[],[],{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":120,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":20},"01M7EFF1CSQNTDMHFK4ZGY6NYK","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":128,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":20},"01M7EFE8106X6C28FT8PA74427","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-artifacts-builder\u002FSKILL.md",[],[],{"skillNo":133,"name":134,"nameZh":6,"description":135,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":104,"licenseFileUrl":6,"sourceHtmlUrl":136,"categories":137,"keywords":138,"publishedAt":20},"01M7EFCSNZM9G7ZHS6F127Q71X","verification-loop","A comprehensive verification system for Claude Code sessions.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fverification-loop\u002FSKILL.md",[],[],{"skillNo":140,"name":141,"nameZh":6,"description":142,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":104,"licenseFileUrl":143,"sourceHtmlUrl":144,"categories":145,"keywords":146,"publishedAt":20},"01M7EFCE7EZMKPRYDDNKBQ9EEH","vercel-deploy","Deploy applications and websites to Vercel. Use when the user requests deployment actions like \"deploy my app\", \"deploy and give me the link\", \"push this live\", or \"create a preview deployment\".","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-deploy\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-deploy\u002FSKILL.md",[],[]]