refactor condition
This commit is contained in:
@@ -15,7 +15,7 @@ logsource:
|
||||
category: ps_script
|
||||
definition: 'It is recommended to use the new "Script Block Logging" of PowerShell v5 https://adsecurity.org/?p=2277'
|
||||
detection:
|
||||
Malicious:
|
||||
selection:
|
||||
ScriptBlockText|contains:
|
||||
- 'AdjustTokenPrivileges'
|
||||
- 'IMAGE_NT_OPTIONAL_HDR64_MAGIC'
|
||||
@@ -37,7 +37,7 @@ detection:
|
||||
- 'TOKEN_QUERY'
|
||||
- 'Metasploit'
|
||||
- 'Mimikatz'
|
||||
condition: Malicious
|
||||
condition: selection
|
||||
falsepositives:
|
||||
- Unknown
|
||||
level: high
|
||||
|
||||
+2
-2
@@ -14,11 +14,11 @@ logsource:
|
||||
category: ps_script
|
||||
definition: Script block logging must be enabled
|
||||
detection:
|
||||
dump:
|
||||
selection:
|
||||
ScriptBlockText|contains|all:
|
||||
- 'Get-StorageDiagnosticInfo'
|
||||
- '-IncludeLiveDump'
|
||||
condition: dump
|
||||
condition: selection
|
||||
falsepositives:
|
||||
- Diagnostics
|
||||
level: high
|
||||
|
||||
+2
-2
@@ -15,7 +15,7 @@ logsource:
|
||||
category: ps_script
|
||||
definition: Script block logging must be enabled
|
||||
detection:
|
||||
Nishang:
|
||||
selection:
|
||||
ScriptBlockText|contains:
|
||||
- Add-ConstrainedDelegationBackdoor
|
||||
- Set-DCShadowPermissions
|
||||
@@ -88,7 +88,7 @@ detection:
|
||||
- NotAllNameSpaces
|
||||
- exfill
|
||||
- FakeDC
|
||||
condition: Nishang
|
||||
condition: selection
|
||||
falsepositives:
|
||||
- Unknown
|
||||
level: high
|
||||
|
||||
@@ -16,9 +16,9 @@ logsource:
|
||||
category: ps_script
|
||||
definition: Script Block Logging must be enabled
|
||||
detection:
|
||||
PfxCertificate:
|
||||
selection:
|
||||
ScriptBlockText|contains: 'Export-PfxCertificate'
|
||||
condition: PfxCertificate
|
||||
condition: selection
|
||||
falsepositives:
|
||||
- Legitimate certificate exports invoked by administrators or users (depends on processes in the environment - filter if unusable)
|
||||
level: high
|
||||
|
||||
@@ -15,9 +15,9 @@ logsource:
|
||||
category: ps_script
|
||||
definition: Script Block Logging must be enabled
|
||||
detection:
|
||||
select_LSASS:
|
||||
selection:
|
||||
ScriptBlockText|contains: 'Get-Process lsass'
|
||||
condition: select_LSASS
|
||||
condition: selection
|
||||
falsepositives:
|
||||
- Legitimate certificate exports invoked by administrators or users (depends on processes in the environment - filter if unusable)
|
||||
level: high
|
||||
|
||||
@@ -18,7 +18,7 @@ logsource:
|
||||
category: ps_script
|
||||
definition: Script block logging must be enabled for 4104
|
||||
detection:
|
||||
framework:
|
||||
selection:
|
||||
ScriptBlockText|contains:
|
||||
- 'System.Reflection.Assembly.Load($'
|
||||
- '[System.Reflection.Assembly]::Load($'
|
||||
@@ -31,7 +31,7 @@ detection:
|
||||
# - 'FromBase64'
|
||||
- 'Invoke-WMIMethod'
|
||||
- 'http://127.0.0.1'
|
||||
condition: framework
|
||||
condition: selection
|
||||
falsepositives:
|
||||
- Unknown
|
||||
level: high
|
||||
|
||||
Reference in New Issue
Block a user