How to avoid security threats