Computer Security can be divided into two distinct areas, preventative security and the detection of security violations.