> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/aws-ecs-task-definition-elevated-privileges-enabled.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# AWS ECS task definition elevated privileges enabled

### Synopsis

| Field               | Value                                               |
| ------------------- | --------------------------------------------------- |
| Rule Type           | Detection                                           |
| Finding Type        | AWS ECS task definition elevated privileges enabled |
| Finding ID          | 60000288                                            |
| Generates a Finding | This detection rule also generates a finding        |
| Severity            | Informational                                       |
| Category            | CONFIGURATION                                       |
| Cloud Providers     | AWS                                                 |
| Platform Module     | CSPM                                                |
| Asset Types         | ECS\_TASK\_DEFINITION                               |
| ATT\&CK Tactic      | TA0004 (TA0004)                                     |
| ATT\&CK Technique   | T1611 (T1611)                                       |

### Description

ECS task definitions with the 'Privileged' parameter set to 'true' grant containers excessive privileges on the host instance, increasing the risk of compromise.

The 'Privileged' parameter in AWS ECS task definitions allows containers root-level access to the host. If compromised, an attacker could escape the container's isolation and gain control of the underlying host, potentially impacting other containers or the entire EC2 instance. This misconfiguration severely undermines the security of the ECS environment.

Exploiting this misconfiguration could lead to data breaches, unauthorized access to sensitive resources, and complete system compromise. Maintaining least privilege is crucial for minimizing the impact of a potential breach. Restricting container privileges reduces the attack surface and limits the damage a compromised container can inflict.

To mitigate this risk, ensure the 'Privileged' parameter is set to 'false' for all ECS task definitions unless absolutely necessary. Regularly review task definitions and apply the principle of least privilege. Implement robust monitoring and alerting to detect and respond promptly to suspicious activity.

### Remediation

**Manual steps:**

ECS Task Definition - Manual remediation steps:

Create a task definition revision.

1. Open the Amazon ECS console.
2. From the navigation bar, choose the region that contains reported task definition.
3. In the navigation pane, choose Task Definitions.
4. On the Task Definitions page, select the box to the left of the task definition to revise and choose Create new revision with JSON.
5. On the Create new revision of Task Definition page, change the existing Container Definitions.
6. Under containerDefinitions, change the privileged field to false.
7. Verify the information and choose Update, then Create.
8. If your task definition is used in a service, update your service with the updated task definition.
9. For deactivate previous task definition, Go back to Task Definitions and select the original task definition family.
10. In the Task definition: revision tab, select the older revision(s).
11. From the Actions menu, choose Deregister and click on Deregister button in the Deregister window.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/aws-ecs-task-definition-elevated-privileges-enabled.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
