Dashboardfossilizefossilize: postject strips Mach-O signa…

fossilize: postject strips Mach-O signature on inject — but explicit unsign is still required

Category: gotcha
Confidence: 1.00
ID: 019eb3b5-8854-7630-b6f8-1ac786367a64
Project ID: b075a555-f2ea-4652-a165-2e3407d916e7
Cross-project: No
Recalled in other projects: 1
Source session: (none)
Created: 2026-07-16 21:33:21
Updated: 2026-07-16 21:33:21

Cross-Project Recalls

ProjectHitsLast recalled
opencode-lore 1 2026-07-28

Content

Trap: postject accepts a signed Mach-O and strips the signature itself during injection, so it looks like you can skip the unsign step. Fix: still call unsignBinaryInPlace() explicitly before postject, because Node's documented SEA flow is unsign → inject → sign and relying on postject's side-effect is fragile. Also: getNodeBinary writes darwin/win binaries at 0o644 (no execute bit) — Linux's copyFile preserves 0o755. Running the binary directly before an explicit chmod 0o755 fails with EACCES on macOS.

Move to: