51 Security Testing interview questions, each with a short answer you can say in the interview, a detailed explanation, a real-world example and an interview tip; 22 of them are marked as frequently asked. Freshers can start with the first section; experienced testers can jump to the harder questions.
1. What is authentication testing, and why does it matter in Security?
Answer: authentication testing is a core Security concept used to make testing decisions more accurate, repeatable, and aligned with product risk.
Detailed explanation, example and interview tip
A strong explanation of authentication testing should cover its purpose, the problem it solves, when it is appropriate, and where it can mislead a team. In Security, use it deliberately rather than as a checklist item: connect it to observable behavior, choose clear pass/fail evidence, and record assumptions so another engineer can reproduce the result.
Real-world example
During release planning, the team used authentication testing to focus validation on the most important behavior and to communicate residual risk before deployment.
Interview tip
Answer in four parts: definition, suitable use case, limitation, and a concrete project example.
Beginner5 Years Frequently asked
2. What is CSRF, and why does it matter in Security?
Answer: CSRF is a core Security concept used to make testing decisions more accurate, repeatable, and aligned with product risk.
Detailed explanation, example and interview tip
A strong explanation of CSRF should cover its purpose, the problem it solves, when it is appropriate, and where it can mislead a team. In Security, use it deliberately rather than as a checklist item: connect it to observable behavior, choose clear pass/fail evidence, and record assumptions so another engineer can reproduce the result.
Real-world example
During release planning, the team used CSRF to focus validation on the most important behavior and to communicate residual risk before deployment.
Interview tip
Answer in four parts: definition, suitable use case, limitation, and a concrete project example.
Beginner7 Years Frequently asked
3. What is rate limiting, and why does it matter in Security?
Answer: rate limiting is a core Security concept used to make testing decisions more accurate, repeatable, and aligned with product risk.
Detailed explanation, example and interview tip
A strong explanation of rate limiting should cover its purpose, the problem it solves, when it is appropriate, and where it can mislead a team. In Security, use it deliberately rather than as a checklist item: connect it to observable behavior, choose clear pass/fail evidence, and record assumptions so another engineer can reproduce the result.
Real-world example
During release planning, the team used rate limiting to focus validation on the most important behavior and to communicate residual risk before deployment.
Interview tip
Answer in four parts: definition, suitable use case, limitation, and a concrete project example.
Beginner10+ Years Frequently asked
4. What is dynamic analysis, and why does it matter in Security?
Answer: dynamic analysis is a core Security concept used to make testing decisions more accurate, repeatable, and aligned with product risk.
Detailed explanation, example and interview tip
A strong explanation of dynamic analysis should cover its purpose, the problem it solves, when it is appropriate, and where it can mislead a team. In Security, use it deliberately rather than as a checklist item: connect it to observable behavior, choose clear pass/fail evidence, and record assumptions so another engineer can reproduce the result.
Real-world example
During release planning, the team used dynamic analysis to focus validation on the most important behavior and to communicate residual risk before deployment.
Interview tip
Answer in four parts: definition, suitable use case, limitation, and a concrete project example.
Beginner3 Years
5. How would you apply least privilege in a production Security project?
Answer: Apply least privilege through an explicit, repeatable design: define the expected behavior, automate the highest-risk path, capture useful diagnostics, and verify the result against a stable oracle.
Detailed explanation, example and interview tip
In a production Security project, start by identifying the risk that least privilege controls and the evidence needed to prove the behavior. Keep setup, action, verification, and cleanup separate; parameterize environment-specific values; and make failures explain the business impact. Run the smallest relevant check on each change, broader coverage in the pipeline, and review flaky or slow results rather than hiding them with retries.
Real-world example
A team introduced a focused least privilege check at the layer closest to the risk, attached diagnostics to failures, and used the result as a release signal instead of relying on manual confirmation.
Interview tip
Describe one trade-off, one failure mode, and one measurable outcome when discussing least privilege.
Beginner3 Years
6. What is OWASP Top 10, and why does it matter in Security?
Answer: OWASP Top 10 is a core Security concept used to make testing decisions more accurate, repeatable, and aligned with product risk.
Detailed explanation, example and interview tip
A strong explanation of OWASP Top 10 should cover its purpose, the problem it solves, when it is appropriate, and where it can mislead a team. In Security, use it deliberately rather than as a checklist item: connect it to observable behavior, choose clear pass/fail evidence, and record assumptions so another engineer can reproduce the result.
Real-world example
During release planning, the team used OWASP Top 10 to focus validation on the most important behavior and to communicate residual risk before deployment.
Interview tip
Answer in four parts: definition, suitable use case, limitation, and a concrete project example.
Beginner3 Years
7. How would you apply cross-site scripting in a production Security project?
Answer: Apply cross-site scripting through an explicit, repeatable design: define the expected behavior, automate the highest-risk path, capture useful diagnostics, and verify the result against a stable oracle.
Detailed explanation, example and interview tip
In a production Security project, start by identifying the risk that cross-site scripting controls and the evidence needed to prove the behavior. Keep setup, action, verification, and cleanup separate; parameterize environment-specific values; and make failures explain the business impact. Run the smallest relevant check on each change, broader coverage in the pipeline, and review flaky or slow results rather than hiding them with retries.
Real-world example
A team introduced a focused cross-site scripting check at the layer closest to the risk, attached diagnostics to failures, and used the result as a release signal instead of relying on manual confirmation.
Interview tip
Describe one trade-off, one failure mode, and one measurable outcome when discussing cross-site scripting.
Beginner5 Years
8. How would you apply session management in a production Security project?
Answer: Apply session management through an explicit, repeatable design: define the expected behavior, automate the highest-risk path, capture useful diagnostics, and verify the result against a stable oracle.
Detailed explanation, example and interview tip
In a production Security project, start by identifying the risk that session management controls and the evidence needed to prove the behavior. Keep setup, action, verification, and cleanup separate; parameterize environment-specific values; and make failures explain the business impact. Run the smallest relevant check on each change, broader coverage in the pipeline, and review flaky or slow results rather than hiding them with retries.
Real-world example
A team introduced a focused session management check at the layer closest to the risk, attached diagnostics to failures, and used the result as a release signal instead of relying on manual confirmation.
Interview tip
Describe one trade-off, one failure mode, and one measurable outcome when discussing session management.
Beginner5 Years
9. What is password policies, and why does it matter in Security?
Answer: password policies is a core Security concept used to make testing decisions more accurate, repeatable, and aligned with product risk.
Detailed explanation, example and interview tip
A strong explanation of password policies should cover its purpose, the problem it solves, when it is appropriate, and where it can mislead a team. In Security, use it deliberately rather than as a checklist item: connect it to observable behavior, choose clear pass/fail evidence, and record assumptions so another engineer can reproduce the result.
Real-world example
During release planning, the team used password policies to focus validation on the most important behavior and to communicate residual risk before deployment.
Interview tip
Answer in four parts: definition, suitable use case, limitation, and a concrete project example.
Beginner5 Years
10. How would you apply API security in a production Security project?
Answer: Apply API security through an explicit, repeatable design: define the expected behavior, automate the highest-risk path, capture useful diagnostics, and verify the result against a stable oracle.
Detailed explanation, example and interview tip
In a production Security project, start by identifying the risk that API security controls and the evidence needed to prove the behavior. Keep setup, action, verification, and cleanup separate; parameterize environment-specific values; and make failures explain the business impact. Run the smallest relevant check on each change, broader coverage in the pipeline, and review flaky or slow results rather than hiding them with retries.
Real-world example
A team introduced a focused API security check at the layer closest to the risk, attached diagnostics to failures, and used the result as a release signal instead of relying on manual confirmation.
Interview tip
Describe one trade-off, one failure mode, and one measurable outcome when discussing API security.
Beginner7 Years
11. How would you apply TLS validation in a production Security project?
Answer: Apply TLS validation through an explicit, repeatable design: define the expected behavior, automate the highest-risk path, capture useful diagnostics, and verify the result against a stable oracle.
Detailed explanation, example and interview tip
In a production Security project, start by identifying the risk that TLS validation controls and the evidence needed to prove the behavior. Keep setup, action, verification, and cleanup separate; parameterize environment-specific values; and make failures explain the business impact. Run the smallest relevant check on each change, broader coverage in the pipeline, and review flaky or slow results rather than hiding them with retries.
Real-world example
A team introduced a focused TLS validation check at the layer closest to the risk, attached diagnostics to failures, and used the result as a release signal instead of relying on manual confirmation.
Interview tip
Describe one trade-off, one failure mode, and one measurable outcome when discussing TLS validation.
Beginner7 Years
12. What is security headers, and why does it matter in Security?
Answer: security headers is a core Security concept used to make testing decisions more accurate, repeatable, and aligned with product risk.
Detailed explanation, example and interview tip
A strong explanation of security headers should cover its purpose, the problem it solves, when it is appropriate, and where it can mislead a team. In Security, use it deliberately rather than as a checklist item: connect it to observable behavior, choose clear pass/fail evidence, and record assumptions so another engineer can reproduce the result.
Real-world example
During release planning, the team used security headers to focus validation on the most important behavior and to communicate residual risk before deployment.
Interview tip
Answer in four parts: definition, suitable use case, limitation, and a concrete project example.
Beginner7 Years
13. How would you apply static analysis in a production Security project?
Answer: Apply static analysis through an explicit, repeatable design: define the expected behavior, automate the highest-risk path, capture useful diagnostics, and verify the result against a stable oracle.
Detailed explanation, example and interview tip
In a production Security project, start by identifying the risk that static analysis controls and the evidence needed to prove the behavior. Keep setup, action, verification, and cleanup separate; parameterize environment-specific values; and make failures explain the business impact. Run the smallest relevant check on each change, broader coverage in the pipeline, and review flaky or slow results rather than hiding them with retries.
Real-world example
A team introduced a focused static analysis check at the layer closest to the risk, attached diagnostics to failures, and used the result as a release signal instead of relying on manual confirmation.
Interview tip
Describe one trade-off, one failure mode, and one measurable outcome when discussing static analysis.
Beginner10+ Years
14. How would you apply threat modeling in a production Security project?
Answer: Apply threat modeling through an explicit, repeatable design: define the expected behavior, automate the highest-risk path, capture useful diagnostics, and verify the result against a stable oracle.
Detailed explanation, example and interview tip
In a production Security project, start by identifying the risk that threat modeling controls and the evidence needed to prove the behavior. Keep setup, action, verification, and cleanup separate; parameterize environment-specific values; and make failures explain the business impact. Run the smallest relevant check on each change, broader coverage in the pipeline, and review flaky or slow results rather than hiding them with retries.
Real-world example
A team introduced a focused threat modeling check at the layer closest to the risk, attached diagnostics to failures, and used the result as a release signal instead of relying on manual confirmation.
Interview tip
Describe one trade-off, one failure mode, and one measurable outcome when discussing threat modeling.
Beginner10+ Years
15. What is audit logging, and why does it matter in Security?
Answer: audit logging is a core Security concept used to make testing decisions more accurate, repeatable, and aligned with product risk.
Detailed explanation, example and interview tip
A strong explanation of audit logging should cover its purpose, the problem it solves, when it is appropriate, and where it can mislead a team. In Security, use it deliberately rather than as a checklist item: connect it to observable behavior, choose clear pass/fail evidence, and record assumptions so another engineer can reproduce the result.
Real-world example
During release planning, the team used audit logging to focus validation on the most important behavior and to communicate residual risk before deployment.
Interview tip
Answer in four parts: definition, suitable use case, limitation, and a concrete project example.
Security Testing interview questions for experienced testers
Intermediate5 Years Frequently asked
16. Which OWASP Top 10 risks can a tester realistically cover?
Answer: Broken access control, injection, authentication failures, security misconfiguration, sensitive data exposure and vulnerable dependencies are all testable in a normal QA pipeline.
Detailed explanation, example and interview tip
Broken access control is the highest-value target for testers because it is business logic: call every endpoint with a lower-privileged token and assert 403. Injection and XSS need input-based tests plus a scanner in the pipeline. Misconfiguration shows up as missing security headers, verbose error messages and default credentials — cheap to assert. Vulnerable dependencies are automated entirely by a dependency scanner on every build. Leave deep exploitation to specialists, but own the regression coverage for anything already found.
A parameterised access-control test across 60 endpoints found two admin APIs reachable by standard users.
Interview tip
Lead with broken access control as business logic testers own — it is the most credible answer.
Intermediate3 Years Frequently asked
17. How would you apply authentication testing in a production Security project?
Answer: Apply authentication testing through an explicit, repeatable design: define the expected behavior, automate the highest-risk path, capture useful diagnostics, and verify the result against a stable oracle.
Detailed explanation, example and interview tip
In a production Security project, start by identifying the risk that authentication testing controls and the evidence needed to prove the behavior. Keep setup, action, verification, and cleanup separate; parameterize environment-specific values; and make failures explain the business impact. Run the smallest relevant check on each change, broader coverage in the pipeline, and review flaky or slow results rather than hiding them with retries.
Real-world example
A team introduced a focused authentication testing check at the layer closest to the risk, attached diagnostics to failures, and used the result as a release signal instead of relying on manual confirmation.
Interview tip
Describe one trade-off, one failure mode, and one measurable outcome when discussing authentication testing.
Intermediate3 Years Frequently asked
18. How would you apply OWASP Top 10 in a production Security project?
Answer: Apply OWASP Top 10 through an explicit, repeatable design: define the expected behavior, automate the highest-risk path, capture useful diagnostics, and verify the result against a stable oracle.
Detailed explanation, example and interview tip
In a production Security project, start by identifying the risk that OWASP Top 10 controls and the evidence needed to prove the behavior. Keep setup, action, verification, and cleanup separate; parameterize environment-specific values; and make failures explain the business impact. Run the smallest relevant check on each change, broader coverage in the pipeline, and review flaky or slow results rather than hiding them with retries.
Real-world example
A team introduced a focused OWASP Top 10 check at the layer closest to the risk, attached diagnostics to failures, and used the result as a release signal instead of relying on manual confirmation.
Interview tip
Describe one trade-off, one failure mode, and one measurable outcome when discussing OWASP Top 10.
Intermediate3 Years Frequently asked
19. What is injection, and why does it matter in Security?
Answer: injection is a core Security concept used to make testing decisions more accurate, repeatable, and aligned with product risk.
Detailed explanation, example and interview tip
A strong explanation of injection should cover its purpose, the problem it solves, when it is appropriate, and where it can mislead a team. In Security, use it deliberately rather than as a checklist item: connect it to observable behavior, choose clear pass/fail evidence, and record assumptions so another engineer can reproduce the result.
Real-world example
During release planning, the team used injection to focus validation on the most important behavior and to communicate residual risk before deployment.
Interview tip
Answer in four parts: definition, suitable use case, limitation, and a concrete project example.
Intermediate5 Years Frequently asked
20. How would you apply CSRF in a production Security project?
Answer: Apply CSRF through an explicit, repeatable design: define the expected behavior, automate the highest-risk path, capture useful diagnostics, and verify the result against a stable oracle.
Detailed explanation, example and interview tip
In a production Security project, start by identifying the risk that CSRF controls and the evidence needed to prove the behavior. Keep setup, action, verification, and cleanup separate; parameterize environment-specific values; and make failures explain the business impact. Run the smallest relevant check on each change, broader coverage in the pipeline, and review flaky or slow results rather than hiding them with retries.
Real-world example
A team introduced a focused CSRF check at the layer closest to the risk, attached diagnostics to failures, and used the result as a release signal instead of relying on manual confirmation.
Interview tip
Describe one trade-off, one failure mode, and one measurable outcome when discussing CSRF.
Intermediate5 Years Frequently asked
21. How would you apply password policies in a production Security project?
Answer: Apply password policies through an explicit, repeatable design: define the expected behavior, automate the highest-risk path, capture useful diagnostics, and verify the result against a stable oracle.
Detailed explanation, example and interview tip
In a production Security project, start by identifying the risk that password policies controls and the evidence needed to prove the behavior. Keep setup, action, verification, and cleanup separate; parameterize environment-specific values; and make failures explain the business impact. Run the smallest relevant check on each change, broader coverage in the pipeline, and review flaky or slow results rather than hiding them with retries.
Real-world example
A team introduced a focused password policies check at the layer closest to the risk, attached diagnostics to failures, and used the result as a release signal instead of relying on manual confirmation.
Interview tip
Describe one trade-off, one failure mode, and one measurable outcome when discussing password policies.
Intermediate5 Years Frequently asked
22. What is multi-factor authentication, and why does it matter in Security?
Answer: multi-factor authentication is a core Security concept used to make testing decisions more accurate, repeatable, and aligned with product risk.
Detailed explanation, example and interview tip
A strong explanation of multi-factor authentication should cover its purpose, the problem it solves, when it is appropriate, and where it can mislead a team. In Security, use it deliberately rather than as a checklist item: connect it to observable behavior, choose clear pass/fail evidence, and record assumptions so another engineer can reproduce the result.
Real-world example
During release planning, the team used multi-factor authentication to focus validation on the most important behavior and to communicate residual risk before deployment.
Interview tip
Answer in four parts: definition, suitable use case, limitation, and a concrete project example.
Intermediate7 Years Frequently asked
23. How would you apply rate limiting in a production Security project?
Answer: Apply rate limiting through an explicit, repeatable design: define the expected behavior, automate the highest-risk path, capture useful diagnostics, and verify the result against a stable oracle.
Detailed explanation, example and interview tip
In a production Security project, start by identifying the risk that rate limiting controls and the evidence needed to prove the behavior. Keep setup, action, verification, and cleanup separate; parameterize environment-specific values; and make failures explain the business impact. Run the smallest relevant check on each change, broader coverage in the pipeline, and review flaky or slow results rather than hiding them with retries.
Real-world example
A team introduced a focused rate limiting check at the layer closest to the risk, attached diagnostics to failures, and used the result as a release signal instead of relying on manual confirmation.
Interview tip
Describe one trade-off, one failure mode, and one measurable outcome when discussing rate limiting.
Intermediate7 Years Frequently asked
24. How would you apply security headers in a production Security project?
Answer: Apply security headers through an explicit, repeatable design: define the expected behavior, automate the highest-risk path, capture useful diagnostics, and verify the result against a stable oracle.
Detailed explanation, example and interview tip
In a production Security project, start by identifying the risk that security headers controls and the evidence needed to prove the behavior. Keep setup, action, verification, and cleanup separate; parameterize environment-specific values; and make failures explain the business impact. Run the smallest relevant check on each change, broader coverage in the pipeline, and review flaky or slow results rather than hiding them with retries.
Real-world example
A team introduced a focused security headers check at the layer closest to the risk, attached diagnostics to failures, and used the result as a release signal instead of relying on manual confirmation.
Interview tip
Describe one trade-off, one failure mode, and one measurable outcome when discussing security headers.
Intermediate7 Years Frequently asked
25. What is dependency scanning, and why does it matter in Security?
Answer: dependency scanning is a core Security concept used to make testing decisions more accurate, repeatable, and aligned with product risk.
Detailed explanation, example and interview tip
A strong explanation of dependency scanning should cover its purpose, the problem it solves, when it is appropriate, and where it can mislead a team. In Security, use it deliberately rather than as a checklist item: connect it to observable behavior, choose clear pass/fail evidence, and record assumptions so another engineer can reproduce the result.
Real-world example
During release planning, the team used dependency scanning to focus validation on the most important behavior and to communicate residual risk before deployment.
Interview tip
Answer in four parts: definition, suitable use case, limitation, and a concrete project example.
Intermediate10+ Years Frequently asked
26. How would you apply dynamic analysis in a production Security project?
Answer: Apply dynamic analysis through an explicit, repeatable design: define the expected behavior, automate the highest-risk path, capture useful diagnostics, and verify the result against a stable oracle.
Detailed explanation, example and interview tip
In a production Security project, start by identifying the risk that dynamic analysis controls and the evidence needed to prove the behavior. Keep setup, action, verification, and cleanup separate; parameterize environment-specific values; and make failures explain the business impact. Run the smallest relevant check on each change, broader coverage in the pipeline, and review flaky or slow results rather than hiding them with retries.
Real-world example
A team introduced a focused dynamic analysis check at the layer closest to the risk, attached diagnostics to failures, and used the result as a release signal instead of relying on manual confirmation.
Interview tip
Describe one trade-off, one failure mode, and one measurable outcome when discussing dynamic analysis.
Intermediate10+ Years Frequently asked
27. How would you apply audit logging in a production Security project?
Answer: Apply audit logging through an explicit, repeatable design: define the expected behavior, automate the highest-risk path, capture useful diagnostics, and verify the result against a stable oracle.
Detailed explanation, example and interview tip
In a production Security project, start by identifying the risk that audit logging controls and the evidence needed to prove the behavior. Keep setup, action, verification, and cleanup separate; parameterize environment-specific values; and make failures explain the business impact. Run the smallest relevant check on each change, broader coverage in the pipeline, and review flaky or slow results rather than hiding them with retries.
Real-world example
A team introduced a focused audit logging check at the layer closest to the risk, attached diagnostics to failures, and used the result as a release signal instead of relying on manual confirmation.
Interview tip
Describe one trade-off, one failure mode, and one measurable outcome when discussing audit logging.
Intermediate10+ Years Frequently asked
28. What is penetration-test triage, and why does it matter in Security?
Answer: penetration-test triage is a core Security concept used to make testing decisions more accurate, repeatable, and aligned with product risk.
Detailed explanation, example and interview tip
A strong explanation of penetration-test triage should cover its purpose, the problem it solves, when it is appropriate, and where it can mislead a team. In Security, use it deliberately rather than as a checklist item: connect it to observable behavior, choose clear pass/fail evidence, and record assumptions so another engineer can reproduce the result.
Real-world example
During release planning, the team used penetration-test triage to focus validation on the most important behavior and to communicate residual risk before deployment.
Interview tip
Answer in four parts: definition, suitable use case, limitation, and a concrete project example.
Intermediate3 Years
29. What is authorization testing, and why does it matter in Security?
Answer: authorization testing is a core Security concept used to make testing decisions more accurate, repeatable, and aligned with product risk.
Detailed explanation, example and interview tip
A strong explanation of authorization testing should cover its purpose, the problem it solves, when it is appropriate, and where it can mislead a team. In Security, use it deliberately rather than as a checklist item: connect it to observable behavior, choose clear pass/fail evidence, and record assumptions so another engineer can reproduce the result.
Real-world example
During release planning, the team used authorization testing to focus validation on the most important behavior and to communicate residual risk before deployment.
Interview tip
Answer in four parts: definition, suitable use case, limitation, and a concrete project example.
Intermediate5 Years
30. What is broken access control, and why does it matter in Security?
Answer: broken access control is a core Security concept used to make testing decisions more accurate, repeatable, and aligned with product risk.
Detailed explanation, example and interview tip
A strong explanation of broken access control should cover its purpose, the problem it solves, when it is appropriate, and where it can mislead a team. In Security, use it deliberately rather than as a checklist item: connect it to observable behavior, choose clear pass/fail evidence, and record assumptions so another engineer can reproduce the result.
Real-world example
During release planning, the team used broken access control to focus validation on the most important behavior and to communicate residual risk before deployment.
Interview tip
Answer in four parts: definition, suitable use case, limitation, and a concrete project example.
Intermediate7 Years
31. What is sensitive data exposure, and why does it matter in Security?
Answer: sensitive data exposure is a core Security concept used to make testing decisions more accurate, repeatable, and aligned with product risk.
Detailed explanation, example and interview tip
A strong explanation of sensitive data exposure should cover its purpose, the problem it solves, when it is appropriate, and where it can mislead a team. In Security, use it deliberately rather than as a checklist item: connect it to observable behavior, choose clear pass/fail evidence, and record assumptions so another engineer can reproduce the result.
Real-world example
During release planning, the team used sensitive data exposure to focus validation on the most important behavior and to communicate residual risk before deployment.
Interview tip
Answer in four parts: definition, suitable use case, limitation, and a concrete project example.
Intermediate10+ Years
32. What is secret scanning, and why does it matter in Security?
Answer: secret scanning is a core Security concept used to make testing decisions more accurate, repeatable, and aligned with product risk.
Detailed explanation, example and interview tip
A strong explanation of secret scanning should cover its purpose, the problem it solves, when it is appropriate, and where it can mislead a team. In Security, use it deliberately rather than as a checklist item: connect it to observable behavior, choose clear pass/fail evidence, and record assumptions so another engineer can reproduce the result.
Real-world example
During release planning, the team used secret scanning to focus validation on the most important behavior and to communicate residual risk before deployment.
Interview tip
Answer in four parts: definition, suitable use case, limitation, and a concrete project example.
Advanced Security Testing interview questions
Advanced7 Years Frequently asked
33. How do you test for IDOR and broken object-level authorisation?
Answer: Create two accounts, then use account A's token against account B's resource ids and assert 403/404 for read, update and delete — never just the UI hiding the link.
Detailed explanation, example and interview tip
IDOR happens when the server trusts an id from the client without checking ownership, and it is invisible from the UI because the link is simply not rendered. The test needs two real tenants and must cover every verb and every nested resource: order, invoice, attachment, comment. Also check indirect references such as sequential ids in exports and predictable file paths in storage. Response bodies must not leak existence either — a 404 that says 'belongs to another customer' still confirms the record.
An invoice PDF endpoint checked authentication but not ownership; any signed-in user could download any invoice by id.
Interview tip
Mention nested resources and file downloads — that is where authorisation checks are usually forgotten.
Advanced3 Years Frequently asked
34. What is least privilege, and why does it matter in Security?
Answer: least privilege is a core Security concept used to make testing decisions more accurate, repeatable, and aligned with product risk.
Detailed explanation, example and interview tip
A strong explanation of least privilege should cover its purpose, the problem it solves, when it is appropriate, and where it can mislead a team. In Security, use it deliberately rather than as a checklist item: connect it to observable behavior, choose clear pass/fail evidence, and record assumptions so another engineer can reproduce the result.
Real-world example
During release planning, the team used least privilege to focus validation on the most important behavior and to communicate residual risk before deployment.
Interview tip
Answer in four parts: definition, suitable use case, limitation, and a concrete project example.
Advanced5 Years Frequently asked
35. What is session management, and why does it matter in Security?
Answer: session management is a core Security concept used to make testing decisions more accurate, repeatable, and aligned with product risk.
Detailed explanation, example and interview tip
A strong explanation of session management should cover its purpose, the problem it solves, when it is appropriate, and where it can mislead a team. In Security, use it deliberately rather than as a checklist item: connect it to observable behavior, choose clear pass/fail evidence, and record assumptions so another engineer can reproduce the result.
Real-world example
During release planning, the team used session management to focus validation on the most important behavior and to communicate residual risk before deployment.
Interview tip
Answer in four parts: definition, suitable use case, limitation, and a concrete project example.
Advanced7 Years Frequently asked
36. What is TLS validation, and why does it matter in Security?
Answer: TLS validation is a core Security concept used to make testing decisions more accurate, repeatable, and aligned with product risk.
Detailed explanation, example and interview tip
A strong explanation of TLS validation should cover its purpose, the problem it solves, when it is appropriate, and where it can mislead a team. In Security, use it deliberately rather than as a checklist item: connect it to observable behavior, choose clear pass/fail evidence, and record assumptions so another engineer can reproduce the result.
Real-world example
During release planning, the team used TLS validation to focus validation on the most important behavior and to communicate residual risk before deployment.
Interview tip
Answer in four parts: definition, suitable use case, limitation, and a concrete project example.
Advanced10+ Years Frequently asked
37. What is threat modeling, and why does it matter in Security?
Answer: threat modeling is a core Security concept used to make testing decisions more accurate, repeatable, and aligned with product risk.
Detailed explanation, example and interview tip
A strong explanation of threat modeling should cover its purpose, the problem it solves, when it is appropriate, and where it can mislead a team. In Security, use it deliberately rather than as a checklist item: connect it to observable behavior, choose clear pass/fail evidence, and record assumptions so another engineer can reproduce the result.
Real-world example
During release planning, the team used threat modeling to focus validation on the most important behavior and to communicate residual risk before deployment.
Interview tip
Answer in four parts: definition, suitable use case, limitation, and a concrete project example.
Advanced7 Years
38. What security testing can an SDET automate in the pipeline?
Answer: Dependency scanning (SCA), static analysis, secret scanning, authenticated ZAP baseline scans, and API authorisation tests (IDOR, role escalation, token expiry) written as normal automated tests.
Detailed explanation, example and interview tip
Shift-left security is mostly automation plumbing: OWASP Dependency-Check or Snyk on every build, SAST on pull requests, gitleaks for secrets, and a ZAP baseline scan against the deployed environment with rules tuned to fail only on new findings. Authorisation is the part product tests miss — assert that user A cannot read user B's resource, that expired and tampered tokens are rejected, and that role-restricted endpoints return 403.
java
1@Test
2void userCannotReadAnotherUsersOrder() {
3 given().auth().oauth2(userAToken)
4 .when().get("/orders/{id}", userBOrderId)
5 .then().statusCode(403);
6}
Real-world example
An IDOR test in the regression suite caught an endpoint that returned any invoice by id after a refactor.
Interview tip
Lead with OWASP Top 10 categories you actually test — vague 'we do security testing' answers score zero.
Advanced7 Years
39. How do you add security scanning to a pipeline?
Answer: Dependency scanning and secret scanning on every commit, SAST on PRs, and a ZAP baseline scan against a deployed environment nightly — fail on new high findings only.
Detailed explanation, example and interview tip
Automate the cheap, high-signal checks first: dependency CVEs and committed secrets take minutes and catch real issues. ZAP's baseline scan is passive and safe to run against staging on a schedule, while an authenticated active scan needs coordination because it writes data. Gate on new findings rather than the absolute count, otherwise a legacy backlog makes the gate permanently red and it gets disabled. Never point an active scanner at production or a shared environment without written agreement.
A nightly ZAP baseline caught a missing Content-Security-Policy header introduced by a CDN configuration change.
Interview tip
Say 'gate on new findings, not totals' and 'never active-scan production' — both are judgement signals.
Advanced7 Years
40. What token and session flaws do you test for?
Answer: Expired and tampered tokens, wrong audience or issuer, missing scope, algorithm confusion (alg: none), token reuse after logout, and refresh-token rotation.
Detailed explanation, example and interview tip
A JWT is only trustworthy if the server verifies the signature, issuer, audience and expiry — so test each failure mode explicitly rather than assuming the library does it. Change one character in the payload and expect 401; send a token signed with a different key; send an unsigned token. After logout, replay the old access and refresh tokens: refresh must be revoked, and access should be short-lived. Also check that the token is not exposed in URLs, logs or local storage when a cookie with HttpOnly and SameSite is the safer option.
Refresh tokens stayed valid after logout for 30 days; the replay test caught it before an audit did.
Interview tip
Name alg:none and audience checks — specifics here separate real experience from a memorised list.
Advanced3 Years
41. How would you apply authorization testing in a production Security project?
Answer: Apply authorization testing through an explicit, repeatable design: define the expected behavior, automate the highest-risk path, capture useful diagnostics, and verify the result against a stable oracle.
Detailed explanation, example and interview tip
In a production Security project, start by identifying the risk that authorization testing controls and the evidence needed to prove the behavior. Keep setup, action, verification, and cleanup separate; parameterize environment-specific values; and make failures explain the business impact. Run the smallest relevant check on each change, broader coverage in the pipeline, and review flaky or slow results rather than hiding them with retries.
Real-world example
A team introduced a focused authorization testing check at the layer closest to the risk, attached diagnostics to failures, and used the result as a release signal instead of relying on manual confirmation.
Interview tip
Describe one trade-off, one failure mode, and one measurable outcome when discussing authorization testing.
Advanced3 Years
42. How would you apply injection in a production Security project?
Answer: Apply injection through an explicit, repeatable design: define the expected behavior, automate the highest-risk path, capture useful diagnostics, and verify the result against a stable oracle.
Detailed explanation, example and interview tip
In a production Security project, start by identifying the risk that injection controls and the evidence needed to prove the behavior. Keep setup, action, verification, and cleanup separate; parameterize environment-specific values; and make failures explain the business impact. Run the smallest relevant check on each change, broader coverage in the pipeline, and review flaky or slow results rather than hiding them with retries.
Real-world example
A team introduced a focused injection check at the layer closest to the risk, attached diagnostics to failures, and used the result as a release signal instead of relying on manual confirmation.
Interview tip
Describe one trade-off, one failure mode, and one measurable outcome when discussing injection.
Advanced3 Years
43. What is cross-site scripting, and why does it matter in Security?
Answer: cross-site scripting is a core Security concept used to make testing decisions more accurate, repeatable, and aligned with product risk.
Detailed explanation, example and interview tip
A strong explanation of cross-site scripting should cover its purpose, the problem it solves, when it is appropriate, and where it can mislead a team. In Security, use it deliberately rather than as a checklist item: connect it to observable behavior, choose clear pass/fail evidence, and record assumptions so another engineer can reproduce the result.
Real-world example
During release planning, the team used cross-site scripting to focus validation on the most important behavior and to communicate residual risk before deployment.
Interview tip
Answer in four parts: definition, suitable use case, limitation, and a concrete project example.
Advanced5 Years
44. How would you apply broken access control in a production Security project?
Answer: Apply broken access control through an explicit, repeatable design: define the expected behavior, automate the highest-risk path, capture useful diagnostics, and verify the result against a stable oracle.
Detailed explanation, example and interview tip
In a production Security project, start by identifying the risk that broken access control controls and the evidence needed to prove the behavior. Keep setup, action, verification, and cleanup separate; parameterize environment-specific values; and make failures explain the business impact. Run the smallest relevant check on each change, broader coverage in the pipeline, and review flaky or slow results rather than hiding them with retries.
Real-world example
A team introduced a focused broken access control check at the layer closest to the risk, attached diagnostics to failures, and used the result as a release signal instead of relying on manual confirmation.
Interview tip
Describe one trade-off, one failure mode, and one measurable outcome when discussing broken access control.
Advanced5 Years
45. How would you apply multi-factor authentication in a production Security project?
Answer: Apply multi-factor authentication through an explicit, repeatable design: define the expected behavior, automate the highest-risk path, capture useful diagnostics, and verify the result against a stable oracle.
Detailed explanation, example and interview tip
In a production Security project, start by identifying the risk that multi-factor authentication controls and the evidence needed to prove the behavior. Keep setup, action, verification, and cleanup separate; parameterize environment-specific values; and make failures explain the business impact. Run the smallest relevant check on each change, broader coverage in the pipeline, and review flaky or slow results rather than hiding them with retries.
Real-world example
A team introduced a focused multi-factor authentication check at the layer closest to the risk, attached diagnostics to failures, and used the result as a release signal instead of relying on manual confirmation.
Interview tip
Describe one trade-off, one failure mode, and one measurable outcome when discussing multi-factor authentication.
Advanced5 Years
46. What is API security, and why does it matter in Security?
Answer: API security is a core Security concept used to make testing decisions more accurate, repeatable, and aligned with product risk.
Detailed explanation, example and interview tip
A strong explanation of API security should cover its purpose, the problem it solves, when it is appropriate, and where it can mislead a team. In Security, use it deliberately rather than as a checklist item: connect it to observable behavior, choose clear pass/fail evidence, and record assumptions so another engineer can reproduce the result.
Real-world example
During release planning, the team used API security to focus validation on the most important behavior and to communicate residual risk before deployment.
Interview tip
Answer in four parts: definition, suitable use case, limitation, and a concrete project example.
Advanced7 Years
47. How would you apply sensitive data exposure in a production Security project?
Answer: Apply sensitive data exposure through an explicit, repeatable design: define the expected behavior, automate the highest-risk path, capture useful diagnostics, and verify the result against a stable oracle.
Detailed explanation, example and interview tip
In a production Security project, start by identifying the risk that sensitive data exposure controls and the evidence needed to prove the behavior. Keep setup, action, verification, and cleanup separate; parameterize environment-specific values; and make failures explain the business impact. Run the smallest relevant check on each change, broader coverage in the pipeline, and review flaky or slow results rather than hiding them with retries.
Real-world example
A team introduced a focused sensitive data exposure check at the layer closest to the risk, attached diagnostics to failures, and used the result as a release signal instead of relying on manual confirmation.
Interview tip
Describe one trade-off, one failure mode, and one measurable outcome when discussing sensitive data exposure.
Advanced7 Years
48. How would you apply dependency scanning in a production Security project?
Answer: Apply dependency scanning through an explicit, repeatable design: define the expected behavior, automate the highest-risk path, capture useful diagnostics, and verify the result against a stable oracle.
Detailed explanation, example and interview tip
In a production Security project, start by identifying the risk that dependency scanning controls and the evidence needed to prove the behavior. Keep setup, action, verification, and cleanup separate; parameterize environment-specific values; and make failures explain the business impact. Run the smallest relevant check on each change, broader coverage in the pipeline, and review flaky or slow results rather than hiding them with retries.
Real-world example
A team introduced a focused dependency scanning check at the layer closest to the risk, attached diagnostics to failures, and used the result as a release signal instead of relying on manual confirmation.
Interview tip
Describe one trade-off, one failure mode, and one measurable outcome when discussing dependency scanning.
Advanced7 Years
49. What is static analysis, and why does it matter in Security?
Answer: static analysis is a core Security concept used to make testing decisions more accurate, repeatable, and aligned with product risk.
Detailed explanation, example and interview tip
A strong explanation of static analysis should cover its purpose, the problem it solves, when it is appropriate, and where it can mislead a team. In Security, use it deliberately rather than as a checklist item: connect it to observable behavior, choose clear pass/fail evidence, and record assumptions so another engineer can reproduce the result.
Real-world example
During release planning, the team used static analysis to focus validation on the most important behavior and to communicate residual risk before deployment.
Interview tip
Answer in four parts: definition, suitable use case, limitation, and a concrete project example.
Advanced10+ Years
50. How would you apply secret scanning in a production Security project?
Answer: Apply secret scanning through an explicit, repeatable design: define the expected behavior, automate the highest-risk path, capture useful diagnostics, and verify the result against a stable oracle.
Detailed explanation, example and interview tip
In a production Security project, start by identifying the risk that secret scanning controls and the evidence needed to prove the behavior. Keep setup, action, verification, and cleanup separate; parameterize environment-specific values; and make failures explain the business impact. Run the smallest relevant check on each change, broader coverage in the pipeline, and review flaky or slow results rather than hiding them with retries.
Real-world example
A team introduced a focused secret scanning check at the layer closest to the risk, attached diagnostics to failures, and used the result as a release signal instead of relying on manual confirmation.
Interview tip
Describe one trade-off, one failure mode, and one measurable outcome when discussing secret scanning.
Advanced10+ Years
51. How would you apply penetration-test triage in a production Security project?
Answer: Apply penetration-test triage through an explicit, repeatable design: define the expected behavior, automate the highest-risk path, capture useful diagnostics, and verify the result against a stable oracle.
Detailed explanation, example and interview tip
In a production Security project, start by identifying the risk that penetration-test triage controls and the evidence needed to prove the behavior. Keep setup, action, verification, and cleanup separate; parameterize environment-specific values; and make failures explain the business impact. Run the smallest relevant check on each change, broader coverage in the pipeline, and review flaky or slow results rather than hiding them with retries.
Real-world example
A team introduced a focused penetration-test triage check at the layer closest to the risk, attached diagnostics to failures, and used the result as a release signal instead of relying on manual confirmation.
Interview tip
Describe one trade-off, one failure mode, and one measurable outcome when discussing penetration-test triage.