Following the basic security principles to prevent cyber-attacks