用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CyberStrikeus/CyberStrike --skill cis-aws-compute-2-7命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | cis-aws-compute-2.7 |
| description | Ensure Default EC2 Security groups are not being used |
| category | cis-compute |
| version | 1.1.0 |
| author | cyberstrike-official |
| tags | ["cis","aws","compute","ec2","security-groups","default","network-security"] |
| cis_id | 2.7 |
| 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 | {} |
When an EC2 instance is launched a specified custom security group should be assigned to the instance.
When an EC2 Instance is launched the default security group is automatically assigned. In error a lot of instances are launched in this way, and if the default security group is configured to allow unrestricted access, it will increase the attack footprint allowing the opportunity for malicious activity.
Instances using the default security group must be migrated to custom security groups. This may require updating application configurations and testing connectivity.
aws ec2 describe-instances --region us-east-1 --output json --filters "Name=instance.group-name,Values=default" --query "Reservations[*].Instances[*].{Instance:InstanceId}"
NOTE Repeat the audit process for all other regions used.
INSTANCES, click Instances.default for the attribute value. (This filter will detect the EC2 instances currently associated with the default security group)NOTE Repeat the audit process for all other regions used.
The CLI command should return an empty list, indicating no EC2 instances are using the default security group.
No specific CLI remediation command is provided for this control. Use the console method below to remove inbound rules from default security groups.
Network & SecuritySecurity GroupsSecurity Groups.default Security Group you want to review.Actions, View details.Inbound rules tab.Edit inbound rules.Delete for all the rules listed.AWS automatically creates a default security group for each VPC. The default security group allows all inbound traffic from other instances in the same security group and all outbound traffic.
| Controls Version | Control | IG 1 | IG 2 | IG 3 |
|---|---|---|---|---|
| v8 | 3.3 Configure Data Access Control Lists | x | x | x |
| v7 | 14.6 Protect Information through Access Control Lists | x | x | x |
Level 1 | Manual