Query: detection rule: 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 legitimate applications writing any type of file to uncommon or suspicious locations that are not typical for ap. Logsource: windows / file_event. Rule: title: Legitimate Application Writing Files In Uncommon Location id: 1cf465a1-2609-4c15-9b66-c32dbe4bfd67 related: - id: 2ddef153-167b-4e89-86b6-757a9e65dcac type: similar status: experimental description: 'Detects legitimate applications writing any type of file to uncommon or suspicious locations that are not typical for application data storage or execution. Adversaries may leverage legitimate applications (Living off the Land Binaries - LOLBins) to drop or download malicious files to uncommon locations on the system to evade detection by security solutions. ' references: - https://lolbas-project.github.io/#/download author: Swachchhanda Shrawan Poudel (Nextron Systems) date: 2025-12-10 tags: - attack.stealth - attack.t1218 - attack.command-and-control - attack.t1105 logsource: product: windows category: file_event detection: selection_img: Image|endswith: - \eqnedt32.exe - \wordpad.exe - \wordview.exe - \cmdl32.exe - \certutil.exe - \certoc.exe - \CertReq.exe - \bitsadmin.exe - \Desktopimgdownldr.exe - \esentutl.exe - \expand.exe - \extrac32.exe - \replace.exe - \mshta.exe - \ftp.exe - \Ldifde.exe - \RdrCEF.exe - \hh.exe - \finger.exe - \findstr.exe selection_locations: TargetFilename|contains: - :\Perflogs - :\ProgramData\ - :\Temp\ - :\Users\Public\ - :\Windows\ - \$Recycle.Bin\ - \AppData\Local\ - \AppData\Roaming\ - \Contacts\ - \Desktop\ - \Favorites\ - \Favourites\ - \inetpub\wwwroot\ - \Music\ - \Pictures\ - \Start Menu\Programs\Startup\ - \Users\Default\ - \Videos\ condition: all of selection_* falsepositives: - Unknown level: high regression_tests_path: regression_data/rules/windows/file/file_event/file_event_win_susp_legitimate_app_dropping_in_uncommon_location/info.yml