Corkami PE Testing - Known Failure Fixes
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 28/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- cpp
- Lĩnh vực
- reverse-engineering
Hướng nghiên cứu
Chạy git submodule update --init, sau đó kiểm tra tests/corkami_test.cpp và sử dụng ./build/dump-pe trên tập dữ liệu PE của Corkami, bắt đầu với virtsectblXP.exe và assembly mà nó tham chiếu. Theo dõi các lỗi parsing đã được báo cáo và so sánh các tệp PE với các nguồn asm tương ứng. Được xem là hoàn tất khi loại bỏ các ngoại lệ test đã biết và thêm các assertion ở cấp trường cho các PE của Corkami.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Within #145, there are very simple tests to detect whether pe-parse would correctly identify the executables as PE, without erroring. Unfortunately (but not unexpectedly), there are a few executables that are not parsed correctly.
Ideally, we should at least test and enforce that we support parsing of any PE in the Corkami dataset.
- There are no test exceptions (read: known failures) when processing the Corkami dataset of PEs
Reference to known failing tests: https://github.com/trailofbits/pe-parse/blob/4286f109b0763972d1db7177ec6fe5f6791350f8/tests/corkami_test.cpp#L34-L51
Secondly, a much bigger task would be to confirm that pe-parse is correctly parsing all and only the information that the Corkami PEs claim to exhibit.
- There are specific PE field tests/asserts for the Corkami PEs to ensure correctness
How to Start Investigating
First, run git submodule update --init to pull the Corkami dataset (We will be focusing on the PEs here https://github.com/corkami/pocs/tree/master/PE/bin).
Then, running the standalone dump-pe tool that is included in this repo should be an easy way to iterate on code changes, since the testing logic is basically the same.
$ ./build/dump-pe/dump-pe tests/assets/corkami-poc-dataset/PE/bin/virtsectblXP.exe
Error: 3 (Invalid section)
Location: ParsePEFromBuffer:2394
Use that information as a starting point for where to begin debugging. Moreover, most, if not all, of the PEs have a corresponding asm file that provides the source code for building the PE and how the file is constructed. Use this information to gain a better understanding of why pe-parse is having difficulty parsing it and what kind of fix would be needed. Here it is for our example https://github.com/corkami/pocs/blob/master/PE/virtsectblXP.asm
- Ngôn ngữ chính
- C++
- Star
- 912
- Fork
- 170
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc 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.
Issue khác của trailofbits/pe-parse
-
failed to install pype with pipĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
trailofbits/pe-parse#216 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
trailofbits/pe-parse#207 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
trailofbits/pe-parse#201 ·
-
Problem in parsing 2 filesĐang mởbug help wanted
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 32/100
trailofbits/pe-parse#190 · 4 bình luận ·
-
enhancement help wanted
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
trailofbits/pe-parse#188 · 1 bình luận ·
Tất cả issue của trailofbits/pe-parse
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
sistemicorp/scripts#62 ·
-
Vim/NeoVim pluginĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
extended_stabilizer: `std::pow(2, p/2.)` in `scalar_t::to_complex()` takes ~40% of runtime on LinuxCó thể đã có người làm @mehmetniyazikayi đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Qiskit/qiskit-aer#2502 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Test failure on FreeBSD: #26 unexpected system_clock sourceCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởlow priority rt_lib tests
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
RobLoach/raylib-cpp#440 · 2 bình luận ·