-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
update: disable autologger session #5815
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
swachchhanda000
wants to merge
5
commits into
SigmaHQ:master
Choose a base branch
from
swachchhanda000:disable_autologger_Session
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 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
346de06
new: disable autologger session
swachchhanda000 3244e56
chore: add regression tests and simulation link
swachchhanda000 2e26e01
fix: incorrect filename
swachchhanda000 ad21655
apply changes
swachchhanda000 346b377
fix: regression path
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
There are no files selected for viewing
Binary file added
BIN
+68 KB
...ion/proc_creaton_win_disable_autologger_session/d7b81144-b866-48a4-9bcc-275dc69d870e.evtx
Binary file not shown.
66 changes: 66 additions & 0 deletions
66
...ion/proc_creaton_win_disable_autologger_session/d7b81144-b866-48a4-9bcc-275dc69d870e.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": "2025-12-27T06:00:34.838673Z" | ||
| } | ||
| }, | ||
| "EventRecordID": 68018, | ||
| "Correlation": null, | ||
| "Execution": { | ||
| "#attributes": { | ||
| "ProcessID": 3636, | ||
| "ThreadID": 4340 | ||
| } | ||
| }, | ||
| "Channel": "Microsoft-Windows-Sysmon/Operational", | ||
| "Computer": "swachchhanda", | ||
| "Security": { | ||
| "#attributes": { | ||
| "UserID": "S-1-5-18" | ||
| } | ||
| } | ||
| }, | ||
| "EventData": { | ||
| "RuleName": "-", | ||
| "UtcTime": "2025-12-27 06:00:34.828", | ||
| "ProcessGuid": "0197231E-7602-694F-5A02-000000000C00", | ||
| "ProcessId": 3668, | ||
| "Image": "C:\\Windows\\System32\\reg.exe", | ||
| "FileVersion": "10.0.26100.5074 (WinBuild.160101.0800)", | ||
| "Description": "Registry Console Tool", | ||
| "Product": "Microsoft® Windows® Operating System", | ||
| "Company": "Microsoft Corporation", | ||
| "OriginalFileName": "reg.exe", | ||
| "CommandLine": "\"C:\\WINDOWS\\system32\\reg.exe\" add HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\WMI\\Autologger\\EventLog-Application /v start /t REG_DWORD /d 0 /f", | ||
| "CurrentDirectory": "C:\\Users\\xodih\\Downloads\\Sysmon\\", | ||
| "User": "swachchhanda\\xodih", | ||
| "LogonGuid": "0197231E-70FA-694F-AED1-150000000000", | ||
| "LogonId": "0x15d1ae", | ||
| "TerminalSessionId": 1, | ||
| "IntegrityLevel": "High", | ||
| "Hashes": "MD5=CE3B3DCB08556285C0FC73B7CDC1601D,SHA256=08B28258C2225574FE6359286B5D23B19F07BD39CEE04B72ED5CF7A8B7FBF9F3,IMPHASH=8E5CDA80916A6EB4EC8151EC790ED9F0", | ||
| "ParentProcessGuid": "0197231E-7211-694F-D001-000000000C00", | ||
| "ParentProcessId": 9524, | ||
| "ParentImage": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe", | ||
| "ParentCommandLine": "powershell -ep bypass", | ||
| "ParentUser": "swachchhanda\\xodih" | ||
| } | ||
| } | ||
| } |
13 changes: 13 additions & 0 deletions
13
..._data/rules/windows/process_creation/proc_creaton_win_disable_autologger_session/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: 8a2cd57f-a488-4c04-8c1d-d9455d240331 | ||
| description: N/A | ||
| date: 2025-12-26 | ||
| author: Swachchhanda Shrawan Poudel (Nextron Systems) | ||
| rule_metadata: | ||
| - id: d7b81144-b866-48a4-9bcc-275dc69d870e | ||
| title: Windows EventLog Autologger Session Disabled | ||
| regression_tests_info: | ||
| - name: Positive Detection Test | ||
| type: evtx | ||
| provider: Microsoft-Windows-Sysmon | ||
| match_count: 1 | ||
| path: regression_data/rules/windows/process_creation/proc_creaton_win_disable_autologger_session/d7b81144-b866-48a4-9bcc-275dc69d870e.evtx |
Binary file added
BIN
+68 KB
...ry_set/registry_set_disable_autologger_sessions/f37b4bce-49d0-4087-9f5b-58bffda77316.evtx
Binary file not shown.
52 changes: 52 additions & 0 deletions
52
...ry_set/registry_set_disable_autologger_sessions/f37b4bce-49d0-4087-9f5b-58bffda77316.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": 13, | ||
| "Version": 2, | ||
| "Level": 4, | ||
| "Task": 13, | ||
| "Opcode": 0, | ||
| "Keywords": "0x8000000000000000", | ||
| "TimeCreated": { | ||
| "#attributes": { | ||
| "SystemTime": "2025-12-27T06:00:34.856744Z" | ||
| } | ||
| }, | ||
| "EventRecordID": 68020, | ||
| "Correlation": null, | ||
| "Execution": { | ||
| "#attributes": { | ||
| "ProcessID": 3636, | ||
| "ThreadID": 4340 | ||
| } | ||
| }, | ||
| "Channel": "Microsoft-Windows-Sysmon/Operational", | ||
| "Computer": "swachchhanda", | ||
| "Security": { | ||
| "#attributes": { | ||
| "UserID": "S-1-5-18" | ||
| } | ||
| } | ||
| }, | ||
| "EventData": { | ||
| "RuleName": "-", | ||
| "EventType": "SetValue", | ||
| "UtcTime": "2025-12-27 06:00:34.853", | ||
| "ProcessGuid": "0197231E-7602-694F-5A02-000000000C00", | ||
| "ProcessId": 3668, | ||
| "Image": "C:\\WINDOWS\\system32\\reg.exe", | ||
| "TargetObject": "HKLM\\System\\CurrentControlSet\\Control\\WMI\\Autologger\\EventLog-Application\\start", | ||
| "Details": "DWORD (0x00000000)", | ||
| "User": "swachchhanda\\xodih" | ||
| } | ||
| } | ||
| } |
13 changes: 13 additions & 0 deletions
13
...ata/rules/windows/registry/registry_set/registry_set_disable_autologger_sessions/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: 4212b819-b182-4fc8-8819-8a4f98e0badd | ||
| description: N/A | ||
| date: 2025-12-26 | ||
| author: Swachchhanda Shrawan Poudel (Nextron Systems) | ||
| rule_metadata: | ||
| - id: f37b4bce-49d0-4087-9f5b-58bffda77316 | ||
| title: Potential AutoLogger Sessions Tampering | ||
| regression_tests_info: | ||
| - name: Positive Detection Test | ||
| type: evtx | ||
| provider: Microsoft-Windows-Sysmon | ||
| match_count: 1 | ||
| path: regression_data/rules/windows/registry/registry_set/registry_set_disable_autologger_sessions/f37b4bce-49d0-4087-9f5b-58bffda77316.evtx |
77 changes: 77 additions & 0 deletions
77
rules/windows/process_creation/proc_creation_win_disable_autologger_session.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,77 @@ | ||
| title: Windows EventLog Autologger Session Disabled | ||
| id: d7b81144-b866-48a4-9bcc-275dc69d870e | ||
| related: | ||
| - id: f37b4bce-49d0-4087-9f5b-58bffda77316 | ||
| type: similar | ||
| status: experimental | ||
| description: | | ||
| Detects attempts to disable Windows EventLog autologger sessions via registry modification. | ||
| The AutoLogger event tracing session records events that occur early in the operating system boot process. | ||
| Applications and device drivers can use the AutoLogger session to capture traces before the user logs in. | ||
| Adversaries may disable these sessions to evade detection and prevent security monitoring of early boot activities and system events. | ||
| references: | ||
| - https://learn.microsoft.com/en-us/windows/win32/etw/configuring-and-starting-an-autologger-session | ||
| - https://ptylu.github.io/content/report/report.html?report=25 | ||
| - https://blog.palantir.com/tampering-with-windows-event-tracing-background-offense-and-defense-4be7ac62ac63 | ||
| author: Swachchhanda Shrawan Poudel (Nextron Systems) | ||
| date: 2025-12-25 | ||
| tags: | ||
| - attack.defense-evasion | ||
| - attack.t1562.002 | ||
| logsource: | ||
| category: process_creation | ||
| product: windows | ||
| detection: | ||
| selection_img: | ||
| - Image|endswith: | ||
| - '\reg.exe' | ||
| - '\powershell.exe' | ||
| - '\pwsh.exe' | ||
| - OriginalFileName: | ||
| - 'reg.exe' | ||
| - 'PowerShell.EXE' | ||
| - 'pwsh.dll' | ||
| selection_cli_action: | ||
| CommandLine|contains: | ||
| - 'add ' | ||
| - 'Set-ItemProperty' | ||
| - 'New-ItemProperty' | ||
| - 'si ' # Set-ItemProperty alias | ||
| selection_cli_key: | ||
| CommandLine|contains|all: | ||
| - '\SYSTEM\CurrentControlSet\Control\WMI\Autologger\' | ||
| - 'DWORD' | ||
| CommandLine|contains: | ||
| - 'Start' # Key used to disable specific autologger session like EventLog-Application, EventLog-System etc. | ||
| - 'Enabled' # Key used to disable specific provider of autologger session | ||
| selection_cli_disable: | ||
| - CommandLine|endswith: ' 0' | ||
| - CommandLine|contains: | ||
| - ' 0 ' | ||
| - ' 0x0 ' | ||
| - '0x0"' | ||
| - '0"' | ||
| - '0x00000000' | ||
swachchhanda000 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| condition: all of selection_* | ||
| falsepositives: | ||
| - Unknown | ||
| level: medium | ||
| regression_tests_path: regression_data/rules/windows/process_creation/proc_creaton_win_disable_autologger_session/info.yml | ||
| simulation: | ||
| - type: atomic-red-team | ||
| name: Disable EventLog-Application Auto Logger Session Via Registry - Cmd | ||
| technique: T1562.001 | ||
| atomic_guid: 653c6e17-14a2-4849-851d-f1c0cc8ea9ab | ||
| - type: atomic-red-team | ||
| name: Disable EventLog-Application Auto Logger Session Via Registry - PowerShell | ||
| technique: T1562.001 | ||
| atomic_guid: da86f239-9bd3-4e85-92ed-4a94ef111a1c | ||
| - type: atomic-red-team | ||
| name: Disable EventLog-Application ETW Provider Via Registry - Cmd | ||
| technique: T1562.001 | ||
| atomic_guid: 1cac9b54-810e-495c-8aac-989e0076583b | ||
| - type: atomic-red-team | ||
| name: Disable EventLog-Application ETW Provider Via Registry - PowerShell | ||
| technique: T1562.001 | ||
| atomic_guid: 8f907648-1ebf-4276-b0f0-e2678ca474f0 | ||
|
|
||
swachchhanda000 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
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.