Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create include_powershell_profiles.xml #210

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified 0_custom_configuration/all_modules.txt
Binary file not shown.
Binary file modified 0_custom_configuration/mde_covered_modules.txt
Binary file not shown.
23 changes: 23 additions & 0 deletions 11_file_create/include_powershell_profiles.xml
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="end with">\Documents\WindowsPowerShell\Profile.ps1</TargetFilename>
<TargetFilename condition="end with">\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1</TargetFilename>
<TargetFilename condition="end with">C:\Windows\System32\WindowsPowerShell\v1.0\Profile.ps1</TargetFilename>
<TargetFilename condition="end with">C:\Windows\SysWOW64\WindowsPowerShell\v1.0\Profile.ps1</TargetFilename>
<TargetFilename condition="end with">C:\Windows\System32\WindowsPowerShell\v1.0\Microsoft.PowerShell_profile.ps1</TargetFilename>
<TargetFilename condition="end with">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="end with">\Documents\PowerShell\Profile.ps1</TargetFilename>
<TargetFilename condition="end with">\Documents\PowerShell\Microsoft.PowerShell_profile.ps1</TargetFilename>
<TargetFilename condition="end with">C:\Program Files\PowerShell\7\Profile.ps1</TargetFilename>
<TargetFilename condition="end with">C:\Program Files\PowerShell\7\Microsoft.PowerShell_profile.ps1</TargetFilename>
</Rule>
</FileCreate>
</RuleGroup>
</EventFiltering>
</Sysmon>
16 changes: 16 additions & 0 deletions attack_matrix/Sysmon-modular.json
Original file line number Diff line number Diff line change
Expand Up @@ -1105,6 +1105,22 @@
"comment": "",
"enabled": true,
"metadata": []
},
{
"techniqueID": "T1546.013",
"tactic": "persistence",
"color": "#fd8d3c",
"comment": "",
"enabled": true,
"metadata": []
},
{
"techniqueID": "T1546.013",
"tactic": "privilege-escalation",
"color": "#fd8d3c",
"comment": "",
"enabled": true,
"metadata": []
}
],
"gradient": {
Expand Down
Loading