Sigma rule: AWS ECS Task Definition That Queries The Credential Endpoint
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-c1776939d008, updated 2023-04-24T00:00:00.000Z.
Rule
- Title
- AWS ECS Task Definition That Queries The Credential Endpoint
- Status
- test
- Level
- medium
- Author
- Darin Smith
- Date
- 2022-06-07
- Modified
- 2023-04-24
- File
- rules/cloud/aws/cloudtrail/aws_ecs_task_definition_cred_endpoint_query.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects when an Elastic Container Service (ECS) Task Definition includes a command to query the credential endpoint.
This can indicate a potential adversary adding a backdoor to establish persistence or escalate privileges.
Log source
- product
- aws
- service
- cloudtrail
Detection
selection:
eventSource: 'ecs.amazonaws.com'
eventName:
- 'DescribeTaskDefinition'
- 'RegisterTaskDefinition'
- 'RunTask'
requestParameters.containerDefinitions.command|contains: '$AWS_CONTAINER_CREDENTIALS_RELATIVE_URI'
condition: selectionFalse positives (as the rule lists them)
- Task Definition being modified to request credentials from the Task Metadata Service for valid reasons
Tags
- attack.persistence
- attack.t1525
MITRE ATT&CK ids this rule names
References
- https://github.com/RhinoSecurityLabs/pacu/blob/866376cd711666c775bbfcde0524c817f2c5b181/pacu/modules/ecs__backdoor_task_def/main.py
- https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_RegisterTaskDefinition.html
- https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html
Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/cloud/aws/cloudtrail/aws_ecs_task_definition_cred_endpoint_query.yml
Sources and licences
SigmaHQ
"AWS ECS Task Definition That Queries The Credential Endpoint" by Darin Smith (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/cloud/aws/cloudtrail/aws_ecs_task_definition_cred_endpoint_query.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: AWS ECS Task Definition That Queries The Credential Endpoint",
entity page, dataset version ref-c1776939d008, updated 2023-04-24T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/b94bf91e-c2bf-4047-9c43-c6810f43baad (accessed 2026-11-03).
Underlying source: SigmaHQ rule b94bf91e-c2bf-4047-9c43-c6810f43baad, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.
Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.