Atlantiraptor Docs

Windows.EventLogs.Cleared

Type: Client · Author: Matt Green - @mgreen27

Detects event log clearing events from the Security (EID 1102) and System (EID 104) logs.

Parameters

Name Type Default Description
TargetGlob string C:\Windows\System32\Winevt\Logs\{System,Security}.evtx
DateAfter timestamp search for events after this date. YYYY-MM-DDTmm:hh:ssZ
DateBefore timestamp search for events before this date. YYYY-MM-DDTmm:hh:ssZ
VSSAnalysisAge int 0 If larger than zero we analyze VSS within this many days ago. (e.g 7 will analyze all VSS within the last week). Note that when using VSS analysis we have to use the ntfs accessor for everything which will be much slower.

References

Source

Defined in artifacts/definitions/Windows/EventLogs/Cleared.yaml.

name: Windows.EventLogs.Cleared
author: Matt Green - @mgreen27

description: |
  Detects event log clearing events from the Security (EID 1102) and
  System (EID 104) logs.

reference:
  - https://attack.mitre.org/versions/v6/techniques/T1070/

type: CLIENT

parameters:
  - name: TargetGlob
    default: C:\Windows\System32\Winevt\Logs\{System,Security}.evtx
  - name: DateAfter
    type: timestamp
    description: "search for events after this date. YYYY-MM-DDTmm:hh:ssZ"
  - name: DateBefore
    type: timestamp
    description: "search for events before this date. YYYY-MM-DDTmm:hh:ssZ"

  - name: VSSAnalysisAge
    type: int
    default: 0
    description: |
      If larger than zero we analyze VSS within this many days
      ago. (e.g 7 will analyze all VSS within the last week).  Note
      that when using VSS analysis we have to use the ntfs accessor
      for everything which will be much slower.

sources:
  - query: |
      SELECT
        EventTime,
        UserData.LogFileCleared.Channel || Channel as ClearedLog,
        Message,
        UserData.LogFileCleared.SubjectDomainName + "\\" + UserData.LogFileCleared.SubjectUserName as Username,
        UserData.LogFileCleared.SubjectUserSid || UserSID as UserSID,
        dict(
            EventTime=EventTime,
            Computer=Computer,
            Channel=Channel,
            EventID=EventID,
            EventRecordID=EventRecordID,
            OSPath=OSPath,
            UserData=UserData
        ) as EventData
      FROM Artifact.Windows.EventLogs.EvtxHunter(EvtxGlob=TargetGlob,
            ChannelRegex='^(Security|System)$',
            IdRegex='^(1102|104)',
            IocRegex='clear|cleared',
            DateAfter=DateAfter,
            DateBefore=DateBefore,
            VSSAnalysisAge=VSSAnalysisAge)

Edit this page on GitHub

© 2026 Atlant Security EOOD. Atlantiraptor is free software under the GNU Affero General Public License v3. It is based on Velociraptor by Velocidex, and keeps its copyright notices. Velociraptor is a trademark of its owner; Atlantiraptor is not affiliated with or endorsed by it.