A sealed practice network and its rules
Unit 1 of 5 in Testing networks and hosts.
You will be able to explain where network assessment fits among testing techniques, why a practice network must be sealed, and how to write the rules and the activity log before the first scan.
Lesson
Where network assessment fits
NIST SP 800-115 groups technical testing into three kinds of technique. Review techniques examine things such as documentation, logs, rulesets and configurations. Target identification and analysis techniques find systems, ports, services and potential vulnerabilities; the guide lists network discovery, network port and service identification, vulnerability scanning and wireless scanning here, and says they are generally done with automated tools. Target vulnerability validation techniques corroborate that a vulnerability really exists; the list includes password cracking and penetration testing.
NIST also says no single technique gives a complete picture, so assessments should combine them. This class works through the first two kinds on a small network, and treats the third carefully: validation here means confirming a claim without exploiting anything. OWASP's list of methodologies shows the same shape from other authors; for example the Penetration Testing Execution Standard describes seven phases from pre-engagement interactions through to reporting. Names differ, the order does not: agree the rules, gather information, analyse, test, report.
Why the practice network is sealed
NIST states that any time a test or tester directly interacts with a system or network, there is a potential for unexpected system halts and other denial of service conditions. It lists ways to reduce that risk: skilled assessors, a comprehensive assessment plan, logging assessor activities, testing off-hours and testing on duplicates of production systems, such as development systems.
A practice network is the extreme form of a duplicate. It holds machines that are deliberately weak, so the first requirement is that nothing on it can reach a real network and nothing real can reach it. That is why the first lab builds two address zones behind a router with a default-deny rule and then tests the isolation both ways, instead of trusting adapter settings. A claim of isolation is only as good as the test that shows it. The Network Builder exercise lets you practise putting machines into separate zones on a drawn network first.
Written permission, even for your own lab
The Nmap book's legal chapter says that when used improperly Nmap can in rare cases get you sued, fired, expelled, jailed or banned by your internet provider. Its advice is the same as the earlier class: the best way to avoid controversy is to always secure written authorization from the target network's representatives before scanning, and to speak to a competent lawyer in your own jurisdiction. This class is education, not legal advice.
For a network you built and sealed, you are both the owner and the tester. The habit is still worth keeping: write the scope file and the rules first, list the machines in the exclude list (everything outside the lab), and say what you will do if something breaks. The first lab creates that working folder and scope file.
Follow the rules, stop when told, keep a log
NIST says the plan or rules of engagement should be followed unless specific permission to deviate has been given, normally in writing, and that assessors should review them periodically during the test. If an incident is found during an assessment, whether caused by the assessors or by a real adversary, assessors should follow the plan, report immediately, and stop assessing the systems involved while the organization responds.
NIST also asks assessors to keep a log of assessment system information and a step-by-step record of their activities. It says this gives an audit trail that lets the organization tell assessors from true adversaries, and that an activities log should include at least the date and time, the assessor's name, the assessment system and target system identifiers, the tool, the command and comments. Your second lab builds that habit and seals the files with hashes.
Key points
- NIST groups testing into review, target identification and analysis, and vulnerability validation; combine them.
- Anything that touches a system can halt it; use duplicates and practice networks, and prove they are sealed with tests.
- Write scope and rules before the first scan, even when you own the lab.
- Keep a step-by-step activity log so your test can be told apart from a real attack.
Sources
- NIST SP 800-115: Technical Guide to Information Security Testing and Assessment (full text)
- Nmap Network Scanning: Legal Issues
- OWASP WSTG v4.2: Penetration Testing Methodologies
Lecture
Network segmentation and zero trust: Zones and the rules between them: the same ideas you use to seal your practice network.
Practice in the labs
Build the lab first and prove it is sealed; then start the evidence habit before any scan.
- Set up a safe, isolated vulnerable-practice lab: A sealed two-machine practice range with a snapshot to reset it and a teardown routine, and the rule that comes before anything is built.
- Build a two-zone practice network with a router, and prove it is sealed: You build two zones behind a default-deny router, test the allowed and the blocked direction, check nothing can leave, and take a baseline snapshot.
- Log every assessment command as hashed evidence: You record terminal sessions, name evidence so it sorts in time order and seal it with a hash manifest, the activity log NIST asks for.
Also try, in the simulators
- Split one switch into two VLANs (Network Builder exercise): You split four hosts into two VLANs so each pair still talks but the pairs cannot reach each other, the zone idea of your sealed lab on a drawn network.
Knowledge check
- According to NIST SP 800-115, which of these helps reduce the risk of damage from testing? Answer: Logging assessor activities and testing on duplicates of production systems. NIST lists skilled assessors, comprehensive plans, logging, off-hours testing and duplicate systems as ways to reduce risk.
- Why does the first lab test the isolation of the practice network instead of just checking adapter settings? Answer: A claim of isolation is only as good as the test that shows nothing can leave or enter. The lab tests both directions and what can leave, because a setting you did not verify is an assumption.
- An assessor finds signs of a real intruder in the target network during a test. What does NIST recommend? Answer: Report it at once, follow the plan, and stop assessing the systems involved while the organization responds. NIST says an adversary found during an assessment should be reported immediately, and assessors should stop assessing the systems involved.
- What is one reason NIST gives for keeping a step-by-step activity log? Answer: It lets the organization tell the assessors' actions from those of true adversaries. NIST says the log gives an audit trail and also helps when writing the results report.
Back to the syllabus or see all classes.