Simple measures can prevent most security incidents.