Track authentication events from the `Windows Security Auditing` provider

未关闭
#705 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
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 分钟
30 天内合并 PR
11

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

rabbitstack/fibratus 的其他 Issue

查看 rabbitstack/fibratus 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。