Files
Jonathan Johnson a372806ee6 Initial Commit
2022-11-10 10:02:36 -06:00

2.7 KiB

Windows APIs To Microsoft-Windows-Security-Auditing events

Overview

This repository is meant to map API calls to Window Security Event ID's to help defenders know where telemetry is coming from. Version 1 only exposes 37 events coming from the following sub-categories:

  • Audit Logon
  • Audit Logoff
  • Audit File System
  • Audit Kernel Object
  • Audit Registry
  • Audit Removable Storage
  • Audit Directory Service Access
  • Audit SAM
  • Audit Special Logon
  • Audit Sensitive Privilege Use
  • Audit Non Sensitive Privilege Use
  • Audit Process Creation
  • Audit Process Termination
  • Audit Handle Manipulation
  • Audit Security System Extension
  • Audit Other Object Access Events
  • Audit Computer Account Management
  • Audit Other Object Access Events
  • Audit Kerberos Authentication Service
  • Audit Kerberos Service Ticket Operations
  • Audit User Account Management
  • Audit Detailed File Share
  • Other System Events

API mapping sheet:

Microsoft-Windows-Security-Auditing Mapping Google Sheet

Research Notes:

There are 3 function types exposed in this project:

  1. Operational Functions - Functions that are performing an operation that Microsoft has embedded an Event Processing Function in.
  2. Event Processing Functions - Undocumented Microsoft functions used to start the event auditing process.
  3. Event Emmission Function - Either ntdll!EtwWriteUMSecurityEvent or nt!EtwWriteKMSecurityEvent which will start the process of writing events to the Microsoft-Windows-Security-Auditing ETW Provider.

Event ID 4688:

Mapping

API Mapping Images:

These images can be found in within the Images directory. To see images, open from draw.io or install the DrawIO Integration in VSCode.

Comments:

Credit:

A big thanks and credit goes out to the following individuals for the help and insight they had on this project:

  • Matt Graeber - Initially identifying ntdll!EtwWriteUMSecurityEvent when I started this project, along being reviewer for this project.
  • Matt Hand - Helping me understand the telemetry collection process for various situations (ETW, Drivers, etc).
  • Roberto Rodriguez - Reviewing this project
  • Jared Atkinson - Reviewing this project

Feedback:

Feedback or thoughts are always welcome!

To Do:

  • Look into more use-cases for Event ID 4662, event is not fully complete.
  • Scope V2 Events