High
ECS
Regional
Amazon ECS task definitions should have secure networking modes and user definitions
NIST
Description
Checks if an active Amazon ECS task definition with host networking mode has privileged or user container definitions. This check fails for task definitions that have host network mode and container definitions of privileged=false, empty and user=root, or empty.
Remediation
Update task definitions to ensure they have secure networking modes and user definitions.
Steps
- Open the Amazon ECS console.
- Navigate to the Task Definitions section.
- Select the task definition to update.
- Create a new revision with the network mode set not to 'host'.
- Update running tasks and services to use the new task definition revision.
Compliance
NIST