Detectionmediumtest
AWS ECS Task Definition That Queries The Credential Endpoint
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.
Convert In Phoenix Studio
Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.
Launch
Log Source
AWScloudtrail
ProductAWS← raw: aws
Servicecloudtrail← raw: cloudtrail
Detection Logic
Detection Logic1 selector
detection:
selection:
eventSource: 'ecs.amazonaws.com'
eventName:
- 'DescribeTaskDefinition'
- 'RegisterTaskDefinition'
- 'RunTask'
requestParameters.containerDefinitions.command|contains: '$AWS_CONTAINER_CREDENTIALS_RELATIVE_URI'
condition: selectionFalse Positives
Task Definition being modified to request credentials from the Task Metadata Service for valid reasons
MITRE ATT&CK
Tactics
Techniques
Rule Metadata
Rule ID
b94bf91e-c2bf-4047-9c43-c6810f43baad
Status
test
Level
medium
Type
Detection
Created
Tue Jun 07
Modified
Mon Apr 24
Author
Path
rules/cloud/aws/cloudtrail/aws_ecs_task_definition_cred_endpoint_query.yml
Raw Tags
attack.persistenceattack.t1525