Query: rule covering Detects suspicious execution of rundll32, with specific calls to some DLLs with known LOLBIN functionalities
Matching passage: Sigma rule: Detects suspicious execution of rundll32, with specific calls to some DLLs with known LOLBIN functionalities. Logsource: windows / process_creation. Rule: title: Potentially Suspicious Rundll32 Activity id: e593cf51-88db-4ee1-b920-37e89012a3c9 status: test description: Detects suspicious execution of rundll32, with specific calls to some DLLs with known LOLBIN functionalities references: - http://www.hexacorn.com/blog/2017/05/01/running-programs-via-proxy-jumping-on-a-edr-bypass-trampoline/ - https://twitter.com/Hexacorn/status/885258886428725250 - https://gist.github.com/ryhanson/227229866af52e2d963cf941af135a52 - https://twitter.com/nas_bench/status/1433344116071583746 - https://twitter.com/eral4m/status/1479106975967240209 - https://twitter.com/eral4m/status/1479080793003671557 author: juju4, Jonhnathan Ribeiro, oscd.community, Nasreddine Bencherchali (Nextron Systems) date: 2019-01-16 modified: 2023-05-17 tags: - attack.stealth - attack.t1218.011 logsource: category: process_creation product: windows detection: selection: - CommandLine|contains|all: - 'javascript:' - .RegisterXLL - CommandLine|contains|all: - url.dll - OpenURL - CommandLine|contains|all: - url.dll - OpenURLA - CommandLine|contains|all: - url.dll - FileProtocolHandler - CommandLine|contains|all: - zipfldr.dll - RouteTheCall - CommandLine|contains|all: - shell32.dll - Control_RunDLL - CommandLine|contains|all: - shell32.dll - ShellExec_RunDLL - CommandLine|contains|all: - mshtml.dll - PrintHTML - CommandLine|contains|all: - advpack.dll - LaunchINFSection - CommandLine|contains|all: - advpack.dll - RegisterOCX - CommandLine|contains|all: - ieadvpack.dll - LaunchINFSection - CommandLine|contains|all: - ieadvpack.dll - RegisterOCX - CommandLine|contains|all: - ieframe.dll - OpenURL - CommandLine|contains|all: - shdocvw.dll - OpenURL - CommandLine|contains|all: - syssetup.dll - SetupInfObjectInstallAction - CommandLine|contains|all: - setupapi.dll - InstallHinfSection - CommandLine|contains|all: - pcwutl.dll - LaunchApplication - CommandLine|contains|all: - dfshim.dll - ShOpenVerbApplication - CommandLine|contains|all: - dfshim.dll - ShOpenVerbShortcut - CommandLine|contains|all: - scrobj.dll - GenerateTypeLib - http - CommandLine|contains|all: - shimgvw.dll - ImageView_Fullscreen - http - CommandLine|contains|all: - comsvcs.dll - MiniDump filter_main_screensaver: CommandLine|contains: shell32.dll,Control_RunDLL desk.cpl,screensaver,@screensaver filter_main_parent_cpl: ParentImage: C:\Windows\System32\control.exe ParentCommandLine|contains: .cpl CommandLine|contains|all: - Shell32.dll - Control_RunDLL - .cpl filter_main_startmenu: ParentImage:
Near-miss passage: Sigma rule: Detects changes to the "Default" property for keys located in the \Software\Microsoft\Windows\CurrentVersion\App Paths\. Logsource: windows / registry_set. Rule: title: Potential Persistence Via App Paths Default Property id: 707e097c-e20f-4f67-8807-1f72ff4500d6 status: test description: 'Detects changes to the "Default" property for keys located in the \Software\Microsoft\Windows\CurrentVersion\App Paths\ registry. Which might be used as a method of persistence The entries found under App Paths are used primarily for the following purposes. First, to map an application''s executable file name to that file''s fully qualified path. Second, to prepend information to the PATH environment variable on a per-application, per-process basis. ' references: - https://www.hexacorn.com/blog/2013/01/19/beyond-good-ol-run-key-part-3/ - https://learn.microsoft.com/en-us/windows/win32/shell/app-registration author: Nasreddine Bencherchali (Nextron Systems) date: 2022-08-10 modified: 2023-08-17 tags: - attack.privilege-escalation - attack.persistence - attack.t1546.012 logsource: category: registry_set product: windows detection: selection: TargetObject|contains: \SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths TargetObject|endswith: - (Default) - Path Details|contains: - \Users\Public - \AppData\Local\Temp\ - \Windows\Temp\ - \Desktop\ - \Downloads\ - '%temp%' - '%tmp%' - iex - Invoke- - rundll32 - regsvr32 - mshta - cscript - wscript - .bat - .hta - .dll - .ps1 condition: selection falsepositives: - Legitimate applications registering their binary from on of the suspicious locations mentioned above (tune it) level: high