Query: detection rule: Detects suspicious activity where the WMIC process is used to create an autorun registry entry via reg.exe, which is oft
Matching passage: Sigma rule: Detects suspicious activity where the WMIC process is used to create an autorun registry entry via reg.exe, which is oft. Logsource: windows / process_creation. Rule: title: Suspicious Autorun Registry Modified via WMI id: c80e66d8-1780-48a9-b412-46663fd21ac0 status: experimental description: 'Detects suspicious activity where the WMIC process is used to create an autorun registry entry via reg.exe, which is often indicative of persistence mechanisms employed by malware. ' references: - Internal Research - https://github.com/HackTricks-wiki/hacktricks/blob/e4c7b21b8f36c97c35b7c622732b38a189ce18f7/src/windows-hardening/windows-local-privilege-escalation/privilege-escalation-with-autorun-binaries.md author: Swachchhanda Shrawan Poudel (Nextron Systems) date: 2025-02-17 tags: - attack.privilege-escalation - attack.execution - attack.persistence - attack.t1547.001 - attack.t1047 logsource: category: process_creation product: windows detection: selection_execution_img: - Image|endswith: \wmic.exe - OriginalFileName: wmic.exe - ParentImage|endswith: \wmiprvse.exe selection_execution_cmd: CommandLine|contains|all: - reg - ' add ' CommandLine|contains: - \Software\Microsoft\Windows\CurrentVersion\Run - \Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Run - \Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run selection_suspicious_paths_1: CommandLine|contains: - :\Perflogs - :\ProgramData' - :\Windows\Temp - :\Temp - \AppData\Local\Temp - \AppData\Roaming - :\$Recycle.bin - :\Users\Default - :\Users\public - '%temp%' - '%tmp%' - '%Public%' - '%AppData%' selection_suspicious_paths_user_1: CommandLine|contains: :\Users\ selection_suspicious_paths_user_2: CommandLine|contains: - \Favorites - \Favourites - \Contacts - \Music - \Pictures - \Documents - \Photos condition: all of selection_execution_* and (selection_suspicious_paths_1 or (all of selection_suspicious_paths_user_*)) falsepositives: - Legitimate administrative activity or software installations level: high
Near-miss passage: Sigma rule: Detects a suspicious process pattern which could be a sign of an exploited Serv-U service. Logsource: windows / process_creation. Rule: title: Suspicious Serv-U Process Pattern id: 58f4ea09-0fc2-4520-ba18-b85c540b0eaf status: test description: Detects a suspicious process pattern which could be a sign of an exploited Serv-U service references: - https://www.microsoft.com/security/blog/2021/07/13/microsoft-discovers-threat-actor-targeting-solarwinds-serv-u-software-with-0-day-exploit/ author: Florian Roth (Nextron Systems) date: 2021-07-14 modified: 2022-07-14 tags: - attack.credential-access - attack.t1555 - cve.2021-35211 logsource: category: process_creation product: windows detection: selection: ParentImage|endswith: \Serv-U.exe Image|endswith: - \cmd.exe - \powershell.exe - \pwsh.exe - \wscript.exe - \cscript.exe - \sh.exe - \bash.exe - \schtasks.exe - \regsvr32.exe - \wmic.exe - \mshta.exe - \rundll32.exe - \msiexec.exe - \forfiles.exe - \scriptrunner.exe condition: selection falsepositives: - Legitimate uses in which users or programs use the SSH service of Serv-U for remote command execution level: high