Track authentication events from the `Windows Security Auditing` provider

オープン
#705 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
go
領域
security

調査の方向性

Start with the ParamDecoder and the existing event.Type definitions for AuthenticateOk and AuthenticateFailed, which both need to converge on the name Authenticate. Then work out how to attach to the OS-managed Microsoft-Windows-Security-Auditing session without start/stop calls. Done means events 4624 and 4625 produce one Authenticate event with a success/failure outcome, evt.name = 'Authenticate' and the authenticate macro match them, and a missing session or disabled auditing policy is handled gracefully.

索引モデルが issue の本文から書いたものです。

説明

needs: config needs: docs scope: events/telemetry type: feature

Motivation

Fibratus has no visibility into Windows authentication activity today. Logon success/failure is core telemetry for detection engineering (brute-force, lateral movement, credential validation abuse), and it's available through the Microsoft-Windows-Security-Auditing ETW provider. This provider is special: its session (the built-in Security auditing log) is started by the OS itself. Fibratus can't start or stop it, but it can open the existing trace and consume events from it.

Expectation

Fibratus gains a new Authenticate event type that surfaces both successful and failed logons through a single unified event, with a parameter indicating the outcome.

Proposal

  • Open the OS-managed Microsoft-Windows-Security-Auditing ETW session for consumption (read-only attach, no start/stop lifecycle management needed, unlike Fibratus's other kernel/user ETW sessions)
  • Handle event IDs 4624 (successful logon) and 4625 (failed logon attempt) from that provider's manifest
  • Treat both as the same underlying Authenticate event type in Fibratus's event model, distinguished by an outcome parameter (success/failure) rather than as two separate event kinds. In other words, both AuthenticateOk and AuthenticateFailed event.Type definitions will converge on the same event name - Authenticate. This will make it possible to express the event condition as evt.name = 'Authenticate' which we'll wrap into the authenticate macro. For failed authentication attempts, we'll discern on authentication.status = 'failed' field.
  • Parse the event payload via binary reading in the ParamDecoder, consistent with how other ETW events are decoded in Fibratus
  • Reference schema: the Microsoft-Windows-Security-Auditing manifest (event IDs 4624/4625). See nasbench/EVTX-ETW-Resources for the field layout

Additional context

  • Since Fibratus doesn't control this session's lifecycle, error handling should account for the session already existing/being unavailable (e.g. auditing policy not enabled for logon events) rather than assuming Fibratus-managed start semantics
  • Logon type (interactive, network, RDP, service, etc.), target/subject account, and logon ID are typically the fields of most detection value from 4624/4625 and would be natural candidates for the Authenticate event's params, alongside the success/failure outcome
主要言語
Go
スター
2.6k
フォーク
222
平均マージ
16時間 23分
マージ済み PR(30日)
11

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

rabbitstack/fibratus のほかの issue

rabbitstack/fibratus の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。