Sigma rule: PUA - Ngrok Execution

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-c2aff0b43616, updated 2023-02-21T00:00:00.000Z.

Rule

Title
PUA - Ngrok Execution
Status
test
Level
high
Author
Florian Roth (Nextron Systems)
Date
2021-05-14
Modified
2023-02-21
File
rules/windows/process_creation/proc_creation_win_pua_ngrok.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

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.

Log source

product
windows
category
process_creation

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 (as the rule lists them)

  • 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)

Tags

  • attack.command-and-control
  • attack.t1572

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_pua_ngrok.yml

Sources and licences

  • SigmaHQ

    "PUA - Ngrok Execution" by Florian Roth (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_pua_ngrok.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: PUA - Ngrok Execution",
entity page, dataset version ref-c2aff0b43616, updated 2023-02-21T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/ee37eb7c-a4e7-4cd5-8fa4-efa27f1c3f31 (accessed 2026-11-03).
Underlying source: SigmaHQ rule ee37eb7c-a4e7-4cd5-8fa4-efa27f1c3f31, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.