AnyLearn
All interview prep
SecurityMid-levelPenetration Tester

Penetration Tester Interview Prep: Questions and a Mock Test

Penetration testing interviews assess two things at once, and candidates usually prepare for only one. The technical half is what you would expect: flaw classes, how you would find them, and what you would do next. The professional half is scoping, authorisation, evidence handling and reporting, and it is weighted more heavily than most candidates expect, because the difference between a tester and a liability is entirely in that second half. This page covers both, and ends with a graded mock across six areas.

The loop

How the process is structured

The interview loop: each round, how long it runs, and what it tests
RoundLengthWhat it tests
1.Methodology and scoping[2]Not publishedAuthorisation, scope boundaries, rules of engagement, and what you do when something unexpected happens mid-test. Weighted more heavily than candidates expect, because this is what separates a professional from a liability.
2.Web application testing[3]Not publishedFlaw classes and how you would find them, usually anchored on the OWASP testing methodology and the Top 10. Access control and business logic get the most attention, because neither is found by a scanner.
3.Network, identity and post-exploitation[1]Not publishedDiscovery and validation, credential-centric attack paths, privilege escalation and lateral movement. ATT&CK is the shared vocabulary, where lateral movement is described as "the adversary is trying to move through your environment".
4.Practical exercise and reporting[2]Not publishedA lab environment or a walkthrough of a previous engagement, followed by how you would write it up. Assessed on evidence quality, severity justification and whether a developer could reproduce the finding from your description.

Bracketed markers point to the dated sources at the end of this article. Loops change; check the retrieval dates before relying on a round count.

The engagement, before any of the technical work

Interviewers open here more often than candidates expect, and a weak answer is disqualifying regardless of technical depth.

Authorisation is the whole basis of the work. Testing without documented, specific, current permission from someone with authority to grant it is not penetration testing. The scope document is the artefact that defines what is in bounds, and the discipline being assessed is whether you stop at its edge. A candidate who describes following a chain of trust out of scope because it was interesting has described an incident.

Rules of engagement cover the questions the scope document does not: test windows, whether denial of service is permitted, whether social engineering is in scope, what happens if you find evidence of an existing compromise, and who to contact when something breaks. The last two are the ones people forget. Discovering that someone else is already in the environment converts your engagement into an incident response, and the correct move is to stop and escalate rather than to investigate.

Evidence handling matters too. You are collecting proof of exploitability, not extracting data, and the amount of data you touch should be the minimum that demonstrates the finding. Screenshotting one record establishes access; downloading the table does not establish anything additional and creates a real problem for both parties.

Expect a question about a finding outside scope. The answer is to report it, not to test it.

The shared vocabulary, and its current state

MITRE ATT&CK is the common language for describing what an adversary does, and interviewers use it to check that you think in terms of a campaign rather than a list of exploits.

The enterprise matrix currently lists fifteen tactics, each phrased from the adversary's point of view. Reconnaissance is "the adversary is trying to gather information they can use to plan future operations", and Resource Development is "trying to establish resources they can use to support operations". Then Initial Access, "trying to get into your network", Execution, "trying to run malicious code", Persistence, "trying to maintain their foothold", and Privilege Escalation, "trying to gain higher-level permissions".

One detail worth being current about: the tactic at TA0005 is now named Stealth, described as "the adversary is trying to hide and conceal their actions, appearing as normal behavior", and there is a separate tactic, Defense Impairment, for when "the adversary is trying to break security mechanisms, pipelines, and tooling so defenders can't see or trust what's happening". A great deal of published material still names TA0005 Defense Evasion, so quoting the current framing accurately is a small, visible signal.

The remainder: Credential Access, Discovery, Lateral Movement, Collection, Command and Control, Exfiltration, and Impact.

The reason this matters in an interview is that it turns a finding into a narrative. Saying you found an exposed service is a finding; saying it provides initial access, that stored credentials on the host enable credential access, and that those credentials permit lateral movement to a system holding the data the client actually cares about, is an assessment.

Web application testing, structured

The OWASP Web Security Testing Guide is the methodology reference most often named, described as "a comprehensive guide to testing the security of web applications and web services". Its stable release is version 4.2, published in December 2020, with version 5.0 in active development, and its tests are identified by category codes such as WSTG-INFO for information gathering.

What interviewers want is not the code list but the structure: information gathering first, then configuration and deployment, identity and authentication, authorisation, session management, input validation, error handling, cryptography, business logic, and client side.

The two categories that produce the most interesting interview conversation are authorisation and business logic, because neither is found by a scanner. Authorisation flaws are the top-ranked category in the OWASP Top 10 2025, where broken access control remains A01, and the characteristic form is an object reference that the server does not check against the authenticated user. Testing it is systematic rather than clever: enumerate every endpoint that takes an identifier and try it as a different user, as a lower-privileged user, and unauthenticated.

Business logic flaws are where the application does exactly what it was built to do and the outcome is still wrong: a negative quantity that credits an account, a multi-step flow where a step can be skipped, a coupon that can be applied repeatedly. Finding them requires understanding what the application is for, which is why the strongest testers ask about the business before touching the application.

The 2025 list is worth knowing in order, since supply chain failures now rank third and injection has moved to fifth.

Network, identity and the path to impact

Infrastructure testing questions are less about scanning and more about what you do with what you find.

Discovery is where an interviewer checks that you understand the difference between what a tool reports and what is true. A port scan reports what responded, which is not the same as what is running, and version banners are frequently wrong or deliberately misleading. Confirming a service and its version before claiming a vulnerability is basic diligence, and reporting a finding purely from a scanner's output without validation is the most common failure in junior work.

Identity is where modern engagements concentrate, because most environments are now compromised through credentials rather than through memory corruption. Password reuse across systems, service accounts with excessive rights and passwords that never expire, credentials stored in scripts and configuration, and tokens with long lifetimes and broad scope are the recurring themes. The question interviewers like is what you would do first with one valid low-privileged credential, and the strong answer is enumeration of what that identity can reach rather than immediate escalation attempts.

Segmentation determines how far a foothold travels. A flat network turns one compromised workstation into access to everything, which is why lateral movement is the tactic that most often decides an engagement's severity rating.

The framing that separates a senior candidate: severity is a function of business impact, not of technical elegance. A dull misconfiguration that exposes customer data outranks an intricate chain that reaches a test server with nothing on it.

The report is the deliverable

Almost every loop includes a question about writing, because the report is the only thing the client actually receives.

The structure expected is an executive summary written for someone who will not read the rest, expressed in terms of business risk rather than technique, followed by findings each with a clear description, evidence, reproduction steps, an impact statement and a specific remediation. Reproduction steps are the part that determines whether anything gets fixed: a developer who cannot reproduce a finding will deprioritise it, however severe it is.

Severity should be justified rather than asserted. A rating derived from exploitability and business impact, and stated with the reasoning visible, survives the meeting where a stakeholder disagrees with it. A rating copied from a scanner does not.

The judgement question that comes up repeatedly is what to do when a client disputes a finding or pressures you to lower a severity. The professional answer is to separate the facts from the rating: if the technical claim is wrong, correct it immediately and gladly; if the disagreement is about severity, document both positions rather than quietly changing the number. Accepting compensating controls as a reason to lower a rating is legitimate when the controls actually exist and you have verified them.

One more thing interviewers listen for: what you would tell the client to fix first. A report with forty findings and no prioritisation transfers the hard problem back to the people who hired you to solve it.

Open-ended

What they actually ask

  1. 1.Mid-engagement you find evidence that someone else is already in the environment. What do you do?

    What a strong answer covers

    This is the single most revealing question in a penetration testing loop. The correct instinct is to stop testing and escalate immediately through the pre-agreed contact path, because the engagement has just become an incident and continuing risks destroying evidence, being blamed for the intruder's activity, or tipping them off. Strong answers preserve what they have already observed with timestamps, do not investigate further because that is now someone else's job with a different legal footing, and note that the escalation path should have been agreed in the rules of engagement precisely so it does not have to be improvised. They also raise the contractual reality: the client may have notification obligations with clocks that start now.

  2. 2.You have one valid low-privileged credential on an internal network. What do you do first?

    What a strong answer covers

    The expected answer is enumeration rather than escalation. Establish what this identity can already reach: which systems it can authenticate to, what shares and repositories are readable, what group memberships it holds, and what the identity infrastructure will tell an authenticated user, which is usually a great deal. Strong candidates look for credentials at rest, in scripts, configuration files and pipeline definitions, because reuse is the most common real path. They frame the work in ATT&CK terms, discovery before credential access before lateral movement, and are explicit about staying in scope and about the noise their activity generates, since a loud enumeration sweep on a monitored network ends the test.

  3. 3.How would you test an application for broken access control?

    What a strong answer covers

    Strong answers are systematic rather than opportunistic, because this class is not found by scanners. Map every endpoint and every parameter that carries an identifier, then re-issue each request as a second, lower-privileged user, and unauthenticated, checking whether the server enforces authorisation on the specific object rather than only on the route. Cover the vertical direction, an ordinary user reaching administrative functions, and the horizontal one, a user reaching another user's records. Test the methods, since a resource may be protected on GET and not on PUT or DELETE. Strong candidates note that hidden UI is not enforcement and that broken access control is A01 in both the 2021 and 2025 Top 10, which is why this deserves the most systematic effort.

  4. 4.The client says your critical finding is not exploitable in production. How do you handle it?

    What a strong answer covers

    Separate the factual claim from the severity rating. If they are asserting a compensating control, ask what it is and verify it rather than accepting or rejecting it, since a control that genuinely blocks exploitation is a legitimate reason to lower a rating and a control that exists only on a diagram is not. If they are right about the facts, correct the finding promptly and without defensiveness, because credibility is the product. If the disagreement is about risk appetite rather than facts, document both positions in the report instead of quietly changing the number. Strong candidates note that quietly downgrading findings under pressure is how a testing relationship becomes worthless to both sides.

  5. 5.How do you decide the severity of a finding?

    What a strong answer covers

    Expected: severity is a function of likelihood and impact, and impact means business impact rather than technical impressiveness. Likelihood covers exploitability, whether the flaw is reachable from the internet or requires an authenticated foothold, whether public exploit code exists, and what preconditions apply. Impact covers what the flaw actually reaches: data sensitivity, whether it enables further compromise, regulatory exposure and availability. Strong candidates make the reasoning visible rather than only quoting a score, note that a scoring framework produces a number rather than a decision, and give the concrete example that a dull misconfiguration exposing customer data outranks an elegant chain that ends at an empty test server.

  6. 6.What makes a penetration test report actually useful?

    What a strong answer covers

    Strong answers start from the readers, of whom there are at least two with different needs: an executive summary in business terms for someone deciding on budget, and technical findings for the engineer who has to fix them. For each finding: description, evidence, reproduction steps precise enough that a developer can follow them, impact, and a specific remediation rather than a generic one such as validate input. Prioritisation is what candidates most often omit, and a report with forty undifferentiated findings hands the hard problem back to the client. The strongest answers also mention what should not be in the report, namely extracted customer data, and note that a retest offer is what converts findings into fixes.

Worked examples

Three sample questions, answered

These three show the level the mock is pitched at, with the answer and the reasoning in the open. The graded paper keeps its answer key server-side.

1.In the current MITRE ATT&CK enterprise matrix, which tactic is described as 'the adversary is trying to move through your environment'?
Escalation and lateral movement
  • Discovery
  • Lateral Movement
  • Command and Control
  • Collection

Why: Lateral Movement is the tactic for traversing an environment after gaining a foothold. Discovery is "trying to figure out your environment", Command and Control is "trying to communicate with compromised systems to control them", and Collection is "trying to gather data of interest to their goal". Being precise about these is what turns a list of findings into an attack narrative.

2.During a test you find a path leading to a system that is not listed in the scope document. What is correct?
Scoping, authorisation and reporting
  • Test it, since it was reachable from an in-scope system
  • Test it but exclude the results from the report
  • Note it and report it, without testing it
  • Assume it is in scope if the same organisation owns it

Why: Authorisation is specific, and reachability does not confer it. The professional action is to document the path as a finding, since the fact that an out-of-scope system is reachable is itself valuable, and to seek explicit written extension of scope before touching it. Testing outside scope is the difference between an engagement and an incident.

3.Which vulnerability class is a scanner least likely to find?
Web application flaw classes
  • Business logic flaws, such as a multi-step flow where a step can be skipped
  • Known vulnerable library versions
  • Missing security headers
  • Reflected cross-site scripting in a query parameter

Why: A scanner recognises patterns it has been told about. Business logic flaws involve the application doing exactly what it was built to do while producing an outcome nobody intended, so there is no signature to match. Finding them requires understanding what the application is for, which is why the strongest testers ask about the business before touching the system.

The mock

An 18-question knowledge check

This is a knowledge check, not a simulation. The real loop happens on a whiteboard, in an editor, and in conversation. What this paper does measure is the underlying knowledge those rounds draw on: each question is tagged with a topic, grading happens per topic, and a weak topic points you at the course that fixes it.

Your paper0 / 18 answered
  1. 1.What is the minimum requirement before any testing activity begins?
    Scoping, authorisation and reporting
  2. 2.Which of these belongs in the rules of engagement rather than the scope document?
    Scoping, authorisation and reporting
  3. 3.Why should evidence collection be limited to the minimum that demonstrates a finding?
    Scoping, authorisation and reporting
  4. 4.In the current ATT&CK enterprise matrix, which tactic covers breaking security tooling so defenders cannot trust what they see?
    Reconnaissance and discovery
  5. 5.Which ATT&CK tactic describes establishing infrastructure to support an operation, before any contact with the target?
    Reconnaissance and discovery
  6. 6.A port scan reports a service and version. What is the correct next step before reporting a vulnerability?
    Reconnaissance and discovery
  7. 7.Which category ranks first in the OWASP Top 10 2025?
    Web application flaw classes
  8. 8.What distinguishes a horizontal from a vertical access control flaw?
    Web application flaw classes
  9. 9.Which is the current stable version of the OWASP Web Security Testing Guide?
    Web application flaw classes
  10. 10.Why do modern engagements concentrate on credentials rather than on memory corruption?
    Network and identity weaknesses
  11. 11.What does network segmentation primarily limit?
    Network and identity weaknesses
  12. 12.A service account has a password that never expires and administrative rights across many systems. What is the core problem?
    Network and identity weaknesses
  13. 13.You gain code execution on a host as an unprivileged user. Which ATT&CK tactic describes what you attempt next to gain administrative rights?
    Escalation and lateral movement
  14. 14.Why is Persistence a distinct tactic from Initial Access?
    Escalation and lateral movement
  15. 15.During post-exploitation, what most strongly determines a finding's severity rating?
    Escalation and lateral movement
  16. 16.Why is a general-purpose hash such as SHA-256 the wrong choice for stored passwords?
    Authentication and cryptographic flaws
  17. 17.What does finding a session token that does not change after login indicate?
    Authentication and cryptographic flaws
  18. 18.A login form returns 'user not found' for unknown accounts and 'incorrect password' for known ones. What is the finding?
    Authentication and cryptographic flaws
18 questions left to answer.
Apparatus

Sources

Hiring loops change. Every claim above carries a retrieval date so you can judge how current it is.

  1. [1]MITRE ATT&CK, Enterprise Tactics · retrieved 2026-08-13
  2. [2]OWASP, Web Security Testing Guide · retrieved 2026-08-13
  3. [3]OWASP, Top 10:2025 · retrieved 2026-08-13
Keep preparing

Refresh your memory

Free learning paths covering the ground this loop tests, whatever your score. Each one ends with a shareable certificate.