Preparing for a technical cybersecurity interview or corporate technical assessment requires mastering both fundamental theory and real-world operational scenarios. Below is a curated repository of 120+ high-frequency technical interview questions and comprehensive model answers structured for Junior Security Analysts, Penetration Testers, Application Security Engineers, and SOC specialists.
Answer: A Vulnerability is an inherent weakness, flaw, or bug in software, hardware, or procedural policy (e.g., an unpatched remote code execution vulnerability in Apache). A Threat is an external adversary, event, or entity capable of exploiting that vulnerability (e.g., a ransomware criminal group or malicious insider). A Risk is the mathematical intersection: the likelihood of a threat exploiting the vulnerability multiplied by the resulting financial or operational impact on the business (Risk = Threat × Vulnerability × Impact).
Answer: 1) Browser checks local DNS cache and hosts file; if missed, queries the recursive DNS resolver to resolve google.com to an IP address. 2) Browser initiates a TCP 3-way handshake (SYN, SYN-ACK, ACK) on port 443. 3) TLS 1.3 handshake occurs: ClientHello and ServerHello negotiate cipher suites and exchange ECDHE keys shares. 4) Server presents its X.509 certificate; browser verifies the signature against its trusted Root CA store. 5) Master encryption secrets are derived. 6) Browser sends an encrypted HTTP/2 GET request. 7) Server returns encrypted HTML response, and the browser parses the DOM.
Answer: Asymmetric algorithms (like RSA) rely on heavy mathematical operations (modular exponentiation of huge 2048-bit numbers) requiring thousands of CPU clock cycles, making them roughly 1,000 times slower. Symmetric algorithms (like AES-256) operate on simple substitution-permutation networks supported directly by hardware CPU instructions (Intel AES-NI), processing gigabytes of data per second with minimal CPU overhead.
Answer: Prepared statements separate the SQL query structure from the user data. The database engine compiles and optimizes the Abstract Syntax Tree (AST) with placeholders (? or :param) before any user input is processed. When the parameter value is supplied, the database engine treats it strictly as a literal data string, never as executable SQL commands. Even if the input contains ' OR 1=1 -- , the database treats the quotes and operators as literal text characters.
Answer: Stored XSS is persistent: the payload is saved in the database (e.g. comment) and executes in every user's browser who views the page. Reflected XSS is non-persistent: the payload travels in the HTTP request (e.g. search query parameter) and is reflected immediately in the response. DOM-based XSS occurs entirely in client-side JavaScript when an untrusted source (like location.search) is written into an unsafe sink (like element.innerHTML or document.write) without ever touching the server.
Answer: In a classic CSRF attack, an attacker tricks the user's browser into submitting a cross-site request from evil.com to bank.com. When a cookie has SameSite=Strict, the browser refuses to send that cookie on any cross-site request whatsoever. Because the request arrives at the bank with no session cookie, the bank rejects it as unauthenticated.
Answer: An IDS (Intrusion Detection System) sits out-of-band (passive TAP or mirror port); it inspects a copy of network traffic and generates alerts for suspicious activity without stopping or delaying traffic. An IPS (Intrusion Prevention System) sits in-line directly in the traffic flow; it actively inspects packets before forwarding them, allowing it to drop malicious packets and terminate TCP sessions immediately.
Answer: According to the RFC 3227 Order of Volatility, System RAM is highly volatile and completely lost the millisecond power is disconnected. RAM contains unencrypted private encryption keys, cleartext passwords, active network sockets, decrypted memory artifacts, and fileless malware executing purely in memory. Shutting down the machine destroys critical evidence.
Broaden your defensive and offensive security knowledge across our curriculum:
Gain practical hands-on experience backing up the answers in technical interviews.
Focused academic viva questions for BCA, MCA, and Computer Science students.
Scenario-based interview questions tested by Tier 2 SOC and AppSec interviewers.
Quick-reference summary of protocols, port numbers, crypto algorithms, and HTTP codes.