Techniques › T1213 › T1213.006
T1213.006 Databases
collection — IaaS, Linux, macOS, SaaS, Windows · attack.mitre.org · JSON
1
MITRE detection strategy
5
analytics
0
Sigma rules tagged attack.t1213.006
0
KEV CVEs mapped here
<p>Adversaries may leverage databases to mine valuable information. These databases may be hosted on-premises or in the cloud (both in platform-as-a-service and software-as-a-service environments).</p><p>Examples of databases from which information may be collected include MySQL, PostgreSQL, MongoDB, Amazon Relational Database Service, Azure SQL Database, Google Firebase, and Snowflake. Databases may include a variety of information of interest to adversaries, such as usernames, hashed passwords, personally identifiable information, and financial data. Data collected from databases may be used for Lateral Movement, Command and Control, or Exfiltration. Data exfiltrated from databases may also be used to extort victims or may be sold for profit.</p>
KEV CVEs mapped to this technique · CTID Mappings Explorer
None. No KEV entry in the public mapping names this technique. Given that 74.7% of KEV has no mapping at all, this says more about the mapping than about the technique.
Detection strategy · ATT&CK Enterprise v19.2
- DET0242 Suspicious Database Access and Dump Activity Across Environments (T1213.006) v1.0
AN0676 LinuxUnusual database command-line access (e.g.,
psql,mysql,mongo) from non-admin users, occurring outside typical automation windows or without known service context. Often followed by data dumps to .sql/.csv files or outbound data transfers. Defender sees CLI tools launched interactively or by unusual parent processes, file writes to dump-like filenames, and external connections shortly after.auditd:SYSCALLexecve: Execution of CLI tools like psql, mysql, mongo, sqlite3→ DC0032 Process Creationauditd:PATHCreation of files with extensions .sql, .csv, .sqlite, especially in user directories→ DC0039 File CreationNSM:Flowhttp::post: Outbound HTTP POST from host shortly after DB export activity→ DC0085 Network Traffic ContentTunable:AllowedDBClientsDumpFilePatternTimeWindowAN0677 WindowsDatabase client execution (e.g., sqlcmd.exe, isql.exe) by users or from locations not tied to enterprise automation or backups. Often followed by creation of .sql/.bak/.csv files, registry artifacts for ODBC/JDBC drivers, or encrypted ZIPs. Defender sees SQL tools launched by explorer.exe, Powershell, or odd parent processes, plus file writes in user temp locations.Tunable:KnownDBToolPathsExportExtensionPatternsMaxTransferVolumeAN0678 macOSExecution of Java-based or CLI database tools (e.g., DBeaver, Beekeeper, mysql, psql) from user profiles not tied to dev/admin roles, especially when followed by file writes and cloud sync activity. Defender correlates GUI tool launches, file write events in ~/Downloads or ~/Documents, and outbound API calls to known cloud services.NSM:FlowHTTPS API requests to Dropbox, iCloud, Google Drive, OneDrive shortly after DB tool usage→ DC0085 Network Traffic ContentTunable:CloudSyncDomainListUserPrivilegeLevelAN0679 IaaSDatabase enumeration and export activity (e.g.,SELECT * FROM,SHOW DATABASES) issued via ephemeral VMs, admin APIs, or cloud shell from non-monitoring accounts. Defender correlates audit logs (CloudTrail, GCP Admin, AzureDiagnostics), storage write ops, and cross-region transfers by identities not tied to DB operations.AWS:CloudTrailrds:ExecuteStatement: Large data access via RDS or Aurora with unknown session context→ DC0070 Cloud Service MetadataAWS:CloudTrailPutObject: S3 writes with .sql/.csv extension by same identity or within 5 min of DB access→ DC0025 Cloud Storage AccessAWS:VPCFlowLogsLarge transfer volume (>20MB) from RDS IP range to external public IPs→ DC0082 Network Connection CreationTunable:IAMAccessPatternsS3ExportThresholdDBQueryVerbosityThresholdAN0680 SaaSUnusual or excessive database/table exports from SaaS database platforms (e.g., Snowflake, Firebase, BigQuery, Airtable) by users or apps not in known analytics or dev groups. Defender observes access patterns outside baseline working hours or with new query templates, and correlates those with audit logs or file downloads.saas:SnowflakeQUERY: Large or repeated SELECT * queries to sensitive tables→ DC0038 Application Log Contentm365:unifiedBulk downloads or API extractions from Microsoft-hosted data repositories (e.g., Dynamics 365)→ DC0055 File AccessTunable:BaselineQueryTemplatesOffHoursAccessWindow
Sigma rules · SigmaHQ da9bb07d64, tag attack.t1213.006
No Sigma rule carries this tag. MITRE publishes a detection strategy above, so the behaviour is specified; what is missing is public detection content.
Rules tagged at the parent level (attack.t1213) 7
These target the parent technique, not this sub-technique specifically. Listed for completeness, not counted as coverage.
Author: Security Onion Solutions
· 2024-03-08 · logsource: product=opencanary category=application · 3ec9a16d-0b4f-4967-9542-ebf38ceac7dd
Detects instances where an MSSQL service on an OpenCanary node has had a login attempt using SQLAuth.
Author: Security Onion Solutions
· 2024-03-08 · logsource: product=opencanary category=application · 4fe17521-aef3-4e6a-9d6b-4a7c8de155a8
Detects instances where a GIT service on an OpenCanary node has had Git Clone request.
Author: Muhammad Faisal (@faisalusuf)
· 2024-02-25 · logsource: product=bitbucket service=audit · 5259cbf2-0a75-48bf-b57a-c54d6fabaef3
Detects user data export activity.
Author: Security Onion Solutions
· 2024-03-08 · logsource: product=opencanary category=application · 547dfc53-ebf6-4afe-8d2e-793d9574975d
Detects instances where a REDIS service on an OpenCanary node has had an action command attempted.
Author: Security Onion Solutions
· 2024-03-08 · logsource: product=opencanary category=application · 6e78f90f-0043-4a01-ac41-f97681613a66
Detects instances where an MSSQL service on an OpenCanary node has had a login attempt using Windows Authentication.
Author: Muhammad Faisal (@faisalusuf)
· 2024-02-25 · logsource: product=bitbucket service=audit · 87cc6698-3e07-4ba2-9b43-a85a73e151e2
Detects user permission data export attempt.
Author: Security Onion Solutions
· 2024-03-08 · logsource: product=opencanary category=application · e7d79a1b-25ed-4956-bd56-bd344fa8fd06
Detects instances where a MySQL service on an OpenCanary node has had a login attempt.