Control: ECS task definitions should not share the host's process namespace
Description
This control checks if AWS ECS task definitions are configured to share a host's process namespace with its containers. The control fails if the task definition shares the host's process namespace with the containers running on it.
Usage
Run the control in your terminal:
powerpipe control run aws_compliance.control.ecs_task_definition_no_host_pid_mode
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.ecs_task_definition_no_host_pid_mode --share
SQL
This control uses a named query:
select task_definition_arn as resource, case when pid_mode = 'host' then 'alarm' else 'ok' end as status, case when pid_mode = 'host' then title || ' shares the host process namespace.' else title || ' does not share the host process namespace.' end as reason , region, account_idfrom aws_ecs_task_definition;