Force an immediate BSOD + system reset/shutdown after "Clear encryption keys from memory if a new device is inserted" is triggered

Đang mở
#1,993 2 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
42/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
c

Hướng nghiên cứu

The issue identifies the DBT_DEVICEARRIVAL path and VC_IOCTL_EMERGENCY_CLEAR_ALL_KEYS; start by locating that handler and the key-clearing call. Review how the driver handles emergency key clearing and system crash or reset behavior. Done means the requested immediate crash followed by reset or shutdown occurs after keys are wiped, including when Windows automatic reboot is disabled.

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

Mô tả

Currently

The documentation (doc/html/en/VeraCrypt RAM Encryption.html) states:

If a new device is inserted, master keys are immediately purged from memory, resulting in a Windows BSOD.

However, when DBT_DEVICEARRIVAL triggers VC_IOCTL_EMERGENCY_CLEAR_ALL_KEYS, VeraCrypt only wipes the encryption keys from RAM and calls WipeCache(). It does not actively force a BSOD or system reset, passively relying on Windows to eventually crash with BSOD when a critical kernel disk I/O request fails.

During practical testing on Windows 10 (32GB RAM), inserting a new USB drive while on the Win+L lock screen successfully triggered key clearing (files on the system drive could no longer be opened), but in ~1/15 tests Windows somehow did not BSOD. Because the OS session, file explorer, thumbnails, folder names, and USB drivers were already cached in RAM, Windows allowed unlocking the screen and remained interactive in memory, even mounting the newly inserted USB drive.

Additionally

Even when a BSOD does occur (which is what happened to me most often), if AutoReboot is disabled in Windows registry settings HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl, the system stays powered on at the blue screen indefinitely with RAM still powered (which can already contain some sensitive data).

Desired behavior

Instead of passively waiting for Windows to fault (BSOD) on disk I/O after VC_IOCTL_EMERGENCY_CLEAR_ALL_KEYS, VeraCrypt should actively force an immediate system crash (BSOD) + instant system reset/shutdown as soon as the encryption keys are wiped.

Ngôn ngữ chính
C
Star
11.7k
Fork
1.4k
Merge trung bình
1 ngày 1 giờ
Pull request đã merge (30 ngày)
28

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 veracrypt/VeraCrypt

Tất cả issue của veracrypt/VeraCrypt

Issue tương tự

Thêm issue về C

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.