## Security Assessment and Testing
This domain focuses on identifying and analyzing vulnerabilities, and ensuring the effectiveness of security controls through various testing and auditing activities.
Vulnerability Assessments vs. Penetration Testing
- Vulnerability Assessments (VA): These are systematic reviews of security weaknesses in an information system. They identify potential vulnerabilities but do not exploit them. VAs are often automated using vulnerability scanners (e.g., Nessus, Qualys) and provide a prioritized list of findings. They are less intrusive and focus on breadth over depth.
- Penetration Testing (PT): A simulated cyberattack against a system to check for exploitable vulnerabilities. Unlike VAs, PTs attempt to exploit identified weaknesses to determine the potential impact. PTs require explicit authorization (Rules of Engagement) and are more intrusive, focusing on depth. Types include:
- Black-box testing: Testers have no prior knowledge of the target system.
- White-box testing: Testers have full knowledge of the system's architecture, source code, and configurations.
- Grey-box testing: Testers have partial knowledge, simulating an insider threat or an attacker with some prior access.
Security Audits and Reviews
Security Audits are independent examinations of an organization's information system to determine if security controls are adequate and compliant with policies, standards, and regulations (e.g., HIPAA, PCI DSS, GDPR). Audits provide assurance and identify gaps. Key aspects include:
- Audit Planning: Defining scope, objectives, and criteria.
- Fieldwork: Gathering evidence through interviews, documentation review, and technical testing.
- Reporting: Presenting findings, recommendations, and an opinion on the security posture.
- Follow-up: Verifying remediation actions.
Code Review is a systematic examination of source code to find errors, security flaws, or violations of programming standards. It can be:
- Static Application Security Testing (SAST): Analyzes source code without executing the program, often integrated into the SDLC.
- Dynamic Application Security Testing (DAST): Analyzes the application while it is running, simulating attacks from the outside.
Testing Tools and Methodologies
- Port Scanners: (e.g., Nmap) Used to identify open ports and services on a network.
- Web Application Scanners: (e.g., Burp Suite, OWASP ZAP) Used to find vulnerabilities in web applications.
- Exploitation Frameworks: (e.g., Metasploit) Provide a collection of exploits and payloads for penetration testing.
- Methodologies: Frameworks like OWASP Top 10 (common web application security risks), NIST SP 800-115 (technical guide to information security testing and assessment), and OSSTMM (Open Source Security Testing Methodology Manual) guide the testing process, ensuring consistency and comprehensiveness.
What is the primary difference between a vulnerability assessment and a penetration test?
A vulnerability assessment identifies potential weaknesses, while a penetration test attempts to exploit those weaknesses to demonstrate impact.
tap to reveal
What is 'black-box' testing in the context of penetration testing?
The tester has no prior knowledge of the target system's internal structure or source code, simulating an external attacker.
tap to reveal
What is the purpose of a security audit?
To independently examine and evaluate an organization's security controls, processes, and compliance with policies, standards, and regulations.
tap to reveal
Define SAST and DAST.
**SAST (Static Application Security Testing)** analyzes source code without executing the application. **DAST (Dynamic Application Security Testing)** analyzes the application while it is running.
tap to reveal
What is the significance of the OWASP Top 10?
It is a standard awareness document for developers and web application security, representing the most critical security risks to web applications.
tap to reveal
What is the critical prerequisite before conducting any penetration test?
Explicit, documented authorization from the asset owner, often in the form of 'Rules of Engagement'.
tap to reveal
Which tool is commonly used for network port scanning and service identification?
Nmap (Network Mapper).
tap to reveal