Benchmark: T1552.001 Unsecured Credentials: Credentials In Files
Overview
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]
Usage
Install the mod:
mkdir dashboardscd dashboardspowerpipe mod initpowerpipe mod install github.com/turbot/tailpipe-mod-azure-activity-log-detections
Start the Powerpipe server:
powerpipe server
Open http://localhost:9033 in your browser and select T1552.001 Unsecured Credentials: Credentials In Files.
Run this benchmark in your terminal:
powerpipe benchmark run azure_activity_log_detections.benchmark.mitre_attack_v161_ta0006_t1552_001
Snapshot and share results via Turbot Pipes:
powerpipe benchmark run azure_activity_log_detections.benchmark.mitre_attack_v161_ta0006_t1552_001 --share