So I tried what you told me and it stops at phase 2 decoding part and
only succeeds when I change the <decoded_as> field and remove <category> field in the
0575-win-base_rules.xml but even when it succeeds the logtest it doesn't appear in JSON alert file or dashboard:
**Messages:
INFO: (7202): Session initialized with token '533c5d4d'
**Phase 1: Completed pre-decoding. full event: '{"win":{"system":{"providerName":"Microsoft-Windows-Sysmon","providerGuid":"{5770385f-c22a-43e0-bf4c-06f5698ffbd9}","eventID":"1","version":"5","level":"4","task":"1","opcode":"0","keywords":"0x8000000000000000","systemTime":"2026-02-08T10:38:08.0345494Z","eventRecordID":"42669","processID":"3036","threadID":"4520","channel":"Microsoft-Windows-Sysmon/Operational","computer":"DESKTOP-HB5LVK4","severityValue":"INFORMATION","message":"\"Process Create:\r\nRuleName: technique_id=T1204,technique_name=User Execution\r\nUtcTime: 2026-02-08 10:38:08.029\r\nProcessGuid: {a92090f4-6790-6988-e102-000000001100}\r\nProcessId: 9504\r\nImage: C:\\Windows\\System32\\notepad.exe\r\nFileVersion: 10.0.19041.5794 (WinBuild.160101.0800)\r\nDescription: Notepad\r\nProduct: Microsoft® Windows® Operating System\r\nCompany: Microsoft Corporation\r\nOriginalFileName: NOTEPAD.EXE\r\nCommandLine: \"C:\\Windows\\system32\\notepad.exe\" \r\nCurrentDirectory: C:\\Users\\Omar\\\r\nUser: DESKTOP-HB5LVK4\\Omar\r\nLogonGuid: {a92090f4-2842-6988-5baf-070000000000}\r\nLogonId: 0x7AF5B\r\nTerminalSessionId: 1\r\nIntegrityLevel: Medium\r\nHashes: SHA1=F3A517B07528CEE3A7399386C58A9C7A59AA96B3,MD5=6F51BCABF1B2B34AD7E670AEE6DA451F,SHA256=DA5807BB0997CC6B5132950EC87EDA2B33B1AC4533CF1F7A22A6F3B576ED7C5B,IMPHASH=09ED737A03DB7295BF734A9953F6EB5E\r\nParentProcessGuid: {a92090f4-287b-6988-bc00-000000001100}\r\nParentProcessId: 5236\r\nParentImage: C:\\Windows\\explorer.exe\r\nParentCommandLine: C:\\Windows\\Explorer.EXE\r\nParentUser: DESKTOP-HB5LVK4\\Omar\""},"eventdata":{"ruleName":"technique_id=T1204,technique_name=User Execution","utcTime":"2026-02-08 10:38:08.029","processGuid":"{a92090f4-6790-6988-e102-000000001100}","processId":"9504","image":"C:\\\\Windows\\\\System32\\\\notepad.exe","fileVersion":"10.0.19041.5794 (WinBuild.160101.0800)","description":"Notepad","product":"Microsoft® Windows® Operating System","company":"Microsoft Corporation","originalFileName":"NOTEPAD.EXE","commandLine":"\\\"C:\\\\Windows\\\\system32\\\\notepad.exe\\\"","currentDirectory":"C:\\\\Users\\\\Omar\\\\","user":"DESKTOP-HB5LVK4\\\\Omar","logonGuid":"{a92090f4-2842-6988-5baf-070000000000}","logonId":"0x7af5b","terminalSessionId":"1","integrityLevel":"Medium","hashes":"SHA1=F3A517B07528CEE3A7399386C58A9C7A59AA96B3,MD5=6F51BCABF1B2B34AD7E670AEE6DA451F,SHA256=DA5807BB0997CC6B5132950EC87EDA2B33B1AC4533CF1F7A22A6F3B576ED7C5B,IMPHASH=09ED737A03DB7295BF734A9953F6EB5E","parentProcessGuid":"{a92090f4-287b-6988-bc00-000000001100}","parentProcessId":"5236","parentImage":"C:\\\\Windows\\\\explorer.exe","parentCommandLine":"C:\\\\Windows\\\\Explorer.EXE","parentUser":"DESKTOP-HB5LVK4\\\\Omar"}}}'
**Phase 2: Completed decoding.
name: 'json' win.eventdata.commandLine: '\"C:\\Windows\\system32\\notepad.exe\"' win.eventdata.company: 'Microsoft Corporation' win.eventdata.currentDirectory: 'C:\\Users\\Omar\\' win.eventdata.description: 'Notepad' win.eventdata.fileVersion: '10.0.19041.5794 (WinBuild.160101.0800)' win.eventdata.hashes: 'SHA1=F3A517B07528CEE3A7399386C58A9C7A59AA96B3,MD5=6F51BCABF1B2B34AD7E670AEE6DA451F,SHA256=DA5807BB0997CC6B5132950EC87EDA2B33B1AC4533CF1F7A22A6F3B576ED7C5B,IMPHASH=09ED737A03DB7295BF734A9953F6EB5E' win.eventdata.image: 'C:\\Windows\\System32\\notepad.exe' win.eventdata.integrityLevel: 'Medium' win.eventdata.logonGuid: '{a92090f4-2842-6988-5baf-070000000000}' win.eventdata.logonId: '0x7af5b' win.eventdata.originalFileName: 'NOTEPAD.EXE' win.eventdata.parentCommandLine: 'C:\\Windows\\Explorer.EXE' win.eventdata.parentImage: 'C:\\Windows\\explorer.exe' win.eventdata.parentProcessGuid: '{a92090f4-287b-6988-bc00-000000001100}' win.eventdata.parentProcessId: '5236' win.eventdata.parentUser: 'DESKTOP-HB5LVK4\\Omar' win.eventdata.processGuid: '{a92090f4-6790-6988-e102-000000001100}' win.eventdata.processId: '9504' win.eventdata.product: 'Microsoft® Windows® Operating System' win.eventdata.ruleName: 'technique_id=T1204,technique_name=User Execution' win.eventdata.terminalSessionId: '1' win.eventdata.user: 'DESKTOP-HB5LVK4\\Omar' win.eventdata.utcTime: '2026-02-08 10:38:08.029' win.system.channel: 'Microsoft-Windows-Sysmon/Operational' win.system.computer: 'DESKTOP-HB5LVK4' win.system.eventID: '1' win.system.eventRecordID: '42669' win.system.keywords: '0x8000000000000000' win.system.level: '4' win.system.message: '"Process Create: RuleName: technique_id=T1204,technique_name=User Execution UtcTime: 2026-02-08 10:38:08.029 ProcessGuid: {a92090f4-6790-6988-e102-000000001100} ProcessId: 9504 Image: C:\Windows\System32\notepad.exe FileVersion: 10.0.19041.5794 (WinBuild.160101.0800) Description: Notepad Product: Microsoft® Windows® Operating System Company: Microsoft Corporation OriginalFileName: NOTEPAD.EXE CommandLine: "C:\Windows\system32\notepad.exe" CurrentDirectory: C:\Users\Omar\ User: DESKTOP-HB5LVK4\Omar LogonGuid: {a92090f4-2842-6988-5baf-070000000000} LogonId: 0x7AF5B TerminalSessionId: 1 IntegrityLevel: Medium Hashes: SHA1=F3A517B07528CEE3A7399386C58A9C7A59AA96B3,MD5=6F51BCABF1B2B34AD7E670AEE6DA451F,SHA256=DA5807BB0997CC6B5132950EC87EDA2B33B1AC4533CF1F7A22A6F3B576ED7C5B,IMPHASH=09ED737A03DB7295BF734A9953F6EB5E ParentProcessGuid: {a92090f4-287b-6988-bc00-000000001100} ParentProcessId: 5236 ParentImage: C:\Windows\explorer.exe ParentCommandLine: C:\Windows\Explorer.EXE ParentUser: DESKTOP-HB5LVK4\Omar"' win.system.opcode: '0' win.system.processID: '3036' win.system.providerGuid: '{5770385f-c22a-43e0-bf4c-06f5698ffbd9}' win.system.providerName: 'Microsoft-Windows-Sysmon' win.system.severityValue: 'INFORMATION' win.system.systemTime: '2026-02-08T10:38:08.0345494Z' win.system.task: '1' win.system.threadID: '4520' win.system.version: '5'
and here is when I change those fields :
**Messages: WARNING: (7003): '533c5d4d' token expires INFO: (7202): Session initialized with token 'c1ae53df'
**Phase 1: Completed pre-decoding.
**Phase 2: Completed decoding. name: 'json' win.eventdata.commandLine: '\"C:\\Windows\\system32\\notepad.exe\"' win.eventdata.company: 'Microsoft Corporation' win.eventdata.currentDirectory: 'C:\\Users\\Omar\\' win.eventdata.description: 'Notepad' win.eventdata.fileVersion: '10.0.19041.5794 (WinBuild.160101.0800)' win.eventdata.hashes: 'SHA1=F3A517B07528CEE3A7399386C58A9C7A59AA96B3,MD5=6F51BCABF1B2B34AD7E670AEE6DA451F,SHA256=DA5807BB0997CC6B5132950EC87EDA2B33B1AC4533CF1F7A22A6F3B576ED7C5B,IMPHASH=09ED737A03DB7295BF734A9953F6EB5E' win.eventdata.image: 'C:\\Windows\\System32\\notepad.exe' win.eventdata.integrityLevel: 'Medium' win.eventdata.logonGuid: '{a92090f4-2842-6988-5baf-070000000000}' win.eventdata.logonId: '0x7af5b' win.eventdata.originalFileName: 'NOTEPAD.EXE' win.eventdata.parentCommandLine: 'C:\\Windows\\Explorer.EXE' win.eventdata.parentImage: 'C:\\Windows\\explorer.exe' win.eventdata.parentProcessGuid: '{a92090f4-287b-6988-bc00-000000001100}' win.eventdata.parentProcessId: '5236' win.eventdata.parentUser: 'DESKTOP-HB5LVK4\\Omar' win.eventdata.processGuid: '{a92090f4-6790-6988-e102-000000001100}' win.eventdata.processId: '9504' win.eventdata.product: 'Microsoft® Windows® Operating System' win.eventdata.ruleName: 'technique_id=T1204,technique_name=User Execution' win.eventdata.terminalSessionId: '1' win.eventdata.user: 'DESKTOP-HB5LVK4\\Omar' win.eventdata.utcTime: '2026-02-08 10:38:08.029' win.system.channel: 'Microsoft-Windows-Sysmon/Operational' win.system.computer: 'DESKTOP-HB5LVK4' win.system.eventID: '1' win.system.eventRecordID: '42669' win.system.keywords: '0x8000000000000000' win.system.level: '4' win.system.message: '"Process Create: RuleName: technique_id=T1204,technique_name=User Execution UtcTime: 2026-02-08 10:38:08.029 ProcessGuid: {a92090f4-6790-6988-e102-000000001100} ProcessId: 9504 Image: C:\Windows\System32\notepad.exe FileVersion: 10.0.19041.5794 (WinBuild.160101.0800) Description: Notepad Product: Microsoft® Windows® Operating System Company: Microsoft Corporation OriginalFileName: NOTEPAD.EXE CommandLine: "C:\Windows\system32\notepad.exe" CurrentDirectory: C:\Users\Omar\ User: DESKTOP-HB5LVK4\Omar LogonGuid: {a92090f4-2842-6988-5baf-070000000000} LogonId: 0x7AF5B TerminalSessionId: 1 IntegrityLevel: Medium Hashes: SHA1=F3A517B07528CEE3A7399386C58A9C7A59AA96B3,MD5=6F51BCABF1B2B34AD7E670AEE6DA451F,SHA256=DA5807BB0997CC6B5132950EC87EDA2B33B1AC4533CF1F7A22A6F3B576ED7C5B,IMPHASH=09ED737A03DB7295BF734A9953F6EB5E ParentProcessGuid: {a92090f4-287b-6988-bc00-000000001100} ParentProcessId: 5236 ParentImage: C:\Windows\explorer.exe ParentCommandLine: C:\Windows\Explorer.EXE ParentUser: DESKTOP-HB5LVK4\Omar"' win.system.opcode: '0' win.system.processID: '3036' win.system.providerGuid: '{5770385f-c22a-43e0-bf4c-06f5698ffbd9}' win.system.providerName: 'Microsoft-Windows-Sysmon' win.system.severityValue: 'INFORMATION' win.system.systemTime: '2026-02-08T10:38:08.0345494Z' win.system.task: '1' win.system.threadID: '4520' win.system.version: '5'