InterviewStack.io LogoInterviewStack.io

Security Testing Questions

Testing software for security weaknesses as part of the quality process. Covers security test automation and tooling, validating input handling and authorization, cryptographic validation, and integrating security checks into the pipeline. Focused on the tester/engineer perspective on finding and preventing vulnerabilities.

HardTechnical
71 practiced

When designing tests for edge cases and invalid inputs, how do you ensure security concerns (injection, auth bypasses, excessive resource usage) are covered without coupling tests tightly to implementation details? Suggest test types and levels (unit, integration, fuzzing) and how to maintain test resilience as implementation evolves.

MediumTechnical
53 practiced

Outline a practical fuzz testing strategy for a native image parsing library (e.g., PNG). Cover corpus generation, mutation vs generation fuzzers, sanitizers (ASan, UBSan), minimization/shrinking, triage of crashes, and CI integration for daily fuzzing runs.

HardTechnical
52 practiced

Cryptographic code often requires deterministic test vectors. Describe a test plan that ensures correctness of crypto primitives: use standard test vectors, test invalid inputs (bad key sizes, truncated ciphertexts, invalid padding), check behavior on boundary key sizes, and avoid randomness by injecting deterministic nonces. Explain how to design unit tests and fuzzing for crypto parsing layers.

HardTechnical
67 practiced

Security-sensitive errors must not leak secrets. Design a testing checklist and automated checks to ensure error messages, logs, and alerts do not contain secrets (API keys, PII). Include sample regex-based checks, a process for remediation, and how to validate third-party libraries don't log secrets.

MediumTechnical
72 practiced

Explain how fuzz testing complements unit and property-based testing. Give a concrete example of a target (e.g., JSON parser, image decoder) where fuzzing likely finds bugs, and describe how you would integrate a fuzzing tool into CI, triage crashes, and manage corpus/seed input growth.

That is every published Security Testing question for Software Engineer so far. Browse the other topics in this category, or practice this one interactively.