Skip to content

feat(artifacts): inspect PE resource identities and payload ranges - #1482

Merged
morluto merged 3 commits into
morluto:mainfrom
thangldw:codex/inspect-pe-resources
Oct 10, 2026
Merged

morluto merged 3 commits into
morluto:mainfrom
thangldw:codex/inspect-pe-resources

Conversation

@thangldw

Copy link
Copy Markdown
Contributor

Closes #1254.

REA can read PE resource bytes, but analysts currently have to walk the resource directory themselves. This adds inspect_pe_resources and rea inspect-pe-resources for one explicit PE32/PE32+ artifact, using a shared CLI/MCP service without an active target or engine installation.

The complete Evidence preserves numeric IDs versus UTF-16 names, type/name/language identity, directory and data-entry source locations, payload RVA/file ranges, and full SHA-256 hashes. Static RT_GROUP_ICON relationships retain same-language RT_ICON resolution, other-language candidates, missing references, and size mismatches. Malformed or ambiguous mappings and exhausted budgets fail without partial success; stable file reading and cancellation reuse the existing boundaries.

Tool contracts, effects, capability availability, provider catalog, and authored skill/documentation are updated. Other payload formats remain opaque. Image decoding, Windows language fallback, and actual shell/window loading are outside the portable parser's scope.

Validation:

  • 46 tests passed across seven files, including source-owned PE32/PE32+ fixtures, malformed/overlapping ranges, file boundaries, service output validation, real compiled CLI and stdio MCP, MCP schemas, contract presentation, and product catalog.
  • npm run check passed (typecheck, lint, formatting, unused-code and architecture checks).
  • npm run docs:check and npm run verify:test-discovery passed.
  • Optional Windows SDK resource-loading verification was not run.

Implementation was developed with AI-agent assistance and verified through the checks above.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@morluto
morluto merged commit 905e486 into morluto:main Oct 10, 2026
27 checks passed
@morluto

morluto commented Oct 10, 2026

Copy link
Copy Markdown
Owner

Thanks @thangldw for adding PE resource inspection with resource identities and payload ranges! Squash merged with the review fix. Welcome to REA, and thank you for your first PR and the mobile framework fix in #1506.

@thangldw
thangldw deleted the codex/inspect-pe-resources branch October 12, 2026 10:30
@morluto morluto added enhancement New feature or request area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior labels Oct 14, 2026
@morluto morluto added the area: evidence Evidence, artifacts, and reconstruction label Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: evidence Evidence, artifacts, and reconstruction area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(artifacts): inspect PE resource identities and payload ranges

2 participants