microsoft / microsoft/SysmonForLinux
ProcessGUIDs are not necessarily unique, especially for non-PIEs
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- C
- Star
- 2.2k
- Fork
- 220
- Merge trung bình
- 11 ngày 22 giờ
- Pull request đã merge (30 ngày)
- 2
Mô tả
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).
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu trong ebpfKern/sysmonProcCreate.c, quanh các dòng 144-147, và theo dõi cách ID máy, thời điểm bắt đầu tiến trình và địa chỉ phân đoạn văn bản tạo thành ProcessGUID. Tái hiện va chạm bằng cách khởi chạy các tệp thực thi non-PIE trong vòng một giây, sau đó xác định và ghi lại một dạng biểu diễn ProcessKey giúp tránh các ProcessGUID trùng lặp cho những sự kiện ProcessCreate khác nhau.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- c
- Lĩnh vực
- operating-systems, security
- Loại issue
- Lỗi
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 30/100