From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "identification" |
|---|
| subject | "Format:NRBF (.NET BinaryFormatter stream)" |
|---|
| claim | "A stream is NRBF when byte 0 is 0x00 and bytes 9-16 are 01 00 00 00 00 00 00 00 (major version 1, minor 0); RootId (bytes 1-4) and HeaderId (bytes 5-8) are not part of the test." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:NRBF (.NET BinaryFormatter stream)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | method | "check the first 17 bytes" |
|---|
| indicator | "00 ?? ?? ?? ?? ?? ?? ?? ?? 01 00 00 00 00 00 00 00" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "HeaderSuffix [1,0,0,0,0,0,0,0] and StartsWithPayloadHeader compare byte 0 and the last 8 of the 17 header bytes" |
|---|
| repo | "dotnet/runtime" |
|---|
| commit | "66368e9db028ee74da106612a72534c2d58e3a6f" |
|---|
| path | "src/libraries/System.Formats.Nrbf/src/System/Formats/Nrbf/NrbfDecoder.cs" |
|---|
| lines | "28-44" |
|---|
|
| type | "source" |
|---|
| detail | "Size = 1 + 4*4; root id, header id (ignored), major must be 1, minor must be 0" |
|---|
| repo | "dotnet/runtime" |
|---|
| commit | "66368e9db028ee74da106612a72534c2d58e3a6f" |
|---|
| path | "src/libraries/System.Formats.Nrbf/src/System/Formats/Nrbf/SerializedStreamHeaderRecord.cs" |
|---|
| lines | "19-46" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Detect NRBF by header" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T02:48:09.205Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T03:52:11.971Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read dotnet/runtime at 66368e9: NrbfDecoder.StartsWithPayloadHeader tests byte 0 == SerializedStreamHeader and the last 8 of 17 bytes == [1,0,0,0,0,0,0,0]; SerializedStreamHeaderRecord requires major 1 minor 0 and ignores HeaderId." |
|---|
|
|
|---|