Add `WMI` activity telemetry
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
Piste de recherche
Start with the existing WMI telemetry work the issue refers to, and with how the ParamDecoder decodes event payloads. The change adds four event types from the Microsoft-Windows-WMI-Activity provider: event 11 on the /Trace channel as Wmi, and events 5859 and 5861 on /Operational as SubscribeWmiFilter and BindWmiFilter. Done means each event is subscribed to, decoded with the listed fields, and covered by decoder tests using sample payloads.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Motivation
WMI is a common vector for lateral movement, remote execution, and persistence (e.g. Win32_Process::Create, permanent WMI event subscriptions via __EventFilter/__EventConsumer/__FilterToConsumerBinding). Fibratus has no visibility into WMI activity today. The Microsoft-Windows-WMI-Activity provider exposes both live operation calls (OperationStart) and the operational-log events that track event filter registration, consumer execution, and filter-to-consumer bindings. This is the exact mechanism abused for WMI-based persistence.
Expectation
Fibratus gains new event types sourced from the Microsoft-Windows-WMI-Activity provider.
| Event ID | Channel | Fibratus event type | Purpose |
|---|---|---|---|
| 11 | /Trace | Wmi | Every IWbemServices call (OperationStart) |
| 5859 | /Operational | SubscribeWmiFilter | A registered event filter's notification query is activated against a provider |
| 5861 | /Operational | BindWmiFilter | An __EventFilter is bound to a __EventConsumer. This is the classic permanent-subscription persistence mechanism |
Proposal
-
Attach to both the
Microsoft-Windows-WMI-Activity/TraceandMicrosoft-Windows-WMI-Activity/Operationalchannels -
Event 11 (OperationStart, version 0) maps to
Wmievent type as previously specified: CorrelationId (string), GroupOperationId (uint32), OperationId (uint32), Operation (string represents the IWbemServices::() call, e.g. ExecQuery/GetObject/PutInstance/DeleteInstance/ExecMethod/CreateClass), ClientMachine (string), ClientMachineFQDN (string), User (string), ClientProcessId (uint32), ClientProcessCreationTime (uint64), NamespaceName (string), IsLocal (bool) -
Event 5859 (version 0) maps to
SubscribeWmiFilterevent type:
| Field | Type | Notes |
|---|---|---|
| NamespaceName | string | WMI namespace the filter is registered in |
| Query | string | The notification query (NotificationQuery). The WQL filter text, e.g. SELECT * FROM __InstanceCreationEvent... |
| User | string | Owner of the filter (OwnerName) |
| processid | uint32 | Hosting process ID (HostProcessID) |
| providerName | string | WMI provider servicing the query |
| queryid | uint32 | Query identifier |
| PossibleCause | string | Diagnostic hint supplied by WMI |
- Event 5861 (version 0) maps to
BindWmiFilterevent type.
| Field | Type | Notes |
|---|---|---|
| Namespace | string | Namespace containing the binding |
| ESS | string | The __EventFilter name (event message calls this Eventfilter; correlates to the filter activated in event 5859) |
| CONSUMER | string | The __EventConsumer name the filter is bound to |
| PossibleCause | string | Diagnostic hint supplied by WMI |
- Decode all four event types via the
ParamDecoder, consistent with the rest of the WMI telemetry work
- Langage dominant
- Go
- Étoiles
- 2.6k
- Forks
- 222
- Merge moyen
- 16 h 23 min
- PR mergées (30 j)
- 11
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de rabbitstack/fibratus
-
Service crashes on Windows Server 2016: "panic: sub-authority index out of range" in RidToStringOuvertetype: bug
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
rabbitstack/fibratus#761 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
CI: the test job has been red since September, and TestFsProcessor looks like a real mmap regressionOuverteci
Difficulté 4/5 3-5 jours Accessibilité débutants 22/100
rabbitstack/fibratus#754 · 1 commentaire · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
ci rules type: enhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 15/100
rabbitstack/fibratus#715 ·
Les mainteneurs répondent en général sous 1 jour
-
scope: hardering type: enhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 15/100
rabbitstack/fibratus#713 ·
Les mainteneurs répondent en général sous 1 jour
-
needs: config scope: events/telemetry type: feature
Difficulté 4/5 3-5 jours Accessibilité débutants 30/100
rabbitstack/fibratus#708 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de rabbitstack/fibratus
Issues similaires
-
[bug] Explorer trims leading spaces on file namesPeut-être pris @unshade l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
mickael-kerjean/filestash#1033 · 1 commentaire ·
-
Update Tailscale dependency for Android cgo fallback fixPeut-être pris @lozbrown l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 64/100
Les mainteneurs répondent en général sous 1 jour
-
[BUG] HTTP remote call timeouts can be returned as 500Peut-être pris @XnLemon l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
apache/dubbo-go-pixiu#1096 ·
Les mainteneurs répondent en général sous 1 jour
-
conversation: ConverseAlpha1 and ConverseAlpha2 panic on empty choices or nil function call and return misleading error on scrubber failurePeut-être pris @patelshivani2283-lab l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
Les mainteneurs répondent en général sous 1 jour