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. (Citation: CG 2014) Passwords may also be obtained from Group Policy Preferences stored on the Windows Domain Controller. (Citation: SRD GPP)
In cloud and/or containerized environments, authenticated user and service account credentials are often stored in local configuration and credential files.(Citation: Unit 42 Hildegard Malware) They may also be found as parameters to deployment commands in container logs.(Citation: Unit 42 Unsecured Docker Daemons) 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.(Citation: Specter Ops - Cloud Credential Storage)
View in MITRE ATT&CK®Capability ID | Capability Description | Mapping Type | ATT&CK ID | ATT&CK Name | Notes |
---|---|---|---|---|---|
AC-2 | Account Management | Protects | T1552.001 | Credentials In Files | |
AC-4 | Information Flow Enforcement | Protects | T1552.001 | Credentials In Files | |
AC-5 | Separation of Duties | Protects | T1552.001 | Credentials In Files | |
AC-6 | Least Privilege | Protects | T1552.001 | Credentials In Files | |
CA-7 | Continuous Monitoring | Protects | T1552.001 | Credentials In Files | |
CA-8 | Penetration Testing | Protects | T1552.001 | Credentials In Files | |
CM-2 | Baseline Configuration | Protects | T1552.001 | Credentials In Files | |
CM-6 | Configuration Settings | Protects | T1552.001 | Credentials In Files | |
IA-2 | Identification and Authentication (organizational Users) | Protects | T1552.001 | Credentials In Files | |
IA-5 | Authenticator Management | Protects | T1552.001 | Credentials In Files | |
RA-5 | Vulnerability Monitoring and Scanning | Protects | T1552.001 | Credentials In Files | |
SA-11 | Developer Testing and Evaluation | Protects | T1552.001 | Credentials In Files | |
SA-15 | Development Process, Standards, and Tools | Protects | T1552.001 | Credentials In Files | |
SC-12 | Cryptographic Key Establishment and Management | Protects | T1552.001 | Credentials In Files | |
SC-28 | Protection of Information at Rest | Protects | T1552.001 | Credentials In Files | |
SC-4 | Information in Shared System Resources | Protects | T1552.001 | Credentials In Files | |
SC-7 | Boundary Protection | Protects | T1552.001 | Credentials In Files | |
SI-4 | System Monitoring | Protects | T1552.001 | Credentials In Files | |
CVE-2020-3240 | Cisco UCS Director | secondary_impact | T1552.001 | Credentials In Files | |
CVE-2019-3782 | CredHub CLI | primary_impact | T1552.001 | Credentials In Files | |
CVE-2019-3780 | Cloud Foundry Container Runtime (CFCR) | primary_impact | T1552.001 | Credentials In Files | |
CVE-2018-7520 | Geutebrück G-Cam/EFD-2250 (part n° 5.02024) firmware and Topline TopFD-2125 (part n° 5.02820) firmware | primary_impact | T1552.001 | Credentials In Files | |
CVE-2014-1812 | n/a | uncategorized | T1552.001 | Credentials In Files | |
CVE-2019-9670 | n/a | uncategorized | T1552.001 | Credentials In Files | |
CVE-2010-5290 | n/a | uncategorized | T1552.001 | Credentials In Files | |
action.malware.variety.Password dumper | Password dumper (extract credential hashes) | related-to | T1552.001 | Unsecured Credentials: Credentials in Files | |
aws_config | AWS Config | technique_scores | T1552.001 | Credentials In Files |
Comments
The following AWS Config managed rules can identify configuration problems that should be fixed in order to prevent malicious access of data within Amazon Simple Storage Service (S3) storage, which may include files containing credentials: "s3-account-level-public-access-blocks", "s3-bucket-level-public-access-prohibited", "s3-bucket-public-read-prohibited", "s3-bucket-policy-not-more-permissive", "cloudfront-origin-access-identity-enabled", and "cloudfront-default-root-object-configured" identify objects that are publicly available or subject to overly permissive access policies; and "s3-bucket-policy-grantee-check" checks whether bucket policies appropriately control which AWS principals, federated users, service principals, IP addresses, and VPCs have access. All of these controls are run on configuration changes.
The following AWS Config managed rules can identify configuration problems that should be fixed in order to ensure that cloud storage data - which may include files containing credentials - are encrypted to prevent malicious access: "s3-bucket-server-side-encryption-enabled" and "s3-default-encryption-kms" for S3 storage, "ec2-ebs-encryption-by-default" and "encrypted-volumes" for EBS volumes.
Coverage factor is partial for these rules, since they are specific to a subset of the available AWS services, resulting in an overall score of Partial.
References
|
amazon_guardduty | Amazon GuardDuty | technique_scores | T1552.001 | Credentials In Files |
Comments
The following finding types in Amazon GuardDuty can be used to identify potentially malicious interactions with S3 which may lead to the compromise of any credential files stored in S3: Impact:S3/MaliciousIPCaller Exfiltration:S3/MaliciousIPCaller Exfiltration:S3/ObjectRead.Unusual PenTest:S3/KaliLinux PenTest:S3/ParrotLinux PenTest:S3/PentooLinux UnauthorizedAccess:S3/MaliciousIPCaller.Custom UnauthorizedAccess:S3/TorIPCaller
The score is capped at Partial since the findings only apply to credential files stored within S3 buckets and only certain types of suspicious behaviors.
References
|
aws_key_management_service | AWS Key Management Service | technique_scores | T1552.001 | Credentials In Files |
Comments
This service provides a more secure alternative to storing encryption keys in the file system. As a result of this service only supporting cryptographic keys and not other types of credentials, the coverage score is assessed as Partial resulting in an overall Partial score.
References
|
aws_secrets_manager | AWS Secrets Manager | technique_scores | T1552.001 | Credentials In Files |
Comments
This control may prevent harvesting of unsecured credentials by removing credentials and secrets from applications and configuration files and requiring authenticated API calls to retrieve those credentials and secrets. This control is relevant for credentials stored in applications or configuration files but not credentials entered directly by a user.
References
|
aws_cloudhsm | AWS CloudHSM | technique_scores | T1552.001 | Credentials In Files |
Comments
This service provides a more secure alternative to storing encryption keys in the file system. As a result of this service only supporting cryptographic keys and not other types of credentials, the coverage score is assessed as Partial resulting in an overall Partial score.
References
|