sigma
sigma copied to clipboard
Clear windows security event logs
Summary of the Pull Request
Changelog
Example Log Event
Fixed Issues
SigmaHQ Rule Creation Conventions
- If your PR adds new rules, please consider following and applying these conventions
Please check, It is already cover by https://github.com/SigmaHQ/sigma/blob/85fd5958bcccdf12984ab5cc9230fcaf2d42c1e0/rules/windows/builtin/security/win_security_audit_log_cleared.yml
Please check, It is already cover by https://github.com/SigmaHQ/sigma/blob/85fd5958bcccdf12984ab5cc9230fcaf2d42c1e0/rules/windows/builtin/security/win_security_audit_log_cleared.yml
Hi @frack113 , Thanks for your answer. Unfortunately this rule seems to have never worked for me, and after investigations, I think I've founded why : in my case (Windows 2K19), although clearing appear in Security.evtx, the service used is eventlog and not security :
Can you give the xml version of the event that I can update the initial rule ? Thnaks
Hi @frack113 ,
Here a sample from my lab :
Nom du journal :Security Source : Microsoft-Windows-Eventlog Date : 22/04/2025 23:33:14 ID de l’événement :1102 Catégorie de la tâche :Effacement de journal Niveau : Information Mots clés : Succès de l’audit Utilisateur : N/A Ordinateur : W2019-DC01.woundride.local Description : Le journal d’audit a été effacé. Objet : ID de sécurité : WOUNDRIDE\admin_t0_cbr Nom de compte : admin_t0_cbr Nom de domaine : WOUNDRIDE ID de connexion : 0x37031 XML de l’événement :
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-Eventlog" Guid="{fc65ddd8-d6ef-4962-83d5-6e5cfe9ce148}" />
<EventID>1102</EventID>
<Version>0</Version>
<Level>4</Level>
<Task>104</Task>
<Opcode>0</Opcode>
<Keywords>0x4020000000000000</Keywords>
<TimeCreated SystemTime="2025-04-22T21:33:14.288562400Z" />
<EventRecordID>23187</EventRecordID>
<Correlation />
<Execution ProcessID="1032" ThreadID="5408" />
<Channel>Security</Channel>
<Computer>W2019-DC01.woundride.local</Computer>
<Security />
</System>
<UserData>
<LogFileCleared xmlns="http://manifests.microsoft.com/win/2004/08/windows/eventlog">
<SubjectUserSid>S-1-5-21-3332904308-1614487934-3407257785-1121</SubjectUserSid>
<SubjectUserName>admin_t0_cbr</SubjectUserName>
<SubjectDomainName>WOUNDRIDE</SubjectDomainName>
<SubjectLogonId>0x37031</SubjectLogonId>
</LogFileCleared>
</UserData>
</Event>