fix(inspect): collect full static recovery research by default

Inspect the protected input and actual recovered image, with bounded structural evidence, source identities and scoped recovery traces. Keep ordinary unpack lightweight and retain no research output files or logs.

Preserve Android extraction, restoration and metadata evidence, distinguish incomplete analyses from rejected candidates, and render detailed text and JSON reports with explicit address provenance.
This commit is contained in:
Momoko-Ayase committed 2026-11-06 02:33:45 +08:00
1 parent 05a4337a5e
commit 1ee4344c1e
22 files changed
+7776 -758

No files matched your search

+9 -2
View File
@@ -2,8 +2,8 @@
//! PE header/RVA parser over arbitrary bytes.
//!
//! Exercises `parse`, `sections`, `data_directory`, `rva_to_offset`, and
//! `rva_range`. Every failure is an `Err`; a panic is a bug.
//! Exercises format parsing/mapping and the bounded research inspector,
//! including partially parsed inputs. A returned issue is fine; a panic is a bug.
use libfuzzer_sys::fuzz_target;
@@ -11,6 +11,13 @@ const MAX_INPUT: usize = 256 * 1024;
fuzz_target!(|data: &[u8]| {
let data = &data[..data.len().min(MAX_INPUT)];
let limits = senbei_engine::windows::InspectionLimits {
prefix_scratch_bytes: 64 * 1024,
max_candidates: 16,
max_issues: 16,
..Default::default()
};
let _ = senbei_engine::windows::inspect_research_with_limits(data, &limits);
let Ok(headers) = senbei_pe::parse(data) else {
return;
};