Video
The video for this chapter is not available yet.
Exam domains and objectives covered
Domain 6: Security Assessment and Testing Main domain
- 6.1 Design and validate assessment, test, and audit strategies
- 6.2 Conduct security control testing
- 6.3 Collect security process data (e.g., technical and administrative)
- 6.4 Analyze test output and generate report
- 6.5 Conduct or facilitate security audits
Domain 8: Software Development Security
- 8.2 Identify and apply security controls in software development ecosystems
Objectives are numbered as in the official ISC2® CISSP exam outline.
Learning objectives
By the end of this chapter you should be able to:
- Explain how tests, assessments and audits differ in purpose, independence and audience
- Design a risk-based assessment, testing and audit strategy for on-premises, cloud and hybrid environments
- Compare discovery, network, web and database vulnerability scans, and interpret port scan results
- Plan an authorised penetration test and distinguish it from breach and attack simulation and team exercises
- Choose software testing methods: code review, SAST, DAST, IAST, fuzzing, misuse case, interface and coverage testing
- Collect and use security process data, including account reviews, backup verification, KPIs and KRIs
- Report findings, handle exceptions and follow ethical disclosure
- Compare internal, external and third-party audits and the SOC report types
Key topics
- Tests, assessments and audits
- Assessment strategy
- SCAP, CVE and CVSS
- Vulnerability scanning
- Nmap port states
- Penetration testing
- Breach and attack simulation
- Red, blue, white and purple teams
- Code review and Fagan inspection
- SAST, DAST and IAST
- Fuzzing
- Coverage analysis
- Synthetic and passive monitoring
- KPIs and KRIs
- SOC 1, 2 and 3 reports
Chapter notes
Chapter overview
A control you never test is a control you can’t trust. This chapter covers the whole of Domain 6: how organisations check, continuously and formally, that security controls still work as business, technology and threats change. It moves from strategy (what to test, how often and by whom) through the technical tools (scanners, penetration tests, software testing) to the management side: process data, metrics, reporting and audits. It also picks up the application security testing item from Domain 8.
Key concepts
Tests, assessments and audits
The exam expects you to keep three activities apart:
| Activity | What it does | Who does it | Main audience |
|---|---|---|---|
| Security test | Checks that one control works as intended (a scan, a tool-assisted attack, a manual attempt to bypass it) | Usually the security team, often automated | Technical staff |
| Security assessment | A broad review of a system or environment, including risk, threats and asset value, ending in recommendations | Internal team or specialist contractor | Management, in plain language |
| Security audit | A formal, independent evaluation that demonstrates control effectiveness to someone else | Independent auditors only | Board, regulators, customers, other third parties |
People who design and run controls have a conflict of interest when judging them, which is why audits need independence and assessments don’t.
NIST’s guidance on control assessment (SP 800-53A) groups what an assessor can look at into four assessment objects: specifications (policies, procedures, designs), mechanisms (the hardware, software or firmware controls), activities (what people do, such as running backups) and individuals (the people doing it). Assessors examine, interview and test.
Designing the strategy
A good programme is designed, not improvised. Pointing new tools at whatever systems turn up first isn’t a strategy. Decide frequency and depth for each control by weighing:
- how critical the system is and how sensitive its data;
- how attractive it is to attackers and how likely the control is to fail or be misconfigured;
- how often the control or its environment changes;
- the effort, cost and available resources for the test;
- the risk the test itself poses to operations.
The usual result is cheap, frequent automated testing (nightly scans that alert on new findings) backed by less frequent, deeper manual work (an annual external penetration test). The strategy must cover every location where the organisation operates: on-premises, cloud and hybrid. Cloud providers often limit what customers may test, so check the provider’s terms or get permission first, and rely on provider attestations for the layers you can’t test yourself.
Outline objective 6.1 also distinguishes who runs the work: internal (staff under the organisation’s control), external (an outside firm the organisation hires) and third-party (an outside party working for someone else, beyond the organisation’s control).
Describing vulnerabilities: SCAP
NIST’s Security Content Automation Protocol (SCAP) gives tools a shared language:
| Component | Purpose |
|---|---|
| CVE | Unique identifiers for known vulnerabilities |
| CVSS | Severity scoring for vulnerabilities |
| CPE | Names for platforms: operating systems, applications, devices |
| CCE | Identifiers for configuration issues |
| XCCDF | Format for writing security checklists |
| OVAL | Language for describing how to test a system’s state |
Vulnerability scanning
Scanners probe for known weaknesses and compare results over time. Attackers use the same tools, so scanning yourself first matters. The four main types build on each other:
- Network discovery scans find live hosts and open ports but don’t check for flaws.
- Network vulnerability scans test those hosts against a database of known vulnerabilities.
- Web application scans manipulate inputs to find flaws such as SQL injection and XSS that network scanners miss. Scan every application when you start, every new or changed application before it goes live, and all applications periodically.
- Database scans look for database weaknesses, often through the web applications in front of them.
Discovery scanners use several techniques: TCP SYN (“half-open”) scans send only the first packet of the handshake; TCP connect scans complete the handshake (used when the scanning user can’t craft raw packets); TCP ACK scans help map firewall rules; UDP scans check connectionless services; and Xmas scans set FIN, PSH and URG together. Banner grabbing reads a service’s greeting to identify its software and version.
Nmap reports port states you should recognise:
| State | Meaning |
|---|---|
| Open | A service is accepting connections |
| Closed | Reachable through the firewall, but nothing is listening |
| Filtered | A firewall is blocking the probe, so the state is unknown |
| Unfiltered | Reachable, but Nmap can’t tell whether it’s open or closed |
| Open|filtered | No response, so it could be either |
Scanners make two kinds of error. A false positive reports a flaw that isn’t there (a nuisance); a false negative misses a real flaw (the dangerous one). Authenticated (credentialed) scans give the scanner read-only access to configuration data, improving accuracy on both counts. No signature-based scanner can find a zero-day it has no test for.
Commit a handful of ports to memory, because scenario questions often hinge on them:
| Use | Ports |
|---|---|
| Remote administration | SSH 22, Telnet 23, RDP 3389 |
| Web | HTTP 80, HTTPS 443 |
| SMTP 25, POP3 110 | |
| Infrastructure | DNS 53, NTP 123, FTP 20/21 |
| Databases | Microsoft® SQL Server 1433/1434, Oracle® 1521 |
| File and print | Windows® file sharing 135, 137–139, 445; LPD 515; JetDirect 9100 |
| Other | PPTP 1723, H.323 1720 |
A database port such as 1433 reachable from the internet is a classic red flag.
The vulnerability management workflow runs detection (usually a scan), validation (rule out false positives) and remediation (patch, reconfigure, work around or add a compensating control such as a WAF), prioritised by severity, likelihood of exploitation and effort to fix.
Penetration testing
A penetration test goes beyond a scan by actually trying to exploit weaknesses, so it can disrupt systems or corrupt data. Get written authorisation from senior management and agree scope and rules of engagement before anything starts. NIST SP 800-115 describes four phases: planning, discovery (reconnaissance, scanning and vulnerability analysis), attack and reporting.
| Test type | Tester knowledge | Also called |
|---|---|---|
| Black box | None; simulates an outside attacker | Unknown environment |
| Grey box | Partial; balances realism with cost and time | Partially known environment |
| White box | Full details; most thorough for the time spent | Known environment |
Testers may be employees or external consultants. Recognised methodologies include the OWASP Web Security Testing Guide, OSSTMM, NIST SP 800-115 and PCI DSS™ penetration testing guidance.
Breach and attack simulation (BAS) platforms automate part of this. They plant harmless indicators, such as a suspicious file or beaconing traffic, to see whether detection and prevention controls react. They test the controls rather than attempting a real compromise.
Team exercises
- Red team: the attackers.
- Blue team: the defenders, who secure and monitor the environment (often with a head start).
- White team: referees and observers. They enforce the rules, record lessons and make sure the exercise doesn’t harm production.
- Purple teaming: red and blue share tactics and lessons so both improve.
Capture the flag exercises score how many objectives the red team achieves. Exercises can use a dedicated range instead of production, and tabletop exercises use no systems at all.
Testing software
Software often runs with privilege and handles sensitive data, so it must cope with bad input and unexpected sequences rather than assuming users behave. Handling the unexpected gracefully is called exception handling.
- Code review (peer review): someone other than the author checks the code before release. The most formal version, the Fagan inspection, runs planning, overview, preparation, inspection, rework and follow-up, with entry and exit criteria for each stage. Most organisations use lighter methods: walkthroughs, senior developer sign-off or automated review tools.
- Static testing (SAST): analyses source code or compiled binaries without running them. Developers can use it early and often.
- Dynamic testing (DAST): tests the running application from outside. Often the only option for software you didn’t write. Coordinate it carefully in production.
- Interactive testing (IAST): instruments the application while it runs to observe code paths, data flows and connections in real time. RASP (runtime application self-protection) is related but defensive: it sits with the running application and blocks malicious calls.
- Software composition analysis (SCA): inventories third-party and open-source components and flags known vulnerabilities and licence issues.
- Fuzzing: feeds invalid or random input and watches for crashes and odd behaviour. Mutation (“dumb”) fuzzing alters real inputs, for example by flipping bits; generational (“intelligent”) fuzzing builds inputs from a model of the expected data. Fuzzing rarely reaches complex business logic, so treat it as one tool among several.
- Misuse (abuse) case testing: list the ways someone might abuse a feature, then try them.
- Interface testing: checks that modules meet their interface specifications. Test APIs, user interfaces, network interfaces and, where software drives machinery, physical interfaces.
- Test coverage analysis: estimates how much has been tested as tested cases ÷ total cases. Criteria include statement, branch (each if/else outcome), condition (each logical test under all inputs), function and loop (zero, one and many iterations) coverage. Coverage figures are only as good as the list of cases behind them.
Synthetic transactions are pre-written test transactions whose correct output you already know, and benchmarks are baseline values (response time, throughput, error rate) to measure against. In website monitoring, synthetic (active) monitoring runs scripted requests and can spot problems before users do; passive monitoring analyses real traffic, and real user monitoring (RUM) reconstructs individual sessions. Passive monitoring only sees a problem after a real user hits it, so organisations usually combine both.
Security process data
Management processes provide oversight, deter insiders and generate data for assessment:
- Log reviews: a SIEM automates collection (often via syslog) and correlation. Synchronise clocks with NTP so timelines line up, and review privileged users’ activity in particular. NetFlow records show who talked to whom and how much data moved.
- Account management reviews: compare the privileged accounts that exist with those the approval authority says should exist, and remove leavers. Full reviews suit privileged accounts; for the rest, check a random sample. Never let the administrators being reviewed choose the sample.
- Backup verification: review logs and hashes, and periodically perform an actual restore.
- Training and awareness: track completion and test effectiveness, for example with phishing simulations that route people who click to extra training.
- DR and BC data: results of continuity and recovery tests.
- Management review and approval: each review ends with a documented management sign-off.
- Key performance indicators (KPIs) show how well the programme is doing; key risk indicators (KRIs) warn that risk is rising. Examples include time to fix vulnerabilities, findings that keep coming back, compromised accounts and repeat audit findings. Show them on a dashboard over time.
Reporting and follow-up
Analyse results, translate them into business risk and recommend remediation in priority order. When a finding can’t be fixed, document an exception: management formally accepts the risk, usually for a limited period and with compensating controls. If you find a flaw in another vendor’s product, follow ethical disclosure: report it privately first, allow a reasonable time for a fix, then disclose publicly if the vendor doesn’t act.
Audits and SOC reports
| Audit type | Who performs it | Who controls it | Typical audience |
|---|---|---|---|
| Internal | The organisation’s audit function, independent of the areas it audits | The organisation | Management and the audit committee |
| External | An outside audit firm hired by the organisation | Shared: hired by the organisation, independent of it | Board, investors, regulators |
| Third-party | Auditors chosen by another body, such as a regulator or customer | Outside the organisation | The body that commissioned it |
Internal audit usually reports to the CEO or the board’s audit committee so it stays independent. Service providers reduce endless customer audits with SSAE 18 (US) or ISAE 3402 (international) engagements, known as SOC reports:
- SOC 1: controls relevant to customers’ financial reporting.
- SOC 2: controls over security, availability, processing integrity, confidentiality and privacy. Detailed and shared under NDA.
- SOC 3: covers the same ground as SOC 2 but is a summary intended for public release.
A Type I report gives the auditor’s opinion on the design of the controls at a single point in time. A Type II report also tests operating effectiveness over a period (typically at least six months), so it carries far more assurance. Common audit frameworks include COBIT® (from ISACA®) and ISO/IEC 27001 (certifiable ISMS requirements) with ISO/IEC 27002 (control guidance).
Exam tips
- A vulnerability scan finds weaknesses; a penetration test exploits them.
- Never pen test without written permission. It’s the first thing to check in any scenario.
- Dynamic testing suits commercial software where you can’t see the source code.
- Purple teaming is about collaboration after (or alongside) red versus blue exercises.
- Backup verification means restoring data, not just checking that the job completed.
- Auditors are independent; if the people who run a control are evaluating it, it’s an assessment, not an audit.
- When asked which SOC report proves controls actually worked over time, pick Type II.
- Assessment reports go to management in non-technical language.
Common traps
- External vs third-party audit: both use outsiders. The difference is who hires them: the organisation (external) or another party such as a regulator or customer (third-party).
- False positive vs false negative: a false negative is worse, because a real flaw goes unreported.
- Closed vs filtered: closed means the firewall let the probe through but nothing answered; filtered means something blocked it.
- SYN vs connect scan: SYN never completes the handshake; connect does, because it doesn’t need raw packet privileges.
- Mutation vs generational fuzzing: mutation changes real samples; generational creates input from a model. “Dumb” and “intelligent” are the informal labels.
- SOC 2 vs SOC 3: same subject matter; SOC 3 is public, SOC 2 is restricted.
- Type I vs Type II: Type I covers design at a point in time; Type II covers operating effectiveness over a period.
- BAS vs penetration test: BAS checks whether defences notice simulated indicators; a penetration test tries to break in.
- Synthetic vs passive monitoring: synthetic can catch issues before users; passive only after real traffic shows them.
- Sampling: account review samples must be random and chosen by the reviewer, not the reviewed.
Quick revision
- Tests check single controls, assessments review whole environments for management, audits prove effectiveness independently to outsiders.
- Base test frequency on risk: criticality, sensitivity, attractiveness to attackers, rate of change, cost and operational impact.
- SCAP: CVE names flaws, CVSS scores them, CPE names platforms, CCE names configuration issues, XCCDF writes checklists, OVAL describes tests.
- Discovery, network, web and database scans; authenticated scans are more accurate.
- Penetration test phases: planning, discovery, attack, reporting. Written authorisation first.
- Black, grey and white box = unknown, partially known and known environment.
- Red attacks, blue defends, white referees, purple shares lessons.
- SAST without running, DAST while running, IAST from inside the running app, SCA for components.
- Fuzzing: mutation alters real input, generational builds from models.
- Coverage: statement, branch, condition, function, loop.
- Process data: logs, account reviews, backups, training, DR/BC, KPIs and KRIs, all with management sign-off.
- SOC 1 financial, SOC 2 detailed security (NDA), SOC 3 public; Type II beats Type I.
Key terms
| Term | Meaning |
|---|---|
| Security assessment | A comprehensive review of a system’s security, risks and controls, with recommendations for management |
| Security audit | An independent evaluation that demonstrates control effectiveness to an outside audience |
| SCAP | NIST’s suite of standards that lets security tools describe and exchange vulnerability and configuration data |
| CVSS | A standard method for rating the severity of a vulnerability |
| Authenticated scan | A vulnerability scan that uses read-only credentials to inspect configuration, reducing false results |
| Banner grabbing | Reading the greeting a network service returns to identify its product and version |
| Rules of engagement | The agreed limits of a penetration test: scope, timing, methods and contacts |
| Breach and attack simulation | Automated, repeatable injection of harmless attack indicators to test whether defences respond |
| Fagan inspection | A highly formal, staged code review with defined entry and exit criteria |
| SAST / DAST / IAST | Testing code at rest, the running application from outside, and the running application from inside |
| Software composition analysis | Identifying third-party components in software and their known vulnerabilities |
| Fuzzing | Supplying malformed or unexpected input to provoke failures |
| Misuse case | A scenario describing how someone might deliberately abuse a feature |
| Test coverage | The proportion of possible cases, paths or code that testing has exercised |
| Synthetic transaction | A scripted transaction with a known expected result, used to test function or performance |
| KPI / KRI | A metric of programme performance / an early-warning metric of rising risk |
| Exception | A documented, management-approved decision to accept a finding instead of fixing it |
| Ethical disclosure | Reporting a vulnerability privately to the vendor first and going public only if it isn’t fixed in reasonable time |
| SOC report | An independent attestation on a service organisation’s controls (SOC 1, 2 or 3; Type I or II) |