PowerShell Module File Created By Non-PowerShell Process
Last updated on:
In this page
About the rule
Rule Type
Standard
Rule Description
Detects the creation of a new PowerShell module ".psm1", ".psd1", ".dll", ".ps1", etc. by a non-PowerShell process
Severity
Trouble
Rule Requirement
Criteria
Action1: actionname = "File Created or Modified" AND (FILENAME contains "\WindowsPowerShell\Modules\,\PowerShell\7\Modules" OR OBJECTNAME contains "\WindowsPowerShell\Modules\,\PowerShell\7\Modules") AND PROCESSNAME notendswith ":\Program Files\PowerShell\7-preview\pwsh.exe,:\Program Files\PowerShell\7\pwsh.exe,:\Windows\System32\poqexec.exe,:\Windows\System32\WindowsPowerShell\v1.0\powershell_ise.exe,:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe,:\Windows\SysWOW64\poqexec.exe,:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell_ise.exe,:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe" select Action1.HOSTNAME,Action1.MESSAGE,Action1.USERNAME,Action1.DOMAIN,Action1.OBJECTNAME,Action1.FILENAME,Action1.PROCESSNAME
Detection
Execution Mode
realtime
Log Sources
Windows
Author
Nasreddine Bencherchali (Nextron Systems)


