Detectionhightest
PUA - Ngrok Execution
Detects the use of Ngrok, a utility used for port forwarding and tunneling, often used by threat actors to make local protected services publicly available. Involved domains are bin.equinox.io for download and *.ngrok.io for connections.
Convert In Phoenix Studio
Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.
Launch
Florian Roth (Nextron Systems)Created Fri May 14Updated Tue Feb 21ee37eb7c-a4e7-4cd5-8fa4-efa27f1c3f31windows
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation
Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.
Detection Logic
Detection Logic4 selectors
detection:
selection1:
CommandLine|contains:
- ' tcp 139'
- ' tcp 445'
- ' tcp 3389'
- ' tcp 5985'
- ' tcp 5986'
selection2:
CommandLine|contains|all:
- ' start '
- '--all'
- '--config'
- '.yml'
selection3:
Image|endswith: 'ngrok.exe'
CommandLine|contains:
- ' tcp '
- ' http '
- ' authtoken '
selection4:
CommandLine|contains:
- '.exe authtoken '
- '.exe start --all'
condition: 1 of selection*False Positives
Another tool that uses the command line switches of Ngrok
Ngrok http 3978 (https://learn.microsoft.com/en-us/azure/bot-service/bot-service-debug-channel-ngrok?view=azure-bot-service-4.0)
MITRE ATT&CK
Tactics
Techniques
Rule Metadata
Rule ID
ee37eb7c-a4e7-4cd5-8fa4-efa27f1c3f31
Status
test
Level
high
Type
Detection
Created
Fri May 14
Modified
Tue Feb 21
Path
rules/windows/process_creation/proc_creation_win_pua_ngrok.yml
Raw Tags
attack.command-and-controlattack.t1572