Skip to content

Support for PreAuthType field - #219

Merged
alexkornitzer merged 2 commits into
WithSecureLabs:masterfrom
GrepItAll:PreAuthType-Support
Jul 5, 2025
Merged

Support for PreAuthType field#219
alexkornitzer merged 2 commits into
WithSecureLabs:masterfrom
GrepItAll:PreAuthType-Support

Conversation

@GrepItAll

Copy link
Copy Markdown
Contributor

Mapping for sigma PreAuthType field, found in Keberos Authentication Service event ID 4768

Supports SigmaHQ/sigma#5512

<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Microsoft-Windows-Security-Auditing" Guid="{54849625-5478-4994-a5ba-3e3b0328c30d}" /> 
    <EventID>4768</EventID> 
    <Version>0</Version> 
    <Level>0</Level> 
    <Task>14339</Task> 
    <Opcode>0</Opcode> 
    <Keywords>0x8020000000000000</Keywords> 
    <TimeCreated SystemTime="2024-05-28T06:32:40.2463627Z" /> 
    <EventRecordID>6231</EventRecordID> 
    <Correlation /> 
    <Execution ProcessID="752" ThreadID="3188" /> 
    <Channel>Security</Channel> 
    <Computer>DC01.acme.corp</Computer> 
    <Security /> 
  </System>
  <EventData>
    <Data Name="TargetUserName">john.smith</Data> 
    <Data Name="TargetDomainName">acme.corp</Data> 
    <Data Name="TargetSid">REDACTED</Data> 
    <Data Name="ServiceName">krbtgt</Data> 
    <Data Name="ServiceSid">REDACTED</Data> 
    <Data Name="TicketOptions">0x40800010</Data> 
    <Data Name="Status">0x0</Data> 
    <Data Name="TicketEncryptionType">0x17</Data> 
    <Data Name="PreAuthType">0</Data> 
    <Data Name="IpAddress">::ffff:10.0.0.1</Data> 
    <Data Name="IpPort">61965</Data> 
    <Data Name="CertIssuerName" /> 
    <Data Name="CertSerialNumber" /> 
    <Data Name="CertThumbprint" /> 
  </EventData>
</Event>

Mapping for sigma PreAuthType field, found in Keberos Authentication Service event ID 4768
Sigma project requires integers to not be wrapped as strings, therefore casting must be performed on Chainsaw end. Without casting, chainsaw does not hit on the asrep roasting sigma rule
@alexkornitzer
alexkornitzer merged commit 6fd8b1d into WithSecureLabs:master Jul 5, 2025
@alexkornitzer

alexkornitzer commented Jul 5, 2025

Copy link
Copy Markdown
Collaborator

Thanks for this :)

@GrepItAll
GrepItAll deleted the PreAuthType-Support branch July 5, 2025 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants