Potential Suspicious PowerShell Module File Created
Description
Detects the creation of a new PowerShell module in the first folder of the module directory structure "\WindowsPowerShell\Modules\malware\malware.psm1". This is somewhat an uncommon practice as legitimate modules often includes a version folder.
Query · sigma
selection: TargetFilename|endswith: - \\WindowsPowerShell\\Modules\\*\.ps - \\WindowsPowerShell\\Modules\\*\.dll condition: selection
Known false positives
- False positive rate will vary depending on the environments. Additional filters might be required to make this logic usable in production.