William Cain; Austin Clark, @c2defense; Liran Ravich, CardinalOps
Adversaries may search local system sources, such as file systems, configuration files, local databases, virtual machine files, or process memory, to find files of interest and sensitive data prior to Exfiltration.
Gathered data from database and other critical servers in victim environments, then used wiping mechanisms as an anti-analysis and anti-forensics mechanism.1
created 2024-05-211 referenceaka Pink Sandstorm
All 47 groups for this technique · 6 newest in this preview
15 campaigns have been recorded using this technique. Listed newest first; dates are year-granularity and attribution is MITRE’s.
During the Anthropic AI-orchestrated Campaign, the adversary tasked Claude Code to automatically gather sensitive data stored within the local system to include credentials, system configurations and sensitive operational data.1
During C0015, the threat actors obtained files and data from the compromised network.1
2021
All 15 campaigns for this technique · 6 newest in this preview
174 software entries are documented implementing this technique. MITRE files each as a tool or as malware; newest first, then by how many groups carry them.
Has gathered stolen credentials in hardcoded filenames and pathways to include C:\users\public\LOG.txt and C:\Program Files\VMware\VMware Tools\VMware VGAuth\LOG.txt.1
Pick your platform, collect the listed log sources, then tune the fields to your environment.
Detection of Local Data Collection Prior to Exfiltration
Enterprise
5 platforms
AN1070 · Windows
Adversaries collecting local files via PowerShell, WMI, or direct file API calls often include recursive file listings, targeted file reads, and temporary file staging.
Log sources
The data this analytic draws on. You do not need every component — each one you already collect covers part of it. Each links to its ATT&CK record.
An adversary may know/assume that the user of a system uses sqlite databases which contain interest and sensitive data. In this test we download two databases and a sqlite dump script, then run a find command to find & dump the database content.
if [ -x "$(command -v sqlite3)" ]; then echo "sqlite3 is installed"; else echo "sqlite3 is NOT installed"; exit 1; fi
if [ -x "$(command -v curl)" ]; then echo "curl is installed"; else echo "curl is NOT installed"; exit 1; fi
if [ -x "$(command -v strings)" ]; then echo "strings is installed"; else echo "strings is NOT installed"; exit 1; fi
Get Prereq Commands
if grep -iq "debian\|ubuntu\|kali\|mint" /usr/lib/os-release; then apt update && apt install -y binutils curl sqlite3; fi
if grep -iq "rhel\|fedora\|centos" /usr/lib/os-release; then yum update -y && yum install -y binutils curl sqlite-devel; fi
GUID00cbb875-7ae4-4cf1-b638-e543fd825300
03
Copy Apple Notes database files using AppleScript
macos
sh
—
—
Yes
This command will copy Apple Notes database files using AppleScript as seen in Atomic Stealer.
Inputs
Name
Description
Type
Default Value
destination_path
Specify the path to copy the database files into.
path
/private/tmp
Attack Commandsrun with sh
osascript -e 'tell application "Finder"' -e 'set destinationFolderPath to POSIX file "#{destination_path}"' -e 'set notesFolderPath to (path to home folder as text) & "Library:Group Containers:group.com.apple.notes:"' -e 'set notesFolder to folder notesFolderPath' -e 'set notesFiles to {file "NoteStore.sqlite", file "NoteStore.sqlite-shm", file "NoteStore.sqlite-wal"} of notesFolder' -e 'repeat with aFile in notesFiles' -e 'duplicate aFile to folder destinationFolderPath with replacing' -e 'end' -e 'end tell'