MDSec published an impressive whitepaper on all the security issues iOS app
developers face. It’s a free PDF and well worth your time to read. It
has snippets about how jailbreak detection works (and is thwarted), insecure
API usage, actual code examples for hacking and debugging running apps, and
even how to hack the Objective-C runtime from the outside to your will. If
you’ve ever jailbroken your device and wondered how people altered SpringBoard
to do crazy stuff, that’s covered in here, too.