Track authentication events from the `Windows Security Auditing` provider

Ouverte
#705 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
35/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Calme
Stack technique
go
Domaine
security

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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
Langage dominant
Go
Étoiles
2.6k
Forks
222
Merge moyen
16 h 23 min
PR mergées (30 j)
11

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de rabbitstack/fibratus

Toutes les issues de rabbitstack/fibratus

Issues similaires

Plus d'issues Go

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.