low · M7 · MASVS-RESILIENCE-1 · PTKD-BIN-NOCANARY
Executable built without stack canaries
No stack-protector symbols were found, so stack-buffer overflows are not detected at runtime.
How it is exploited
Missing stack canaries (__stack_chk_guard) means a stack buffer overflow overwrites the return address without tripping a check, making classic smash-the-stack exploitation viable again.
Why it matters
Native-code overflow bugs become straightforwardly exploitable instead of crashing safely.
How to fix it
- Compile with -fstack-protector-strong (Xcode/NDK default; check custom Makefiles and third-party .so/.dylib files).
- Rebuild or replace vendored native libraries that lack canaries.
Does your app have this?
PTKD checks your build or your source project for PTKD-BIN-NOCANARY and every other check in this knowledge base.
Scan your appReferences
Related checks (M7)
- iOS binary is not encrypted (cryptid = 0)
- Executable is not position-independent (no PIE/ASLR)
- On-device cryptocurrency mining code
- iOS build is debuggable (get-task-allow = true)
- Debuggable release (get-task-allow in code signature)
- Source maps shipped inside the app
- Large DEX code without R8 shrinking and obfuscation
- Framework that downloads and runs code after review