S9009: TruffleHog
TruffleHog is an open-source secrets-discovery tool that is used to search for credentials, API keys, and encryption keys across a variety of data sources and environments.[1][2] TruffleHog has the ability to discover credentials and secrets stored in code repositories, git history, CI/CD pipelines, among other common storage locations to include filesystems and cloud storage buckets.[1][3][2] TruffleHog was first released by its author in 2016.[2]
Security context for executives and security teams
S9009: TruffleHog describes [TruffleHog](https://attack.mitre.org/software/S9009) is an open-source secrets-discovery tool that is used to search for credentials, API keys, and encryption keys across a variety of data sources and environments.(Citation: Black Hills Information Security TruffleHog January 2024)(Citation: Github TruffleSecurity Trufflehog April 2025) [TruffleHog](https://attack.mitre.org/software/S9009) has the ability to discover credentials and secrets stored in code repositories, git history, CI/CD pipelines, among other com...
Executive priority
S9009: TruffleHog is an official MITRE ATT&CK software. Glexia treats it as defensive behavior context for prioritizing monitoring, control validation, and response planning without using the object by itself as an attribution claim.
Technical view
Security teams should validate S9009: TruffleHog by reviewing the official ATT&CK relationships, mapped tactics (the mapped ATT&CK tactic context), supported platforms (IaaS, Linux, SaaS, Windows), and available local telemetry before making detection or mitigation decisions.
Likely telemetry
- Official ATT&CK relationships and object metadata
- Cloud control-plane, SaaS audit, and container platform logs
- Network, endpoint, and security-tool telemetry
Detection direction
- Validate whether S9009: TruffleHog appears in your detection coverage and tabletop scenarios.
- Use the object to align executive risk language with SOC, incident response, and detection engineering work.
- Do not treat ATT&CK relationship context as attribution without corroborating evidence.
Mitigation priorities
- Map the object to existing controls and identify missing telemetry or response ownership.
- Prioritize mitigations that reduce exposure on the listed platforms and tactics.
- Review adjacent ATT&CK relationships before changing policy, detections, or reporting language.
Additional notes and limits
Baseline Glexia take generated from the official MITRE ATT&CK STIX object, source hash, tactics, platforms, and detection fields. It is safe to replace with a richer model-generated take for the same source hash later.
This baseline take is source-grounded and schema-validated, but it does not include environment-specific telemetry, incident evidence, or threat-intelligence corroboration.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
TruffleHog
TruffleHog is an open-source secrets-discovery tool that is used to search for credentials, API keys, and encryption keys across a variety of data sources and environments.[1][2] TruffleHog has the ability to discover credentials and secrets stored in code repositories, git history, CI/CD pipelines, among other common storage locations to include filesystems and cloud storage buckets.[1][3][2] TruffleHog was first released by its author in 2016.[2]
How security teams should use this page
Treat this object as behavior context, not an attribution claim. Validate the related groups, software, data sources, and mitigations against official ATT&CK relationships and your own telemetry before making control-coverage decisions.
Techniques used
This mirrors the MITRE pattern of making group, software, campaign, and technique relationships scannable. Relationship notes come from mirrored ATT&CK relationship text when available.
| Domain | ID | Name | Relationship / procedure |
|---|---|---|---|
| Enterprise | T1213.002 | SharepointSub-technique | TruffleHog has searched SharePoint for data and credentials.[2] |
| Enterprise | T1213.005 | Messaging ApplicationsSub-technique | TruffleHog has obtained data and credentials associated with messaging applications to include Slack.[2] |
| Enterprise | T1619 | Cloud Storage Object Discovery | TruffleHog can enumerate cloud storage environments including Amazon Web Service (AWS) S3 buckets and Google Cloud Storage buckets.[1][2] |
| Enterprise | T1059.009 | Cloud APISub-technique | TruffleHog has leveraged Cloud CLI in order to enumerate and gather credentials.[2] |
| Enterprise | T1526 | Cloud Service Discovery | TruffleHog has the ability to scan code repositories and CI/CD platforms.[1][2] |
| Enterprise | T1555.006 | Cloud Secrets Management StoresSub-technique | TruffleHog can obtain secrets from AWS Secrets and GCP Secret Manager.[1][2] TruffleHog has also gathered passwords, secrets and API keys from source repositories, .env files, and git history.[3] |
| Enterprise | T1580 | Cloud Infrastructure Discovery | TruffleHog can enumerate AWS Infrastructure to include EC2 instances.[2] |
| Enterprise | T1552.005 | Cloud Instance Metadata APISub-technique | TruffleHog can query the AWS and GCP metadata endpoints for instances and service credentials.[1][2] |
| Enterprise | T1528 | Steal Application Access Token | TruffleHog has gathered access tokens and API tokens from CI/CD pipeline solutions and repositories.[1] |
| Enterprise | T1083 | File and Directory Discovery | TruffleHog has can browse and scan individual files and directories.[1][3][2] |
| Enterprise | T1005 | Data from Local System | TruffleHog has gathered data from home directories of the victim environment.[3] |
| Enterprise | T1078.004 | Cloud AccountsSub-technique | TruffleHog has used stolen credentials to log into cloud services to access cloud hosted repositories and other cloud storage solutions to discover sensitive data to include API Keys, tokens and credentials.[2] |
| Enterprise | T1552.001 | Credentials In FilesSub-technique | TruffleHog has obtained credentials stored in config files and credential files in victim environments.[1][3] |
| Enterprise | T1530 | Data from Cloud Storage | TruffleHog has the ability to scan cloud storage services for credentials to include Amazon (AWS) S3 and Google Cloud Storage.[1][2] |
| Enterprise | T1213.001 | ConfluenceSub-technique | TruffleHog has collected credentials and data associated with Confluence.[2] |
| Enterprise | T1213.003 | Code RepositoriesSub-technique | TruffleHog has gathered data and credentials from code repositories.[2] |
All related ATT&CK context
Object version and sync metadata
The fields below describe the current mirrored snapshot. When Glexia retains multiple ATT&CK source imports, you can open the table to compare the same object across releases (hashes and MITRE timestamps). For MITRE’s own release notes and roadmap, see ATT&CK resources — Updates.
Imported snapshots across ATT&CK releases(2)
| Release | Bundle imported | Object version | Modified | Status | Raw hash |
|---|---|---|---|---|---|
| 19.2 | 1.0 | Current bundle | d7d1b1890c6b… | ||
| 19.1 | 1.0 | Older bundle | d7d1b1890c6b… |
Mirrored ATT&CK source object
The raw object is retained through the mirrored ATT&CK source bundle and object hash. The raw endpoint returns the exact object from the mirrored bundle when available.
External references and citations
MITRE external references are preserved separately from Glexia analysis so citations remain traceable to their original source records.
- [1]Black Hills Information Security TruffleHog January 2024
Chris Traynor. (2024, January 18). Rooting For Secrets with TruffleHog. Retrieved April 15, 2026.
Open source URL - [2]Github TruffleSecurity Trufflehog April 2025
Trufflesecurity. (2026, April 8). TruffleHog Enterprise. Retrieved April 15, 2026.
Open source URL - [3]Netskope Shai-Hulud November 2025
Gianpietro Cutolo. (2025, November 26). Shai-Hulud 2.0: Aggressive, Automated, and Fast Spreading. Retrieved April 9, 2026.
Open source URL - [4]mitre-attackS9009Open source URL
Source: MITRE ATT&CK®. © 2026 The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation. MITRE ATT&CK and ATT&CK are registered trademarks of The MITRE Corporation. Glexia is not affiliated with or endorsed by MITRE.
