AWS CloudTrail: TruffleHog User-Agent Execution Detected

Flags AWS CloudTrail events with user agent "TruffleHog" to surface potential secret-scanning or credential-harvesting activity.

FreeReviewedSigma · Medium · v5
Product
aws
Service
cloudtrail
Author
Swachchhanda Shrawan Poudel (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2025-10-21
Updated
2026-07-31
title: "AWS CloudTrail: TruffleHog User-Agent Execution Detected"
id: 78140e26-9964-4ce0-87a0-ebd7eb5485bc
status: experimental
description: This rule flags AWS CloudTrail events where the user agent is exactly "TruffleHog," indicating the tool was executed in the AWS environment. Attackers may use secret-scanning utilities to locate exposed credentials or other sensitive information before attempting access. The detection relies on CloudTrail telemetry that includes the userAgent field, matched to the specific string value.
references:
  - https://github.com/trufflesecurity/trufflehog
  - https://www.rapid7.com/blog/post/tr-crimson-collective-a-new-threat-group-observed-operating-in-the-cloud/
  - https://github.com/SigmaHQ/sigma/blob/master/rules/cloud/aws/cloudtrail/aws_cloudtrail_pua_trufflehog.yml
author: Swachchhanda Shrawan Poudel (Nextron Systems), Huntrule Team
date: 2025-10-21
tags:
  - attack.credential-access
  - attack.t1555
  - attack.t1003
logsource:
  product: aws
  service: cloudtrail
detection:
  selection:
    userAgent: TruffleHog
  condition: selection
falsepositives:
  - Legitimate use of TruffleHog by security teams for credential scanning.
level: medium
license: DRL-1.1
related:
  - id: a840e606-7c8c-4684-9bc1-eb6b6155127f
    type: derived