You mean, when you look at your code, or someone else does, they think it's ok?
I guess that's why security issues, even in massively peer reviewed code, are a thing of the past, right?
Do your best, code as safely and securely as you know how, peer review and test and fuzz...
Then when you deploy your code, treat it as vulnerable, because history days it likely is.
Treat your phone as compromised. Anything network connected as compromised.
Because history says it can be, and easily.
Monitoring is one of the most important security measures for a reason.