-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
new: Bthprops.Cpl sideloading by fsquirt.exe #5856
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
137271f
new: Bthprops.Cpl sideloading by fsquirt.exe
swachchhanda000 3fbc320
fix: invalid tag
swachchhanda000 8141169
filter prefetch folder windows
swachchhanda000 ab0216e
update: add bthprops.cpl in a generic cpl sideloading rule
swachchhanda000 a492af4
update: regression test data
swachchhanda000 d64812a
fix: add missing tactics
swachchhanda000 2692500
Merge branch 'master' into fsquirt
nasbench 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
There are no files selected for viewing
Binary file added
BIN
+68 KB
...ws/image_load/image_load_side_load_bthprops_cpl/81909c5c-7cc6-4e0b-aea7-e1d4ab7abf0f.evtx
Binary file not shown.
59 changes: 59 additions & 0 deletions
59
...ws/image_load/image_load_side_load_bthprops_cpl/81909c5c-7cc6-4e0b-aea7-e1d4ab7abf0f.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,59 @@ | ||
| { | ||
| "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": 7, | ||
| "Version": 3, | ||
| "Level": 4, | ||
| "Task": 7, | ||
| "Opcode": 0, | ||
| "Keywords": "0x8000000000000000", | ||
| "TimeCreated": { | ||
| "#attributes": { | ||
| "SystemTime": "2026-02-04T08:43:28.342637Z" | ||
| } | ||
| }, | ||
| "EventRecordID": 715282, | ||
| "Correlation": null, | ||
| "Execution": { | ||
| "#attributes": { | ||
| "ProcessID": 776, | ||
| "ThreadID": 4352 | ||
| } | ||
| }, | ||
| "Channel": "Microsoft-Windows-Sysmon/Operational", | ||
| "Computer": "srv-01.midgardnet.tech", | ||
| "Security": { | ||
| "#attributes": { | ||
| "UserID": "S-1-5-18" | ||
| } | ||
| } | ||
| }, | ||
| "EventData": { | ||
| "RuleName": "-", | ||
| "UtcTime": "2026-02-04 08:43:28.234", | ||
| "ProcessGuid": "14207D89-06B0-6983-CF01-000000004402", | ||
| "ProcessId": 6672, | ||
| "Image": "C:\\Users\\SwachchhandaP\\Downloads\\fsquirt.exe", | ||
| "ImageLoaded": "C:\\Users\\SwachchhandaP\\Downloads\\bthprops.cpl", | ||
| "FileVersion": "-", | ||
| "Description": "-", | ||
| "Product": "-", | ||
| "Company": "-", | ||
| "OriginalFileName": "-", | ||
| "Hashes": "MD5=221877743CF329314E571E9398EFCA70,SHA256=863390BB749E466975A6A5330CCD077C846E1F387AAE0327AFFE33DF87153E67,IMPHASH=7FF91A855D5B3D338EB5B4CE63698F4A", | ||
| "Signed": "false", | ||
| "Signature": "-", | ||
| "SignatureStatus": "Unavailable", | ||
| "User": "MIDGARDNET\\SwachchhandaP" | ||
| } | ||
| } | ||
| } |
13 changes: 13 additions & 0 deletions
13
regression_data/rules/windows/image_load/image_load_side_load_bthprops_cpl/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: 8ee57597-baba-46bd-8a61-85ff51f7aab6 | ||
| description: N/A | ||
| date: 2026-02-04 | ||
| author: Swachchhanda Shrawan Poudel (Nextron Systems) | ||
| rule_metadata: | ||
| - id: 81909c5c-7cc6-4e0b-aea7-e1d4ab7abf0f | ||
| title: Potential Bthprops.Cpl Sideloading | ||
| regression_tests_info: | ||
| - name: Positive Detection Test | ||
| type: evtx | ||
| provider: Microsoft-Windows-Sysmon | ||
| match_count: 1 | ||
| path: regression_data/rules/windows/image_load/image_load_side_load_bthprops_cpl/81909c5c-7cc6-4e0b-aea7-e1d4ab7abf0f.evtx |
Binary file added
BIN
+68 KB
...ation/proc_creation_win_susp_system_exe_anomaly/e4a6b256-3e47-40fc-89d2-7a477edd6915.evtx
Binary file not shown.
66 changes: 66 additions & 0 deletions
66
...ation/proc_creation_win_susp_system_exe_anomaly/e4a6b256-3e47-40fc-89d2-7a477edd6915.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-02-04T08:52:58.205267Z" | ||
| } | ||
| }, | ||
| "EventRecordID": 715573, | ||
| "Correlation": null, | ||
| "Execution": { | ||
| "#attributes": { | ||
| "ProcessID": 776, | ||
| "ThreadID": 4344 | ||
| } | ||
| }, | ||
| "Channel": "Microsoft-Windows-Sysmon/Operational", | ||
| "Computer": "srv-01.midgardnet.tech", | ||
| "Security": { | ||
| "#attributes": { | ||
| "UserID": "S-1-5-18" | ||
| } | ||
| } | ||
| }, | ||
| "EventData": { | ||
| "RuleName": "-", | ||
| "UtcTime": "2026-02-04 08:52:58.203", | ||
| "ProcessGuid": "14207D89-08EA-6983-2A02-000000004402", | ||
| "ProcessId": 5696, | ||
| "Image": "C:\\Users\\SwachchhandaP\\Downloads\\taskhost.exe", | ||
| "FileVersion": "10.0.20348.1 (WinBuild.160101.0800)", | ||
| "Description": "Windows Calculator", | ||
| "Product": "Microsoft® Windows® Operating System", | ||
| "Company": "Microsoft Corporation", | ||
| "OriginalFileName": "CALC.EXE", | ||
| "CommandLine": "taskhost.exe", | ||
| "CurrentDirectory": "C:\\Users\\SwachchhandaP\\Downloads\\", | ||
| "User": "MIDGARDNET\\SwachchhandaP", | ||
| "LogonGuid": "14207D89-057C-6983-A047-0C0000000000", | ||
| "LogonId": "0xc47a0", | ||
| "TerminalSessionId": 2, | ||
| "IntegrityLevel": "Medium", | ||
| "Hashes": "MD5=1FD4DD58C75D6F2EDCDB337EE686231E,SHA256=4208893C871D2499F184E3F0F2554DA89F451FA9E98D95FC9516C5AE8F2B3BBD,IMPHASH=8EEAA9499666119D13B3F44ECD77A729", | ||
| "ParentProcessGuid": "14207D89-08EA-6983-2902-000000004402", | ||
| "ParentProcessId": 1816, | ||
| "ParentImage": "C:\\Windows\\System32\\cmd.exe", | ||
| "ParentCommandLine": "cmd /c taskhost.exe", | ||
| "ParentUser": "MIDGARDNET\\SwachchhandaP" | ||
| } | ||
| } | ||
| } |
13 changes: 13 additions & 0 deletions
13
...on_data/rules/windows/process_creation/proc_creation_win_susp_system_exe_anomaly/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: 0efa6f32-c1df-4053-91ca-cafc05416e79 | ||
| description: N/A | ||
| date: 2026-02-04 | ||
| author: Swachchhanda Shrawan Poudel (Nextron Systems) | ||
| rule_metadata: | ||
| - id: e4a6b256-3e47-40fc-89d2-7a477edd6915 | ||
| title: System File Execution Location Anomaly | ||
| 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_susp_system_exe_anomaly/e4a6b256-3e47-40fc-89d2-7a477edd6915.evtx |
Binary file added
BIN
+68 KB
...proc_creation_win_svchost_masqueraded_execution/be58d2e2-06c8-4f58-b666-b99f6dc3b6cd.evtx
Binary file not shown.
66 changes: 66 additions & 0 deletions
66
...proc_creation_win_svchost_masqueraded_execution/be58d2e2-06c8-4f58-b666-b99f6dc3b6cd.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-02-04T08:47:45.988926Z" | ||
| } | ||
| }, | ||
| "EventRecordID": 715337, | ||
| "Correlation": null, | ||
| "Execution": { | ||
| "#attributes": { | ||
| "ProcessID": 776, | ||
| "ThreadID": 4344 | ||
| } | ||
| }, | ||
| "Channel": "Microsoft-Windows-Sysmon/Operational", | ||
| "Computer": "srv-01.midgardnet.tech", | ||
| "Security": { | ||
| "#attributes": { | ||
| "UserID": "S-1-5-18" | ||
| } | ||
| } | ||
| }, | ||
| "EventData": { | ||
| "RuleName": "-", | ||
| "UtcTime": "2026-02-04 08:47:45.987", | ||
| "ProcessGuid": "14207D89-07B1-6983-EA01-000000004402", | ||
| "ProcessId": 5592, | ||
| "Image": "C:\\Users\\SwachchhandaP\\Downloads\\svchost.exe", | ||
| "FileVersion": "10.0.20348.1 (WinBuild.160101.0800)", | ||
| "Description": "Windows Calculator", | ||
| "Product": "Microsoft® Windows® Operating System", | ||
| "Company": "Microsoft Corporation", | ||
| "OriginalFileName": "CALC.EXE", | ||
| "CommandLine": ".\\svchost.exe", | ||
| "CurrentDirectory": "C:\\Users\\SwachchhandaP\\Downloads\\", | ||
| "User": "MIDGARDNET\\SwachchhandaP", | ||
| "LogonGuid": "14207D89-057C-6983-A047-0C0000000000", | ||
| "LogonId": "0xc47a0", | ||
| "TerminalSessionId": 2, | ||
| "IntegrityLevel": "Medium", | ||
| "Hashes": "MD5=1FD4DD58C75D6F2EDCDB337EE686231E,SHA256=4208893C871D2499F184E3F0F2554DA89F451FA9E98D95FC9516C5AE8F2B3BBD,IMPHASH=8EEAA9499666119D13B3F44ECD77A729", | ||
| "ParentProcessGuid": "14207D89-0781-6983-E201-000000004402", | ||
| "ParentProcessId": 984, | ||
| "ParentImage": "C:\\Windows\\System32\\cmd.exe", | ||
| "ParentCommandLine": "\"C:\\Windows\\System32\\cmd.exe\"", | ||
| "ParentUser": "MIDGARDNET\\SwachchhandaP" | ||
| } | ||
| } | ||
| } |
13 changes: 13 additions & 0 deletions
13
...a/rules/windows/process_creation/proc_creation_win_svchost_masqueraded_execution/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: 9cee7767-9219-40b3-b77e-dedf82957c94 | ||
| description: N/A | ||
| date: 2026-02-04 | ||
| author: Swachchhanda Shrawan Poudel (Nextron Systems) | ||
| rule_metadata: | ||
| - id: be58d2e2-06c8-4f58-b666-b99f6dc3b6cd | ||
| title: Suspicious Process Masquerading As SvcHost.EXE | ||
| 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_svchost_masqueraded_execution/be58d2e2-06c8-4f58-b666-b99f6dc3b6cd.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
36 changes: 36 additions & 0 deletions
36
rules/windows/image_load/image_load_side_load_bthprops_cpl.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,36 @@ | ||
| title: Potential Bthprops.Cpl Sideloading | ||
| id: 81909c5c-7cc6-4e0b-aea7-e1d4ab7abf0f | ||
| status: experimental | ||
| description: | | ||
| Detects potential DLL sideloading of bthprops.cpl, which can be abused by fsquirt.exe (Bluetooth File Transfer Wizard) to load a malicious DLL from a non-standard location. | ||
| references: | ||
| - https://github.com/mhaskar/FsquirtCPLPoC | ||
| - https://securelist.com/sidewinder-apt/114089/ | ||
| author: Swachchhanda Shrawan Poudel (Nextron Systems) | ||
| date: 2026-02-04 | ||
| tags: | ||
| - attack.defense-evasion | ||
| - attack.persistence | ||
| - attack.privilege-escalation | ||
| - attack.t1574.001 | ||
| logsource: | ||
| category: image_load | ||
| product: windows | ||
| detection: | ||
| selection: | ||
| ImageLoaded|endswith: '\bthprops.cpl' | ||
| filter_main_legitimate_paths: | ||
| ImageLoaded|startswith: | ||
| - 'C:\Windows\Prefetch\' | ||
| - 'C:\Windows\System32\' | ||
| - 'C:\Windows\SysWOW64\' | ||
| - 'C:\Windows\WinSxS\' | ||
| filter_main_legit_signed: | ||
| OriginalFileName: bluetooth.cpl | ||
| Signature: Microsoft Windows | ||
| Signed: true | ||
| condition: selection and not 1 of filter_main_* | ||
| falsepositives: | ||
| - Unlikely | ||
| level: high | ||
| regression_tests_path: regression_data/rules/windows/image_load/image_load_side_load_bthprops_cpl/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
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
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.
Uh oh!
There was an error while loading. Please reload this page.