Query: rule covering Detects uncommon or suspicious child processes spawning from a VsCode "code.exe" process. This could indicate an attempt
Matching passage: Sigma rule: Detects uncommon or suspicious child processes spawning from a VsCode "code.exe" process. This could indicate an attempt. Logsource: windows / process_creation. Rule: title: Potentially Suspicious Child Process Of VsCode id: 5a3164f2-b373-4152-93cf-090b13c12d27 status: test description: Detects uncommon or suspicious child processes spawning from a VsCode "code.exe" process. This could indicate an attempt of persistence via VsCode tasks or terminal profiles. references: - https://twitter.com/nas_bench/status/1618021838407495681 - https://twitter.com/nas_bench/status/1618021415852335105 author: Nasreddine Bencherchali (Nextron Systems) date: 2023-01-26 modified: 2023-10-25 tags: - attack.execution - attack.stealth - attack.t1218 - attack.t1202 logsource: category: process_creation product: windows detection: selection_parent: ParentImage|endswith: \code.exe selection_children_images: Image|endswith: - \calc.exe - \regsvr32.exe - \rundll32.exe - \cscript.exe - \wscript.exe selection_children_cli: Image|endswith: - \powershell.exe - \pwsh.exe - \cmd.exe CommandLine|contains: - Invoke-Expressions - IEX - Invoke-Command - ICM - DownloadString - rundll32 - regsvr32 - wscript - cscript selection_children_paths: Image|contains: - :\Users\Public\ - :\Windows\Temp\ - :\Temp\ condition: selection_parent and 1 of selection_children_* falsepositives: - In development environment where VsCode is used heavily. False positives may occur when developers use task to compile or execute different types of code. Remove or add processes accordingly level: medium
Near-miss passage: Sigma rule: Detects suspicious Windows Defender Application Control (WDAC) policy file creation from abnormal processes that could b. Logsource: windows / file_event. Rule: title: Potentially Suspicious WDAC Policy File Creation id: 1d2de8a6-4803-4fde-b85b-f58f3aa7a705 status: experimental description: 'Detects suspicious Windows Defender Application Control (WDAC) policy file creation from abnormal processes that could be abused by attacker to block EDR/AV components while allowing their own malicious code to run on the system. ' references: - https://learn.microsoft.com/en-us/windows/security/application-security/application-control/app-control-for-business/deployment/deploy-appcontrol-policies-using-group-policy - https://beierle.win/2024-12-20-Weaponizing-WDAC-Killing-the-Dreams-of-EDR/ - https://learn.microsoft.com/en-us/windows/security/application-security/application-control/app-control-for-business/deployment/appcontrol-deployment-guide - https://learn.microsoft.com/en-us/windows/security/application-security/application-control/app-control-for-business/deployment/deploy-appcontrol-policies-with-script - https://learn.microsoft.com/en-us/windows/security/application-security/application-control/app-control-for-business/deployment/deploy-appcontrol-policies-with-memcm author: X__Junior date: 2025-02-07 modified: 2026-05-18 tags: - attack.defense-impairment logsource: category: file_event product: windows detection: selection_target: TargetFilename|contains: \Windows\System32\CodeIntegrity\ filter_main_images: Image|endswith: - \Microsoft.ConfigurationManagement.exe - \WDAC Wizard.exe - C:\Program Files\PowerShell\7-preview\pwsh.exe - C:\Program Files\PowerShell\7\pwsh.exe - C:\Windows\System32\dllhost.exe - C:\Windows\System32\WindowsPowerShell\v1.0\powershell_ise.exe - C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe - C:\Windows\SysWOW64\dllhost.exe - C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell_ise.exe - C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe filter_main_cli: - CommandLine|contains|all: - ConvertFrom-CIPolicy -XmlFilePath - '-BinaryFilePath ' - CommandLine|contains: CiTool --update-policy - CommandLine|contains|all: - Copy-Item -Path - -Destination filter_main_system: Image: System filter_main_wuauclt: Image: C:\Windows\System32\wuauclt.exe filter_main_wuaucltcore: Image: - C:\Windows\UUS\arm64\wuaucltcore.exe - C:\Windows\UUS\Packages\Preview\arm64\wuaucltcore.exe condition: selection_target and not 1 of filter_main_* falsepositives: - Administrators and security vendors could leverage WDAC, apply additional filters as needed. level: medium