-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Add Ligolo-ng tunneling tool detection #5818
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
SecMab
wants to merge
13
commits into
SigmaHQ:master
Choose a base branch
from
SecMab:SecMab-patch-1
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
1c9f505
Add Ligolo-ng tunneling tool detection
SecMab e849615
Apply reviewer feedback - fix date format, YAML indentation, remove M…
SecMab 5e4efbd
Refactor: AND logic + CLI spacing for FP reduction
SecMab ffb70de
---
SecMab a7bde01
fix: logic changes and new dns rule
swachchhanda000 ff55e9d
fix: yamlinting
swachchhanda000 bddad24
fix: rules
swachchhanda000 18e200e
fix: add missing flag
swachchhanda000 e769d9f
add regression test
swachchhanda000 b5d2226
Merge branch 'master' into SecMab-patch-1
swachchhanda000 d5c71d7
fix: trailing whitespace
swachchhanda000 2aa1157
fix: author
swachchhanda000 a2e3459
Apply suggestions from code review
swachchhanda000 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
Binary file added
BIN
+68 KB
...rules/windows/dns_query/dns_query_win_ligolo_ng/2a4f57b2-3c8e-4d91-a6f4-8b7e1c9d0f3a.evtx
Binary file not shown.
52 changes: 52 additions & 0 deletions
52
...rules/windows/dns_query/dns_query_win_ligolo_ng/2a4f57b2-3c8e-4d91-a6f4-8b7e1c9d0f3a.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| { | ||
| "Event": { | ||
| "#attributes": { | ||
| "xmlns": "http://schemas.microsoft.com/win/2004/08/events/event" | ||
| }, | ||
| "System": { | ||
| "Provider": { | ||
| "#attributes": { | ||
| "Name": "Microsoft-Windows-Sysmon", | ||
| "Guid": "5770385F-C22A-43E0-BF4C-06F5698FFBD9" | ||
| } | ||
| }, | ||
| "EventID": 22, | ||
| "Version": 5, | ||
| "Level": 4, | ||
| "Task": 22, | ||
| "Opcode": 0, | ||
| "Keywords": "0x8000000000000000", | ||
| "TimeCreated": { | ||
| "#attributes": { | ||
| "SystemTime": "2026-02-19T04:33:37.725098Z" | ||
| } | ||
| }, | ||
| "EventRecordID": 138210, | ||
| "Correlation": null, | ||
| "Execution": { | ||
| "#attributes": { | ||
| "ProcessID": 3348, | ||
| "ThreadID": 4312 | ||
| } | ||
| }, | ||
| "Channel": "Microsoft-Windows-Sysmon/Operational", | ||
| "Computer": "swachchhanda", | ||
| "Security": { | ||
| "#attributes": { | ||
| "UserID": "S-1-5-18" | ||
| } | ||
| } | ||
| }, | ||
| "EventData": { | ||
| "RuleName": "-", | ||
| "UtcTime": "2026-02-13 12:43:59.338", | ||
| "ProcessGuid": "0197231E-7D65-698E-E103-000000000F00", | ||
| "ProcessId": 6188, | ||
| "QueryName": "webui.ligolo.ng", | ||
| "QueryStatus": "9003", | ||
| "QueryResults": "-", | ||
| "Image": "C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe", | ||
| "User": "swachchhanda\\xodih" | ||
| } | ||
| } | ||
| } |
13 changes: 13 additions & 0 deletions
13
regression_data/rules/windows/dns_query/dns_query_win_ligolo_ng/info.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| id: b9bd9c9c-c20b-41c3-b69f-7d5055e42319 | ||
| description: N/A | ||
| date: 2026-02-19 | ||
| author: Swachchhanda Shrawan Poudel (Nextron Systems) | ||
| rule_metadata: | ||
| - id: 2a4f57b2-3c8e-4d91-a6f4-8b7e1c9d0f3a | ||
| title: DNS Query to Ligolo-ng WebUI Domain | ||
| regression_tests_info: | ||
| - name: Positive Detection Test | ||
| type: evtx | ||
| provider: Microsoft-Windows-Sysmon | ||
| match_count: 1 | ||
| path: regression_data/rules/windows/dns_query/dns_query_win_ligolo_ng/2a4f57b2-3c8e-4d91-a6f4-8b7e1c9d0f3a.evtx |
Binary file added
BIN
+68 KB
...ocess_creation/proc_creation_win_hktl_ligolo_ng/0074da8e-5b3f-456b-9bf9-70beaf4bfb0d.evtx
Binary file not shown.
66 changes: 66 additions & 0 deletions
66
...ocess_creation/proc_creation_win_hktl_ligolo_ng/0074da8e-5b3f-456b-9bf9-70beaf4bfb0d.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| { | ||
| "Event": { | ||
| "#attributes": { | ||
| "xmlns": "http://schemas.microsoft.com/win/2004/08/events/event" | ||
| }, | ||
| "System": { | ||
| "Provider": { | ||
| "#attributes": { | ||
| "Name": "Microsoft-Windows-Sysmon", | ||
| "Guid": "5770385F-C22A-43E0-BF4C-06F5698FFBD9" | ||
| } | ||
| }, | ||
| "EventID": 1, | ||
| "Version": 5, | ||
| "Level": 4, | ||
| "Task": 1, | ||
| "Opcode": 0, | ||
| "Keywords": "0x8000000000000000", | ||
| "TimeCreated": { | ||
| "#attributes": { | ||
| "SystemTime": "2026-01-01T13:51:06.852220Z" | ||
| } | ||
| }, | ||
| "EventRecordID": 979, | ||
| "Correlation": null, | ||
| "Execution": { | ||
| "#attributes": { | ||
| "ProcessID": 3464, | ||
| "ThreadID": 7448 | ||
| } | ||
| }, | ||
| "Channel": "Microsoft-Windows-Sysmon/Operational", | ||
| "Computer": "Win11", | ||
| "Security": { | ||
| "#attributes": { | ||
| "UserID": "S-1-5-18" | ||
| } | ||
| } | ||
| }, | ||
| "EventData": { | ||
| "RuleName": "-", | ||
| "UtcTime": "2026-01-01 13:51:06.851", | ||
| "ProcessGuid": "EBAE1502-7BCA-6956-ED02-000000000F00", | ||
| "ProcessId": 3016, | ||
| "Image": "C:\\Tools\\Ligolo\\agent.exe", | ||
| "FileVersion": "-", | ||
| "Description": "-", | ||
| "Product": "-", | ||
| "Company": "-", | ||
| "OriginalFileName": "-", | ||
| "CommandLine": "\"C:\\Tools\\Ligolo\\agent.exe\" -connect 127.0.0.1:11601 -ignore-cert", | ||
| "CurrentDirectory": "C:\\Tools\\Ligolo\\", | ||
| "User": "WIN11\\vboxuser", | ||
| "LogonGuid": "EBAE1502-7359-6956-666A-1E0000000000", | ||
| "LogonId": "0x1e6a66", | ||
| "TerminalSessionId": 1, | ||
| "IntegrityLevel": "High", | ||
| "Hashes": "MD5=C06551E7E0016A688D03FD9B414CFD76,SHA256=BB8D408A966628DAA0D1842E3F70A3A534DE7600C2B6484722D0B82956160F9E,IMPHASH=F0EA7B7844BBC5BFA9BB32EFDCEA957C", | ||
| "ParentProcessGuid": "EBAE1502-7A14-6956-B902-000000000F00", | ||
| "ParentProcessId": 1568, | ||
| "ParentImage": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe", | ||
| "ParentCommandLine": "\"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe\"", | ||
| "ParentUser": "WIN11\\vboxuser" | ||
| } | ||
| } | ||
| } |
13 changes: 13 additions & 0 deletions
13
regression_data/rules/windows/process_creation/proc_creation_win_hktl_ligolo_ng/info.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| id: a6308f97-4c9b-4c8d-84be-9bd3607f8586 | ||
| description: N/A | ||
| date: 2026-02-19 | ||
| author: MAB | ||
| rule_metadata: | ||
| - id: 0074da8e-5b3f-456b-9bf9-70beaf4bfb0d | ||
| title: HackTool - Ligolo-ng Tunneling Tool Execution | ||
| regression_tests_info: | ||
| - name: Positive Detection Test | ||
| type: evtx | ||
| provider: Microsoft-Windows-Sysmon | ||
| match_count: 1 | ||
| path: regression_data/rules/windows/process_creation/proc_creation_win_hktl_ligolo_ng/0074da8e-5b3f-456b-9bf9-70beaf4bfb0d.evtx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| title: DNS Query to Hacktool Ligolo-ng WebUI Domain - Network | ||
| id: fdc4968b-6476-41ab-8034-d370bff68723 | ||
| related: | ||
| - id: 2a4f57b2-3c8e-4d91-a6f4-8b7e1c9d0f3a | ||
| type: similar | ||
| status: experimental | ||
| description: | | ||
| Detects DNS queries to the Ligolo-ng WebUI domain, which may indicate the use of the Ligolo-ng tunneling tool's web interface for managing reverse tunnels. | ||
| This might indicate potential command-and-control activity or unauthorized use of the Ligolo-ng tool within the network, as the WebUI is commonly used for controlling and monitoring tunnels established by Ligolo-ng. | ||
| Threat actors may leverage Ligolo-ng for network pivoting and lateral movement, and DNS queries to its WebUI domain could be a sign of such activity. | ||
| references: | ||
| - https://docs.ligolo-ng.io/ | ||
| - https://github.com/nicocha30/ligolo-ng | ||
| author: Swachchhanda Shrawan Poudel (Nextron Systems) | ||
| date: 2026-02-19 | ||
| tags: | ||
| - attack.command-and-control | ||
| - attack.t1572 | ||
| - attack.t1090 | ||
| logsource: | ||
| category: dns | ||
| detection: | ||
| selection: | ||
| query: 'webui.ligolo.ng' | ||
| condition: selection | ||
| falsepositives: | ||
| - Legitimate use of Ligolo-ng for remote management; should be rare in enterprise environments | ||
| level: high |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| title: DNS Query to Hacktool Ligolo-ng WebUI Domain | ||
| id: 2a4f57b2-3c8e-4d91-a6f4-8b7e1c9d0f3a | ||
| related: | ||
| - id: fdc4968b-6476-41ab-8034-d370bff68723 | ||
| type: similar | ||
| status: experimental | ||
| description: | | ||
| Detects DNS queries to the Ligolo-ng WebUI domain, which may indicate the use of the Ligolo-ng tunneling tool's web interface for managing reverse tunnels. | ||
| This might indicate potential command-and-control activity or unauthorized use of the Ligolo-ng tool within the network, as the WebUI is commonly used for controlling and monitoring tunnels established by Ligolo-ng. | ||
| Threat actors may leverage Ligolo-ng for network pivoting and lateral movement, and DNS queries to its WebUI domain could be a sign of such activity. | ||
| references: | ||
| - https://docs.ligolo-ng.io/ | ||
| - https://github.com/nicocha30/ligolo-ng | ||
| author: Swachchhanda Shrawan Poudel (Nextron Systems) | ||
| date: 2026-02-19 | ||
| tags: | ||
| - attack.command-and-control | ||
| - attack.t1572 | ||
| - attack.t1090 | ||
| logsource: | ||
| category: dns_query | ||
| product: windows | ||
| detection: | ||
| selection: | ||
| QueryName: 'webui.ligolo.ng' | ||
| condition: selection | ||
| falsepositives: | ||
| - Legitimate use of Ligolo-ng for remote management; should be rare in enterprise environments | ||
| level: high | ||
| regression_tests_path: regression_data/rules/windows/dns_query/dns_query_win_ligolo_ng/info.yml |
40 changes: 40 additions & 0 deletions
40
rules/windows/process_creation/proc_creation_win_hktl_ligolo_ng.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| title: HackTool - Ligolo-ng Tunneling Tool Execution | ||
| id: 0074da8e-5b3f-456b-9bf9-70beaf4bfb0d | ||
| status: experimental | ||
| description: | | ||
| Detects execution of Ligolo-ng tunneling agent or proxy used for network pivoting. Ligolo-ng is a tool that allows attackers to create encrypted tunnels for command-and-control communication or lateral movement. | ||
| Threat actors may use Ligolo-ng to bypass network segmentation and access internal resources on compromised networks. | ||
| references: | ||
| - https://github.com/nicocha30/ligolo-ng | ||
| - https://docs.ligolo.ng/ | ||
| author: MAB | ||
| date: 2026-02-19 | ||
|
|
||
| tags: | ||
| - attack.command-and-control | ||
| - attack.t1572 | ||
| - attack.t1090.001 | ||
| logsource: | ||
| category: process_creation | ||
| product: windows | ||
| detection: | ||
| selection_img: | ||
| - Image|contains: '\ligolo' | ||
| - CommandLine|contains: '\ligolo' | ||
| selection_agent: | ||
| Image|endswith: '\agent.exe' | ||
| CommandLine|contains: | ||
| - '-connect' | ||
| - '-ignore-cert' | ||
| - '-retry' | ||
| selection_proxy: | ||
| Image|endswith: '\proxy.exe' | ||
| CommandLine|contains: | ||
| - '-autocert' | ||
| - '-laddr' | ||
| - '-selfcert' | ||
| condition: 1 of selection_* | ||
| falsepositives: | ||
| - Legitimate use of Ligolo-ng for remote management; should be rare in enterprise environments | ||
| level: high | ||
| regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_hktl_ligolo_ng/info.yml | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like the best option possible, but i think the selection might still be prone to FPS issues? What are your thoughts on this, @nasbench?