Skip to content

Commit

Permalink
refactor: more robust reg add ImagePath rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Neo23x0 committed Mar 29, 2022
1 parent 507551c commit cc45743
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,22 @@ references:
- https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1574.011/T1574.011.md#atomic-test-2---service-imagepath-change-with-regexe
author: frack113
date: 2021/12/30
modified: 2022/03/29
logsource:
category: process_creation
product: windows
detection:
selection:
Image|endswith: \reg.exe
Image|endswith: \reg.exe
CommandLine|contains|all:
- 'add '
- 'HKLM\SYSTEM\CurrentControlSet\Services\'
- '/v '
- 'ImagePath '
- '/d '
condition: selection
- 'SYSTEM\CurrentControlSet\Services\'
- ' ImagePath '
selection_value:
CommandLine|contains:
- ' /d '
- ' -d '
condition: all of selection*
falsepositives:
- Unknown
level: medium
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ status: experimental
description: Detects suspicious ways to run Invoke-Execution using IEX acronym
author: Florian Roth
date: 2022/03/24
modified:
references:
- https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/invoke-expression?view=powershell-7.2
logsource:
Expand Down

0 comments on commit cc45743

Please sign in to comment.