InterviewStack.io LogoInterviewStack.io

Secure Coding and Application Security Questions

Writing and reviewing code that resists attack. Covers the OWASP Top Ten and common web vulnerabilities (XSS, SQL injection, CSRF), input validation, secure coding practices and security code review, static application security testing (SAST), API and HTTP security, database and frontend security, and mobile app security. The application-layer defense discipline for engineers building software.

HardTechnical
40 practiced

For a payment service that stores PII and handles card transactions, enumerate the OWASP Top Ten and relevant CWE categories that are most applicable, and propose mitigations by design (network segmentation, tokenization, encryption, least privilege). Describe your testing strategy (SAST/DAST, penetration-test scope) and how these controls map to PCI-DSS control objectives.

HardTechnical
33 practiced

An attacker used SSRF to reach an internal configuration service, retrieved credentials, and exfiltrated them by appending them to application log URLs visible to a third-party log-aggregation service. Describe the full attack chain, and for each step name a concrete control that would have broken it (prevention or detection), including how you would harden secrets handling and logging to prevent this exfiltration path specifically.

HardTechnical
35 practiced

You discover a legacy Java service deserializes untrusted data using native Java serialization. Explain how an attacker could craft a gadget chain to achieve remote code execution, how you would assess whether risky gadget classes (for example from common libraries like Apache Commons Collections) are present on the classpath, and enumerate robust mitigation options that are safe to apply in a legacy environment that cannot be rewritten quickly.

MediumBehavioral
41 practiced

Tell me about a time you convinced senior leadership to fund an application security initiative such as SAST, DAST, or SCA tooling. Describe the context and stakeholders, the major objections you faced, the data and metrics you used to make your case, how you addressed the concerns, and the measurable outcome.

EasyTechnical
69 practiced

OWASP A09 highlights Security Logging and Monitoring Failures. Design a minimum telemetry model for a web application to detect exploitation attempts of common vulnerability classes such as credential stuffing, SQL injection, and SSRF: list the events you would log, the context fields to capture, correlation IDs, retention considerations, and PII-handling guidelines for each event.

Unlock Full Question Bank

Get access to all Secure Coding and Application Security interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.