A grey box penetration test sits in the middle ground between blind black box testing and fully transparent white box assessments. The tester receives limited information about the target environment, such as network diagrams, user credentials, or application documentation, but not a complete picture. This partial knowledge mirrors the position of a real-world attacker who has done some homework or gained initial access through phishing. If you want to understand how penetration testing works in practice, grey box is one of the most realistic and efficient approaches available.
This guide walks you through the full process from preparation to reporting. Follow each step in order, and you will end with a documented attack chain, validated findings, and actionable remediation guidance your organization can act on immediately.
What you need before starting a grey box pentest
Before any testing begins, you need a clearly defined scope and a set of pre-shared assets. Without these, grey box testing collapses into either a black box engagement or an unstructured audit. Gather the following before you open a single tool:
- A signed rules of engagement document specifying in-scope IP ranges, domains, and applications
- Partial credentials, such as a standard user account or a low-privilege API key
- High-level network or architecture diagrams if available
- Known technology stack information, for example the operating systems, web frameworks, or cloud provider in use
- An emergency contact at the target organization in case testing causes unintended disruption
- A testing window agreed with the client to avoid interfering with business operations
Confirm that written authorization is in place before you proceed. Testing without explicit permission is illegal regardless of intent. Once authorization is confirmed and your pre-shared information is organized, you are ready to move into environment mapping.
Map the known environment and identify gaps
Start by building a structured picture of everything you already know. Lay out the pre-shared assets in a working document or a mind map tool. Categorize each item: network segments, hostnames, user roles, application entry points, and any known technology versions. This baseline becomes your reference throughout the engagement.
With the known environment documented, identify the gaps. Ask yourself what the pre-shared information does not tell you. Common gaps include internal service dependencies, undocumented subdomains, shadow IT systems, and the exact patch levels of individual hosts. These gaps are where grey box testing adds the most value, because you will close them through active reconnaissance rather than assumption.
- Create a table listing every known asset with its type, IP or URL, and any associated credentials or access level
- Mark each asset as fully known, partially known, or unknown based on the pre-shared information
- Note the attack surface areas most likely to contain vulnerabilities given the technology stack provided
After this step, you should have a prioritized asset list with clear gaps highlighted. That list drives everything that follows.
Run reconnaissance with your partial access
Use your partial access to accelerate reconnaissance without skipping it entirely. Log in with the provided credentials and observe what the application or network exposes to an authenticated user. At the same time, run passive and active reconnaissance techniques against the in-scope targets to fill the gaps you identified.
Passive reconnaissance
Query public sources for additional information about the target. DNS records, certificate transparency logs, and job postings often reveal technology choices, subdomain structures, and internal tooling. This intelligence supplements what the client shared and helps you find assets that may be in scope but were not explicitly listed.
Active reconnaissance
Run port scans against in-scope IP ranges using a tool such as Nmap. Enumerate services, identify open ports, and fingerprint operating systems and software versions. Use your low-privilege credentials to walk through application functionality, map API endpoints, and note any areas where access controls seem inconsistent or overly permissive.
- Scan all in-scope hosts and record open ports, services, and version banners
- Enumerate subdomains and virtual hosts not included in the pre-shared assets
- Log in to the application with provided credentials and map all accessible functionality
- Identify any functionality that appears accessible beyond your assigned privilege level
By the end of reconnaissance, you should have a complete asset inventory that goes beyond what the client originally shared. Carry this expanded inventory into the vulnerability assessment phase.
Execute targeted vulnerability assessment and exploitation
With a full asset inventory in hand, shift from discovery to active testing. Grey box testing allows you to focus your exploitation efforts precisely because you already understand the environment. Prioritize high-value targets such as authentication systems, administrative interfaces, and any service handling sensitive data.
Run a vulnerability scanner against in-scope hosts to surface known weaknesses quickly. Do not stop at automated results. Manually test for logic flaws, broken access controls, and privilege escalation paths that scanners routinely miss. Use your authenticated session to test whether a standard user can access administrative functions, modify other users’ data, or extract information beyond their role.
- Run an authenticated vulnerability scan against in-scope hosts and applications
- Manually test authentication and session management for weaknesses such as token reuse or predictable identifiers
- Attempt horizontal and vertical privilege escalation using the provided low-privilege account
- Test input fields for injection vulnerabilities including SQL injection, command injection, and cross-site scripting
- Attempt to access internal services or APIs discovered during reconnaissance that were not in the original asset list
For each successful exploitation, stop and document the exact steps taken before continuing. You will need this detail for the attack chain in the next phase. Avoid causing data destruction or extended downtime, and stay within the agreed scope at all times.
Validate findings and document the attack chain
Validation separates professional penetration testing from noisy scanning. For every finding, confirm that the vulnerability is genuinely exploitable and not a false positive. Reproduce each exploit at least once under controlled conditions and record the evidence: screenshots, request and response logs, or command output.
Construct the attack chain by linking individual findings into realistic sequences. A grey box test often reveals how an attacker with partial knowledge could chain a subdomain takeover with a privilege escalation to reach sensitive data. Document this chain step by step, showing the starting point, each intermediate action, and the final impact. Rate each finding using a consistent severity framework such as CVSS so that your client can prioritize remediation effectively.
- Reproduce each finding and capture evidence in a standardized format
- Map findings to the MITRE ATT&CK framework or equivalent to contextualize attacker behavior
- Construct one or more attack chains showing how findings combine to increase overall risk
- Assign CVSS scores or equivalent severity ratings to each individual finding
After validation, you should have a complete evidence package for every finding and at least one documented attack chain. This package forms the core of your final report.
Deliver and act on grey box pentest results
A penetration test only creates value when the results lead to concrete improvements. Structure your report so that two audiences can use it: technical staff who need precise remediation steps, and decision-makers who need to understand business risk. Include an executive summary, a full findings section with evidence, and a prioritized remediation roadmap.
Walk the client through the findings in a debrief session rather than simply emailing the report. Explain the attack chain in plain language, clarify the severity ratings, and answer questions about remediation options. Agree on a timeline for fixing critical and high-severity findings, and schedule a retest to confirm that remediations have been applied correctly.
If your organization lacks the internal resources to run this process consistently or to act on findings at pace, we can help. We offer expert guidance on structuring and executing penetration testing programs, with a 12-hour response SLA and no requirement for an in-house security team on your side. Reach out to discuss how we can support your next assessment.
Frequently Asked Questions
How does a grey box penetration test differ from a black box or white box test?
A grey box test gives the tester partial information, such as low-privilege credentials or network diagrams, simulating an attacker with some prior knowledge. Black box testing starts with no information at all, while white box testing provides full access to source code and architecture, making grey box the most balanced and realistic option for most organizations.
What should I do if my organization cannot remediate all findings immediately after a grey box pentest?
Prioritize findings by severity using the CVSS scores or ratings provided in the report, and address critical and high-severity vulnerabilities first. For findings that cannot be fixed immediately, implement compensating controls such as additional monitoring or access restrictions, and agree on a realistic remediation timeline with your security team before scheduling a retest.
How long does a typical grey box penetration test take from start to finish?
The duration depends on the size and complexity of the in-scope environment, but most grey box engagements run between five and fifteen business days, including reconnaissance, exploitation, validation, and reporting. Larger environments with many assets, applications, or API endpoints will naturally require more time to test thoroughly and document accurately.
What credentials or information should we share with the tester before a grey box engagement begins?
At a minimum, provide a low-privilege user account, high-level network or architecture diagrams, and a list of in-scope IP ranges, domains, and applications. Sharing known technology stack details, such as operating systems and web frameworks, also helps the tester focus effort on the most relevant attack vectors and reduces time spent on out-of-scope discovery.