From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Library:Fishhook" |
|---|
| claim | "fishhook rebinds only pointers in __DATA/__DATA_CONST sections of type S_LAZY_SYMBOL_POINTERS or S_NON_LAZY_SYMBOL_POINTERS, indexed through the indirect symbol table starting at section->reserved1, skipping INDIRECT_SYMBOL_ABS/LOCAL entries and comparing the name after its leading underscore." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Library:Fishhook" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "rebind_symbols / rebind_symbols_image" |
|---|
| effect | "writes the replacement pointer into the symbol pointer slot after vm_protect with VM_PROT_READ|VM_PROT_WRITE|VM_PROT_COPY" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "perform_rebinding_with_section read" |
|---|
| repo | "https://github.com/facebook/fishhook" |
|---|
| commit | "aadc161ac3b80db07a9908851839a17ba63a9eb1" |
|---|
| path | "fishhook.c" |
|---|
| lines | "114-148" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Mach-O pointer sections rebound" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T19:05:57.432Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T04:03:42.785Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read fishhook.c 114-230 at the cited commit: perform_rebinding_with_section, rebind_symbols_for_image (SEG_DATA/SEG_DATA_CONST, S_LAZY/S_NON_LAZY section types). Detail not in the claim: a one-character symbol name is never matched (symbol_name_longer_than_1), and the write happens only if vm_protect returned KERN_SUCCESS." |
|---|
|
|
|---|