Add `AMSI` telemetry support via a new `AmsiScanBuffer` event type

Abierto
#706 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
go
Área
security

Línea de trabajo

Start with the ParamDecoder and how an existing ETW provider is subscribed to and its events decoded, then compare that with the Microsoft-Antimalware-Scan-Interface manifest linked in the issue to work out the AmsiScanBuffer field layout. Done means the provider is enabled, AmsiScanBuffer events are parsed into a new event type with the buffer content and process correlation fields, and a test covers decoding a sample payload.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

needs: config needs: docs scope: events/telemetry type: feature

Motivation

Extend Fibratus's detection capabilities by obtaining AMSI (Antimalware Scan Interface) telemetry, which captures buffers submitted for scanning by AMSI-aware hosts (most notably PowerShell) before they're executed.

Expectation

Fibratus gains a new AmsiScanBuffer event type, sourced from the Microsoft-Antimalware-Scan-Interface ETW provider, that can be used to detect PowerShell cmdlet execution and any other activity surfaced through AMSI scanning (e.g. obfuscated/deobfuscated script content, dynamic code execution via Invoke-Expression, in-memory .NET assembly loading).

Proposal

  • Enable/attach to the Microsoft-Antimalware-Scan-Interface ETW provider and handle its AmsiScanBuffer event
  • Parse the event's binary payload via the ParamDecoder, consistent with how other ETW events are decoded in Fibratus
  • Reference schema: see the Microsoft-Antimalware-Scan-Interface manifest (nasbench/EVTX-ETW-Resources) for the field layout of AmsiScanBuffer event

Additional context

The scanned buffer/content itself is the highest-value field for detection (e.g. matching known malicious PowerShell patterns), so decoding it correctly, including any length/session/correlation fields tying scans to a process, should be a priority

Lenguaje dominante
Go
Estrellas
2.6k
Forks
222
Merge medio
16 h 23 min
PR fusionados (30 d)
11

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de rabbitstack/fibratus

Todos los issues de rabbitstack/fibratus

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.