Suspicious Advpack Call Via Rundll32.EXE
Detects execution of "rundll32" calling "advpack.dll" with potential obfuscated ordinal calls in order to leverage the "RegisterOCX" function
Detection logic
selection_img
- Image|endswith: \rundll32.exe
- OriginalFileName: RUNDLL32.EXE
- CommandLine|contains: rundll32selection_cli_dll
CommandLine|contains: advpackselection_cli_ordinal
- CommandLine|contains|all:
- "#+"
- "12"
- CommandLine|contains: "#-"Condition
all of selection_*Raw YAML
title: Suspicious Advpack Call Via Rundll32.EXE
id: a1473adb-5338-4a20-b4c3-126763e2d3d3
status: test
description: Detects execution of "rundll32" calling "advpack.dll" with potential obfuscated ordinal calls in order to leverage the "RegisterOCX" function
references:
- https://twitter.com/Hexacorn/status/1224848930795552769
- http://www.hexacorn.com/blog/2020/02/05/stay-positive-lolbins-not/
author: Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)
date: 2023-05-17
tags:
- attack.stealth
logsource:
category: process_creation
product: windows
detection:
selection_img:
- Image|endswith: '\rundll32.exe'
- OriginalFileName: 'RUNDLL32.EXE'
- CommandLine|contains: 'rundll32'
selection_cli_dll:
CommandLine|contains: 'advpack'
selection_cli_ordinal:
- CommandLine|contains|all:
- '#+'
- '12'
- CommandLine|contains: '#-'
condition: all of selection_*
falsepositives:
- Unlikely
level: highFalse positives
- Unlikely
References
Similar rules
Abuse of Service Permissions to Hide Services Via Set-Service
highwindows · Same logsource category (process_creation)
Abusing Print Executable
mediumwindows · Same logsource category (process_creation)
AddinUtil.EXE Execution From Uncommon Directory
mediumwindows · Same logsource category (process_creation)
AgentExecutor PowerShell Execution
mediumwindows · Same logsource category (process_creation)