Plan and run a test safely

Unit 3 of 5 in Authorized testing: scope, rules and reporting.

You will be able to turn a scope into a plan with phases and stop conditions, and keep evidence and data in a way a reader can trust.

Lesson

Four phases, with reporting all the way through

NIST shows one common way to divide a test into four phases: planning, discovery, attack and reporting. In planning, rules are identified, management approval is finalized and documented and goals are set. NIST says no actual testing happens in the planning phase.

Discovery covers gathering information and scanning, then comparing what was found against vulnerability databases and the testers' own knowledge. In the attack phase, testers try to verify the vulnerabilities found. NIST notes a scanner only checks for the possible existence of a vulnerability, while an attack confirms it, and that results can send testers back to discovery. Reporting runs alongside the other three: the plan or ROE is written first, logs and periodic reports are kept during testing, and a final report describes the vulnerabilities, rates the risk and gives guidance on fixing them. NIST says there are many acceptable ways to group these actions.

Stop conditions and who to call

NIST's ROE template calls the incident handling section critical. It should give the criteria for halting testing, what the team does if a test harms the network or if a real adversary attacks the organization during the test, a quick-reference call tree and a way to restart. NIST asks the question directly: if assessors find an actual intruder or the traces of one, should testing stop, when can it start again and by whose authority?

NIST also says a test can be designed to stop when the tester reaches a point where a further action would cause damage. Writing those points down before you start is a stop condition. The NCSC adds that a technical point of contact should be available at short notice throughout, to take critical findings and unblock the testers.

Time, rate and the defenders' view

NIST says that where testing could cause a loss of availability, systems may need to be tested off-hours, and that assessors are often limited to time windows while real attackers are not. It lists testing off-hours among the ways to reduce risk. Rules about how fast and when you may test belong in the ROE.

The defenders will often see the test. NIST's template asks for the call tree and for a way to tell the testers' systems apart from the organization's, for example by identifying test equipment. A written log of what the testers did, with times, is what lets a security team answer 'was that the testers?' at 2 a.m. without treating a real attacker as a test. The practice lab on deconfliction trains that exact judgment.

Evidence and data are sensitive

NIST says the data from any security test will identify weaknesses an adversary could exploit, so it must be treated as sensitive. The ROE should set rules for gathering, storing, sending and destroying test data. NIST makes secure storage the assessors' responsibility, and says assessors should keep, at a minimum, the plans and ROEs, tool results and other findings, the report and the corrective action plan, as an audit trail of testing activities.

A finding is only as believable as its evidence. Evidence with no time, no record of what was done and no way to show it was not changed later invites doubt, and evidence holding live secrets is a risk of its own. The practice labs build a timestamped log with checksums, so any change to a file shows up, and show how to redact a secret from an example.

Key points

Sources

Practice in the labs

Plan, budget and log a test in your own sealed lab, and practise telling testers from attackers.

Knowledge check

  1. According to NIST, when does actual testing begin? Answer: Not in the planning phase; it begins in discovery. NIST says no actual testing occurs in the planning phase; planning sets rules, approval and goals.
  2. Why does NIST call the incident handling section of the ROE critical? Answer: It says when to halt testing and who to call if a test harms the network or a real attack happens. The template says it covers halting criteria, the call tree and how to restart.
  3. Why are test results treated as sensitive? Answer: They identify vulnerabilities an adversary could exploit. NIST says data from any security test will identify weaknesses an adversary can exploit.
  4. What is the value of a timestamped engagement log during a test? Answer: Defenders can check quickly whether an alert was the testers or a real attacker. Without a precise record the defenders cannot tell tester activity from real attacker activity, which is what the deconfliction lab practises.

Back to the syllabus or see all classes.

Related