HackTool - Wmiexec Default Powershell Command
Detects the execution of PowerShell with a specific flag sequence that is used by the Wmiexec script
Detection logic
selection
CommandLine|contains: -NoP -NoL -sta -NonI -W Hidden -Exec Bypass -EncCondition
selectionRaw YAML
title: HackTool - Wmiexec Default Powershell Command
id: 022eaba8-f0bf-4dd9-9217-4604b0bb3bb0
status: test
description: Detects the execution of PowerShell with a specific flag sequence that is used by the Wmiexec script
references:
- https://github.com/fortra/impacket/blob/f4b848fa27654ca95bc0f4c73dbba8b9c2c9f30a/examples/wmiexec.py
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-03-08
tags:
- attack.lateral-movement
- attack.stealth
logsource:
category: process_creation
product: windows
detection:
selection:
CommandLine|contains: '-NoP -NoL -sta -NonI -W Hidden -Exec Bypass -Enc'
condition: selection
falsepositives:
- Unlikely
level: highFalse positives
- Unlikely
References
Similar rules
Password Provided In Command Line Of Net.EXE
mediumwindows · Same logsource category (process_creation)
Potential Exploitation of RCE Vulnerability CVE-2025-33053
highwindows · Same logsource category (process_creation)
Rundll32 UNC Path Execution
highwindows · Same logsource category (process_creation)
Suspicious BitLocker Access Agent Update Utility Execution
highwindows · Same logsource category (process_creation)