Cis AWS Compute 3.11
DevOps & Securitycis-aws-compute-3.11Cis AWS Compute 3.11 is an Agent Skill for devops & security published in the CyberStrikeus/CyberStrike repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Ensure Amazon ECS clusters are tagged
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/CyberStrikeus/CyberStrike/blob/HEAD/.cyberstrike/skill/CIS_benchmarks/Cloud_Providers/AWS/CIS_AWS_Compute_Services_Benchmark_v1.1.0/cis-aws-compute-3.11/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/cis-aws-compute-3-11, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Ensure Amazon ECS clusters are tagged
Description
Ensure all Amazon ECS clusters have resource tags to facilitate asset management, tracking, and compliance.
Rationale
Consistent tagging supports compliance and helps identify unauthorized or misconfigured resources.
Impact
There is minimal administrative overhead associated with implementing and maintaining resource tags.
Audit Procedure
Using AWS Console
- Login to the ECS console using https://console.aws.amazon.com/ecs/.
- In the left panel, click
Clusters. - Click the name of a cluster.
- Click
Tags. - Ensure at least one tag is listed that does not begin with
aws:. Tags prefixed withaws:are AWS-managed. - Repeat steps 1-5 for each ECS cluster.
Using AWS CLI
Run the following command to list clusters:
aws ecs list-clusters
Run the following command to view the tags for a cluster:
aws ecs list-tags-for-resource --resource-arn <service-arn>
Ensure that tags are returned that do not begin with aws:. Tags prefixed with aws: are AWS-managed.
Repeat for each cluster.
Expected Result
All ECS clusters should have at least one user-defined tag (not prefixed with aws:).
Remediation
Using AWS Console
- Login to the ECS console using https://console.aws.amazon.com/ecs/.
- In the left panel, click
Clusters. - Click the name of a cluster.
- Click
Tags. - Click
Manage tags. - Click
Add tag. - Provide a
Keyand optionalValuefor the tag. - Click
Save. - Repeat steps 1-8 for each ECS cluster requiring remediation.
Using AWS CLI
Use the aws ecs tag-resource command to add tags to a cluster:
aws ecs tag-resource --resource-arn <cluster-arn> --tags key=<TagKey>,value=<TagValue>
Default Value
By default, Amazon ECS clusters have only AWS-managed tags.
References
- https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html
- https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ecs/list-clusters.html
- https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ecs/list-tags-for-resource.html
CIS Controls
| Controls Version | Control | IG 1 | IG 2 | IG 3 |
|---|---|---|---|---|
| v8 | 1.1 Establish and Maintain Detailed Enterprise Asset Inventory | x | x | x |
| v7 | 1.4 Maintain Detailed Asset Inventory | x | x | x |
Profile
Level 1 | Automated