Windows: PEB-less processes and kernel scan robustness

Đang mở
#433 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
56/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Rust
Star
335
Fork
26
Merge trung bình
1 ngày 50 phút
Pull request đã merge (30 ngày)
12

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của intel/tsffs

Tất cả issue của intel/tsffs

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.