From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:ASAR archive (Electron)" |
|---|
| claim | "ASAR header JSON nodes are directories {files:{name:node}}, files {size, offset (decimal string), executable?, unpacked?, integrity?}, links {link} or unpacked files {size, unpacked:true}; integrity is {algorithm:'SHA256', hash, blockSize:4194304, blocks:[sha256 hex per 4 MiB block]}." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:ASAR archive (Electron)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "ASAR_NODE" |
|---|
| size_min | 1 |
|---|
| fields | | name | "files" |
|---|
| type | "object (directory)" |
|---|
|
|
| name | "offset" |
|---|
| type | "string, decimal, relative to data start" |
|---|
|
| name | "executable" |
|---|
| type | "bool, optional" |
|---|
|
| name | "unpacked" |
|---|
| type | "bool, optional (file lives in app.asar.unpacked)" |
|---|
|
| name | "link" |
|---|
| type | "string, optional" |
|---|
|
| name | "integrity" |
|---|
| type | "object {algorithm, hash, blockSize, blocks[]}, optional" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "validateFileEntry/validateIntegrity/validateLinkEntry/validateDirectoryEntry; integrity.ts lines 7-76 gives SHA256 and BLOCK_SIZE 4 MiB" |
|---|
| repo | "https://github.com/electron/asar" |
|---|
| commit | "623d6addc0fe80c7fb2001ce611e1a645ab62bc4" |
|---|
| path | "src/disk.ts" |
|---|
| lines | "21-135" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Header JSON entries" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T08:07:14.733Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T11:01:23.295Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read validateHeaderEntry/validateFileEntry/validateUnpackedFileEntry/validateIntegrity/validateLinkEntry/validateDirectoryEntry in src/disk.ts at 623d6add: link, files, offset (numeric string), size, unpacked, executable, integrity{algorithm,hash,blockSize,blocks[]} as stated. The SHA256 and 4 MiB values come from integrity.ts which I did not read." |
|---|
|
|
|---|