Repository navigation
How to remove fields detection in Pipeline #47
Replies: 3 comments 2 replies
|
Example sigma rules transformation title: Invoke-Obfuscation Obfuscated IEX Invocation
id: fd0f5778-d3cb-4c9a-9695-66759d04702a
related:
- id: 51aa9387-1c53-4153-91cc-d73c59ae1ca9
type: derived
description: 'Detects all variations of obfuscated powershell IEX invocation code generated by Invoke-Obfuscation framework from the code block linked in the references'
references:
- https://github.com/danielbohannon/Invoke-Obfuscation/blob/master/Out-ObfuscatedStringCommand.ps1#L873-L888
status: experimental
author: Daniel Bohannon (@Mandiant/@FireEye), oscd.community
date: 2019/11/08
modified: 2021/09/16
tags:
- attack.defense_evasion
- attack.t1027
logsource:
product: windows
service: security
fields:
- ServiceFileName
- EventID
detection:
selection:
EventID: 4697
selection_1:
- ServiceFileName|re: '\$PSHome\[\s*\d{1,3}\s*\]\s*\+\s*\$PSHome\['
- ServiceFileName|re: '\$ShellId\[\s*\d{1,3}\s*\]\s*\+\s*\$ShellId\['
- ServiceFileName|re: '\$env:Public\[\s*\d{1,3}\s*\]\s*\+\s*\$env:Public\['
- ServiceFileName|re: '\$env:ComSpec\[(\s*\d{1,3}\s*,){2}'
- ServiceFileName|re: '\\*mdr\*\W\s*\)\.Name'
- ServiceFileName|re: '\$VerbosePreference\.ToString\('
- ServiceFileName|re: '\String\]\s*\$VerbosePreference'
condition: selection and selection_1
falsepositives:
- Unknown
level: high |
|
Which backend do you use? The exception |
I found the issue when drop all field in selection the So my solution to fixed it is:
It's helpful please let me know i'll commit this to pysigma |

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
When process data fields mapping in pipeline file, i want remove some field before generate query.
I found class DropDetectionItemTransformation() use with detection_item_conditions Example
But when use it's have some Error below
NotImplementedError: Operator 'and' not supported by the backendAll reactions