title: AWS CloudTrail STS GetCallerIdentity Validation From CLI Or SDK Client id: 6d41c289-42b0-48f3-891c-38a01b953801 status: experimental description: Detects AWS STS GetCallerIdentity calls generated by AWS CLI, Python Boto3, or curl clients outside approved CI/CD principals, matching batch IAM credential liveness checks used by automated shell and Python credential validation scripts. author: Odin by Brandefense date: 2026-11-20 logsource: product: aws service: cloudtrail detection: selection_sts: eventSource: 'sts.amazonaws.com' eventName: 'GetCallerIdentity' selection_ua: userAgent|contains: - 'aws-cli/' - 'Boto3/' - 'botocore/' - 'curl/' - 'python-requests/' filter_approved_ci: userIdentity.arn: - 'arn:aws:iam::000000000000:role/ci-deployment-runner' - 'arn:aws:iam::000000000000:role/security-audit-scanner' condition: selection_sts and selection_ua and not 1 of filter_* falsepositives: - Interactive developer workstation CLI sessions outside federated SSO roles level: medium tags: - attack.credential-access - attack.t1552.001 - attack.defense-evasion - attack.t1078.004 - attack.discovery - attack.t1580 --- title: Linux Secret-Harvesting Bot And Credential Validator Script Execution id: 9b17e432-5f18-4d61-9a20-38a02b953802 status: experimental description: Detects Linux command lines invoking secret-harvesting bots, TruffleHog repository scans, or AWS IAM batch validation scripts outside approved scanner hosts. author: Odin by Brandefense date: 2026-11-20 logsource: product: linux category: process_creation detection: selection_bin: Image|endswith: - '/python' - '/python3' - '/bash' - '/sh' - '/trufflehog' selection_args: CommandLine|contains: - 'trufflehog ' - '/.git/config' - 'get-caller-identity' - 'GetCallerIdentity' - 'AWS_SECRET_ACCESS_KEY=' - 'api.telegram.org/bot' - 'api.stripe.com/v1/' filter_approved_hosts: ComputerName: - 'sec-trufflehog-runner-01.corp.example' - 'ci-secret-scan-01.corp.example' condition: selection_bin and selection_args and not 1 of filter_* falsepositives: - Authorized internal secret-scanning appliances not listed in filter_approved_hosts level: high tags: - attack.credential-access - attack.t1552.001 - attack.t1528 - attack.exfiltration - attack.t1567 --- title: Web Server Access To Exposed Git Config Or Environment Credential Files id: 3f82a904-7c4d-41e9-b811-38a03b953803 status: experimental description: Detects inbound HTTP requests targeting exposed .git/config, .git/credentials, or .env credential files on web servers. author: Odin by Brandefense date: 2026-11-20 logsource: category: webserver detection: selection_uri: cs-uri-stem|contains: - '/.git/config' - '/.git/HEAD' - '/.git/credentials' - '/.env' condition: selection_uri falsepositives: - Authorized vulnerability scanners testing web roots for exposed VCS directories level: high tags: - attack.credential-access - attack.t1552.001 - attack.t1528