PowerShell Profile Modification
Last updated on:
In this page
About the rule
Rule Type
Standard
Rule Description
Detects the creation or modification of a powershell profile which could indicate suspicious activity as the profile can be used as a mean of persistence
Severity
Trouble
Rule Requirement
Criteria
Action1: actionname = "File Created or Modified" AND FILENAME endswith "\Microsoft.PowerShell_profile.ps1,\PowerShell\profile.ps1,\Program Files\PowerShell\7-preview\profile.ps1,\Program Files\PowerShell\7\profile.ps1,\Windows\System32\WindowsPowerShell\v1.0\profile.ps1,\WindowsPowerShell\profile.ps1" OR OBJECTNAME endswith "\Microsoft.PowerShell_profile.ps1,\PowerShell\profile.ps1,\Program Files\PowerShell\7-preview\profile.ps1,\Program Files\PowerShell\7\profile.ps1,\Windows\System32\WindowsPowerShell\v1.0\profile.ps1,\WindowsPowerShell\profile.ps1" select Action1.HOSTNAME,Action1.MESSAGE,Action1.USERNAME,Action1.DOMAIN,Action1.OBJECTNAME,Action1.FILENAME,Action1.PROCESSNAME
Detection
Execution Mode
realtime
Log Sources
Windows
Author
HieuTT35, Nasreddine Bencherchali (Nextron Systems)


