VeriKQL by Kaushik Saha

T1195 Supply Chain Compromise

Initial Accesson attack.mitre.org

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

How MITRE detects it

DET0537 Behavioral detection for Supply Chain Compromise (package/update tamper → install → first-run)

AN1480 Windows

1) New or updated software is delivered/installed from atypical sources or with signature/hash mismatches; 2) installer/updater writes binaries to unexpected paths or replaces existing signed files; 3) first run causes unsigned/abnormally signed modules to load or child processes to execute, optionally followed by network egress to new destinations.

MITRE log sourceIn Microsoft Sentinel
WinEventLog:SysmonEventCode=1
  • Windows event logs (Azure Monitor Agent) → Event
    Event | where Source == "Microsoft-Windows-Sysmon" | where EventID in (1)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Provider == "Microsoft-Windows-Sysmon" | where EventID in (1)

Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent.

WinEventLog:SysmonEventCode=7
  • Windows event logs (Azure Monitor Agent) → Event
    Event | where Source == "Microsoft-Windows-Sysmon" | where EventID in (7)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Provider == "Microsoft-Windows-Sysmon" | where EventID in (7)

Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent.

WinEventLog:SysmonEventCode=11
  • Windows event logs (Azure Monitor Agent) → Event
    Event | where Source == "Microsoft-Windows-Sysmon" | where EventID in (11)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Provider == "Microsoft-Windows-Sysmon" | where EventID in (11)

Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent.

WinEventLog:Microsoft-Windows-CodeIntegrity/OperationalCodeIntegrity reports 'Invalid image hash' or 'Unsigned image' for new/updated binaries
  • Windows event logs (Azure Monitor Agent) → Event
    Event | where EventLog in ("Microsoft-Windows-CodeIntegrity/Operational")
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Channel in ("Microsoft-Windows-CodeIntegrity/Operational")
NSM:FlowFirst-time egress from host after new install to unknown update endpointsNot mapped to Sentinel yet.

AN1481 Linux

1) Package manager or curl/wget installs/upgrades from non-approved repos or unsigned packages; 2) new ELF written into PATH directories or replacement of existing binaries/libraries; 3) first run leads to unexpected child processes or outbound connections.

MITRE log sourceIn Microsoft Sentinel
auditd:SYSCALLexecve, unlinkNot mapped to Sentinel yet.
auditd:SYSCALLopen, renameNot mapped to Sentinel yet.
journald:packagedpkg/apt install, remove, upgrade eventsNot mapped to Sentinel yet.
NSM:FlowFirst-time egress to unknown registries/mirrors immediately after installNot mapped to Sentinel yet.

AN1482 macOS

1) pkg/notarization installs from atypical sources or with Gatekeeper/AMFI warnings; 2) new Mach-O written into /Applications or ~/Library paths or substitution of signed components; 3) first run from installer spawns unsigned children or exfil.

MITRE log sourceIn Microsoft Sentinel
macos:unifiedloginstaller or system_installd 'PackageKit: install succeeded/failed' with non-notarized or unknown signerNot mapped to Sentinel yet.
macos:osquerylaunchd, processesNot mapped to Sentinel yet.
macos:endpointsecuritywrite, renameNot mapped to Sentinel yet.
NSM:FlowNew egress from app just installed to unknown update endpointsNot mapped to Sentinel yet.

Content Hub rules tagged with it (11)

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

How the Content Hub rules for T1195 are built: their tables, filters, joins, schedules and windows.

In Sigma rules

19 SigmaHQ community rules name it or one of its sub-techniques in their tags.

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

Sub-techniques

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.