Add `WMI` activity telemetry
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 35/100
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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
- Linguagem predominante
- Go
- Estrelas
- 2.6k
- Forks
- 222
- Merge médio
- 16h 23min
- PRs com merge (30d)
- 11
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de rabbitstack/fibratus
-
Service crashes on Windows Server 2016: "panic: sub-authority index out of range" in RidToStringAbertatype: bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
rabbitstack/fibratus#761 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
CI: the test job has been red since September, and TestFsProcessor looks like a real mmap regressionAbertaci
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 22/100
rabbitstack/fibratus#754 · 1 comentário · 1 reação ·
Mantenedores costumam responder em até 1 dia
-
ci rules type: enhancement
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 15/100
rabbitstack/fibratus#715 ·
Mantenedores costumam responder em até 1 dia
-
scope: hardering type: enhancement
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 15/100
rabbitstack/fibratus#713 ·
Mantenedores costumam responder em até 1 dia
-
needs: config scope: events/telemetry type: feature
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 30/100
rabbitstack/fibratus#708 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de rabbitstack/fibratus
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 75/100
slavakurilyak/awesome-ai-agents#1041 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
goreleaser/nfpm#1199 ·
Mantenedores costumam responder em até 1 dia