Hooking Swift (the hard way)
summary
Shows how Frida treats Swift as native code by reading calling conventions (X0, X8, X20), building a trampoline and a makeSwiftNativeFunction to call Swift functions, and dumping CryptoKit keys and HKDF inputs/outputs (demo prints the hardcoded symmetric key on iOS 27). Explains walking witness tables to resolve hash function names, then reimplements a lazy Swift bridge plus a unit test runner Ingest with ~1,100 tests, adds closures, async hooks and C-side lookups; demos succeed for key dumps and async HTTP hooks.
AI-written summary · about
