Fine-tuning app security protections