Cross-source coverage
T1552.001 / ATT&CK
Unsecured Credentials: Credentials In Files
101 rules · 100 families across 7 sources.
1 deprecated hidden · include
From MITRE ATT&CK 19.2
Adversaries may search local file systems and remote file shares for files containing insecurely stored credentials. These can be files created by users to store their own credentials, shared credential stores for a group of individuals, configuration files containing passwords for a system or service, or source code/binary files containing embedded passwords.
It is possible to extract passwords from backups or saved virtual machines through OS Credential Dumping. Passwords may also be obtained from Group Policy Preferences stored on the Windows Domain Controller.
In cloud and/or containerized environments, authenticated user and service account credentials are often stored in local configuration and credential files. They may also be found as parameters to deployment commands in container logs. In some cases, these files can be copied and reused on another machine or the contents can be read and then used to authenticate without needing to copy any files.
- Tactics
- Credential Access
- Platforms
- Containers · IaaS · Linux · macOS · Windows
- Telemetry
-
WinEventLog:SysmonWinEventLog:Securityauditd:SYSCALLauditd:EXECVElinux:syslogmacos:unifiedlogebpf:syscallskubernetes:auditcni:netflowCloudTrail:GetObjectAWS:CloudTrail
How MITRE says to detect it DET0307
Detect Access to Unsecured Credential Files Across Platforms
Windows Analytic 0856
Correlated file access to insecure credential files (e.g., *.env, *.xml, *.ps1) followed by suspicious process execution or authentication using retrieved credentials. Detected through Sysmon logs and Windows Security Event logs.
WinEventLog:SysmonEventCode=11WinEventLog:SysmonEventCode=1WinEventLog:SecurityEventCode=4624, 4648
Linux Analytic 0857
File reads or process executions involving insecurely stored credential files (e.g., config files with password fields) by non-root or anomalous users followed by ssh authentication attempts.
auditd:SYSCALLopen/read of sensitive config or secret filesauditd:EXECVEgrep/cat/awk on files with password fieldslinux:syslogauthentication success after file access
macOS Analytic 0858
Terminal-based grep or open of plist/config files containing credentials, correlated with Keychain or system login attempts.
macos:unifiedloggrep/cat on files matching credential patternsmacos:unifiedlogopen/read of *.plist or .env filesmacos:unifiedlogKeychain or user login post-access
Containers Analytic 0859
Container processes accessing mounted secrets or configuration paths (e.g., /run/secrets, /mnt/config) followed by network access or credential use.
ebpf:syscallsopen/read on secret mount pathskubernetes:auditprocess execution involving curl, grep, or awk on secretscni:netflowoutbound connection to internal or external APIs
IaaS Analytic 0860
Access to local credential/config files (e.g., ~/.aws/credentials) followed by metadata API calls or cloud role assumptions.
CloudTrail:GetObjectsensitive credential files in buckets or local image storageAWS:CloudTrailcommand-line execution invoking credential enumerationAWS:CloudTrailsudden role assumption after credential file access
elastic/detection-rules
34 rules| Detection | Severity | Format |
|---|---|---|
| AWS Credentials Searched For Inside A Container | High | Elastic TOML |
| GenAI Process Accessing Sensitive Files | High | Elastic TOML |
| GKE Pod Exec Sensitive File or Credential Path Access | High | Elastic TOML |
| Kubernetes and Cloud Credential Path Access via Process Arguments | High | Elastic TOML |
| Kubernetes Pod Exec Sensitive File or Credential Path Access | High | Elastic TOML |
| Microsoft IIS Connection Strings Decryption | High | Elastic TOML |
| Multi-Cloud CLI Token and Credential Access Commands | High | Elastic TOML |
| Potential Credential Discovery via Recursive Grep | High | Elastic TOML |
| Potential Kerberos Attack via Bifrost | High | Elastic TOML |
| Private Key Searching Activity | High | Elastic TOML |
+ 24 more from elastic/detection-rules → showing the 10 highest-severity
elastic/protections-artifacts
26 rules · 25 families| Detection | Severity | Format |
|---|---|---|
| Access Attempt to Non Existing Cryptocurrency Wallet | Undefined | Elastic TOML |
| Access to Browser Credentials from Suspicious Memory | Undefined | Elastic TOML |
| AutoLogons Access Attempt via Registry | Undefined | Elastic TOML |
| Cloud Credential Files Accessed by Osascript | Undefined | Elastic TOML |
| Cloud Credential Files Accessed by Process in Suspicious Directory | Undefined | Elastic TOML |
| Crypto Wallet File Access by Unsigned or Untrusted Binary | Undefined | Elastic TOML |
| Crypto Wallet File Access via CommandLine | Undefined | Elastic TOML |
| Crypto Wallet or Web Browser File Access via Nodejs | Undefined | Elastic TOML |
| Crypto Wallet or Web Browser File Access via Osascript | Undefined | Elastic TOML |
| Crypto Wallet or Web Browser File Access via Python | Undefined | Elastic TOML |
+ 16 more from elastic/protections-artifacts → showing the 10 highest-severity
SigmaHQ/sigma
24 rules| Detection | Severity | Format |
|---|---|---|
| Potential Russian APT Credential Theft Activity | Critical | Sigma |
| Copy Passwd Or Shadow From TMP Path | High | Sigma |
| Credentials In Files | High | Sigma |
| Credentials In Files - Linux | High | Sigma |
| HackTool - Typical HiveNightmare SAM File Export | High | Sigma |
| HackTool - WinPwn Execution | High | Sigma |
| HackTool - WinPwn Execution - ScriptBlock | High | Sigma |
| Linux Recon Indicators | High | Sigma |
| Shai-Hulud Malicious GitHub Workflow Creation | High | Sigma |
| Automated Collection Command Prompt | Medium | Sigma |
+ 14 more from SigmaHQ/sigma → showing the 10 highest-severity
splunk/security_content
7 rules| Detection | Severity | Format |
|---|---|---|
| MCP Github Suspicious Operation | Undefined | SPL |
| MCP Sensitive System File Search | Undefined | SPL |
| Potential password in username | Undefined | SPL |
| Shai-Hulud 2 Exfiltration Artifact Files | Undefined | SPL |
| Windows Unusual FileZilla XML Config Access | Undefined | SPL |
| Windows Unusual Intelliform Storage Registry Access | Undefined | SPL |
| Windows WinSCP Configuration Security Access | Undefined | SPL |
socfortress/Wazuh-Rules
5 rules| Detection | Severity | Format |
|---|---|---|
| Possible Azure token access (T1552.001) | High | Wazuh XML |
| Possible credential discovery attempt: scanning for Oracle Cloud credentials token file | High | Wazuh XML |
| Possible credential exfiltration via curl/wget using stdin | High | Wazuh XML |
| Possible GCP credential discovery attempt using find on .config/gcloud (T1552.001) | High | Wazuh XML |
| Suspicious access to .netrc file (possible credential discovery or exfiltration) | High | Wazuh XML |
panther-labs/panther-analysis
4 rules| Detection | Severity | Format |
|---|---|---|
| AWS Compromised IAM Key Quarantine | High | Panther Python |
| Secret Exposed and not Quarantined | High | Panther Python |
| AWS RDS Log File Downloaded | Low | Panther Python |
| Azure Storage SAS Token Access from External IP | Low | Panther Python |
falcosecurity/rules
1 rule| Detection | Severity | Format |
|---|---|---|
| Search Private Keys or Passwords | Medium | Falco YAML |