4104 Script Block Logging
Windows PowerShellchecked by code
In Microsoft Sentinel
- Windows event logs (Azure Monitor Agent) →
Event✓ verified by VeriKQLEvent | where EventLog in ("Microsoft-Windows-PowerShell/Operational", "Windows PowerShell") | where EventID == 4104 - Windows Forwarded Events →
WindowsEvent✓ verified by VeriKQLWindowsEvent | where Channel in ("Microsoft-Windows-PowerShell/Operational", "Windows PowerShell") | where EventID == 4104
ATT&CK
T1007T1010T1012T1016T1016.001T1016.002T1027.018T1033T1036.001T1036.002T1049T1056.002T1059.001T1069T1069.002T1070.003T1070.004T1070.005T1070.008T1082T1087.002T1087.003T1114T1114.002T1114.003T1124T1132.001T1132.002T1135T1197T1201T1204.004T1205T1216T1216.001T1216.002T1217T1218.003T1218.004T1218.009T1218.013T1218.014T1222T1222.001T1480T1480.001T1505.002T1556.005T1564.008T1564.011T1615T1674T1679T1690T1700
In Content Hub rules
Used by 0 Content Hub rules that filter for it the way the starter queries do.
In Sigma rules
From aboutLogging (MicrosoftDocs/PowerShell-Docs@a3de8f2, CC-BY-4.0).
Event names, messages and categories are © Microsoft, from Microsoft Learn's documentation sources, used under CC BY 4.0; each page links its source and the commit it was read at. Questions, groupings and notes are VeriKQL's own.