heroui logo

Potential Suspicious PowerShell Module File Created

Sigma Rules

View Source
Summary
This rule detects the creation of a new PowerShell module file named "malware.psm1" located in the unusual first folder of the PowerShell module directory structure "\WindowsPowerShell\Modules\malware\". Typically, legitimate PowerShell modules will be organized into versioned folders (e.g., \WindowsPowerShell\Modules\malware\1.0.0\malware.psm1). The creation of a module file directly under the 'malware' directory without such versioning indicates a potential malicious practice or an anomaly in module management. By monitoring for file events specifically targeting files with the .ps and .dll extensions within the PowerShell module path, the detection can help identify suspicious activities aimed at persisting malware on Windows systems.
Categories
  • Windows
  • Endpoint
Data Sources
  • File
Created: 2023-05-09