ProcessGUIDs are not necessarily unique, especially for non-PIEs
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 30/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- c
- Ambito
- operating-systems, security
Direzione di ricerca
Iniziate in ebpfKern/sysmonProcCreate.c intorno alle righe 144-147 e tracciate il modo in cui l’ID della macchina, l’ora di avvio del processo e l’indirizzo del segmento di testo formano la ProcessGUID. Riproducete la collisione avviando eseguibili non-PIE entro un secondo, quindi determinate e documentate una rappresentazione di ProcessKey che eviti ProcessGUID duplicate per eventi ProcessCreate distinti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
One can reliably create ProcessGUID collisions from different ProcessCreate events by launching non-Position Independent Executables (PIE) within a second. This has been an issue for me, trying to correlate events.
It looks like ProcessGUIDs are created by combining a few pieces of information:
- 32 bits for machine ID
- 32 bits for process start in Unix time in seconds
- 64 bits for the memory address of the end of the text segment, for a process. https://github.com/Sysinternals/SysmonForLinux/blob/main/ebpfKern/sysmonProcCreate.c#L144-L147
Although most executables on Linux distributions are compiled as PIE, it's not a guaranteed and it's not obvious that Sysmon GUID generation could produce duplicates in this scenario.
Perhaps instead of just using something like the text segment location, other data could be packed into the ProcessKey as well. There's 64 bits to work with and these addresses for PIEs will only have ~28 bits of randomness (measured on default Ubuntu systems with paxtest).
- Lingua principale
- C
- Stelle
- 2.2k
- Fork
- 222
- Merge medio
- 4h 50m
- PR unite (30g)
- 3
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di microsoft/Sysmon-Linux
-
ProcessCreate: ParentImage is empty when the parent starts the process from a non-main threadAperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
microsoft/Sysmon-Linux#253 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
microsoft/Sysmon-Linux#252 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
microsoft/Sysmon-Linux#247 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 12/100
microsoft/Sysmon-Linux#246 · 3 commenti ·
-
Sysmon service executable remains `(deleted)` after restart, causing repeated needrestart restarts and systemd start-limit-hitForse di nuovo libera @MarioHewardt l’ha presa 31 giorni fa e non c’è nessuna pull request aperta. Aperta
microsoft/Sysmon-Linux#244 · 1 assegnatario ·
Tutte le issue di microsoft/Sysmon-Linux
Issue simili
-
enhancement good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
bug multiplayer status: planned
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
ChupathingyCE/chupathingyce#851 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
HigherOrderCO/Bend#2104 ·
-
research-radar
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
good first issue help wanted program
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
hffgzktbcc-blip/ounce-core#297 ·
I maintainer di solito rispondono entro 1 giorno