Sigma rule: AWS STS GetCallerIdentity Enumeration Via TruffleHog

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-9ea43060bcd1, updated 2025-10-12T00:00:00.000Z.

Rule

Title
AWS STS GetCallerIdentity Enumeration Via TruffleHog
Status
experimental
Level
medium
Author
Adan Alvarez @adanalvarez
Date
2025-10-12
File
rules/cloud/aws/cloudtrail/aws_sts_getcalleridentity_trufflehog.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects the use of TruffleHog for AWS credential validation by identifying GetCallerIdentity API calls where the userAgent indicates TruffleHog.
Threat actors leverage TruffleHog to enumerate and validate exposed AWS keys.
Successful exploitation allows threat actors to confirm the validity of compromised AWS credentials, facilitating further unauthorized access and actions within the AWS environment.

Log source

product
aws
service
cloudtrail

Detection

selection:
    eventSource: 'sts.amazonaws.com'
    eventName: 'GetCallerIdentity'
    userAgent|contains: 'TruffleHog'
condition: selection

False positives (as the rule lists them)

  • Legitimate internal security scanning or key validation that intentionally uses TruffleHog. Authorize and filter known scanner roles, IP ranges, or assumed roles as needed.

Tags

  • attack.discovery
  • attack.t1087.004

MITRE ATT&CK ids this rule names

References

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_sts_getcalleridentity_trufflehog.yml

Sources and licences

  • SigmaHQ

    "AWS STS GetCallerIdentity Enumeration Via TruffleHog" by Adan Alvarez @adanalvarez (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/cloud/aws/cloudtrail/aws_sts_getcalleridentity_trufflehog.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: AWS STS GetCallerIdentity Enumeration Via TruffleHog",
entity page, dataset version ref-9ea43060bcd1, updated 2025-10-12T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/9b1b8e9b-0a5d-4af1-9d2f-4c4b6e7c2c9d (accessed 2026-11-03).
Underlying source: SigmaHQ rule 9b1b8e9b-0a5d-4af1-9d2f-4c4b6e7c2c9d, 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.