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
41 practiced

Evaluate the feasibility of using mutual TLS (mTLS) between mobile clients and backend APIs. Explain how client certificates or keys would be provisioned and protected on iOS and Android (key generation in the Secure Enclave/KeyStore), platform support constraints, certificate rotation strategies, revocation mechanisms, and the risk-mitigation steps to take if a private key is extracted from a compromised device.

EasyTechnical
67 practiced

Describe XML External Entity (XXE) attacks: how attackers craft them, what parser configurations make an application vulnerable, and typical impacts such as local file disclosure, SSRF, and port scanning. Explain concrete mitigations including parser hardening (disabling DTDs and external entity resolution), preferring safer data formats where possible, and egress restrictions as defense in depth.

HardTechnical
36 practiced

Propose a comprehensive mitigation strategy for insecure deserialization across Java, Python, and Node services. Cover code-level patterns (type whitelisting, safe serializers, schema validation), runtime protections (serialization filters, sandboxing, capability restrictions), how you would detect both in source code and at runtime, recommended libraries and formats, and a pragmatic, incremental migration plan for legacy services that currently rely on native serialization.

EasyTechnical
37 practiced

Define insecure deserialization, describe how it leads to remote code execution or a logic-bypass, and list the common language-specific risks (Java native serialization, Python pickle, PHP unserialize()). Explain where in an application deserialization typically happens (cookies, RPC calls, message queues), recommend secure design patterns and runtime mitigations, and note the detection signals you would look for in application logs and crash traces.

MediumTechnical
40 practiced

You need to fuzz a JSON-based REST API to discover input-validation and parsing bugs. Create a fuzzing plan: what you would target (field types, boundary values, malformed JSON, encoding edge cases), what harness or tooling you would use, and how you would triage crashes or unexpected behavior into real findings versus noise.

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.