Squiblydoo
Hypothesis and description
Squiblydoo is a specific usage of regsvr32.dll to load a COM scriptlet directly from the internet and execute it in a way that bypasses application whitelisting. It can be seen by looking for regsvr32.exe executions that load the scrobj.dll (which execute the COM scriptlet) or, if that is too noisy, those that also load content directly via HTTP or HTTPS.
Squiblydoo was first written up by Casey Smith at Red Canary, though that blog post is no longer accessible.
- Platforms
- Windows
- Domain
- Host
- Subtypes
- Process
- Submitted
- 2019-04-24
- Contributors
- MITRE
ATT&CK coverage
| Technique | Tactics | Coverage |
|---|---|---|
| T1218 System Binary Proxy ExecutionT1218.010 | Stealth (formerly Defense Evasion) | Moderate |
1 technique, 2 ATT&CK ids including sub-techniques. Links open MITRE ATT&CK.
D3FEND techniques MITRE maps to this analytic
Data model references
Fields from the CAR data model (object/action/field) the analytic reads.
Pseudocode and implementations
Pseudocode version of the above Splunk search.
processes = search Process:Create
squiblydoo_processes = filter processes where (
image_path == "*regsvr32.exe" and command_line == "*scrobj.dll"
)
output squiblydoo_processesThis looks for any and all usage of the scrobj DLL, which is what is used to run COM scriptlets, so it'll detect both loading from network as well as filesystem. This will have almost zero false positives so is suitable for alerting.
index=__your_sysmon_events__ EventCode=1 regsvr32.exe scrobj.dll | search Image="*regsvr32.exe"EQL version of the above Splunk search.
process where subtype.create and
(process_path == "*regsvr32.exe" and command_line == "*scrobj.dll")LogPoint version of the above pseudocode.
norm_id=WindowsSysmon event_id=1 image="*\regsvr32.exe" command="*scrobj.dll"References (from MITRE CAR)
- As usual, credit to Roberto Rodriguez and the ThreatHunter Playbook.
Across MITRE's defensive frameworks
Linked through the 1 ATT&CK technique above.
Counter with D3FEND
Defensive techniques MITRE D3FEND maps to the same ATT&CK techniques.
- D3-FCAFile Creation Analysis1 shared
- D3-SCPSystem Configuration Permissions1 shared
- D3-PSEPProcess Segment Execution Prevention1 shared
- D3-SAORSegment Address Offset Randomization1 shared
- D3-RDRestore Database1 shared
- D3-DIData Inventory1 shared
- D3-AVEAsset Vulnerability Enumeration1 shared
- D3-RSRestore Software1 shared
- D3-SWISoftware Inventory1 shared
- D3-SUSoftware Update1 shared
- D3-DADynamic Analysis1 shared
- D3-EFAEmulated File Analysis1 shared