Penetration tester interview questions and how to answer them
Penetration tester interview questions check whether you can find weaknesses the way an attacker would while staying inside a written scope, and then explain each finding so the client can fix it. Expect technical questions on web applications, networks, Active Directory and cloud, scenario questions on rules of engagement, and often a hands-on lab or a report-writing task. Judgment and reporting are weighed as heavily as technical depth.
By Evin JohnPublished 9 min read
What a penetration tester does, and what firms hire for
A penetration tester is paid to attack systems with permission, for a fixed time, against a defined list of targets, and to leave behind a report that a developer and an executive can both act on. Many testers work at a consultancy that sells engagements: external and internal network tests, web application and API tests, mobile apps, cloud configuration reviews, wireless and, when the contract explicitly covers it, social engineering. Others sit on an in-house offensive team that tests the employer's own products before release.
Hiring managers look for four things. A repeatable methodology, so two testers on the same job cover the same ground. Enough depth to go past what a scanner reports. Clear writing, because the report is the product the client pays for. And sound ethics: you stop at the edge of scope, you protect the data you touch, and you escalate when something looks wrong. Certifications such as OSCP, CEH, GPEN and PNPT, or CREST qualifications, are commonly listed in postings, and CISSP shows up on senior and management roles. What each employer actually requires varies, so read the posting.
How penetration tester interviews usually run
- Recruiter or practice lead screenYour background, the kinds of engagements you have done, travel, and whether you can obtain any clearance the role needs.
- Technical interviewA conversation with senior testers that moves across web, network, Active Directory and cloud topics, usually by asking how you would approach a target rather than for definitions.
- Practical assessmentMany firms use a lab: a small network or a deliberately vulnerable application in an isolated environment, with a time limit and a short write-up. Some send a take-home instead.
- Report or communication taskWrite up one finding, critique a sample report, or explain a critical issue to a non-technical panel member playing the client.
- Manager and team fitHow you handle long engagements, deadlines, disagreement on severity, and clients who push back.
Scoping and rules of engagement questions
| Question | What it tests | What a strong answer shows |
|---|---|---|
| What must be in place before you send the first packet? | Authorization | A signed authorization from someone who owns the assets, a written scope with targets and exclusions, test dates and hours, named contacts on both sides, and how data and evidence will be handled |
| One IP on the client's list belongs to a hosting provider. What do you do? | Ownership checks | Confirm who owns it, and that the client has the right to authorize testing there, including any provider testing policy, before it is touched |
| Mid-test you notice a host that is not in scope and looks badly exposed. Next step? | Scope discipline | Do not test it. Record what was seen passively, tell the client contact, and let them decide whether to extend the scope in writing |
| You find signs that someone else already compromised the network. | Escalation | Pause the affected work, notify the emergency contact as the rules of engagement describe, preserve what you saw and avoid disturbing it |
| The client worries that testing will take production down. How do you plan? | Safety | Agreed testing windows, throttled scans, no denial-of-service techniques unless contracted, a stop condition, and someone reachable on the client side |
| Black box, grey box or white box: which would you recommend? | Value per day | More knowledge given to the tester means more coverage in the same budget; black box mainly answers what an outsider sees first |
| How is a vulnerability scan different from a penetration test or a red team exercise? | Vocabulary and selling honestly | A scan lists likely issues, a test validates and chains them within scope, a red team pursues an objective and tests detection and response |
| How would you scope a web application test? | Estimating | Number of roles, pages and API endpoints, authentication methods, business workflows, environments, and whether source code is provided |
Interviewers ask these first because a technically brilliant tester who wanders out of scope is a legal and reputational risk for the firm. Say the word "authorization" before you say the name of any tool.
Methodology questions
- Walk me through an external network test at a high level. Reconnaissance, service enumeration, identifying likely weaknesses, validating them carefully within the rules, assessing what an attacker could reach, then documenting and reporting. Keep it to stages and decisions, not commands.
- Which methodologies or frameworks do you follow? Commonly named references are PTES, the OWASP Web Security Testing Guide, NIST SP 800-115 and MITRE ATT&CK for mapping techniques. Say how you use one to make sure coverage is consistent.
- How do you avoid relying on scanner output? Treat a scanner as a lead list. Confirm each item by hand, look for what scanners miss such as authorization and business logic flaws, and remove false positives before the report.
- How do you confirm a finding is real without causing harm? Use the least intrusive proof that shows impact, prefer test accounts and test data, and record evidence as you go.
- How do you take notes during an engagement? Timestamped notes per target, screenshots and requests saved as evidence, commands logged, so a colleague could reproduce the finding and the client can match activity to their logs.
- You are stuck halfway through a test with nothing found. What do you do? Go back to enumeration, re-read the application as a user, check assumptions, ask a teammate for a second look, and report honest coverage if the target is well defended.
- How do you prioritize with two days left and five open leads? By likely impact and by what the client said mattered most at kickoff.
Web application and API questions
| Question | What it tests | What a strong answer shows |
|---|---|---|
| How do you test for broken object-level authorization (IDOR)? | Access control thinking | Two test accounts with different rights, swapping identifiers between them, and checking every endpoint that returns or changes an object |
| Explain SQL injection to a developer and how they fix it. | Root cause and remediation | User input changing the structure of a query; parameterized queries, least-privilege database accounts and input validation as defense in depth |
| What types of cross-site scripting are there, and what is the fix? | Client-side issues | Stored, reflected and DOM-based; context-aware output encoding first, with a content security policy as an extra layer |
| Why does server-side request forgery matter so much in cloud environments? | Impact reasoning | The server can be made to reach internal services, including instance metadata endpoints that may hold credentials; mitigations include allow-lists and hardened metadata settings |
| Which flaws do automated tools tend to miss? | Depth | Business logic: skipping a payment step, reusing a coupon, changing a price in a request, racing two requests |
| What would you check in a JWT-based login? | Session handling | Signature validation, accepted algorithms, secret strength, expiry, and whether logout or password change actually revokes access |
| When is a permissive CORS setting a real finding? | Severity judgment | When credentials are allowed with a reflected or wildcard-like origin on endpoints that return sensitive data, not merely when the header exists |
| How do you test an API that has no documentation? | Approach | Derive endpoints from the client app and traffic, ask the client for a specification in a grey-box test, then test each method and role |
Network, Active Directory and cloud questions
- What are the most common internal network findings, and why do they persist? Weak or reused passwords, missing patches, legacy protocols left on, flat networks and over-privileged service accounts. They persist because fixing them touches many teams.
- What is Kerberoasting, and how should defenders reduce the risk? Requesting service tickets whose encryption depends on a service account's password, then attacking them offline. Long random passwords, managed service accounts and monitoring unusual ticket requests reduce it.
- Why does disabled SMB signing appear in reports? It allows relay attacks where captured authentication is forwarded to another host. The fix is enforcing signing and reducing legacy name-resolution protocols.
- How would you explain lateral movement to a client? Moving from the first compromised machine to others using credentials or trust already present, which is why segmentation and tiered admin accounts matter.
- What do you look at in a cloud configuration review? Identity and role permissions, public storage, exposed management interfaces, logging, network rules and secrets in code or environment variables. Mention the shared responsibility model.
- What is the difference between a SYN scan and a full connect scan, conceptually? One sends the opening of a handshake and reads the reply, the other completes the connection. Talk about noise and logging, not flags.
Reporting and client questions
- What goes into a good executive summary? The overall risk in plain words, the two or three issues that matter most, what they could lead to for the business, and the recommended order of fixes.
- How do you rate severity? A scoring system such as CVSS as a starting point, adjusted for exploitability in this environment, data exposed and compensating controls. Explain the adjustment in the finding.
- The client says your critical finding is only medium. How do you respond? Listen to their context, which may be valid, show the evidence and impact path, and agree a rating you can both defend. Do not inflate or quietly downgrade.
- A manager asks you to remove a finding from the report. What do you do? Explain that the report must reflect what was found, offer to add context or a remediation note, and escalate inside your firm if pressed.
- You came across real customer data during the test. What happens next? Access the minimum needed to prove impact, do not copy it beyond what the rules allow, redact it in the report, and tell the client contact.
- How do you run a retest? Re-verify each finding with the same method, record what changed, and mark items fixed, partly fixed or open.
Fictional example
- On a grey-box test of a billing portal in the client's staging environment, I was given two customer test accounts. The invoice download link used a short numeric ID, so I requested account A's invoice while logged in as account B, and it downloaded. I proved it with our test data only and stopped there. Because the same code ran in production and exposed billing addresses, I called the client contact the same day instead of waiting for the report, as our rules of engagement allowed. In the report I rated it high, explained the fix as a server-side ownership check on every object request, and suggested they search for the same pattern in other download endpoints. They fixed it within the week, and the retest confirmed it. The lesson I took is that the most serious issues often need no special tooling, just two accounts and patience.
Ethics, motivation and teamwork questions
- Why offensive security rather than a defensive role?
- Tell me about a time you stopped testing because something felt outside your authorization.
- How do you keep your skills current between engagements?
- Describe a disagreement with a teammate about how to rate a finding.
- How do you handle an engagement where the client is slow to provide access?
- Have you ever reported a vulnerability through a disclosure program? What did you learn about the process?
Answer these as short stories with a clear outcome, as described in the behavioral question guide. If asked whether you would ever test a system without permission, the only acceptable answer is no, followed by how you would raise the concern through the proper channel instead.
Labs, write-ups and the portfolio
Testers without consulting experience usually prove skill with legal practice environments: a home lab, intentionally vulnerable applications, training platforms such as Hack The Box, TryHackMe or PortSwigger's Web Security Academy, and capture-the-flag events. Write-ups of retired machines and a redacted sample report you wrote yourself show how you think and write. Never practice on systems you do not own or have explicit permission to test, and never publish details of an unfixed issue in someone else's product.
A three-week preparation plan
- Week 1: foundationsRehearse scoping, rules of engagement and the stages of a test until you can explain them in two minutes. Review the OWASP categories and write the fix for each in one sentence.
- Week 2: hands-onWork through lab machines and web challenges on a legal platform. For each one, write a short finding with impact, evidence and remediation, as if for a client.
- Week 3: communicationExplain two findings out loud to a non-technical friend. Prepare stories on scope, a severity dispute and a hard engagement, and questions about the firm's methodology, report review and training time.
The report round and the client role-play reward clear spoken explanation, which is easy to practice and hard to judge on your own. Natively, an AI interview assistant for Mac and Windows, transcribes a mock technical round on your computer so you can read back whether you led with authorization and impact or wandered into tool names. In practice it can suggest answers as you go, read a lab task from a screenshot, and, with Pro or the free trial, use your résumé and the job description to frame stories around the engagements the posting mentions. The transcript and notes stay available afterward.
Questions people ask
What questions are asked in a penetration tester interview?
Expect scoping and rules of engagement scenarios, how you would approach a web app, API, internal network or cloud test, how you rate and report findings, behavioral and ethics questions, and often a hands-on lab or a report-writing task.
How do I answer scope questions in a pentest interview?
Start with written authorization from the asset owner and an agreed scope. If you find something outside it, you stop, record what you saw and tell the client contact, who decides whether to extend the scope in writing.
Which certifications do penetration tester job postings list?
Postings commonly list OSCP, CEH, GPEN, PNPT or CREST qualifications, and CISSP on senior roles. Requirements vary by employer.
How should I prepare for a penetration testing practical?
Practice on legal lab platforms and deliberately vulnerable apps, keep timestamped notes, and write each finding with impact, evidence and a fix, since the write-up is usually graded along with the result.
Where to go next
Practice with the same assistant you would use on a call: it listens, transcribes and suggests answers from your own resume and the job description.
Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.
