This tweak is a free cydia tweak developed by someone by the name of Ziph0n, he has recently received the Jailbreak Awards of 2015.
How to install
About this tweak
This tweak will activate an alarm when the passcode is entered incorrectly (you can set the maximum of wrong passcode allowed) and this sound will ring endlessly until the device is unlocked using a right passcode or Touch ID.
You can also prevent your iphone from being shutdown without your permission by adding a password just go to settings and scroll down until you see the tweak name and modify the settings there