Add `WMI` activity telemetry

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

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

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

評価

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

調査の方向性

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.

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

説明

needs: config scope: events/telemetry type: feature

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/Trace and Microsoft-Windows-WMI-Activity/Operational channels

  • Event 11 (OperationStart, version 0) maps to Wmi event 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 SubscribeWmiFilter event 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 BindWmiFilter event 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
主要言語
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 を短くまとめたダイジェスト。