-
Notifications
You must be signed in to change notification settings - Fork 601
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create include_powershell_profiles.xml
Added PowerShell profile paths for "T1546.013 Event Triggered Execution: PowerShell Profile" detection
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<Sysmon schemaversion="4.30"> | ||
<EventFiltering> | ||
<RuleGroup name="" groupRelation="or"> | ||
<FileCreate onmatch="include"> | ||
<Rule name="technique_id=T1546.013,technique_name=Event Triggered Execution: PowerShell Profile" groupRelation="or"> <!-- PowerShell Profile Rule for T1546.013 --> | ||
<!-- PowerShell 5.1 [ More information: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_profiles?view=powershell-5.1] --> | ||
<TargetFilename condition="is">C:\Users\;\Documents\WindowsPowerShell\Profile.ps1</TargetFilename> | ||
<TargetFilename condition="is">C:\Users\;\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1</TargetFilename> | ||
<TargetFilename condition="is">C:\Windows\System32\WindowsPowerShell\v1.0\Profile.ps1</TargetFilename> | ||
<TargetFilename condition="is">C:\Windows\SysWOW64\WindowsPowerShell\v1.0\Profile.ps1</TargetFilename> | ||
<TargetFilename condition="is">C:\Windows\System32\WindowsPowerShell\v1.0\Microsoft.PowerShell_profile.ps1</TargetFilename> | ||
<TargetFilename condition="is">C:\Windows\SysWOW64\WindowsPowerShell\v1.0\Microsoft.PowerShell_profile.ps1</TargetFilename> | ||
|
||
<!-- PowerShell 7 [ More information: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_profiles?view=powershell-7.4] --> | ||
<TargetFilename condition="is">C:\Program Files\PowerShell\7\Profile.ps1</TargetFilename> | ||
<TargetFilename condition="is">C:\Program Files\PowerShell\7\Microsoft.PowerShell_profile.ps1</TargetFilename> | ||
<TargetFilename condition="is">C:\Users\;\Documents\PowerShell\Profile.ps1</TargetFilename> | ||
<TargetFilename condition="is">C:\Users\;\Documents\PowerShell\Microsoft.PowerShell_profile.ps1</TargetFilename> | ||
</Rule> | ||
</FileCreate> | ||
</RuleGroup> | ||
</EventFiltering> | ||
</Sysmon> |