Control: ECS task definition container definitions should be checked for host mode
Description
Check if AWS Elastic Container Service (AWS ECS) task definition with host networking mode has 'privileged' or 'user' container definitions.The rule is non-compliant for task definitions with host network mode and container definitions of privileged=false or empty and user=root or empty.
Usage
Run the control in your terminal:
powerpipe control run aws_compliance.control.ecs_task_definition_user_for_host_mode_check
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.ecs_task_definition_user_for_host_mode_check --share
SQL
This control uses a named query:
ecs_task_definition_user_for_host_mode_check