Check provider logo

ECS task definitions should not share the host's process namespace

ecs_task_definitions_host_namespace_not_shared

Severityhigh
Serviceecs
by Prowler

This control checks if Amazon 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.

Risk

Sharing the host's process namespace with containers exposes host processes, potentially allowing unauthorized access or manipulation of host-level processes, undermining container isolation.

Run this check with Prowler CLI

prowler aws --checks ecs_task_definitions_host_namespace_not_shared

Run in Prowler Cloud

ARN template

arn:aws:ecs:{region}:{account-id}:task-definition/{task-definition-name}

Remediation

CLI

aws ecs register-task-definition --family <task-family> --container-definitions '[{"name":"<container-name>","image":"<image>","pidMode":"task"}]'

Other

https://docs.aws.amazon.com/securityhub/latest/userguide/ecs-controls.html#ecs-3

WUI

Avoid sharing the host's process namespace with containers to maintain process isolation and enhance security.

References:

Source Code

References

Resource Type

AwsEcsTaskDefinition

Related URL