Unsecured Credentials: Credentials In Files
- ID
- T1552.001
- Tactics
- TA0006 Credential Access
- Sub-technique of
- T1552 Unsecured Credentials
- Platforms
- Containers, IaaS, Linux, macOS, Windows
- Data sources
- File Creation, Process Creation, Logon Session Creation, File Access, Command Execution, Network Connection Creation
- Source
- attack.mitre.org
- MITRE last modified
- 12 Sep 2026
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.[1] Passwords may also be obtained from Group Policy Preferences stored on the Windows Domain Controller.[2]
In cloud and/or containerized environments, authenticated user and service account credentials are often stored in local configuration and credential files.[3] They may also be found as parameters to deployment commands in container logs.[4] 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.[5]
Detection
- DET0307 Detect Access to Unsecured Credential Files Across Platforms
Data components: File Creation, Process Creation, Logon Session Creation, File Access, Command Execution, Network Connection Creation
Mitigations (4)
- M1017 User Training
Ensure that developers and system administrators are aware of the risk associated with having plaintext passwords in software configuration files that may be left on endpoint systems or servers.
- M1022 Restrict File and Directory Permissions
Restrict file shares to specific directories with access only to necessary users.
- M1027 Password Policies
Establish an organizational policy that prohibits password storage in files.
- M1047 Audit
Preemptively search for files containing passwords and take actions to reduce the exposure risk when found.
Groups (16)
- G0022 APT3
- G0049 OilRig
- G0064 APT33
- G0069 MuddyWater
- G0077 Leafminer
- G0092 TA505
- G0094 Kimsuky
- G0117 Fox Kitten
- G0119 Indrik Spider
- G0139 TeamTNT
- G1003 Ember Bear
- G1015 Scattered Spider
- G1016 FIN13
- G1039 RedCurl
- G1045 Salt Typhoon
- G1057 ShinyHunters
Software (25)
- S0067 pngdowner
- S0089 BlackEnergy
- S0117 XTunnel
- S0192 Pupy
- S0226 Smoke Loader
- S0262 QuasarRAT
- S0266 TrickBot
- S0283 jRAT
- S0331 Agent Tesla
- S0344 Azorult
- S0349 LaZagne
- S0363 Empire
- S0367 Emotet
- S0378 PoshC2
- S0583 Pysa
- S0601 Hildegard
- S0677 AADInternals
- S1183 StrelaStealer
- S9008 Shai-Hulud
- S9009 TruffleHog
- S9041 TeamPCP Cloud Stealer
- S9043 Mini Shai-Hulud
- S9044 Kali365
- S9045 BACKUPOSINT v9.0 APEX PREDATOR
- S9050 Vidar
