title: Execution via CL_Invocation.ps1 (2 Lines) author: oscd.community, Natalia Shornikova date: 2020/10/14 description: Detects Execution via SyncInvoke in CL_Invocation.ps1 module detection: SELECTION_1: ScriptBlockText: '*CL_Invocation.ps1*' SELECTION_2: ScriptBlockText: '*SyncInvoke*' condition: (SELECTION_1 or SELECTION_2)| count(ScriptBlockText) by Computer > 2 falsepositives: - Unknown id: f588e69b-0750-46bb-8f87-0e9320d57536 level: high logsource: category: ps_script definition: Script block logging must be enabled product: windows modified: 2021/10/16 references: - https://github.com/LOLBAS-Project/LOLBAS/blob/master/yml/OSScripts/Cl_invocation.yml - https://twitter.com/bohops/status/948061991012327424 status: experimental tags: - attack.defense_evasion - attack.t1216 yml_filename: powershell_cl_invocation_lolscript_count.yml yml_path: /Users/user/Documents/YamatoSecurity/sigma/rules/windows/powershell/powershell_script