Application level, attached debug detect and jailbreak checking