Detectionhightest
Potential Persistence Via Security Descriptors - ScriptBlock
Detects usage of certain functions and keywords that are used to manipulate security descriptors in order to potentially set a backdoor. As seen used in the DAMP project.
Convert In Phoenix Studio
Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.
Launch
Nasreddine Bencherchali (Nextron Systems)Created Thu Jan 052f77047c-e6e9-4c11-b088-a3de399524cdwindows
Log Source
WindowsPowerShell Script
ProductWindows← raw: windows
CategoryPowerShell Script← raw: ps_script
Definition
Requirements: Script Block Logging must be enabled
Detection Logic
Detection Logic1 selector
detection:
selection:
ScriptBlockText|contains|all:
- 'win32_Trustee'
- 'win32_Ace'
- '.AccessMask'
- '.AceType'
- '.SetSecurityDescriptor'
ScriptBlockText|contains:
- '\Lsa\JD'
- '\Lsa\Skew1'
- '\Lsa\Data'
- '\Lsa\GBG'
condition: selectionFalse Positives
Unknown
False positive likelihood has not been assessed. Additional context may be needed during triage.
References
MITRE ATT&CK
Rule Metadata
Rule ID
2f77047c-e6e9-4c11-b088-a3de399524cd
Status
test
Level
high
Type
Detection
Created
Thu Jan 05
Path
rules/windows/powershell/powershell_script/posh_ps_susp_ace_tampering.yml
Raw Tags
attack.persistenceattack.defense-evasionattack.privilege-escalation