用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CyberStrikeus/CyberStrike --skill cis-aws-compute-2-13命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
macOS post-exploitation for credential harvesting, DTrace monitoring, TCC bypass, and stealth operations via native tools
Windows userland post-exploitation for credential harvesting, monitoring, AMSI/ETW bypass, and stealth operations
Kubernetes post-exploitation for container escape, secret extraction, RBAC abuse, and cluster persistence
基于 SOC 职业分类
正在显示 SKILL.md
| name | cis-aws-compute-2.13 |
| description | Ensure Secrets and Sensitive Data are not stored directly in EC2 User Data |
| category | cis-compute |
| version | 1.1.0 |
| author | cyberstrike-official |
| tags | ["cis","aws","compute","ec2","user-data","secrets","sensitive-data","secrets-manager"] |
| cis_id | 2.13 |
| cis_benchmark | CIS AWS Compute Services Benchmark v1.1.0 |
| tech_stack | ["aws"] |
| cwe_ids | [] |
| chains_with | ["cis-aws-compute-2.8"] |
| prerequisites | [] |
| severity_boost | {} |
User Data can be specified when launching an ec2 instance. Examples include specifying parameters for configuring the instance or including a simple script.
The user data is not protected by authentication or cryptographic methods. Therefore, sensitive data, such as passwords or long-lived encryption keys should not be stored as user data.
Anyone who has access to the instance and configuration can view the user data. Removing secrets from user data may require changes to instance bootstrapping processes.
Run aws ec2 describe-instances to retrieve information about all instances in the AWS region. The output will include instance ids.
Run aws ec2 describe-instance-attribute for each instance in AWS account:
aws ec2 describe-instance-attribute --instance-id "ID of instance" --attribute userData
Note: User Data may be Base64 encoded. Decode the output as necessary.
All services and click EC2 under Compute.Instances.Actions -> Instance Settings -> Edit user data.No EC2 instance user data should contain secrets, passwords, API keys, or other sensitive information. User data should only contain non-sensitive configuration parameters or scripts that retrieve secrets from a secure source like AWS Secrets Manager.
No specific CLI remediation command is provided for this control. Use the console method below.
All services and click EC2 under Compute.Instances.Note: ensure there is no negative impact from stopping the instance prior to stopping the instance.
Actions -> Instance Settings -> Edit user data.Note: If the ec2 instances are created via automation or infrastructure-as-code, edit the user data in those pipelines and code.
EC2 user data is empty by default unless specified during instance launch.
| Controls Version | Control | IG 1 | IG 2 | IG 3 |
|---|---|---|---|---|
| v8 | 3.2 Establish and Maintain a Data Inventory | x | x | x |
| v8 | 3.3 Configure Data Access Control Lists | x | x | x |
| v7 | 1.5 Maintain Asset Inventory Information | x | x |
Level 1 | Manual