No history yet

Methodology and Scoping

The Rules of the Game

Before a single packet is sent or a line of code is tested, a professional security audit begins with a conversation. The core difference between an ethical hacker and a criminal isn't skill, it's permission and methodology. Every legitimate penetration test operates within a strict legal framework, defined by a document known as the (RoE). This document is the bedrock of the entire process, turning a potential crime into a professional service.

Ethical hackers should obtain written permission from the organization to perform penetration testing while defining the boundaries within which the testing shall be carried out, including the time limits for the exercise and procedures used.

The RoE's most critical function is to define the scope. Scope sets the boundaries of the test. Are we testing the entire corporate network, or just a single web application? Are we allowed to perform social engineering tests on employees? Defining scope isn't just about limiting the work; it’s about focusing the effort on the assets that matter most to the client. This includes specifying IP ranges, domain names, physical locations, and even the depth of the testing.

Choosing Your Approach

Once the scope is set, the next question is about how much information the testing team will have at the start. This decision leads to three main types of penetration tests: white-box, grey-box, and black-box. Each has distinct trade-offs in terms of cost, time, and the type of vulnerabilities it's likely to uncover.

A black-box test simulates an attack from an external actor with no prior knowledge of the internal network or systems. The tester starts with just a company name or a public IP address.

A white-box test is the opposite. The tester is given full access to information, including network diagrams, source code, and administrator credentials. This simulates a threat from a malicious insider or an attacker who has already deeply compromised the system.

A grey-box test sits in the middle. The tester is given some information, like the login credentials for a standard user, to simulate an attack from a typical employee or a user whose account has been compromised.

ApproachTester's KnowledgeSimulates Threat FromProsCons
Black-boxNoneExternal AttackerRealistic external viewCan be slow; may miss internal flaws
Grey-boxLimited User AccessPrivileged User / Compromised AccountBalanced & efficientCan miss configuration issues
White-boxFull KnowledgeMalicious Insider / Full System CompromiseThorough & comprehensiveCan be time-consuming & less realistic externally

Following a Roadmap

Randomly probing a network is inefficient and unprofessional. To ensure a consistent, repeatable, and thorough audit, ethical hackers follow established frameworks. These methodologies provide a structured roadmap for the entire engagement, from the initial information gathering to the final report. Two of the most respected standards are the (PTES) and NIST Special Publication 800-115.

While the specifics can vary between frameworks, they all share a similar logical progression. The goal is to move from having no knowledge of the target to gaining and maintaining access, all while documenting the process.

This structured process ensures that every angle is considered:

  • Reconnaissance: Gathering passive information about the target from public sources.
  • Scanning: Actively probing the target's systems to identify open ports, running services, and potential vulnerabilities.
  • Gaining Access (Exploitation): Using the information gathered to bypass security controls and get into a system.
  • Maintaining Access: Establishing a persistent presence to gather more data and pivot to other systems.
  • Reporting: Documenting all findings, including vulnerabilities discovered, the methods used to exploit them, and recommendations for remediation. This is often the most important phase for the client.

Ultimately, the mindset of a professional security auditor is one of disciplined curiosity. It's about thinking like an attacker to find weaknesses, but with the goal of strengthening defences, not causing harm. This requires not just technical skill, but a strong ethical compass and a commitment to a methodical, professional process.

Now, let's check your understanding of these core concepts.

Quiz Questions 1/5

What is the primary purpose of the Rules of Engagement (RoE) document in a professional security audit?

Quiz Questions 2/5

A client provides a penetration testing team with only the company's name and asks them to discover what they can from public sources, with no prior internal knowledge of the systems. What type of engagement is this?

With the rules of engagement defined and a clear methodology in place, you're ready to begin the first phase of any test: reconnaissance.