AWS ECS Task Definition Commands Query AWS Container Credentials Endpoint

Alerts on ECS Describe/Register/Run activity when task container commands reference the container credential endpoint URI.

FreeReviewedSigma · Medium · v5
Product
aws
Service
cloudtrail
Author
Darin Smith (SigmaHQ), DRL 1.1
Published
2022-06-07
Updated
2026-07-31

ATT&CK techniques

Persistence
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Priv Esc

  6. Defense Evasion

  7. Cred Access

  8. Discovery

  9. Lateral Movement

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule identifies ECS activity where a task definition (or a related run) includes a container command that contains the $AWS_CONTAINER_CREDENTIALS_RELATIVE_URI string, indicating an attempt to query the container credentials endpoint. Such behavior can be used by an attacker to obtain credentials for follow-on access, persistence, or privilege escalation. It relies on AWS CloudTrail events for ECS actions including DescribeTaskDefinition, RegisterTaskDefinition, and RunTask, with matching content in the containerDefinitions.command request parameters.

Changelog

v5
  1. v5
    Candidate ingested via manual entry.2026-07-31
  2. v4
    Candidate ingested via manual entry.2026-07-31
  3. v3
    Candidate ingested via manual entry.2026-07-31
  4. v2
    Candidate ingested via manual entry.2026-07-31
  5. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.