mirror of
https://github.com/morluto/rea.git
synced 2026-11-30 08:08:55 +00:00
3a8a717b02edcd41b9dfbf64e82e5f7a761dfd8e
131
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
3a8a717b02 |
feat(ghidra): set function signatures and define the types they use (#14859)
* feat(ghidra): set function signatures and define the types they use annotate_native_function accepts an optional C prototype, applied with USER_DEFINED source in the same transaction as the name and comments, verified by readback and rolled back with them on refusal. define_native_data_types stores caller-authored struct, union, enum and typedef definitions atomically under /rea_caller_defined and refuses existing names. inspect_native_data_type reports those types with source caller-defined, and annotation readback reports the applied prototype and its source. Refs #14831 * feat(ghidra): bound caller C text with launch controls and refuse unapplied constructs The lengths of a signature and of type declarations and the nesting depth of parentheses are launch-only REA_ controls with measured defaults, floors and maxima, written into the bridge's session descriptor. A refusal names the control, its effective value, source and range. The bridge tokenizes caller C before Ghidra's parser sees it and refuses what that parser accepts without applying: attributes, storage-class specifiers, variable declarations, directives other than #pragma pack, literals, function bodies, default arguments, unnamed enums and repeated member names. A type name that names different types is refused. When a function has no calling convention and the prototype names none, the compiler specification's default convention, which Ghidra already uses to assign the locked storage, is recorded, and annotation readback reports the convention. Refs #14831 * fix(ghidra): apply the signature bound to the caller's text The bridge appended the semicolon its parser needs before checking the length, so a prototype of exactly the admitted length was refused. The readback prototype is documented as reusable only when its function and type names are C identifiers. Refs #14831 * chore(mcp): refresh advertised schema summaries for Ghidra type edits Refs #14831 * fix(ghidra): bound caller C text per call and report dropped qualifiers Ghidra's C parser cannot be cancelled, so REA bounds the text it parses. The three launch-only environment controls left an agent that hit them with a restart as its only recovery. The two length bounds are now per-call parameters, signature_max_utf16 on annotate_native_function and declarations_max_utf16 on define_native_data_types, with the same defaults and measured maxima. A refusal reports details.limit with control_kind "parameter" and required_value, the text's length, so the generated recovery names the value to pass or asks for shorter text. The text fields no longer carry a schema maximum, so every over-length refusal is typed. Parenthesis nesting is a fixed ceiling of 8 levels, registered as a representation bound, because each level doubles parse time. The session descriptor no longer carries C parser limits, and the config module, environment entries and restart-only registry rows are removed. const and volatile are still applied without effect, because Ghidra's types have no representation for them. Both edits now return dropped_qualifiers with each qualifier's line and column, and for a signature its parameter index, null for the return type, instead of dropping them silently. * fix(ghidra): read caller C through one tokenizer and bound nesting per call The C admission scan tracked lines only at LF and read directives as raw lines matched by a regular expression, so a CR-only line break shifted dropped-qualifier positions and a trailing comment on #pragma pack was refused. One tokenizer now owns caller C positions, comments and literals: CR, LF and CRLF each end a line as in Ghidra's parser, and directives are admitted from its tokens, so comments read as whitespace there too. A block comment that would carry a directive onto another line is refused. Parenthesis nesting was a fixed ceiling justified by parse time, a resource limit. It is now the per-call parenthesis_max_depth (default 8, range 1..12) on both type-edit tools. The bridge measures the deepest nesting over the whole text and sends it, with a text's length, as the wire failure's required_value, so details.limit reports the bridge's own measurement instead of the adapter re-reading the request. The tokenizer also decides whether a prototype is terminated, so the parser sees the caller's text unchanged: no leading whitespace is stripped, and a trailing line comment no longer swallows the appended terminator. * fix(ghidra): parse caller C inside the edit's rollback and refuse parser diagnostics Ghidra's C parser writes the type database even with storeDataType false: a definition whose name matches an existing empty composite fills that type in place, in the parser's own nested transaction. Both type edits parsed before opening their transaction, so a refused definition, such as one conflicting with a DWARF placeholder, left that placeholder filled. Parsing, validation and storage now share the edit's one transaction, and parseCallerC refuses to run outside one. The parser also records diagnostics it cannot apply, such as a repeated enumerator it drops, and still reports success. Both edits now refuse any diagnostic with Ghidra's message, before anything is stored. The real-Ghidra verifier gains a phase with an ELF object whose DWARF declares an opaque struct, proving a refused definition leaves that empty composite unchanged, and refuses a repeated enumerator. * fix(ghidra): admit caller C from one audited table of tokens Ghidra drops Review kept finding one more construct Ghidra's C parser consumes without applying, because admission listed spellings piecemeal. The tokenizer now owns one table, audited against every token and production of Ghidra 12.2's C.jj and checked on Ghidra 12.2, in that grammar's own spellings: - Refused, because meaning is lost: __ptr32 and __ptr64 (stored as a native-width pointer), __near and __far, every attribute, declspec, __readableTo, alignas, packed and asm spelling, [[...]] attributes, storage and inline specifiers including __forceinline, __pragma and _Pragma, _Static_assert, Objective-C @ blocks (Ghidra skips their whole text), and backslashes. - Reported in dropped_qualifiers as pure qualifiers: every const and volatile spelling, restrict, __unaligned and __w64. #pragma pack is admitted only in the operand forms Ghidra applies as written with a decimal value; (0x1), (010), (show) and (pop, n) were ignored or read differently, and "# pragma" is a line marker Ghidra skips. An enum tag that neither the text nor the database defines made Ghidra invent an empty enum without a diagnostic; declarations now refuse it as they do an invented struct or union. Identifiers admit $, as C.jj's do, and the tokenizer reads numbers and [[ as single tokens. * fix(ghidra): bound caller type depth, admit only constant expressions Ghidra evaluates, refuse unmatched pack pops Recursion: the tokenizer's [[ lookahead re-entered next() for each "[", and the dependency walk recursed per pointer, array and member level. Both are iterative now. Ghidra 12.2's own data-type code recurses too: 1024 pointer or array levels resolve, 2048 exhaust the stack inside addDataType while its database lock is held, leaving the Program unable to save. Every parsed type's chain through pointers, arrays, typedefs and members, including existing database types, is now measured iteratively and refused beyond a fixed 256-level ceiling before Ghidra walks it. An unexpected StackOverflowError ends the session with a reason instead of being caught by the parser call, since Ghidra's lock may then be held. Constant expressions: Ghidra leaves names, casts, sizeof, floating and binary literals unevaluated and substitutes a default, so "MASK = FIRST << 4" was stored as 2, and it truncates values outside int. Enum values, array sizes and bit-field widths are admitted only as integer literals with arithmetic, shift, comparison, bitwise and logical operators, checked iteratively with C's rules to stay in int, including implicit enumerator values; anything else is refused at its position. Pragma pack: Ghidra ignores a bare (push), a pop with nothing pushed keeps the current packing, and a plain pop pops past labelled entries. The tokenizer tracks admitted pushes and admits a pop only when Ghidra's result matches C's. * fix(ghidra): admit constant expressions only as one literal, skip absent pointer targets, state the type-depth recovery truthfully Constant expressions: emulating C against Ghidra's own evaluator is an open-ended class of mismatches (comparisons, unsigned arithmetic such as ~0U >> 1 giving -1, names, casts, truncation). The evaluator is removed. Enum values, array sizes and bit-field widths are admitted only as one decimal or hex integer literal within int, optionally negated, without suffixes; anything else is refused at the first token that leaves that form, and the refusal says to write the computed value. Implicit enumerator values are still checked against int. Dependency walk: Ghidra's generic pointer has a null pointed-to type, and pushing it onto the ArrayDeque threw. Both the dependency and depth walks now take children from one cTypeChildren and skip an absent child. Type depth: the depth is measured over the whole chain before comparing it with the limit, so the refusal reports the depth it used, and it names the type from the parser's table rather than walking the type for a name. The recovery no longer suggests splitting into named types, which cannot help because depth counts through typedefs and existing types; it says only fewer nested levels do. * refactor(ghidra): refuse parentheses in definitions and keep parenthesis_max_depth on signatures only Under the literal-only rule for constant expressions, every parenthesis in a define_native_data_types text already ended in a refusal (function declarators, attributes, casts, sizeof, or a Ghidra diagnostic for a grouped declarator), so parenthesis_max_depth changed only which refusal a caller saw. A definition now refuses its first parenthesis at its position, and the parameter is removed from that tool's schema; it stays on annotate_native_function, whose prototype has a parameter list. * fix(ghidra): refuse distinct types that share one parser name Ghidra keeps struct tags, enum tags and typedefs in separate maps. Combining those maps dropped a typedef such as typedef int item when struct item was also defined, and the call still succeeded. Overlapping names are stored only when the definitions are equivalent, which keeps typedef struct s { ... } s as one struct. Any other overlap is refused with conflicting_type_definitions before the transaction stores anything. Co-authored-by: morluto <morluto@users.noreply.github.com> * fix(ghidra): roll back a composite the parser fills in place Ghidra's parser replaces an empty composite during parsing and returns that same object. A later same-path check would store the fill as unchanged. Record those empty composites before parsing and refuse if parsing fills one, so the open transaction restores them. A different layout of a non-empty caller type still conflicts and leaves the stored type in place. Co-authored-by: morluto <morluto@users.noreply.github.com> * fix(ghidra): close line comments at EOF and refuse overflowing pack values Ghidra's // skip token requires a line break, so a comment at the end of declarations or of an already-terminated signature was rejected. A newline is appended whenever the text ends in a line comment, before any semicolon added for an unterminated prototype. Integer.parseInt drops a pack operand outside a Java int and leaves the previous packing, so #pragma pack(2147483648) stored a natural layout. Decimal pack operands are admitted only when that parse succeeds. Co-authored-by: morluto <morluto@users.noreply.github.com> * test(ghidra): assert the empty-composite refusal by code and readback Defining a struct over the DWARF placeholder fills that empty composite during parsing, so the refusal is data_type_conflict before the old name-conflict message. The verifier checks that code and that the placeholder still has no fields. Co-authored-by: morluto <morluto@users.noreply.github.com> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: morluto <morluto@users.noreply.github.com> |
||
|
|
1aa301e149 |
fix(ghidra): cancel an active request without closing the session (#14857)
* fix(ghidra): cancel an active request without closing the session Cancelling the request Ghidra is working on closed the whole session, so the next call paid for a restore or a full re-import and session annotations were lost. The bridge now reads its connection on a second thread that only cancels the Ghidra TaskMonitor of the request a cancel frame names; requests still run one at a time. For an active read, REA writes that frame and waits up to two seconds for the request's reply. When it arrives, the call returns a cancellation and the session, its annotations and the queued requests stay. Edits are not interrupted, and a read that is not answered in time closes the session as before. Refs #14832, #8223, #5340 * feat(ghidra): bound the cancel grace with a launch control REA_GHIDRA_CANCEL_GRACE_MS replaces the fixed 2 s wait for the bridge to answer a cancelled read before the session is closed. Default 2000 ms, floor 100 ms, maximum 60000 ms. The value is parsed when REA starts and fixed for a session when its request queue is constructed. It is a restart-only launch control in the numeric limit registry, not a runtime analysis setting, so the MCP tool catalog is unchanged. The session limitation states the applied value and its source, and the failure of requests queued behind an expired grace names the control, value, source and range. An invalid value is reported by doctor and registration validation and refuses a Ghidra session. The hang_tools client cases inject the 100 ms floor instead of waiting out the default grace. * fix(ghidra): keep capability limitations from claiming the default cancel grace Capability descriptors are built once without a session, so they stated the 2000 ms default as the applied value even when REA_GHIDRA_CANCEL_GRACE_MS was set at launch. They now name the control and its default; session limitations still state the value applied. * refactor(ghidra): drop the redundant pre-decompile cancellation check DecompInterface.decompileFunction already returns a DISPOSED_ON_CANCEL result for a monitor cancelled before it starts, which the existing isCancelled() check reports as decompile_cancelled. * test(ghidra): expect session limitations from the session owner in MCP parity The parity check compared session Evidence with capability limitations. Since capability descriptors no longer state an applied cancel grace, the expectation is derived from ghidraSessionCommonLimitations with the grace this harness applies. |
||
|
|
cc888f5f7d |
fix(hopper): report the stalled export function and shell recovery (#14855)
* fix(hopper): report the stalled export function and shell recovery decompile_all reports a progress update every five seconds while one function stays pending, naming the function and its position. MCP sends it as a progress notification and the CLI as a rea_progress line on stderr. A retained Hopper document now carries remediation that holds after a one-shot command has ended: Hopper is still running the named operation and must finish or be quit. The close_binary retry text is kept as guidance for a continuing caller. Refs #14840 * fix(hopper): qualify the advice to quit Hopper while it is still working The recovery text for an ended invocation told the user to quit Hopper to stop a running operation without the condition its sibling text carries. Hopper is the user's application and may hold other documents, so the advice now applies only when it has no other work. * fix(decompile-all): time only provider requests when reporting a function wait The wait reporter timed a whole function attempt, including journal appends and file commits, so a slow output volume was reported as the provider still decompiling. It now wraps each provider request (procedure_info and procedure_pseudo_code) and names the request it waits on. The progress test now uses phase gates and releases and joins the export on every path. * docs(decompile-all): say the wait report times provider requests only * fix(progress): rate-limit each progress phase separately The shared reporter dropped any intermediate update within 100 ms of the previous one, whatever its phase. Hopper's one-second request heartbeat could therefore suppress every decompile_all wait report that fired just after it. The interval now applies per phase, so a heartbeat cannot hide a rarer update from another phase. The decompile_all progress test also restores its commitFunctionFile spy. |
||
|
|
eb47944003 |
perf(decompile-all): group durable writes per batch of functions (#14858)
* perf(decompile-all): group durable writes per batch of functions The export synced each function file and then the journal, one function at a time, so it spent about as long waiting on the disk as decompiling. Each file's bytes are now synced in staging while later functions are decompiled. A group of up to eight functions then publishes its files in visit order and appends its journal records with one write and one sync. A journal record is still written only after its file's content is synced and published. Cancellation and failures commit the pending group before they are reported. Files, journal records and their order, the index and counts are unchanged. A stopped process or host now leaves up to eight decompiled functions unrecorded instead of one; a resume decompiles them again and adopts files already in place. Addresses #14830 * fix(decompile-all): commit the pending group on a throw and after one second A provider adapter that threw inside a group dropped the functions already decompiled in it: their staged files were removed and no record was written, where each had been committed before the next was requested. The pending group is now committed before the throw propagates. A group is also committed by the first function that settles a second or more after the previous commit, so a slow provider is committed function by function instead of leaving up to eight long decompilations unrecorded. Adds the missing lifecycle regressions: a caller abort during a group's publication and during its journal append, a failed removal of a discarded staged file, and a resume beside staging left by a stopped run. * test(decompile-all): release the export a failed-discard test retains The test left its export's cleanup failing, so the directory lease stayed held by the test process. The lease is keyed by device and inode; where the filesystem reuses the removed directory's inode, the next test's export was refused as already running. The test now gives the export a resource scope, retries the retained cleanup once removal works, and resumes in the same directory, which also covers the cleanup retry. * fix(decompile-all): retain failures the group commit observed after a stop or throw A write failure that stops a group now keeps a later function's provider failure as a secondary failure, with its cleanup still attached. When a provider throws and the commit of earlier functions then fails, that commit failure is returned as primary and the throw is retained with it. The first provider failure before an independent retry now joins the group before the retry runs, so a retry that throws cannot drop it. * refactor(decompile-all): compose every export failure through one owner Group settlement now carries each entry's outcome: the first stop leads, entries after it are abandoned but keep any failure they observed, and a failed journal append leads those. One composeFailures helper retains later failures as secondary and keeps every cleanup they own, and the final publish/index/close composition uses it too, so an index failure that still owns cleanup is no longer dropped behind an earlier failure. A journal write failure also keeps a later invalid record as a secondary failure. |
||
|
|
47daa05a84 |
feat(pe): report the overlay appended after a PE image's last section (#13245)
* feat(pe): report the overlay appended after a PE image's last section * chore(schemas): add the inspect_pe_overlay schema summary * test(pe): expect the shared non-PE refusal message in MZ admission * test(cli): record completion goldens for inspect-pe-overlay * fix(pe): preserve overlay diagnostics and validate certificate spans Keep impossible security directory spans in measured overlay bytes and share bounded format recognition with inventory. Validate structured overlay facts in the domain while preserving provider diagnostics. * docs(pe): move the PE overlay guide under docs/guides * fix(pe): keep overlay format recognition within its probe * Address review feedback * fix(pe): keep header anomalies in the overlay report parsePeOverlay dropped pe_header_anomalies from readPeImage, so a SizeOfHeaders that ends before the section table reached the overlay report without its warning. Carry header_anomalies through the output contract and Evidence result, as the certificate, import and load config reports already do. * Address review feedback * fix(pe): report adjustable max_file_bytes budget and preserve omitted caller parameters in inspect_pe_overlay * fix(pe): preserve required_value on file-size limit and use executeArtifactInspection in PeOverlayService * chore(schemas): update inspect_pe_overlay advertised schema summary * fix(pe): include bflt in PE overlay leading formats * test(pe): import BINARY_DIAGNOSTICS_TOOL_CONTRACTS in PE overlay tests --------- Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com> Co-authored-by: morluto <76467478+morluto@users.noreply.github.com> Co-authored-by: Matt Van Horn <mvanhorn@MacBook-Pro-10.local> |
||
|
|
54a186da88 |
docs(elf): give the 64-range default unwind page
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> |
||
|
|
47875ba073 |
fix(native)!: bound Android packed relocations with max_structure_bytes (#14788)
BREAKING CHANGE: Oversized Android APS2 packed relocation tables in inspect_native_initializers now project a memory/adjustable_budget refusal (boundary max_structure_bytes with details.limit) instead of capacity/fixed_ceiling (native-index-capacity). |
||
|
|
94c1c6aec0 |
fix(native): decode Objective-C categories that Swift lists in __objc_catlist2 (#14025)
* fix(native): decode Objective-C categories that Swift lists in __objc_catlist2 Swift lists categories on a class it reaches through a Swift class stub in __objc_catlist2, and the Objective-C runtime loads that list like __objc_catlist. inspect_native_dispatch_metadata read only __objc_catlist, so these categories, their methods and protocols were missing while objc_properties_categories coverage reported complete. Read both lists. A stub's first word is a plain value from 1 to 15, as the runtime's isStubClass checks, and it holds no class_t, so a category whose class reference is a stub keeps a null class and coverage names the reference instead of reading unrelated bytes as a class name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(native): version the dispatch reader profile for __objc_catlist2 categories Reading __objc_catlist2 changes inspect_native_dispatch_metadata results, but the reader still declared apple-metadata-reader-4, so a snapshot saved before this change matched the current profile and replayed its empty, complete category result. Declare reader version and revision 5 so those snapshots are refused with a binding mismatch and the image is read again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
5a283a5f87 |
fix(native): resolve Objective-C protocol _classProperties via pointer fixups (#14283)
Resolve a protocol_t `_classProperties` slot through `resolvePointer` instead of `read.pointer(...) !== 0n`, sharing the undecoded class-property slot check in `AppleObjcProperties.ts` with `AppleObjcCategories.ts`. A bound slot now counts as present and undecoded, and an unreadable or unknown-fixup zero slot keeps the protocol record and coverage partial rather than treating the list as absent. |
||
|
|
b1907ae591 | fix(pe-unwind): mark exception directory coverage partial when trailing bytes exist (#14515) | ||
|
|
4c9dca63a0 |
feat(native)!: give the Go and Rust readers max_structure_bytes and Rust max_wasm_sections (#14661)
* feat(native)!: give the Go and Rust readers max_structure_bytes and Rust max_wasm_sections inspect_go_binary and inspect_rust_binary read the ELF directory and Mach-O load commands through the shared container reader with the fixed 16 MiB structural allowance. Both now accept max_structure_bytes, threaded through readBinaryContainerFromReader. inspect_rust_binary's fixed 65,536-section WebAssembly walk becomes max_wasm_sections (default 65,536, at most 16,777,216). Refusals report details.limit and the generated recovery. The Go budget refusals drop their authored prose and always report their limit, so a value at its maximum gets the generated narrowing advice. Part of #14235. BREAKING CHANGE: Go and Rust structural refusals and the WebAssembly section refusal report details.limit instead of a fixed_ceiling refusal. * chore: refresh the Go and Rust advertised schema summaries * test: keep the Rust section-walk admission check type-correct * refactor(native): own the max_structure_bytes refusal in the native domain The Go and Rust providers may not import src/native, so nativeStructureConstraint moves to src/domain/native/nativeStructureBudget.ts next to the limit it builds, and every provider imports it from there. * fix(native): report the effective Go structure budget and document max_wasm_sections The Go limitation text named a fixed 16 MiB structural bound after a caller could raise it; it now names the effective max_structure_bytes. The Rust guide and MCP boundary test describe max_wasm_sections as a per-call control, and the admission test requires a raised value to succeed. * fix(native): report the effective Go structure budget and Rust section control Go inspection limitations named a fixed 16 MiB structural bound after max_structure_bytes selected another value. The report now uses that effective budget, including the shared default when the field is omitted. Rust WebAssembly section refusals are an adjustable max_wasm_sections budget. The MCP expectation, the Rust guide, and the CLI and MCP checks follow that control, and a raised budget must admit the same module. * style(rust): format the section-walk CLI assertion oxfmt rejects the wrapped cast in the CLI recovery check. Static checks run format:check, which check:fast does not. Co-authored-by: morluto <morluto@users.noreply.github.com> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: morluto <morluto@users.noreply.github.com> |
||
|
|
0aca049128 |
feat(native)!: give the PE readers per-call text, entry and metadata budgets (#14659)
* feat(native)!: give the PE readers per-call text, entry and metadata budgets inspect_pe_imports refused at a fixed 16 MiB of retained names, inspect_pe_unwind_ranges at a fixed 2,097,152 exception-directory entries and inspect_pe_resources at a fixed 8 MiB result. They now accept max_text_bytes (default 16 MiB, at most 256 MiB), max_entries (default 2,097,152, at most 16,777,216) and max_metadata_bytes (default 8 MiB, at most 256 MiB). The DLL, function and TLS callback refusals report details.limit for max_dlls, max_functions and max_callbacks instead of authored recovery, and an unwind refusal reports the declared entry count as required_value. The shared PE failure projection no longer maps an unnamed BinaryResourceFailure to "The PE structural decoding allowance": no PE reader produces one, since PE header and section tables are bounded by the format. Part of #14234 and #14235. BREAKING CHANGE: the PE retained-text, exception-directory entry and resource metadata refusals report details.limit instead of a fixed_ceiling refusal. * fix(native): update PE advertised schema summaries, test types, and assert retry success * test: compare PE resource refusals across adapters with each adapter's control spelling * test: avoid shadowing the CLI fixture in the PE resources parity check |
||
|
|
4d3fa5a080 |
feat(native)!: give inspect_native_exports per-call inventory, text and structure budgets (#14658)
* feat(native)!: give inspect_native_exports per-call inventory, text and structure budgets The native export reader refused at a fixed 262,144-row inventory, a fixed 16 MiB retained-text allowance and the fixed 16 MiB structural allowance. It now accepts max_entries (rows and declared symbol counts; default 262,144, at most 4,194,304), max_text_bytes (default 16 MiB, at most 256 MiB) and max_structure_bytes, which now also bounds the ELF dynamic, symbol and version tables located through PT_DYNAMIC. The parser threads one NativeExportBudgets object through the ELF and PE paths and elfDynamicExportTables; the Android JNI reader keeps the defaults. Refusals report details.limit and the generated recovery. A declared table count is reported as required_value; the text budget stops at the first excess and reports none. Part of #14235. BREAKING CHANGE: export inventory and retained-text refusals report details.limit for max_entries or max_text_bytes instead of a fixed_ceiling refusal, and MAX_NATIVE_EXPORT_ROWS is renamed DEFAULT_NATIVE_EXPORT_ROWS. * chore: refresh the inspect_native_exports advertised schema summary * fix(native): omit lower-bound GNU hash required_value, decouple version work from max_entries, and update export recovery tests * test: expect the lower-bound marker on a stopped GNU hash chain walk * fix(native): cap ELF version traversal work and aggregate malformed version definition diagnostics |
||
|
|
1cc655bbc0 |
feat(native)!: give inspect_dwarf_units a per-call max_decompressed_bytes (#14660)
* feat(native)!: give inspect_dwarf_units a per-call max_decompressed_bytes inspect_dwarf_units refused at a fixed 256 MiB of decompressed DWARF sections for one image. It now accepts max_decompressed_bytes (default 256 MiB, at most 1 GiB) and reports details.limit; the sections decompress in turn, so the refusal reports no required_value. The ELF note text, hash and scan allowance is reclassified as derived: it equals the admitted image length plus its decoded section names. Part of #14235. BREAKING CHANGE: a DWARF decompression refusal reports details.limit for max_decompressed_bytes instead of a fixed_ceiling refusal. * fix(native): document DWARF decompression budget charges, update schema summary, and test raise-and-retry |
||
|
|
30be941a5a |
feat(limits)!: raise disk-backed admission defaults for large ordinary targets (#14653)
* feat(limits)!: raise disk-backed admission defaults for large ordinary targets Raise four per-call input defaults whose work streams from disk or reads by range, so large but ordinary targets are admitted without a retry: - inspect_sqlite_database producer_limits.input_bytes: 256 MiB -> 2 GiB. The database and WAL stream into a private on-disk snapshot that node:sqlite reads by page with mmap disabled; the worker heap stays 256 MiB. - inspect_go_binary max_input_bytes: 256 MiB -> 2 GiB. One streaming hash pass, a header prefix and range reads with chunked build-info search. - inspect_rust_binary producer_limits.input_bytes: 256 MiB -> 2 GiB. One streaming hash pass, a header prefix and a windowed rustc scan. - inspect_nuget_nupkg max_file_bytes: 64 MiB -> 256 MiB, above nuget.org's 250 MB package ceiling. The ZIP is read by range; only the directory and .nuspec are retained. Descriptions and remediation text that restated the old Rust and NuGet values now derive from the owning constants. BREAKING CHANGE: omitted input budgets for inspect_sqlite_database, inspect_go_binary, inspect_rust_binary and inspect_nuget_nupkg now admit larger files. Callers relying on the old default refusal must pass the old value explicitly. * test(nuget): pin the default max_file_bytes refusal boundary through CLI and MCP |
||
|
|
50d13f9f08 |
fix(native)!: report details.limit for native reader per-call budgets (#14622)
* fix(native)!: report details.limit for native reader per-call budgets Devicetree, Windows shortcut, kernel build config, firmware staging and byte-entropy refusals of caller-selected budgets named their control only in remediation prose. Each now sets details.limit from a domain-owned budget object that also builds the schema (src/domain/parameterBudget.ts), so the reported range is the one the next call accepts. inspect_devicetree's fixed 32 MiB decoded representation allowance becomes the per-call max_decoded_bytes (default 32 MiB, 1 KiB to 256 MiB); its refusal reports boundary max_decoded_bytes instead of decoded_bytes. The pwntools allocation failure declares measuredExhaustion, the firmware inherited RLIMIT_FSIZE refusal declares measuredExhaustion, and the LLDB combined-result ceiling is a registered representation bound. Part of #14234 and #14235. BREAKING CHANGE: inspect_devicetree's decoded-representation refusal reports reported_limits.boundary "max_decoded_bytes" with details.limit, instead of "decoded_bytes". * fix(native): keep FIT decoded-budget boundary, LLDB narrowing and entropy length range exact The FIT reader compared the renamed devicetree limit against decoded_bytes, so a decoded-budget refusal became capacity; it now checks max_decoded_bytes, with a test. The LLDB representation ceiling keeps a short name and carries its recovery as narrowing. The byte-entropy length maximum is the window the selected block_size admits. * fix(cli): describe inspect-devicetree --max-decoded-bytes * refactor(native): let the generated adjustable-budget recovery name the native reader controls With #14625 the refusal owns per-call recovery, so the devicetree, Windows shortcut, kernel build config, firmware staging and byte-entropy refusals drop their authored sentences. inspect_byte_entropy reports the smallest admitting block_size as required_value. |
||
|
|
e540cbdafd |
feat(native)!: give the native structural decoding allowance a per-call max_structure_bytes (#14626)
* feat(native)!: give the native structural decoding allowance a per-call max_structure_bytes The 16 MiB structural budget on native header, section, load-command and ELF dynamic-directory table reads, and on decoded section names, was a fixed ceiling with no override. inspect_elf_unwind_ranges, inspect_kernel_module, inspect_elf_debug_link, inspect_dwarf_units, inspect_binary_hardening and inspect_native_initializers now accept max_structure_bytes (64 bytes to 512 MiB, default 16 MiB) and report details.limit when it stops them. binaryContainer owns the default, the limit name and the failure (nativeStructureFailure); the directory readers take a NativeDirectoryBudgets object in place of the positional decoded-name budget, and Mach-O, the ELF dynamic directory and the ELF pointer relocation pass take the same budget. Other allowances that shared the "structure" limit name now carry their own: the PE per-name decode, the retained DWARF section bound (derived from the admitted image), and the hardening table-entry count. The ELF dependency provider's structural projection was unreachable and is removed. Part of #14235. BREAKING CHANGE: refusals at the structural budget report reported_limits.boundary "max_structure_bytes" instead of "structure". * fix(native): apply max_structure_bytes to the ELF hardening dynamic table and scope its help inspect_binary_hardening read PT_DYNAMIC under its entry count only, so a sectionless ELF could exceed the selected max_structure_bytes; the dynamic table is now checked first. The shared help no longer names tables a reader does not bound, and the limits reference states hardening's Mach-O and PE coverage. The initializer CLI recovery test asserts a parsed successful report. * fix(native): refuse a partial ELF hardening dynamic table as malformed before its budget |
||
|
|
4f66985978 |
feat(metadata)!: give NTFS, Maven report and NuGet budgets typed per-call controls (#14629)
* feat(metadata)!: give NTFS, Maven report and NuGet budgets typed per-call controls inspect_ntfs_journal refused acquisitions above a fixed 64 MiB allowance; it now takes max_file_bytes (default 64 MiB) and re-admits a retained acquisition under the call's budget, so lowering it cannot reuse a larger cached read. inspect_maven_gradle_metadata refused at six fixed report allowances; they are now report_limits fields (CLI --report-limits JSON) with today's values as defaults. Maven max_file_bytes and NuGet max_file_bytes, max_entries and max_nuspec_bytes refusals now report details.limit from the same bounds objects the schemas use. The Ghidra installation-properties read allowance is registered as a protocol bound: it reads the provider's own short installation descriptor, not analysis input. BREAKING CHANGE: NTFS and Maven report refusals report details.limit instead of a fixed_ceiling refusal, and parseMavenGradleMetadata and the inspect_ntfs_journal input contract gain the new controls. * fix(metadata): keep omitted NTFS budgets omitted and type host and maximum recovery inspect_ntfs_journal recorded the default max_file_bytes as if the caller had chosen it; the field is now optional and resolved for execution only, so Evidence keeps omission. A host allocation failure while holding an admitted acquisition is reported as measured memory exhaustion instead of generic I/O. A Maven report refusal whose need exceeds the control's maximum no longer suggests raising it. A public CLI/MCP test covers report_limits refusal and recovery for a POM. |
||
|
|
f7641050c7 |
feat(views)!: page byte-entropy blocks and runs; budget xrefs and nupkg delivery (#14599)
inspect_byte_entropy's retained summary now lists the first 64 runs in
offset order beside the ten longest, and inspect_analysis_view gains
view {kind: "byte-entropy", collection: "blocks" | "runs", offset, limit},
which pages the retained series by index with a coverage cursor. The
summary's run list is page zero of that view, so both read one selection.
xrefs and inspect_nuget_nupkg gain the delivery detail selector and join
the agent result budget, reusing their existing summary projections and,
for xrefs, native-observation pages.
BREAKING CHANGE: xrefs and inspect_nuget_nupkg with detail omitted now
return their retained summary when complete Evidence exceeds
delivery.agent_result_budget_bytes in a session that can page it. Pass
detail "complete" (CLI --detail complete) for complete inline delivery.
|
||
|
+15 |
299c592b63 |
fix(cli)!: spell a target failure's recovery with CLI commands and options (#14289)
* feat(errors)!: add the TargetFailure model, its projection table and conformance registry
Introduce one domain-owned TargetFailure value whose kind alone derives
the public code, category, retryability, recovery and details, for CLI
and MCP alike. Selected-file malformed and truncated refusals are the
first area on it: AnalysisMalformedTargetError is replaced by
AnalysisTargetFailureError, and ParseFailure's byte-structure variants
are TargetFailure variants rather than a parallel type.
The shared stableArtifactParserFailureCli loop is replaced by a
declarative registry (tests/support/targetFailure/readers/*.ts) and one
generated suite that runs every registered case through the CLI and MCP.
BREAKING CHANGE: selected-file malformed and truncated refusals add
details.failure_kind, and a truncated target's remediation now says to
re-acquire the complete file instead of choosing another target. Codes
are unchanged. Affected operations: every operation that refuses a
selected file's malformed or truncated bytes, including the ELF, PE,
Mach-O, DWARF, Go, Rust, BEAM, pyc, devicetree, Apple IPS, kernel
module, binary hardening, managed PE/CLI and IL2CPP readers.
* test(managed): name the target failure error in the merged status test
* docs(reference): name the error CSV instead of linking a non-page file
* fix(tests): expect the path reason for non-regular dyld inputs
#14225 refuses a non-regular dyld input as ArtifactReaderFailure("path");
dylibFileLifetime still expected "format" and fails on main's shard 9.
* fix(tests): expect io, invariant and path where #14225 reclassified
stableArtifact expected "format" for an impossible descriptor byte count
(now io) and an invalid chunk size (now InternalInvariantError);
directoryArtifactReaderOpen expected "format" for a non-file entry (now
path, the same change as #14238). All three fail on main.
* fix(errors)!: raise container reader byte faults as malformed or truncated targets
Delete the ambiguous `format` reason from ArtifactReaderFailure and
ArtifactOperationError. Each container reader now raises its owner's
fact once, through malformedArtifact / truncatedArtifact, with format,
offset, field and measured extents. Short reads inside a measured extent
are read-coverage integrity failures, path-kind refusals are `path`,
foreign or recovery-requiring inputs are `unsupported`, host tool output
is `io`, and REA defects are InternalInvariantError.
The trace, NTFS journal, release exposure, web capture, native macOS and
web artifact adapters project the reader's parsed facts as
AnalysisTargetFailureError instead of invalid_request. Inventory
malformed, truncated, unsupported and cancelled reasons take their code
from the TargetFailure projection table, so a truncated container is
unsupported_target with failure_kind "truncated" on both paths.
BREAKING CHANGE: inventory_artifact, inspect_artifact, extract_artifact,
analyze_javascript_application, inspect_desktop_application,
inspect_keyed_archive, inspect_asset_catalog, inspect_nuget_nupkg,
trace_dylib_resolution, trace_web_module_imports and
trace_web_source_location report damaged container bytes as
unsupported_target (details.reason "malformed" or "truncated", with
failure_kind and format) instead of artifact_operation_failed with
reason "format", and a truncated container as unsupported_target instead
of truncated. inspect_playwright_trace, inspect_ntfs_journal,
audit_release_exposure, the web capture inspection operations and the
caller-selected import and source maps report damaged selected bytes as
unsupported_target instead of invalid_request. The `format` reason no
longer appears in details.reason.
* test(artifacts): expect target failure codes in compiled CLI and MCP suites
* fix(errors)!: refuse malformed SQLite, pwntools and EVM inputs as target failures
The SQLite engine's `format` reason is renamed to `malformed` at its
owner (SQLITE_INSPECTION_REASONS), and its refusal becomes an
AnalysisTargetFailureError at the selected path with format "sqlite".
The pwntools and EVM worker replies keep their wire reason "format",
which their workers define, and the adapters translate it once into a
malformed target failure with the profile's format (elf, elf-core,
evm-bytecode) instead of an invalid_format argument issue. SQLite joins
the target-failure conformance registry.
BREAKING CHANGE: inspect_sqlite_database, inspect_binary_layout,
inspect_recorded_crash and inspect_evm_interface report a selected
file's malformed bytes as unsupported_target with details.failure_kind
"malformed", format_failure, format and path, instead of invalid_request
with an invalid_format issue on path.
* fix(errors): give the integrity kind a schema-valid code and list the reference page
artifact_integrity_mismatch's projection schema requires declared and
calculated digests, which a TargetFailure of kind integrity does not
carry, so the kind now projects artifact_operation_failed with category
integrity_mismatch. The model test validates every kind's projection
against analysisErrorProjectionSchema. The reference page joins the
documentation sidebar.
* fix(artifacts): report a short carrier read as a changed file and keep unsupported desktop probes local
A Bun or Node SEA short read inside a range already checked against the
measured size meant the file changed, not that it was truncated. The
carrier range reader and Bun's readExact now raise read-coverage
integrity for it, and keep 'outside the file' as the truncated case.
DesktopFileInspection records an unsupported managed-metadata probe as a
row issue again, so later file checks still run.
* test(errors): expect target failure facts in the pwntools and EVM reply suites
The literal-replacement scenario now reads the failure's detail instead
of an issues[] message, and a malformed reply wrapped by cleanup failure
reports category unsupported_target.
* test(errors): register PE DOS-signature and truncated IPS refusals and drop their per-command copies
The non-MZ PE imports and load-config cases (PE32/PE32+, ZZ and high-bit
signatures) and the truncated Apple IPS body move into the conformance
registry, which runs them through the CLI and MCP and now also checks
that a refusal leaves the selected file unchanged. The per-command tests
keep only their valid-image controls.
* test(sqlite): drop the malformed-database provider test the conformance registry covers
inspect_sqlite_database/not-a-database in the target-failure registry runs
the same non-SQLite bytes through the CLI and MCP, asserts the malformed
target facts and checks the selected file is unchanged.
* feat(errors)!: make failure_kind the identifier and derive code and retry from it
Apply the owner review on #14239 to the TargetFailure model:
- remove details.format_failure; failure_kind is the only identifier;
- give integrity, conflict and io their own codes
(target_integrity_mismatch, input_conflict, host_io_failed) and derive
inventory malformed, truncated and unsupported codes from the same table;
- add a retry hint (none, backoff, after_change) derived from the kind,
with io refined by its transient errno fact; retryable stays the
unchanged-retry flag and is true exactly for backoff;
- rename the limit-cut result code and category truncated to partial;
- drop cancelled and resource from the target kinds and spell
identifiers in American English (unrecognized);
- return a target failure a tool handler throws as a projected isError
result instead of letting the SDK flatten it to text.
BREAKING CHANGE: details.format_failure is removed (read
details.failure_kind). The truncated result code and category are now
partial. Target integrity failures report target_integrity_mismatch,
host read failures host_io_failed and disagreeing inputs input_conflict.
Inventory operations (inventory_artifact, inspect_artifact,
extract_artifact and the other inventory callers) report truncated
container bytes as unsupported_target. Every target failure carries a
top-level retry hint.
* test(sqlite): expect a malformed target for non-database bytes in the CLI suite
* fix(artifacts): keep changed-file short reads, invalid offsets and EOF declarations apart
PyInstaller reads inside the measured size, and .NET bundle manifest
refills, now raise read-coverage integrity on a zero-byte read instead of
truncated. A .NET bundle field and a Godot PCK directory entry that extend
past the file are truncated (with offset and extents) instead of
malformed. An absent or invalid ASAR packed offset is malformed; only a
valid range past the archive is truncated. The .NET manifest string
offset is reported in file coordinates.
* fix(pwntools): report a short ELF header as a truncated target
The layout and recorded-crash workers raise a distinct truncated reason
when the file ends inside the ELF identification or header, and the
decoder projects it as failure_kind truncated instead of inferring it
from the message.
* fix(errors)!: report managed coverage gaps and IL2CPP pair conflicts as target failures
Managed readers interpret an issue code once, in managedIssueTargetFailure:
a coverage gap is an unsupported target, every other rule violation is a
malformed target, and the inventory metadata status is derived from that
same fact. managedInspectionTargetFailure now returns only
AnalysisTargetFailureError.
An IL2CPP binary that parses but does not link to its metadata is a
conflict target failure that lists both inputs and blames neither, in
place of an invalid_request with two issue entries. Metadata version 108
is an unsupported target. The CLI spells each conflict input's field by
the command's option name.
BREAKING CHANGE: inspect_managed_artifact, inspect_managed_members,
inspect_managed_native_boundaries and the managed comparison operations
report unsupported metadata or signature forms as an
AnalysisTargetFailureError (failure_kind unsupported, format pe-cli,
field, offset) instead of a bare unsupported target. inspect_il2cpp_metadata
reports a binary/metadata pair that does not link as code input_conflict
with failure_kind conflict and details.inputs, instead of invalid_request
with details.issues, and metadata version 108 with failure_kind
unsupported.
* fix(artifacts): verify the carrier before blaming a short read on the bytes
The NTFS $MFT decoder, positional members (FIT, uImage, Bun, Deno) and
.NET bundle members now re-verify the source before reporting a short
stream as malformed, so a file that changed during the read reports the
change. The truncation site builds the model's measured extent.
* fix(errors)!: report inventory refusals as target failures of the selected path
An inventory, inspection or extraction refused damaged or unsupported
container bytes as an ArtifactOperationError whose reason repeated the
format owner's kind. It carried no path or retry hint, so the conformance
registry could not express container cases.
translateArtifactFailure now takes the selected path and returns the
reader's TargetFailure as an AnalysisTargetFailureError. The malformed,
truncated and unsupported reasons, their classification rows and their
presentation branch are deleted from ArtifactOperationError. Readers'
unsupported refusals carry their format facts through unsupportedArtifact.
Container cases move into the conformance registry, which now opens the
target first for session tools such as inspect_artifact.
BREAKING CHANGE: inventory_artifact, inspect_artifact, extract_artifact and
the bundle readers report a refused container as a target failure of
details.path with a top-level retry. details.reason is the owner's
description and details.detail is removed.
* docs(il2cpp): describe pair conflicts as input_conflict with both inputs
* docs(android): name unsupported_target for truncated boot image structures
* fix(errors)!: report a target that changed during the read as failure_kind changed
Inventory integrity failures whose check means the target moved under the
read (container, member and unpacked-entry identity, read coverage,
traversal coverage) now take the model's changed projection: code
artifact_changed, retry backoff and details.failure_kind changed. A
selected target that no longer matches the one the session admitted gets
its own admitted-identity check and keeps its reopen recovery.
BREAKING CHANGE: inventory_artifact, inspect_artifact, extract_artifact and
the other inventory operations report a target that changed during the
read as artifact_changed (retryable, failure_kind changed) instead of
artifact_operation_failed. Admission-identity refusals report
integrity_check admitted-identity instead of container-identity.
* test(artifacts): raise the cleanup fixture's decode refusal with its format facts
* fix(errors)!: report unsupported and unrecognized targets on the TargetFailure model
AnalysisUnsupportedTargetError carried a free-text reason and remediation
beside the TargetFailure model, so unsupported refusals had no format,
failure_kind or retry hint, and their recovery was prose written at each
producer.
The class is deleted. Producers raise unsupportedTarget or
unrecognizedTarget with the owner's format, and consumers read
targetFailureOfKind. The projection table renders the recovery and names
the operations the owner lists in related.operations. The foreign-bytes
identity loop moves into the conformance registry.
BREAKING CHANGE: unsupported and unrecognized targets report
failure_kind, format and retry. Their remediation comes from the
target-failure table; producer-written remediation sentences are folded
into details.reason or replaced by details.related_operations.
* test(artifacts): expect admitted-identity for selections replaced before admission
A selected source replaced before admission fails the admitted-identity check rather than container-identity since the changed/admitted split.
* test(go): name the fixture and result when an MZ carrier is not refused through MCP
* style: format the migrated target-failure tests
* test(errors): expect the PE readers' native-binary format label for foreign bytes
* fix(cli)!: spell a target failure's recovery with CLI commands and options
The target-failure recovery named MCP tools even when the CLI printed it,
and it could not name another provider. The projection table now renders
the owner's alternative operations and providers through an adapter
spelling: MCP by tool name and open_binary argument, the CLI by command
and --provider. The CLI output layer re-renders only the table's own text,
so appended guidance is kept.
BREAKING CHANGE: CLI target-failure remediation names commands (for
example `rea inspect-plist`) instead of MCP tool names, and errors gain
details.related_providers when the owner names a provider.
* test(verify): expect target failures for damaged ELF, core and EVM inputs in real-provider verifiers
The binary-layout, recorded-crash and EVM verifiers still expected invalid_input for malformed or truncated selected bytes. The pwntools and EVM adapters now report those as unsupported_target with failure_kind; a missing path remains invalid_input.
* test(web): expect the partial code for a refused source-map admission
The limit-cut code is partial; this Windows-lane test arrived from main with the old truncated spelling.
* fix(workers)!: name malformed worker replies by the model's kind (#14292)
* fix(workers)!: name malformed worker replies by the model's kind
The pwntools, EVM, UEFI LZMA, source-map and historical-capture workers
replied with reason "format" for bytes that break their format, a second
vocabulary for the TargetFailure kind. The workers and their reply schemas
now use "malformed" at the source, including the pwntools Python bridge
and its tests. pwndbg never sent "format", so its schema drops it.
The pwntools decoder maps the worker's malformed and truncated replies to
the target failure of the same kind in one branch.
BREAKING CHANGE: worker reply reason "format" is renamed "malformed" in
the pwntools, EVM, UEFI LZMA, source-map and capture decoder protocols.
* test(go): expect loader-equivalent PE header facts in the MZ diagnostics (#14293)
#14253 made the static PE readers read the optional header at its fixed
offsets and admit a declared directory count below 16, as the Windows
loader does. The Go MZ diagnostic fixtures still expected the older
refusals, so inspect_go_binary MCP and CLI diagnostics failed on main.
A short SizeOfOptionalHeader with an unknown magic at the fixed offset
is now an unsupported optional header, and a PE declaring one data
directory is admitted and keeps its build information, which the MCP
test now asserts.
* fix(tests): damage Deno PE resource framing the loader-equivalent reader reads
#14253 walks resource trees at their RVA whatever the directory Size
declares, so shrinking Size no longer made the 65,535-language table
malformed and the case reported the entry allowance instead. Point the
type directory's entry at a language directory outside the file-backed
resource bytes: its header cannot be read, which the reader reports as
malformed before counting rows against the allowance.
* test(go): check build information in a one-directory PE32 fixture (#14303)
* test(pe): distinguish unsupported DOS input from truncated input (#14302)
* ci: measure portable runner time for recorded selection predictions (#14304)
* ci: validate workflow anchors with actionlint 1.7.12 (#14298)
* ci: wait for static checks before broad PR test shards (#14299)
* ci: validate workflow anchors with actionlint 1.7.12
* ci: wait for static checks before broad PR test shards
* ci: record affected-test predictions above the live cutoff (#14300)
* ci: compare frozen selections with observed test failures (#14301)
* chore(deps): bump markdownify from 1.2.3 to 1.2.4 in /website (#14227)
Bumps [markdownify](https://github.com/matthewwithanm/python-markdownify) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/matthewwithanm/python-markdownify/releases)
- [Commits](https://github.com/matthewwithanm/python-markdownify/compare/1.2.3...1.2.4)
---
updated-dependencies:
- dependency-name: markdownify
dependency-version: 1.2.4
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump rcssmin from 1.2.2 to 1.3.0 in /website (#14229)
Bumps [rcssmin](https://github.com/ndparker/rcssmin) from 1.2.2 to 1.3.0.
- [Changelog](https://github.com/ndparker/rcssmin/blob/master/CHANGES)
- [Commits](https://github.com/ndparker/rcssmin/compare/1.2.2...1.3.0)
---
updated-dependencies:
- dependency-name: rcssmin
dependency-version: 1.3.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* fix(ci): retry recorded crash dependency acquisition without stale index cache (#14076)
Co-authored-by: ShuaixinHuang <ShuaixinHuang@users.noreply.github.com>
* ci: publish the portable build cache only for selected consumers (#14307)
* ci: run the verified actionlint release binary (#14309)
* chore(deps): bump pyyaml from 6.0.3 to 6.0.4 in /website (#14228)
Bumps [pyyaml](https://github.com/yaml/pyyaml) from 6.0.3 to 6.0.4.
- [Release notes](https://github.com/yaml/pyyaml/releases)
- [Changelog](https://github.com/yaml/pyyaml/blob/6.0.4/CHANGES)
- [Commits](https://github.com/yaml/pyyaml/compare/6.0.3...6.0.4)
---
updated-dependencies:
- dependency-name: pyyaml
dependency-version: 6.0.4
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* refactor(views): reuse invalid-view results and row selectors (#14314)
* refactor(domain): share record and graph parsing across input paths (#14321)
* ci: shallow-checkout the classifier for qualification runs (#14312)
* refactor(tests): consolidate repeated CLI capture and fixture construction (#14311)
* refactor(tests): consolidate repeated CLI capture and fixture construction
* test(cli): keep overlapping schema and help cases in their existing PR
* refactor(application): consolidate configuration and observation helpers (#14322)
* refactor(application): consolidate configuration and observation helpers
* refactor(config): leave optional launch parsers to their existing change
* refactor(tooling): share verifier fixture and lint helpers (#14318)
* refactor(tooling): share verifier fixture and lint helpers
* test(clients): retain tool messages in verifier model substitutes
* build(deps): bump write-file-atomic from 7.0.0 to 8.0.0 (#8134)
* perf(nuget): stream .nupkg ZIP over FileHandle instead of buffering full archive (#13835)
* perf(nuget): stream .nupkg ZIP over FileHandle instead of buffering full archive
Closes #13834
* fix(nuget): check artifact stability after format rejection
* refactor(kuna): extract KunaSingleFunctionCache from KunaSessionClient (#13863)
Closes #13862
* perf(har): reuse normalized Base64 for retained response bodies (#13847)
Co-authored-by: hhang <169027046+xu91102@users.noreply.github.com>
* refactor(application): migrate 7 standalone format services onto executeArtifactInspection (#13861)
Closes #13860
* refactor: prune 5 redundant single-call wrapper modules (#13807)
* refactor: prune 5 redundant single-call wrapper modules
* chore(ci): remove deleted providerEnvironment.ts from Stryker and CI scope configs
* fix(ci): retarget provider environment mutation coverage
* refactor(application): migrate 3 remaining artifact services onto executeArtifactInspection (#13867)
* refactor(rizin): extract RizinDebugEvidence from RizinDebugSessionManager (#13823)
* refactor(rizin): extract RizinDebugEvidence from RizinDebugSessionManager
* refactor(rizin): remove unused evidence imports
* fix(ci): follow extracted Rizin evidence in mutation checks
* docs: codify pagination, schema-flatness, DDIA, and flat-ownership guidance in tool-design docs and skills (#13865)
* docs: codify pagination, schema-flatness, DDIA, and flat-ownership guidance in tool-design docs and skills
Closes #13864
* docs: name the current provider operation runner
* feat(frida): add optional limit and offset paging to list_frida_processes (#13854)
* feat(frida): add optional limit and offset paging to list_frida_processes
Closes #13853
* fix(frida): stabilize paged process discovery
* docs(frida): scope paging claims to shipped discovery
* refactor(application): unify 5 pass-through analysis services into ProviderOperationService (#13856)
Closes #13855
* refactor(cli): extract contractCommandRunners from contractCommand (#13869)
* feat(tools): add optional limit and offset paging to find_xrefs_to_name (#13858)
* feat(tools): add optional limit and offset paging to find_xrefs_to_name
Closes #13857
* fix(tools): preserve xref discovery coverage in paged results
* feat(adb): add optional limit and offset paging to list_adb_features and list_adb_services (#13873)
* feat(adb): add optional limit and offset paging to list_adb_features and list_adb_services
* test(adb): verify feature and service paging guidance
* refactor(cli): extract contractCliSchemaProjection and contractCliDocumentDescription (#13871)
* fix(dwarf): reject PE long section names when PointerToSymbolTable is zero (#13889)
* perf(macho): streamline legacy rebase run marking (#13881)
* perf(erlang): stream BEAM IFF inspection over FileHandle (#13886)
* perf(erlang): stream BEAM IFF inspection over FileHandle
* fix(erlang): retain only decoded BEAM code headers
* refactor(kuna): extract KunaSessionEvidence from KunaSessionClient (#13879)
* refactor(kuna): extract KunaSessionEvidence from KunaSessionClient
* refactor(kuna): remove stale session evidence imports
* fix(objc): preserve class import reader failures (#13892)
* refactor(server): extract desktop build tool bindings (#13891)
* refactor(server): collapse inspect bindings and extract desktopBuildToolBindings
* fix(mcp): restore contract-checked inspect bindings
* fix(macho): preserve legacy bind stream bounds and target scope (#13874)
* fix(macho): preserve legacy bind stream bounds and target scope
* fix(macho): report unresolved legacy bind targets in coverage
* test(macho): consolidate legacy bind target coverage
* perf(pe): stream PE certificates over FileHandle (#13884)
* perf(pe): stream PE certificates over FileHandle
* fix(pe): share certificate table admission across readers
* perf(apple-ips): stream Mach-O join headers over FileHandle (#13894)
* perf(apple-ips): stream Mach-O join headers over FileHandle
* fix(apple-ips): retain only verified Mach-O joins
* perf(objc): streamline exact class identity projection (#13897)
* perf(pe): stream PE resource inspection over FileHandle (#13899)
* perf(pe): stream PE resource inspection over FileHandle
* fix(pe): bound streamed icon-group reads and restore lifetime coverage
* perf(swift): streamline symbol inventory classification (#13902)
* perf(apk-signature): stream APK signature inspection over FileHandle (#13877)
* perf(apk-signature): stream APK signature inspection over FileHandle
* fix(apk-signature): preserve bounded reads and file identity
* fix(apk-signature): handle deflate EOF and repair verifier bounds
* fix(apk-signature): recognize internal pipeline cancellation at EOF
* perf(release-exposure): stream PE CodeView/PDB inspection over FileHandle (#13896)
* perf(release-exposure): stream PE CodeView/PDB inspection over FileHandle
* fix(release-exposure): share and bound PE CodeView parsing
* refactor(server): simplify contractToolBindings types and handler dispatch (#13912)
* perf(macho): streamline slice selection diagnostics (#13905)
* fix(macho): preserve retained magic from valid FAT ranges (#13910)
* perf(pe): stream PE load-config inspection over FileHandle (#13901)
* perf(pe): stream PE load-config inspection over FileHandle
* fix(pe): admit empty section tables and batch TLS callback reads
* perf(elf): stream ELF note inspection over FileHandle (#13904)
* perf(elf): stream ELF note inspection over FileHandle
* fix(elf): validate full header extents and reuse aliased note reads
* fix(macho): keep header reads inside declared slices (#13913)
* perf(v8): stream V8 code cache inspection over FileHandle (#13907)
* fix(macho): correct encryption range VM mapping (#13918)
* perf(elf): stream kernel module inspection over FileHandle (#13917)
* perf(elf): stream kernel module inspection over FileHandle
* test(elf): exercise streamed kernel module reads and finalization
* refactor(providers): share offlineArtifactFailureDialect across offline providers (#13921)
* test(macho): consolidate fixed header and extent proofs (#13919)
* perf(macho): bound positional command string probes (#13925)
* refactor(server): replace server.close and onclose monkey-patching with lifecycle hooks (#13882)
* refactor(server): replace server.close and onclose monkey-patching with lifecycle hooks
* fix(mcp): keep deferred runtime cleanup out of protocol close
* test(mcp): verify materialized runtime hooks close once
* fix(cli): defer artifact AnalysisView loading until requested
* test(macho): consolidate native path framing proofs (#13926)
* perf(elf): stream ELF dependency inspection over FileHandle (#13915)
* perf(elf): stream ELF dependency inspection over FileHandle
* fix(elf): share dependency hash parsing and bound string reads
* perf(elf): reuse cached prefixes for short dependency names
* refactor(server): extract debugger and instrumentation tool bindings (#13909)
* refactor(server): extract debugger and instrumentation tool bindings
* test(server): track extracted debugger bindings in reverse tools coverage
* fix(cli): defer artifact AnalysisView loading until requested
(cherry picked from commit
|
||
|
|
40e9a3f1a1 | feat(errors)!: add the TargetFailure model, its projection table and conformance registry (#14247) | ||
|
|
a85859e147 |
feat(pe): inspect x64 exception-directory function ranges (#14254)
* feat(pe): inspect x64 exception-directory function ranges Add inspect_pe_unwind_ranges, a provider-free reader of the PE32+ exception directory (.pdata). It reports each RUNTIME_FUNCTION's begin, end and unwind RVAs, whether the entry starts a function or is a chained fragment (UNW_FLAG_CHAININFO or an indirect unwind RVA), the chain's parent and primary entry, and empty, unsorted, overlapping, unmapped or unresolvable entries as explicit issues. Counts cover every entry while kind, offset and limit select the page. It reads headers through the shared PE image owner without changing its admission. Failures use the existing PE failure projection. Refs #14181 * chore(pe): record the unwind-ranges advertised schema and cursor skill * fix(pe): index chain parents, map the whole exception directory and keep high RVAs unsigned An unsorted table looked up every chain parent with a linear scan, and chain resolution did not yield, so a crafted table could stall the server. Parents are now found through one begin-RVA order and the pass yields to cancellation. The file-backed check covers every declared directory byte, including trailing bytes, and clearing the indirect bit keeps RVAs at or above 0x80000000 unsigned. * fix(pe): bound unwind reads and report unreadable codes, mismatched parents and unsorted overlaps Unwind data is visited in ascending RVA order, so the windowed reader moves forward and reads each region about once whatever the table order. A primary entry whose declared code array leaves the file-backed bytes is unknown (unwind_codes_unmapped), and its header facts are kept. A chain parent must match the whole RUNTIME_FUNCTION; an entry with the same begin but another end or unwind RVA is chain_parent_mismatch. Order and overlap are checked separately. The guide moves under docs/guides/native, and its route is unchanged. * fix(pe): index whole RUNTIME_FUNCTION records for chain parents Entries sharing a begin RVA were scanned for every parent lookup. The table is now ordered once by (begin, end, unwind), and a parent is a binary search for the exact record, with a second search for a begin mismatch. * test(pe): register the unwind-ranges provider lifecycle coverage The provider lifecycle registry needs one entry per provider id. Add rea-pe-unwind-ranges with its public CLI/MCP workflow and a typed resource and cancellation failure test. * test(cli): record inspect-pe-unwind-ranges in the completion goldens * fix(pe): keep a verified unwind report through cleanup failure and check the directory before its allowance A report completed before final close failed was replaced by the file hash. The provider now records the verified report and the shared PE failure projection retains it, as the ELF readers do. The entry allowance now applies only after the directory is shown file-backed, so an oversized count that leaves the file is a malformed target. * chore(pe): register the exception-directory entry allowance as a pending fixed ceiling |
||
|
|
cab39c640a |
fix(native)!: resolve name and import selectors through one owner (#14250)
* fix(native)!: resolve name and import selectors through one owner find_xrefs_to_name matched names exactly against list_names, while procedure_callers and procedure_references used each provider's own procedure lookup. One import selector therefore resolved differently per tool, and each tool failed on a different provider. Hopper also refused every target outside a procedure, so it could not answer incoming references to an import. - NativeSymbolSelection owns name resolution for find_xrefs_to_name, xrefs and the incoming procedure tools: exact name, then a provider-reported external import by imported or library-qualified name, then the provider's procedure lookup. CLI and MCP both run through it. - When a provider refuses a name for xrefs, procedure_callers or incoming procedure_references, REA resolves it once and asks again by address. - The Ghidra and Hopper bridges answer an explicit address outside every procedure (an import slot, imported name or data label) with its recorded references and their containing procedures. - XrefsAddressResolution is removed. BREAKING CHANGE: procedure_references.procedure may now identify an address outside every procedure, with classification null and an unavailable body. find_xrefs_to_name adds resolved_name and candidates, and resolves bare import names on Ghidra. Fixes #14160 Fixes #14184 * fix(native): order selector candidates by code point The domain ordering rule forbids localeCompare. * fix(native): retry only names outside every procedure and keep retry facts - Answer a refused name by address only when the provider observes that address outside every procedure. An interior label stays refused instead of selecting its containing procedure. - Return a retry's own failure unless it is another lookup miss. - Retain Hopper's native address-target reply as raw Evidence, with its target identity and caller completeness. * fix(native): retry at exact procedure entries and return containment failures - An import resolved to a procedure's exact entry, such as Ghidra's external function for kernel32.dll::VirtualAlloc, is answered by that address; only an address strictly inside a procedure keeps the refusal. - A containment lookup that fails for any reason other than the provider lacking it is returned with its facts instead of the name refusal. * test(ida): answer unknown names as Not found in the verifier fixture The verifier's fake IDA resolved every lookup_funcs query to main. With xrefs names now resolved by the shared selector owner, an unknown name such as not-an-address reaches the provider's procedure lookup, which the fake answered with main, so xrefs succeeded instead of the expected invalid_request. Real IDA answers an unknown name with "Not found"; the fixture now does too, and the verifier's contract is unchanged. * fix(native): keep provider ambiguity and declare the procedure-lookup fallback - The Ghidra bridge sends every matching entry of an ambiguous procedure selector as structured candidates. The projection carries them as the typed ambiguous-selector refusal, and the shared owner no longer treats an ambiguous lookup as a missing name, so find_xrefs_to_name returns the ambiguity with its candidates. - find_xrefs_to_name requires list_names or procedure_address, plus xrefs, so providers without a name inventory, such as IDA and Kuna, report it as available with the effects of the calls it makes. * fix(native): answer a provider-ambiguous name by its unique exact name Ghidra's procedure lookup matches leaf names, so a global work and ns::work make work ambiguous, while the shared owner resolves the exact name work. When the provider reports an ambiguity, the shared owner now retries only by a unique exact-name match and otherwise keeps the provider's ambiguity and candidates. * fix(native): resolve incoming procedure names through the shared owner first procedure_callers and incoming procedure_references asked the provider by name first, so Ghidra's leaf-name lookup could answer "work" with ns::work while find_xrefs_to_name selected the exact label work. These tools now resolve the name with the shared owner first and ask the provider by its address when that address is outside every procedure or a procedure's exact entry. A name the owner cannot resolve, or one inside a procedure, still goes to the provider's procedure lookup, which owns alias and thunk spellings. xrefs keeps provider-first resolution. * fix(native): retain snapshot replay for resolved symbol selectors |
||
|
|
789ca04125 |
fix(pe)!: bound static readers by the bytes they read, not file size (#14262)
* fix(pe)!: share one loader-equivalent PE header owner across static readers Resources and certificates now admit headers through readPeImage, and resources map RVAs through the shared file-backed mapping. The owner reads the optional header at fixed offsets, caps data directories at 16, and lets a PE signature at e_lfanew override a DOS relocation table. Export, import, TLS and resource directories are read at their RVA whatever Size declares. Disregarded declarations are reported in header_anomalies. BREAKING CHANGE: import and delay-import walks continue to the null descriptor past a short directory Size instead of stopping with a malformed_entry issue, and inspect-pe-resources reports an unsupported optional-header magic as unsupported_target. * fix(pe): keep valid DOS relocation tables owning e_lfanew Only a relocation table that describes no DOS load module yields e_lfanew to a PE signature; update MZ/PE conformance to the shared owner. * fix(pe)!: bound static readers by the bytes they read, not file size max_file_bytes now counts the header prefix and every positional read of headers, directory tables and their referenced ranges. The identity pass that hashes the whole file is bounded only by a fixed whole-file ceiling: 4 GiB minus one byte for the PE-only readers, whose file offsets are 32-bit, and 512 MiB for hardening and exports. An exhausted allowance is a capacity refusal with a typed parameter details.limit. BREAKING CHANGE: max_file_bytes no longer refuses a large file whose reads fit; an exhausted read allowance reports resource capacity instead of file-size, and only a file above the fixed ceiling reports file-size. * fix(pe): walk resource trees within file-backed bytes and cite TLS reads The resource walk is bounded by the file-backed run from the directory RVA rather than its Size, and a Size that ends before the bytes walked is a directory_size_below_structure anomaly. The TLS result carries structure_location for the structure read past a short Size, and Evidence cites it. * test(pe): assert a refused read never reaches the descriptor * test(pe): use a resource cycle as damage now that a short Size is read * fix(pe): read resource trees past an oversized Size and keep damaged MZ headers malformed An oversized resource Size is reported without requiring its unused bytes to map. A Windows-header candidate is malformed when the DOS module is also invalid, and the guide states that a valid DOS relocation table owns e_lfanew. * feat(pe): report image_base and IAT slot VAs in static PE results (#14263) * feat(pe): report image_base and IAT slot VAs in static PE results Every static PE result reports the optional-header image_base once as a hex VA, and import rows add iat_va beside iat_rva so a slot goes straight to xrefs. Fields name their space as rva, va or file_offset; the new fields are optional so saved Evidence still parses, and the imports service rejects an iat_va that disagrees with image_base plus iat_rva. * fix(pe): document iat_va for rebased databases and test VA rejection iat_va is relative to the file's ImageBase; a rebased provider database needs its own base plus iat_rva. Cover the service rejection of a slot VA that disagrees with image_base plus iat_rva. * chore(pe): register the forwarded whole-file ceiling and shrink refusal baselines |
||
|
|
f585acc748 |
fix(pe)!: share one loader-equivalent PE header owner across static readers (#14253)
* fix(pe)!: share one loader-equivalent PE header owner across static readers Resources and certificates now admit headers through readPeImage, and resources map RVAs through the shared file-backed mapping. The owner reads the optional header at fixed offsets, caps data directories at 16, and lets a PE signature at e_lfanew override a DOS relocation table. Export, import, TLS and resource directories are read at their RVA whatever Size declares. Disregarded declarations are reported in header_anomalies. BREAKING CHANGE: import and delay-import walks continue to the null descriptor past a short directory Size instead of stopping with a malformed_entry issue, and inspect-pe-resources reports an unsupported optional-header magic as unsupported_target. * fix(pe): keep valid DOS relocation tables owning e_lfanew Only a relocation table that describes no DOS load module yields e_lfanew to a PE signature; update MZ/PE conformance to the shared owner. * fix(pe): walk resource trees within file-backed bytes and cite TLS reads The resource walk is bounded by the file-backed run from the directory RVA rather than its Size, and a Size that ends before the bytes walked is a directory_size_below_structure anomaly. The TLS result carries structure_location for the structure read past a short Size, and Evidence cites it. * test(pe): use a resource cycle as damage now that a short Size is read * fix(pe): read resource trees past an oversized Size and keep damaged MZ headers malformed An oversized resource Size is reported without requiring its unused bytes to map. A Windows-header candidate is malformed when the DOS module is also invalid, and the guide states that a valid DOS relocation table owns e_lfanew. |
||
|
|
187793ba61 |
fix(macho)!: report a FAT header or table cut off by the file's end as truncated (#14233)
* fix(macho)!: report a FAT header or table cut off by the file's end as truncated The universal Mach-O container reader measured the file's size but reported a FAT header shorter than 8 bytes as malformed, and a FAT table that runs past the file's end as not FAT at all. Callers could not tell a cut-off download from corrupt bytes. readFatContainerHeader now returns a typed truncated state carrying the measured file size and the length the header or table needs. A CAFEBABE count that reads as a JVM class version stays not FAT, because a short class file is not evidence of a universal file. Universal image selection, the native container reader and the lipo-selected slice resolver raise that fact as a truncated ParseFailure with an extent, and the malformed-target projection reports it as details.available_bytes and details.required_bytes. Complete but corrupt FAT data (zero count, overlapping slices, slices inside the table) stays malformed. BREAKING CHANGE: inspect_go_binary, inspect_rust_binary, inspect_dwarf_units, inspect_native_initializers, inspect_native_dispatch_metadata, the IL2CPP binary readers and the macOS provider's lipo-selected slice reads now report a FAT header or table cut off by the file's end with details.format_failure "truncated" (previously "malformed", or an unsupported or not-universal result for a table past the end), plus details.available_bytes and details.required_bytes. * test(macho): type every format-owner row with its asserted format failure |
||
|
|
57f4e3c4bd |
fix(errors)!: refuse corrupt managed, IL2CPP and universal Mach-O bytes as a malformed target (#14224)
Three formats had their own error mappers that still reported a selected file's corrupt bytes as an invalid_format path issue (invalid_request): managedInspectionInputFailure, Il2cppMetadataProvider and the Mach-O slice selection mappers. Each now projects its format owner's own failure through AnalysisMalformedTargetError at the path of the file whose bytes are at fault. - Managed PE/CLI: a broken rule is a malformed pe-cli target with the reader's scope and offset; unsupported-metadata and unsupported-signature are unsupported targets; resource limits stay with their producer. - Universal Mach-O: the container reader raises a ParseFailure once (malformed, truncated where it measured the end, unsupported from the container's own category), and requireSelectedNativeImage(FromReader) project it at the universal file's path. An unknown or ambiguous architecture stays invalid_request on the architecture field. SliceSelectionInput.pathField is removed. - IL2CPP: metadata and binary format failures each name their own file. A binary that parses but does not link to the metadata is a link conflict: invalid_request with invalid_value issues on both path and binary_path, no input-contract recovery, and the partial observation keeps both file identities. Neither file is called malformed. BREAKING CHANGE: inspect_managed_artifact, inspect_managed_members, inspect_managed_native_boundaries, compare_managed_members, inspect_il2cpp_metadata, inspect_go_binary, inspect_rust_binary, inspect_dwarf_units and inspect_native_initializers report corrupt or truncated target bytes as code unsupported_target with details.path, format, format_failure and reason instead of invalid_request with an invalid_format issue. IL2CPP link conflicts list both path and binary_path with reason invalid_value instead of one invalid_format binary_path issue. |
||
|
|
cebfae50d9 |
perf(ghidra): retain literal search candidates only when filtering narrows them (#14143)
* perf(ghidra): retain literal search candidates only when filtering narrows them The Ghidra bridge folds ASCII exactly, so a case-insensitive literal search with an ASCII-foldable pattern already returns its matches. Attaching the unnarrowed reply as rawResult repeated the full match list in every default search_strings/search_procedures response and Evidence record. Retain it, with the candidate limitation, only when Unicode filtering removed a row or secondary name. Closes #14142 * docs(ghidra): state when a literal search retains raw candidates The native investigation guide still said every case-insensitive literal search puts bridge candidates in raw_result. It now states the condition. A test covers the case where filtering removes only a matched secondary name, which keeps every procedure but must still retain the candidates. |
||
|
|
77b5b76e99 | docs(guides): correct native and platform guide flags, host limits and stale notes (#14198) | ||
|
|
d3773c910e |
docs(native): describe export RVAs and name-prefix views
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> |
||
|
|
fabe0da74b | fix(elf): preserve kernel config framing and location provenance (#14021) | ||
|
|
a8ccf8b5b8 |
fix(macho): preserve legacy bind stream bounds and target scope (#13874)
* fix(macho): preserve legacy bind stream bounds and target scope * fix(macho): report unresolved legacy bind targets in coverage * test(macho): consolidate legacy bind target coverage |
||
|
|
1d4fadceb2 |
feat(tools): add optional limit and offset paging to find_xrefs_to_name (#13858)
* feat(tools): add optional limit and offset paging to find_xrefs_to_name Closes #13857 * fix(tools): preserve xref discovery coverage in paged results |
||
|
|
4a62303717 | fix(elf): read build IDs without decoding unrelated notes (#13776) | ||
|
|
02d5e6e3f8 |
fix(native-exports): preserve uncertainty in incomplete ELF version lookups (#13666)
* fix(native-exports): preserve uncertainty in incomplete ELF version lookups * test(native-exports): prove ELF version cache exhaustion ends the scope |
||
|
|
ef3eb1e46e | fix(native-exports): verify the declared PE directory size (#13661) | ||
|
|
8018344145 | fix(windows-shortcuts): preserve unread target uncertainty (#13653) | ||
|
|
bb81b0a88d | fix(elf): establish direct initializer slot mappings (#13452) | ||
|
|
22042af848 |
fix(go): report only admitted string candidate limits (#13451)
* fix(go): report only admitted string candidate limits * test(go): distinguish each Mach-O protection mask |
||
|
|
7e158843b3 |
feat(elf): inspect exports without section headers (#9083)
* feat(elf): inspect exports without section headers Use the dynamic segment and hash tables to enumerate exports when an ELF image has no dynamic symbol section. Preserve symbol coverage, version qualifications, and typed failures through the existing native export path. * test(elf): cover dynamic exports with retained sections * test(setup): retain a valid lowercase Kimi schema profile Use the supported compact profile in the Windows environment-spelling regression. Keep the exact environment assertion so a duplicate uppercase key still fails, and retain separate coverage rejecting the removed full profile. --------- Signed-off-by: Afloat <ShuffleMonkey@163.com> |
||
|
|
6357f775a0 |
fix(pwntools): release each PLT emulator so CET binaries keep their PLT map (#13213)
* fix(pwntools): release each PLT emulator so CET binaries keep their PLT map pwntools 4.15.0 emulates each PLT section in a new Unicorn instance with a 1 GiB virtual map, and hook closures keep each instance alive until cyclic GC. Under the default 3 GiB address-space limit the third section of a CET x86-64 image failed upstream's 1 GiB probe, so linkage.plt was truncated with only a stderr warning (/usr/bin/ls: 4 of 108 entries). Wrap upstream's emulate_plt_instructions for the PLT pass so each section's emulator is collected before the next, restoring it in finally. Peak PLT address space drops from about 3.2 GiB to 1.1 GiB. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(pwntools): make the CET verifier deterministic and supervised --------- Co-authored-by: aadheel <250292080+aadheel@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: morluto <76467478+morluto@users.noreply.github.com> |
||
|
|
ce3506e298 |
fix(elf): clear the ARM Thumb bit before naming unwind ranges (#9692)
An ARM STT_FUNC or STT_GNU_IFUNC value for Thumb code is the code address with bit 0 set (AAELF32 symbol values), while an FDE initial location is the even code address. inspect_elf_unwind_ranges matched symbol values to FDE starts exactly, so a Thumb function described by an .eh_frame FDE lost its name: the range was named by a local label or mapping symbol from .symtab, or had no name when only .dynsym was left. On ARM EABI such FDEs come mostly from hand-written assembly with .cfi directives; compiled code unwinds through .ARM.exidx. Clear bit 0 of ARM function and IFUNC symbol values before the lookup, as the ELF initializer and Android JNI readers already do. Mapping symbols and other machines keep their values. |
||
|
|
e773afd9c3 |
docs(native): explain resource-only bundle admission (#5764)
* docs(native): explain resource-only bundle admission * docs(native): name supported resource-session commands * docs: refresh resource-session guide --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> |
||
|
|
f03cce9c01 |
fix(native): label XML plists that file calls data as xml (#12910)
`file -b` reports `data` for an XML plist containing a control character or NUL byte, which CoreFoundation still reads. plistSourceFormat only probed the source for markup when `file` reported text, so these sources were labelled `unknown` and skipped REA's XML reader. When that reader would have refused them, the result also lacked the limitation that says the value came from plutil's conversion. Two plists shipped with macOS 27.2.1 are affected. Probe the source prefix for any description that does not name binary, XML or JSON. Such XML now takes the same route as XML that `file` recognizes: REA's reader decodes it directly, or #12251's plutil fallback records REA's refusal reason. OpenStep and other non-markup sources stay `unknown`. |
||
|
|
a1dec2d2d5 | docs: remove tracked planning and architecture records (#12856) | ||
|
|
8c7977f174 |
fix(native)!: require separate inspection for plists outside bundles (#9754)
* fix(native): record inspected plist bytes and refuse files outside the bundle An open app session keeps the executable as the Evidence subject for inspect_plist, same as the other bundle-resource tools, but the result had no digest of the plist bytes and any absolute path was sealed under that subject. Record source_sha256 for the bytes read, and refuse a selection that resolves outside the opened bundle. Fixes #9479 * fix(native)!: scope plist selection to the opened bundle BREAKING CHANGE: To inspect a plist outside an opened app bundle or resource root, open the plist as a separate target. * fix(native): report plist snapshot filesystem effects --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: morluto <76467478+morluto@users.noreply.github.com> |
||
|
|
0fcbfe83dc | fix(elf): retain readable build IDs beside compressed notes (#12674) | ||
|
|
e532d746f0 |
docs(limits): refresh the limit inventory and state the runtime-setting rule (#12655)
* docs(limits): refresh the limit inventory and state the runtime-setting rule Recompute the inventory from ANALYSIS_SETTINGS and the numeric-limit check, and make a hardcoded limit a runtime setting unless a fixed ceiling has a stated format, protocol, or representation reason. * docs(limits): distinguish runtime settings from per-call overrides --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> |
||
|
|
5664a6fbd4 | docs: clarify parser coverage and verification ownership | ||
|
|
46f6d4638e |
fix(windows): check fixed Shell Link ExtraData sizes (#10361)
* fix(windows): check fixed Shell Link ExtraData sizes * fix(windows): preserve unreadable shortcut target uncertainty --------- Co-authored-by: morluto <76467478+morluto@users.noreply.github.com> |