Firstly, you should tell us what happened to your iPhone. And if your iPhone isn't jailbroken, it is impossible to install the spy app on it. As far as I know, some spy app iKeymonitor only can be installed on jailbroken iPhone, and can be removed with the passwords required, so you should make sure what happened to your iPhone, we can know more to identify.
EDIT:REMOVED POTENTIALLY DANGEROUS LINK
... View more