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

Ouverte
#706 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
35/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Calme
Stack technique
go
Domaine
security

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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

Langage dominant
Go
Étoiles
2.6k
Forks
222
Merge moyen
16 h 23 min
PR mergées (30 j)
11

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de rabbitstack/fibratus

Toutes les issues de rabbitstack/fibratus

Issues similaires

Plus d'issues Go

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.