Skills / Security testing and vulnerability assessment / The law, scope and permission come first

Security testing and vulnerability assessment, lesson 1 of 8

The law, scope and permission come first

Security testing means deliberately looking for weaknesses in systems so they can be fixed before criminals find them. The same activity that is a valued profession with permission is a crime without it, in almost every country. Professionals never blur that line.

Before any test, you need:

  • Written authorisation from someone who has the authority to give it, which means the owner of the systems, not an employee who "said it was fine"
  • A clear scope: exactly which domains, IP addresses, apps and accounts are included, and which are excluded
  • Rules of engagement: allowed testing times, techniques that are off limits (for example no denial-of-service and no social engineering unless agreed), and how to handle any personal data you see
  • Contacts: who to call immediately if something breaks or if you discover a serious issue, or signs that a real attacker is already inside

Watch out for third parties. A client's website may run on a hosting company, a cloud provider or a payment service. The client can only authorise testing of what they own. Cloud providers publish their own testing rules.

Practise legally. Use deliberately vulnerable practice systems built for learning, such as the missions and labs on this site, capture-the-flag events, and your own virtual machines. Never "practise" on a real website, a school network or your employer's systems without written permission.

Ethics during testing: do only what is needed to prove a weakness exists, do not access or copy more data than necessary, keep findings confidential, and report everything you find honestly.

Try it: Draft a one-page scope for testing a small company's website: list what is in scope, what is out of scope, the allowed testing times, the techniques that are off limits, and the emergency contact.

Check yourself

1. What makes security testing legal?

2. A client's site runs on a third-party hosting provider. What can the client authorise?

3. Where should beginners practise security testing?