hyperlight-dev / hyperlight-dev/hyperlight

Surrogate binary: extraction location and Authenticode signing

Đang mở
#1,342 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
lifecycle/confirmed
Ngôn ngữ chính
Rust
Star
4.7k
Fork
208
Merge trung bình
1 ngày 7 giờ
Pull request đã merge (30 ngày)
47

Mô tả

The surrogate binary is currently extracted to `current_exe().parent()` and is unsigned. This creates two related concerns.

### Problem 1: Extraction location
Extracting to the executable directory requires write permissions, which may not be available in all deployments (read-only container images, restricted Program Files installs). Alternative locations (`%TEMP%`, `%LOCALAPPDATA%`) each have tradeoffs — particularly AV products flagging "write exe to temp → execute" as a malware dropper pattern.

### Problem 2: Authenticode signing
The surrogate binary is currently unsigned. Signing it would:
- Eliminate AV false positives regardless of extraction location
- Enable extraction to temp or other locations without AV interference
- Allow WDAC/AppLocker policies to trust it

### Options for extraction location

| Location | Write perms | AV risk | Notes |
|----------|------------|---------|-------|
| Exe dir (current) | Needs write access | Low | Expected location for supporting binaries |
| `%LOCALAPPDATA%\hyperlight\` | Always writable | Medium | Less suspicious than temp |
| `%TEMP%` | Always writable | **High** | AV red flag — top malware dropper pattern |

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

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.