Skip to content

Add rule to detect makecab staging of LOLBins #5254

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
title: Suspicious Makecab Usage Against Known LOLBins
id: 14fdd486-8a7d-4772-a0b2-be7335f3c008
status: experimental
description: |
Detects usage of makecab.exe to compress known LOLBins (regsvr32, rundll32, mshta, certreq).
Attackers often use this technique for staging and defense evasion.
This rule specifically looks for makecab.exe referencing these binaries in its command line,
which is typically uncommon in normal environments.
references:
- https://lolbas-project.github.io
- https://attack.mitre.org/techniques/T1560/001
- https://car.mitre.org/analytics/CAR-2020-05-003
Comment on lines +10 to +12
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you share a public reference or paste a log that you tested.

author: alexegorov1
date: 2025-04-04
tags:
- attack.execution
- attack.defense-evasion
- attack.t1218
logsource:
product: windows
category: process_creation
service: sysmon
detection:
selection_makecab_lolbins:
Image|contains: 'makecab.exe'
CommandLine|contains:
- 'regsvr32.exe'
- 'certreq.exe'
- 'rundll32.exe'
- 'mshta.exe'
condition: selection_makecab_lolbins
fields:
- CommandLine
- ParentImage
- ParentCommandLine
- CurrentDirectory
falsepositives:
- Rare legitimate packaging scenarios involving these tools
level: medium