Repository navigation
feat(artifacts): inventory NTFS MFT record headers - #9911
Conversation
An acquired $MFT stream had no reader, so an analyst holding one could only treat it as an opaque file. Recognize the FILE signature of the first record and inventory every record's header: sequence number, flags, used and total bytes, base record reference and update-sequence array. Each record's update-sequence fixups are verified against its sector trailers. A mismatch keeps the header facts, is reported on the record and is counted in the metadata, so a record that was not cleanly written is visible rather than silently accepted. A missing or short array is reported as unverified, a wrong signature stops the scan at its offset, and a trailing partial record is reported as a byte count. Attributes, filenames and the $UsnJrnl:$J journal are not decoded, so no path or change history is claimed. Part of #9867 (cherry picked from commit ccb45f5)
The new NTFS $MFT files were committed unformatted, so the Static checks lane failed on format:check. Formatting only; no behaviour change. (cherry picked from commit dc6a6d4)
Co-authored-by: gensokyo-dev <[email protected]>
Co-authored-by: gensokyo-dev <[email protected]>
Co-authored-by: gensokyo-dev <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a110d2a74b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Co-authored-by: gensokyo-dev <[email protected]>
Co-authored-by: gensokyo-dev <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c4bb6563b7
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Co-authored-by: gensokyo-dev <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e2baf11f3a
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Co-authored-by: gensokyo-dev <[email protected]>
Co-authored-by: gensokyo-dev <[email protected]>
Co-authored-by: gensokyo-dev <[email protected]>
Co-authored-by: gensokyo-dev <[email protected]>
Co-authored-by: gensokyo-dev <[email protected]>
Co-authored-by: gensokyo-dev <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 519e800cd8
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Co-authored-by: gensokyo-dev <[email protected]>
Co-authored-by: gensokyo-dev <[email protected]>
Co-authored-by: gensokyo-dev <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b7dee37751
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Co-authored-by: gensokyo-dev <[email protected]>
Co-authored-by: gensokyo-dev <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 872fae00d8
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Co-authored-by: gensokyo-dev <[email protected]>
Co-authored-by: gensokyo-dev <[email protected]>
Co-authored-by: gensokyo-dev <[email protected]>
Co-authored-by: gensokyo-dev <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8edb1c78a2
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Co-authored-by: gensokyo-dev <[email protected]>
Co-authored-by: gensokyo-dev <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d025ddfad6
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Co-authored-by: gensokyo-dev <[email protected]>
An acquired NTFS MFT could not be opened through the public artifact workflow. This adds offline CLI/MCP admission and a read-only MFT header inventory, reusing @2SinceJuly's reader from #9868 with original authorship. Part of #9867.
The whole-file admission ceiling is 512 MiB. Attribute and USN analysis are follow-up work in #9914. All fixtures are synthesized. Real Windows acquisitions remain unverified.
Validation on Node 24.22.1, with one test worker and bounded V8 heaps:
Memory comparison, one cold process per revision on one CPU with a 1 GiB heap cap: a 32 MiB synthesized MFT containing 65,536 records produced identical metadata at 519e800 and b7dee37. Decoder elapsed time was 324 → 201 ms, CPU 323 → 201 ms, and process peak RSS 198,764 → 156,252 KiB. Startup contributes to peak RSS. Warm runs, full CLI/MCP performance and agent-token costs were not measured.
CI source tests passed 26,594 tests and failed only on an empty suite in src/ghidra/GhidraFunctionValues.test.ts. That file is unchanged by this PR. A clean detached worktree at main e2585aa reproduced the same “No test found in suite Ghidra bridge script processor context contract” failure with 106 passing tests. This is a verified base-branch failure. CI job: https://github.com/morluto/rea/actions/runs/42939623493/job/130264057014 .