Use this when testing whether security controls actually work.
Security Testing
Security testing checks whether defences actually work: vulnerability scanning and assessments, configuration and code review, penetration tests, attack simulations and purple teaming, followed by validated remediation.
1. Security testing validates controls: assessments, scanning, pentests, code review, simulations.
2. Scope and authorisation in writing.
3. Risk-based frequency.
4. Track remediation.
5. Retest fixes.
scope → test → findings → remediation → retest
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Testing types Verify boundary
| Test | Answers | Frequency |
|---|---|---|
| Vulnerability scanning | Known flaws on assets | Weekly/continuous |
| Configuration review | Hardening gaps | Quarterly / on change |
| Penetration test | Can an attacker reach a goal? | Yearly / major changes |
| Red team | Can we detect and respond to a realistic attack? | Yearly for mature orgs |
| Purple team | Do our detections work for specific techniques? | Regularly |
| Code review / SAST / DAST | Application flaws | In CI and before release |
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Subtopics
Go one level deeper into this subject.
A security assessment evaluates an organization's or system's security posture against requirements or best practice, through interviews, document review, configuration checks and testing.
Subtopic Vulnerability AssessmentA vulnerability assessment identifies, rates and prioritizes vulnerabilities in systems, usually with authenticated scanners like Nessus or OpenVAS, without exploiting them.
Subtopic Penetration TestingPenetration testing is an authorized, simulated attack by skilled testers to find and exploit vulnerabilities in a defined scope, showing real impact and providing prioritized fixes.
Subtopic Configuration ReviewA configuration review compares system, network and cloud settings against hardening benchmarks such as CIS, finding weak defaults, open services and missing security features.
Subtopic Code ReviewSecurity code review examines source code, manually and with SAST tools, for flaws like injection, broken access control, insecure crypto and hard-coded secrets before release.
Subtopic Security ScanningSecurity scanning uses automated tools to find known vulnerabilities, misconfigurations and exposed services, such as network scanners, web scanners, SAST, DAST and container scanners.
Subtopic Attack SimulationAttack simulation runs realistic attacker techniques, manually or with tools like Atomic Red Team or breach-and-attack simulation, to test whether controls block and detect them.
Subtopic Purple TeamingPurple teaming has attackers (red team) and defenders (blue team) work together, running techniques step by step and improving detections and responses immediately.
Subtopic Remediation ValidationRemediation validation retests a vulnerability after it is fixed to confirm the fix works and did not introduce new issues, before the finding is closed.
- Scanning finds known issues; testing proves impact.
- Scope and authorization come first.
- Every finding needs a validated fix.
- Testing program (VA, pentest, purple team, code review) — coverage
- Findings tracking — remediation
- Retest results — validation
ReferenceImportant terms & boundaries2 sections · depth on demand
Choosing a test
| Need | Test |
|---|---|
| Find known weaknesses broadly | Vulnerability scan |
| Show real exploitability | Penetration test |
| Test detection and response | Red team / purple team |
| Check code before release | SAST/DAST, code review |
| Validate configuration | Configuration audit, CIS benchmarks |
In depth
Security testing verifies that controls actually work, rather than assuming they do. It ranges from automated scanning to manual penetration tests and adversary simulation, each answering a different question.
| Type | Question it answers |
|---|---|
| Vulnerability scanning | Which known weaknesses exist? |
| Configuration review | Are systems hardened as required? |
| Code review / SAST / DAST | Does the software contain flaws? |
| Penetration test | Can a skilled attacker get in, and how far? |
| Red team / attack simulation | Can we detect and respond to a realistic attack? |
| Purple team | Do our detections catch specific techniques? |
All testing needs written authorisation, a defined scope and rules of engagement — testing without permission is an attack, regardless of intent.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Security Testing. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://csrc.nist.gov/pubs/sp/800/115/final · confidence 94%