What is the primary goal of a countermeasure in the context of computer security?
1) To introduce new vulnerabilities to the system.
2) To detect and recover from security attacks.
3) To minimize residual vulnerabilities after an attack.
4) To prevent specific types of attacks from succeeding.