rule: suspicious programs - no DLL in command line

This commit is contained in:
Florian Roth
2021-05-27 17:49:10 +02:00
parent 61f5e66569
commit a4e6f58b16
2 changed files with 60 additions and 0 deletions
@@ -0,0 +1,33 @@
title: Suspicious Process Start Without DLL
id: f5647edc-a7bf-4737-ab50-ef8c60dc3add
description: Detects suspicious start of program that usually requires a DLL as parameter, which can be a sign of process injection or hollowing activity
status: experimental
references:
- https://twitter.com/CyberRaiju/status/1251492025678983169
- https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/regsvr32
- https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/rundll32
- https://docs.microsoft.com/en-us/dotnet/framework/tools/regasm-exe-assembly-registration-tool
- https://docs.microsoft.com/en-us/dotnet/framework/tools/regsvcs-exe-net-services-installation-tool#feedback
author: Florian Roth
date: 2021/05/27
logsource:
category: process_creation
product: windows
detection:
selection:
CommandLine|endswith:
- '\rundll32.exe'
- '\regsvcs.exe'
- '\regasm.exe'
- '\regsvr32.exe'
filter1:
ParentImage|contains:
- '\AppData\Local\Temp\'
- '\Microsoft\Edge\'
condition: selection and not filter1
fields:
- ParentImage
- ParentCommandLine
falsepositives:
- Possible but rare
level: high
@@ -0,0 +1,27 @@
title: Suspicious Rundll32 Without Any CommandLine Params
id: 1775e15e-b61b-4d14-a1a3-80981298085a
description: Detects suspicious start of rundll32.exe without any parameters as found in CobaltStrike beacon activity
status: experimental
references:
- https://www.cobaltstrike.com/help-opsec
author: Florian Roth
date: 2021/05/27
logsource:
category: process_creation
product: windows
detection:
selection:
CommandLine|endswith: '\rundll32.exe'
filter1:
ParentImage|endswith: '\svchost.exe'
filter2:
ParentImage|contains:
- '\AppData\Local\Temp\'
- '\Microsoft\Edge\'
condition: selection and not filter1 and not filter2
fields:
- ParentImage
- ParentCommandLine
falsepositives:
- Possible but rare
level: high