TruffleHog is a legitimate open source tool that searches for leaked passwords, API keys and other secrets in code, logs, chats and cloud storage. It is not malware. MITRE lists it as software because attackers can run it to find credentials, and CERT-EU reports that an actor launched it during the European Commission cloud breach in March 2026.
What it does
The tool was built to help defenders and developers find secrets that were stored by mistake. The maintainers say it can also check whether a found secret still works, which tells a team whether a leak is an active danger.
That same ability is useful to an attacker who already has a foothold. CERT-EU describes an actor launching it to look for more secrets after stealing one AWS key.
Names
Public sources use several names for this malware.
What it can do
The ATT&CK techniques the cited sources map to this tool, by tactic. Each id opens our technique page where one exists, otherwise MITRE.
Credential Access
Unsecured Credentials: Credentials In Files T1552.001
MITRE says it has obtained credentials stored in config files and credential files in victim environments.[1]
Unsecured Credentials: Cloud Instance Metadata API T1552.005
MITRE says it can query the AWS and GCP metadata endpoints for instance and service credentials.[1]
Credentials from Password Stores: Cloud Secrets Management Stores T1555.006
MITRE says it can obtain secrets from AWS Secrets and GCP Secret Manager.[1]
Steal Application Access Token T1528
MITRE says it has gathered access tokens and API tokens from CI/CD pipeline tools and repositories.[1]
Collection
Data from Information Repositories: Code Repositories T1213.003
MITRE says it has gathered data and credentials from code repositories.[1]
Data from Cloud Storage T1530
MITRE says it can scan cloud storage services such as Amazon S3 and Google Cloud Storage for credentials.[1]
Data from Local System T1005
MITRE says it has gathered data from home directories in the victim environment.[1]
Discovery
Cloud Storage Object Discovery T1619
MITRE says it can list cloud storage buckets, including Amazon S3 and Google Cloud Storage.[1]
Cloud Infrastructure Discovery T1580
MITRE says it can list AWS infrastructure, including EC2 instances.[1]
File and Directory Discovery T1083
MITRE says it can browse and scan individual files and directories.[1]
Initial Access
How it spreads
TruffleHog is not malware and does not spread by itself. Attackers who already have access to a system or cloud account can run the tool there. In the European Commission case described by CERT-EU, the actor had first stolen an AWS key through the Trivy supply chain compromise and then launched TruffleHog.
Timeline
- 2016
First release
MITRE says the tool's author first released TruffleHog in 2016.[1]
- 2026-03-19
Actor runs TruffleHog
CERT-EU says the actor obtained an AWS key through the Trivy supply chain compromise and the same day launched TruffleHog to look for more secrets.[2]
- 2026-03-24
Alerts at the Commission
CERT-EU says the European Commission's security operations center saw alerts about possible misuse of Amazon APIs and an unusual volume of network traffic.[2]
- 2026-03-25
CERT-EU notified
CERT-EU says the European Commission told it that an AWS cloud account had been compromised.[2]
- 2026-03-27
Commission press release
CERT-EU says the European Commission publicly disclosed the incident in a press release.[2]
- 2026-04-02
CERT-EU blog
CERT-EU published its account of the breach, naming the use of TruffleHog and advising defenders to look for it in AWS logs.[2]
Who uses it
Related vulnerabilities
Seen in
Detection and defense
What Brandefense can do
- Scan your domain in Brandefense Atlas, free
Atlas checks public sources for leaked credentials, phishing domains, dark web mentions and data sales, then gives your domain a risk grade. Free, no sign-up.
- Cyber Threat Intelligence
Brandefense Cyber Threat Intelligence tracks malware families and the infrastructure they use, and shares indicators your team can check against its own systems.
Frequently Asked Questions
Is TruffleHog malware?
No. MITRE describes it as an open-source secrets-discovery tool, and its maintainers publish it openly. Attackers can misuse it, as CERT-EU reported in one 2026 case.
What does TruffleHog look for?
Credentials, API keys and encryption keys. MITRE says it can search code repositories, git history, CI/CD pipelines, filesystems and cloud storage buckets.
How was it used in the European Commission breach?
CERT-EU says the actor stole an AWS key on 19 March 2026 through the Trivy supply chain compromise and the same day launched TruffleHog to look for additional secrets.
How can a defender spot misuse?
CERT-EU advises reviewing AWS CloudTrail logs for unusual STS calls, use of TruffleHog and new access keys created on existing users.
Does TruffleHog check if a secret works?
The maintainers say it can log in to confirm whether a classified secret is live. That is useful to defenders, and also to anyone who has found a secret.
Sources
- TruffleHog, Software S9009MITRE ATT&CK · Supports: Description, platforms, aliases, first release year and techniques listed for TruffleHog.
- European Commission cloud breach: a supply-chain compromiseCERT-EU · Supports: The actor launched TruffleHog on 19 March 2026, the timeline, and the defensive advice.
- trufflesecurity/trufflehog project pageTruffle Security, project maintainer · Supports: What the tool is, what it searches and that it can confirm whether a secret is live.
