From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Tool:Ghidra Function ID" |
|---|
| claim | "Function ID hashes with FNV-1a 64-bit; functions with fewer code units than a minimum are not hashed; a hit needs a score of at least 14.6 (30 when several names share the hash)." |
|---|
| scope | | level | "tool" |
|---|
| applies_to | "Tool:Ghidra Function ID" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "Function ID analyzer running on a function" |
|---|
| effect | "full hash masks all scalars and addresses; specific hash mixes scalars below 256 in absolute value and registers; score threshold SCORE_THRESHOLD 14.6f, MULTINAME_SCORE_THRESHOLD 30; MEDIUM_HASH_CODE_UNIT_LENGTH 24" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "constants and FNV1a64MessageDigestFactory" |
|---|
| repo | "https://github.com/NationalSecurityAgency/ghidra" |
|---|
| commit | "9a723ce99952771b8368329503aa589ae233e916" |
|---|
| path | "Ghidra/Features/FunctionID/src/main/java/ghidra/feature/fid/service/FidService.java" |
|---|
| lines | "46-48, 59" |
|---|
|
| type | "source" |
|---|
| detail | "hash loop: operand masking, 0xfeeddead placeholder, scalars under 256" |
|---|
| repo | "https://github.com/NationalSecurityAgency/ghidra" |
|---|
| commit | "9a723ce99952771b8368329503aa589ae233e916" |
|---|
| path | "Ghidra/Features/FunctionID/src/main/java/ghidra/feature/fid/hash/MessageDigestFidHasher.java" |
|---|
| lines | "93-200" |
|---|
|
| type | "source" |
|---|
| detail | "Re-read constants (4, 24, 14.6f, 30), FNV1a64MessageDigestFactory and the scalar masking in the hasher" |
|---|
| repo | "https://github.com/NationalSecurityAgency/ghidra" |
|---|
| commit | "9a723ce99952771b8368329503aa589ae233e916" |
|---|
| path | "Ghidra/Features/FunctionID/src/main/java/ghidra/feature/fid/service/FidService.java" |
|---|
| lines | "45-59" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Hashing and thresholds" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T07:03:59.570Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-18T22:20:58.318Z" |
|---|
| result | "confirmed" |
|---|
| method | "Fetched raw FidService.java at 9a723ce9: SHORT_HASH_CODE_UNIT_LENGTH 4, MEDIUM_HASH_CODE_UNIT_LENGTH 24, SCORE_THRESHOLD 14.6f, MULTINAME_SCORE_THRESHOLD 30, digestFactory = FNV1a64MessageDigestFactory (lines 45-59). MessageDigestFidHasher.java: 0xfeeddead placeholder, scalars with abs value >= 256 not hashed in the specific hash, full hash never uses scalar values (lines 143-181)." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-18T22:20:58.098Z" |
|---|
| summary | "Raised to high: constants and hasher logic re-read at the cited commit" |
|---|
| changed | |
|---|
|
|
|---|