Skip to content
Threat Feed
high advisory

Detection of Malicious PowerShell Framework Commandlets

This detection identifies the execution of well-known offensive PowerShell commandlets used in exploitation frameworks and post-exploitation activity.

Triage facts

Revision 1
Applicability
Windows
Evidence
Unknown
Severity
High
Action
Elevated
Sources
2 public sources
Freshness
Revision 1Nov 10, 05:35 UTC
Detection
1 rule
Source quality
A1Likely

This intelligence provides a consolidated detection set for identifying the usage of common PowerShell-based exploitation and post-exploitation frameworks. The detection logic focuses on the execution of specific commandlets associated with tools such as PowerSploit, Nishang, ADRecon, and various credential dumping or lateral movement modules. These commandlets are frequently observed in unauthorized administrative activities and exploitation of Windows environments.

Recommendation

  • Enable PowerShell Module Logging (Event ID 4103) across all Windows endpoints to capture commandlet execution metadata.
  • Deploy the provided Sigma rule to your SIEM to monitor for the listed malicious commandlet strings within the "Payload" field.
  • Establish a baseline for legitimate administrative scripts in your environment to distinguish them from the identified offensive toolkit commandlets.
  • Investigate any alert generated by this rule immediately, as it often indicates active post-exploitation activity or credential harvesting.

Immediate actions

Deploy Sigma rule for PowerShell commandlet monitoring

Detection Engineering 48h

Threat Hunt

Audit PowerShell logs for high-frequency execution of administrative cmdlets from unusual sources

T1059.001 medium medium confidence hunt now

Data: Event ID 4103, Event ID 4104

Detection coverage 1

Detect Malicious PowerShell Commandlets

high

Detects the execution of known malicious or offensive PowerShell commandlets associated with various exploitation frameworks.

sigma tactics: discovery, execution techniques: T1059.001 sources: ps_module, windows

Detection queries are available on the platform. Get full rules →