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

Offen
#706 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Ruhig
Tech-Stack
go
Bereich
security

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
Go
Sterne
2.6k
Forks
222
Ø Merge
16 Std. 23 Min.
Gemergte PRs (30 T.)
11

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus rabbitstack/fibratus

Alle Issues in rabbitstack/fibratus

Ähnliche Issues

Weitere Issues zu Go

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.