Windows: PEB-less processes and kernel scan robustness

Aperta
#433 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
56/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
rust

Direzione di ricerca

Start by reading the named Windows code in src/os/windows/structs.rs, kernel.rs, debug_info.rs, util.rs, and pdb.rs, tracing the PEB lookup and kernel scan paths. Check how debug-info sizes and strings are read, then add bounds and null handling consistent with nearby code. Done means malformed or unreadable guest data cannot panic, hang, or underflow, and the kernel scan continues past unmapped pages; the issue says this has not yet been reproduced under SIMICS.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Where

  • src/os/windows/structs.rs:2747 (base_address), called from kernel.rs:428
  • src/os/windows/kernel.rs 124-142
  • src/os/windows/debug_info.rs 61-62, 85-87; util.rs 205-219; pdb.rs 33-50

Problem

  • base_address() reads the PEB at 0 when Peb == NULL (System process).
  • Kernel scan propagates the first unmapped-page error instead of continuing; scan_address -= step can underflow.
  • info[0]/info[1] panic on a short user debug_info entry; guest-controlled debug-directory size and NUL-terminated string reads are unbounded; RSDS signature checked after the unbounded read.

Impact
A harness started from a system thread fails fuzzing start; malformed guest data can hang or panic.

Suggested fix
Null-check the PEB, treat unreadable pages as non-kernel with checked_sub, validate lengths and cap reads.

Status
Reported by static code review at 79972db; not yet re-verified line by line. Found by reading the code; not reproduced under SIMICS.

Lingua principale
Rust
Stelle
335
Fork
26
Merge medio
1g 50m
PR unite (30g)
12

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di intel/tsffs

Tutte le issue di intel/tsffs

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.