VeriKQL by Kaushik Saha

T1654 Log Enumeration

Discoveryon attack.mitre.org

ATT&CK Enterprise 20.0 · 20.1 released, update in review

How MITRE detects it

DET0255 Detection Strategy for Log Enumeration

AN0705 Windows

Monitor for use of native utilities such as wevtutil.exe or PowerShell cmdlets (Get-WinEvent, Get-EventLog) to enumerate or export logs. Unusual access to security or system event channels, especially by non-administrative users or processes, should be correlated with subsequent file export or network transfer activity.

MITRE log sourceIn Microsoft Sentinel
WinEventLog:SecurityEventCode=4688
  • Windows Security Events via AMA → SecurityEvent
    SecurityEvent | where EventID in (4688)
  • Security Events via Legacy Agent → SecurityEvent
    SecurityEvent | where EventID in (4688)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Channel == "Security" | where EventID in (4688)

The same events land in SecurityEvent (Windows Security Events connectors) or WindowsEvent (Windows Event Forwarding); many built-in rules read SecurityEvent only.

WinEventLog:SecurityEventCode=4663, 4670, 4656
  • Windows Security Events via AMA → SecurityEvent
    SecurityEvent | where EventID in (4663, 4670, 4656)
  • Security Events via Legacy Agent → SecurityEvent
    SecurityEvent | where EventID in (4663, 4670, 4656)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Channel == "Security" | where EventID in (4663, 4670, 4656)

The same events land in SecurityEvent (Windows Security Events connectors) or WindowsEvent (Windows Event Forwarding); many built-in rules read SecurityEvent only.

AN0706 Linux

Monitor for suspicious use of commands such as cat, less, grep, or journalctl accessing /var/log/ files. Abnormal enumeration of authentication logs (auth.log, secure) or bulk access to multiple logs in short time windows should be flagged.

MITRE log sourceIn Microsoft Sentinel
auditd:SYSCALLexecve: Execution of cat, less, grep, journalctl targeting log directories (/var/log/)Not mapped to Sentinel yet.
auditd:PATHopen: Access to sensitive log files (/var/log/auth.log, /var/log/secure, /var/log/syslog)Not mapped to Sentinel yet.

AN0707 macOS

Detect abnormal access to unified logs via log show or fs_usage targeting system log files. Monitor for execution of shell utilities (cat, grep) against /var/log/system.log and for plist modifications enabling verbose logging.

MITRE log sourceIn Microsoft Sentinel
macos:unifiedlogExecution of log show, fs_usage, or cat targeting system.logNot mapped to Sentinel yet.
macos:unifiedlogopen: Access to /var/log/system.log or related security event logsNot mapped to Sentinel yet.

AN0708 IaaS

Monitor for cloud API calls that export or collect guest or system logs. Abnormal use of Azure VM Agent’s CollectGuestLogs.exe or AWS CloudWatch GetLogEvents across multiple instances should be correlated with lateral movement or data staging.

MITRE log sourceIn Microsoft Sentinel
AWS:CloudTrailGetLogEvents: High frequency log exports from CloudWatch or equivalent servicesNot mapped to Sentinel yet.
azure:activityCollectGuestLogs: Unexpected collection of guest logs by Azure VM Agent outside normal maintenance windows
  • Azure Activity → AzureActivity
    AzureActivity

AN0709 ESXi

Monitor ESXi shell or API access to host logs under /var/log/. Abnormal enumeration of vmkernel.log, hostd.log, or vpxa.log by unauthorized accounts should be flagged.

MITRE log sourceIn Microsoft Sentinel
esxi:shellExecution of cat, tail, grep targeting /var/log/vmkernel.log or /var/log/hostd.logNot mapped to Sentinel yet.
esxi:hostdread: Access to sensitive log files by non-admin usersNot mapped to Sentinel yet.

Content Hub rules tagged with it (0)

No Content Hub rule is tagged with this technique.

Rules tagged with this technique (or a sub-technique) in their metadata. Whether one fits your connectors is the coverage view (M2).

In Sigma rules

No SigmaHQ rule names it or one of its sub-techniques in their tags outright.

Community rules, not Microsoft's, and not checked by VeriKQL (Sigma is not KQL). From SigmaHQ/sigma at f083329, under the Detection Rule License (DRL) 1.1; each rule is credited to its author.

Mitigations

MITRE ATT&CK® is a registered trademark of The MITRE Corporation. VeriKQL is not affiliated with or endorsed by MITRE. ATT&CK data © The MITRE Corporation, used under its terms of use.