What a test is, and the permission it needs

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

You will be able to explain what an authorized penetration test is, what it can and cannot tell you, and why permission is the line between testing and a crime.

Lesson

A test that copies a real attack, on purpose

NIST describes penetration testing as security testing in which assessors mimic real-world attacks to find ways around the security features of an application, system or network. It often means launching real attacks on real systems and data, with the tools and techniques attackers commonly use. The UK NCSC defines it as a method for gaining assurance in the security of an IT system by trying to breach some or all of it, using the same tools and techniques an adversary might.

NIST lists what that is good for: seeing how well a system tolerates real-world-style attack patterns, the likely level of skill an attacker needs, extra countermeasures that could help, and whether defenders can detect attacks and respond properly.

What a test cannot tell you

The NCSC says penetration testing should be seen as a way to gain assurance in your vulnerability assessment and management processes, not as the main way to find vulnerabilities. It compares a test to a financial audit: your finance team tracks money day to day, and an outside audit checks that those processes are good enough.

The NCSC also says a test can only show that systems are not vulnerable to known issues on the day of the test. A year or more can pass between tests, so problems can sit unseen for a long time if testing is your only check. NIST adds that real tests can damage the systems they touch: systems may be damaged or made inoperable, and experienced testers can reduce that risk but never remove it. That is why NIST says a test should happen only after careful consideration, notification and planning.

Permission is the line

Two laws show how central permission is. The US federal computer fraud law makes it an offense to intentionally access a computer without authorization, or to exceed authorized access. In the same section, 'exceeds authorized access' means accessing a computer with authorization and using that access to obtain or alter information the person is not entitled to obtain or alter.

The UK Computer Misuse Act 1990 section 1 makes it an offence to cause a computer to perform any function with intent to secure access to a program or data when the access is unauthorised and the person knows that. Section 17 says access of any kind is unauthorised if the person is not entitled to control that kind of access and does not have consent from someone who is.

Read the two together and the lesson is plain. What makes a tester different from an intruder is not skill, tools or good intentions. It is consent from someone entitled to give it, written down, covering the exact systems and actions. This class is not legal advice; laws differ by country and change, and a real engagement needs a contract reviewed by a lawyer.

One tool among several

NIST recommends a regular program of network and vulnerability scanning with periodic penetration testing in between, because tests are costly and carry risk, and it suggests that testing a network and its systems yearly may be enough. The NCSC adds that a planned test does not replace normal security testing: functional tests that check security controls work should carry on.

The practice lab on choosing between a scan, a penetration test, a red team exercise and a bug bounty lets you decide which question each one answers before anyone asks for 'a pentest'.

Key points

Sources

Lecture

How a penetration test works: scope to report: A fifteen minute walk through one test from the first scoping call to the final report.

Practice in the labs

Plan before you touch anything: choose the right kind of assessment and write down your own authorization rule.

Knowledge check

  1. According to the NCSC, how should penetration testing be viewed? Answer: As a way to gain assurance in your vulnerability management processes, not the main way to find vulnerabilities. The NCSC compares it to an outside audit of processes you already run day to day.
  2. What does NIST say about the risk of damage during a penetration test? Answer: Systems may be damaged or made inoperable; experienced testers reduce the risk but never remove it. NIST SP 800-115 says the risk can never be fully eliminated, so testing needs careful consideration, notification and planning.
  3. What does the UK Computer Misuse Act say makes access unauthorised? Answer: Not being entitled to control that access and not having consent from someone who is. Section 17 defines unauthorised access by entitlement and consent, which is why tests start with written consent.
  4. A test finds nothing serious. What can you fairly conclude? Answer: The tested systems were not vulnerable to the known issues checked, on the day of the test. The NCSC says a test validates only against known issues on the day it is run.

Back to the syllabus or see all classes.

Related