How felix-pb/kfd works
Main Components
a) Core Library Layer (libkfd):
• This as the central component
• Three main exploitation methods (PUAF primitives):
• PhysPuppet (CVE-2023-23536)
• Smith (CVE-2023-32434)
• Landa (CVE-2023-41974)
• KRKW (Kernel Read/Write) primitives:
• kread methods (kqueue_workloop_ctl, sem_open)
• kwrite methods (dup, sem_open)
b) Interface Layer:
• iOS Interface (Swift-based UI)
• macOS Interface (C-based CLI)
c) Kernel Interaction Layer:
• Physical Memory Management
• Virtual Memory System
• Kernel Objects Manipulation
[User Interface Layer]
• ↓ ↑
[libkfd Core Layer]
• ↓ ↑
[Kernel Interaction Layer]
Component Relationships
• Data flow between components
• Exploitation chain progression
• API calls between layers
• Memory access patterns
Specific Elements
kopen()
kread()
kwrite()
kclose()
• physpuppet
• smith
• landa
c) Memory Operation Primitives:
• kread methods
• kwrite methods
Technical Details to Highlight
• Physical page manipulation
• Dangling PTE handling
• Kernel object reallocation
• Memory primitive bootstrapping process
Remember to add notes about:
• Security implications
• Sandbox restrictions
• Version compatibility
• Success rate factors