Add `WMI` activity telemetry
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Go
- Star
- 2.6k
- Fork
- 222
- Merge trung bình
- 16 giờ 23 phút
- Pull request đã merge (30 ngày)
- 11
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của rabbitstack/fibratus
-
Service crashes on Windows Server 2016: "panic: sub-authority index out of range" in RidToStringĐang mởtype: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
rabbitstack/fibratus#761 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
CI: the test job has been red since September, and TestFsProcessor looks like a real mmap regressionĐang mởci
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 22/100
rabbitstack/fibratus#754 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ci rules type: enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
rabbitstack/fibratus#715 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
scope: hardering type: enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
rabbitstack/fibratus#713 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs: config scope: events/telemetry type: feature
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
rabbitstack/fibratus#708 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của rabbitstack/fibratus
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
nebari-dev/llm-serving-pack#270 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area/controller
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
volcano-sh/kthena#2109 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
unbound-force/replicator#193 ·
Maintainer thường phản hồi trong vòng 2 ngày