Top 100 cybersecurity interview questions, with answers you can actually say
100 cybersecurity interview questions for intern and junior roles, grouped by topic, each with a short answer you can say out loud and defend when they push back.
Here are 100 cybersecurity interview questions, grouped the way interviews actually group them, each with an answer short enough to say out loud. They cover networking, fundamentals, cryptography, web security, identity, SOC work, cloud, malware, AI security and the behavioural round. I put this list together from the questions I was asked, the ones people who interviewed before me were asked, and the ones I now think I should have been asked.
The answers are deliberately short. An interview is a conversation, not a recitation, and a one-sentence answer that invites a follow-up beats a paragraph that closes the door. Where I link a longer post, it's because the follow-up they'll ask is the one that post answers.
How cybersecurity interview questions actually go at this level
An intern or junior interview is rarely a quiz. It runs as a loose conversation where the interviewer picks a topic, asks a plain question, then follows the thread as far as you can take it. The first question is easy on purpose. The third one is where they learn something.
As far as I can tell, they are checking two things.
The first is whether you understand the mechanism or just the vocabulary. Anyone can say "SQL injection is when an attacker puts SQL in an input field". Fewer can say why the database can't tell the difference, and what a parameterised query changes. If you can explain the boundary an attack crosses, you can reason about an attack you've never seen, and that is what they want to hire.
The second is whether you'll say "I don't know" cleanly. Interviewers at this level expect gaps. What they don't want is someone who bluffs, because a bluffer in a SOC seat is dangerous. The honest version is: "I haven't worked with that. My guess would be X, because of Y. Is that close?" That answer scores better than a confident wrong one, every time.
One practical note. Weight your prep towards the job description: a SOC role goes deep on logs and incident response and barely touches cryptography, and an application security role is the reverse. The Daily Adversary gives you three questions a day for the habit of answering aloud.
Networking and operating system basics
Interviewers start here because it's hard to fake. If you can't describe what happens when you type a URL, nothing after this section lands.
- What happens when you type a URL into a browser and press Enter? The browser resolves the hostname to an IP address through DNS, opens a TCP connection to that address on port 443 (or 80 for plain HTTP), negotiates TLS, sends an HTTP request, and renders the response. Each of those steps is a place an attacker can interfere, which is why the question is asked.
- What is the difference between TCP and UDP? TCP is connection-oriented: it sets up a session with a handshake, numbers every segment, and retransmits anything lost. UDP just sends datagrams with no handshake and no delivery guarantee. HTTP and SSH ride on TCP; DNS queries and most video streaming use UDP because speed matters more than completeness.
- Describe the TCP three-way handshake. The client sends SYN, the server replies SYN-ACK, the client replies ACK, and both sides now agree on sequence numbers. A SYN flood abuses this by sending the first step thousands of times and never finishing, so the server holds half-open connections until it runs out of room.
- What is DNS and why does it matter for security? DNS translates names to IP addresses. Anyone who can answer that lookup falsely can send you to the wrong server. DNS logs are also one of the best early-warning sources in a SOC, because malware has to look up its command server too.
- What is the difference between a switch, a router and a firewall? A switch forwards frames between devices on the same local network using MAC addresses. A router forwards packets between different networks using IP addresses. A firewall sits at a boundary and decides which traffic is allowed through, based on rules about addresses, ports and, in modern ones, application content.
- What is a port, and name five common ones. A number that tells the operating system which program a packet is for. 22 is SSH, 53 is DNS, 80 is HTTP, 443 is HTTPS, 3389 is RDP. Interviewers like 3389 and 445 (SMB) because those should almost never face the internet.
- What is NAT? Network Address Translation lets many devices with private addresses share one public address, by rewriting the source address and port on the way out and reversing it on the way back. It accidentally acts as a weak inbound filter, since unsolicited traffic from outside has no mapping to follow.
- What is ARP and what is ARP spoofing? ARP maps an IP address to a MAC address on a local network, and it does so by asking out loud with no authentication. ARP spoofing is answering those questions falsely so traffic for the gateway comes to you first. It only works on the same local segment, which is why public Wi-Fi is the classic setting for it.
- What is a VLAN? A virtual LAN splits one physical switch into separate logical networks so that devices in different VLANs can't talk directly without going through a router. It's the cheapest form of network segmentation and the first thing a defender reaches for when guest devices and servers are sharing a switch.
- Explain the difference between a process and a thread. A process has its own memory space; a thread runs inside a process and shares that memory with its siblings. The process boundary is enforced by the operating system, which is why crossing it is a big deal.
- What is the difference between a user and the root or Administrator account? A normal user can only touch their own files and run programs with their own permissions. Root (on Linux) or Administrator (on Windows) can change anything on the system, including the controls that would otherwise stop them. Almost every "the malware got everything" story has a step where it went from the first to the second.
- What are file permissions on Linux and what does 777 mean? Each file has read, write and execute permission for its owner, its group and everyone else, each set is a digit from 0 to 7, and 777 means everyone can do everything. The honest answer to "when is 777 fine" is "almost never on anything that matters".
- Where would you look for logs on a Linux server, and on Windows? On Linux, under /var/log, with authentication events usually in auth.log or secure, and journalctl on systemd machines. On Windows, Event Viewer, specifically the Security, System and Application logs, plus PowerShell and Sysmon logs if they've been turned on.
- What is asymmetric routing, and why does a firewall care? A packet and its reply take different paths. A stateful firewall that only sees one direction can't match the reply to a connection it never saw, and drops it.
- What is a VPN and what does it actually protect? A VPN wraps your traffic in an encrypted tunnel to a server you trust, so the local network can't read or alter it. It protects you from the coffee shop; it does not protect you from the website you're visiting, from the VPN provider itself, or from malware already on your laptop.
Security fundamentals: CIA, threat modelling and risk
- What is the CIA triad? Confidentiality, integrity and availability: data is only seen by the people who should see it, isn't changed without authorisation, and is there when needed. Most real decisions trade one against another, like encryption that adds confidentiality but loses availability if the key goes missing.
- Give an example of an attack on each leg of the triad. A data leak attacks confidentiality. A tampered invoice PDF or a modified database row attacks integrity. A DDoS or a ransomware encryption attacks availability. Ransomware is a nice example because it hits availability first and then, with the extortion leak, confidentiality too.
- What is the difference between a vulnerability, a threat and a risk? A vulnerability is a weakness, like an unpatched server. A threat is something that could exploit it, like a worm that targets that patch. Risk is the combination: how likely it is and how bad it would be. You can have a vulnerability with almost no risk if nothing can reach it.
- What is threat modelling? The structured habit of asking four questions about a system: what are we building, what can go wrong, what are we going to do about it, and did we do a good job. Frameworks like STRIDE prompt the second question so you don't only think of attacks you've already seen.
- What is STRIDE? It's a checklist of threat categories: Spoofing, Tampering, Repudiation, Information disclosure, Denial of service and Elevation of privilege. You walk each component of a system and ask which of the six apply. It originated at Microsoft and is still the most commonly taught model.
- What is defence in depth? Layering controls so that one failing doesn't mean the whole thing fails. The honest version includes the cost: every layer has to be maintained, and a layer nobody maintains becomes the weak point rather than a backup.
- What is the principle of least privilege? Every user, process and service gets only the access it needs to do its job, and no more. The reason it matters is blast radius: when something is compromised, least privilege is what decides how far the attacker gets with it.
- What is the difference between authentication and authorisation? Authentication is proving who you are; authorisation is what you're allowed to do once that's established. Most access-control bugs are authorisation bugs: the app checked that you were logged in but not that the record you asked for was yours.
- What is a trust boundary? A line in a system where data crosses from something you control into something you control differently, or from something you don't control at all. User input crossing into your database query is a trust boundary; so is a document from the internet crossing into an LLM's context. Most attacks are something crossing a boundary without being treated as untrusted.
- What is risk acceptance, and when is it legitimate? It's a documented decision not to fix a risk, usually because the fix costs more than the exposure. It's legitimate when someone with the authority to own the consequence signs it, and it's not legitimate when it's just a way of closing a ticket.
- What's the difference between a policy, a standard and a procedure? A policy says what the organisation requires ("all remote access must use MFA"). A standard says the specific way ("a FIDO2 key or an authenticator app, not SMS"). A procedure is the steps to make it so.
- What is the difference between a vulnerability scan and a penetration test? A scan is automated and tells you what known weaknesses exist. A penetration test has a human trying to actually chain weaknesses into real access, within an agreed scope. Scans find the obvious; tests find the thing the scanner couldn't connect.
- What is the MITRE ATT&CK framework? A public catalogue, at attack.mitre.org, of the tactics and techniques attackers really use, organised by stage of an intrusion. Defenders use it to ask "which of these can we detect" and to describe an incident in shared language.
Cryptography at concept level
Nobody expects an intern to implement a cipher. They expect you to know what each tool is for and the mistake people make with each one.
- What is the difference between encryption and hashing? Encryption is reversible with a key; hashing is one-way. You encrypt things you need to read again, like a message. You hash things you only need to compare, like a password, because then the stored value can't be turned back into the original.
- What is the difference between symmetric and asymmetric encryption? Symmetric uses one shared key for both directions, and it's fast. Asymmetric uses a public key to encrypt and a private key to decrypt, which solves the problem of how to share the key in the first place. In practice, asymmetric is used to agree a symmetric key, and then symmetric does the bulk work.
- What is a digital signature? It's the reverse of asymmetric encryption: the signer uses their private key to produce a signature over a hash of the data, and anyone with the public key can check it. It proves two things at once, who signed and that the content hasn't changed since.
- Why do we salt password hashes? A salt is a random value added to each password before hashing, so two users with the same password get different hashes and an attacker can't precompute a table of hashes for common passwords. It's stored in plain text next to the hash; its job is uniqueness, not secrecy.
- Why shouldn't you use MD5 or SHA-256 directly for passwords? They're fast, and fast is bad for password hashing because the attacker can try billions of guesses a second. Password hashing uses deliberately slow, memory-hungry functions like bcrypt, scrypt or Argon2. SHA-256 is fine for integrity checks, just not for this.
- What is TLS and what does the handshake achieve? TLS is the protocol under HTTPS. In the handshake, the client checks the server's certificate against a trusted certificate authority, and the two sides agree on a session key using asymmetric cryptography. After that, everything is symmetrically encrypted with that key.
- What is a certificate authority and why is the model fragile? An organisation browsers trust to vouch that a certificate belongs to the domain it claims. Your browser trusts a long list of them, and any one issuing a bad certificate undermines the whole system. Certificate transparency logs exist to make such issuance visible.
- What is perfect forward secrecy? Using a fresh, ephemeral key for each session so that if the server's long-term private key is stolen later, previously recorded traffic can't be decrypted. Modern TLS does this by default through ephemeral Diffie-Hellman.
- What is the difference between encoding, encryption and obfuscation? Encoding (like Base64) changes the representation and anyone can reverse it. Encryption needs a key. Obfuscation makes something harder to read but offers no real guarantee. An interviewer will love you if you say that Base64 in a token is not protection.
- What is a nonce or IV and why does reusing one matter? A non-repeating value fed into encryption so that encrypting the same message twice gives different output. Reuse it with some ciphers and an attacker can recover plaintext or forge messages.
- What is end-to-end encryption? The message is encrypted on the sender's device and only decrypted on the recipient's, so the service in the middle can relay it but not read it. Metadata, who talked to whom and when, is usually still visible to the service.
Web application security
- What is the OWASP Top 10? A regularly updated list, published at owasp.org, of the most common and serious categories of web application risk. Broken access control, injection, cryptographic failures and security misconfiguration are the ones that come up in interviews most. Know that it's a category list, not a vulnerability list.
- What is SQL injection and how do you stop it? User input gets concatenated into a SQL query string, so the database can't tell where the query ends and the data begins. The fix is parameterised queries (prepared statements), which send the query and the data separately so the data can never become syntax. Kushagra's post on what SQL injection is walks through the boundary properly.
- What is cross-site scripting (XSS)? Attacker-controlled text ends up in a page as HTML or JavaScript instead of inert text, and runs in other users' browsers with their session. Stored XSS lives in the database; reflected rides in a link; DOM XSS happens in client-side code. The fix is context-appropriate output encoding, with CSP as a backstop.
- What is CSRF? A cross-site request forgery tricks a logged-in user's browser into sending a request to a site that trusts that browser's cookies. The defence is a per-session token the attacker can't read, plus the SameSite cookie attribute, which stops the cookie being sent on cross-site requests in the first place.
- What is broken access control, and why is it number one? The app authenticates you but fails to check whether you're allowed the specific thing you asked for. It's number one because a scanner can't find it; someone has to understand what the app is supposed to allow.
- What is SSRF? Server-side request forgery is when you can make the server fetch a URL you choose. It matters because the server often has access the user doesn't, like internal services or a cloud metadata endpoint that hands out credentials. The fix is an allowlist of destinations, not a blocklist.
- What is a Content Security Policy? A response header that tells the browser which sources it may load scripts, styles, images and so on from. Done well, it means injected script has nowhere to run from. Done badly, with
unsafe-inlineor a wildcard, it does nothing while looking like it does, which is the point of why your CSP probably does nothing. Build one with the CSP builder and you'll see how quickly the trade-offs appear.
- Name four security headers and what each does. Strict-Transport-Security forces HTTPS on future visits. Content-Security-Policy restricts where resources load from. X-Content-Type-Options: nosniff stops the browser guessing a file type. X-Frame-Options or the frame-ancestors CSP directive stops the page being embedded in someone else's frame for clickjacking. You can read them off any site with one curl command, as in reading your security headers in one command.
- What is HSTS and what is the preload list? Strict-Transport-Security tells the browser to only ever use HTTPS for this domain for a set time, which closes the window where a first plain-HTTP request can be intercepted. The preload list ships that instruction inside the browser so even the very first visit is protected.
- What is a JWT and what's the catch? A JSON Web Token is a signed blob of claims, usually a user ID and an expiry, that a server can verify without a database lookup. The catch is exactly that: because the server doesn't look anything up, it can't revoke one. "Logging out" just deletes the client's copy; anyone who stole it still has a valid token until expiry. Your JWT cannot be logged out covers what to do about it, and the JWT inspector lets you decode one to see what's inside.
- What's the difference between the JWT header, payload and signature? The header says which algorithm signed it. The payload is the claims. The signature is over both. The famous bug is accepting
alg: noneor confusing an asymmetric key for a symmetric one, so the attacker can sign their own payload. The payload is Base64-encoded, not encrypted, so never put secrets in it.
- What are cookie flags and which ones matter? HttpOnly stops JavaScript reading the cookie, which limits what XSS can steal. Secure stops it being sent over plain HTTP. SameSite controls whether it goes on cross-site requests, which is your CSRF defence. A session cookie without all three is a finding.
- What is session fixation? The attacker sets a session ID in the victim's browser before login, and the app keeps using that ID after login, so the attacker now shares the authenticated session. The fix is to issue a new session ID at the moment of authentication.
- What is an IDOR? Insecure direct object reference: the app exposes an internal identifier, like an invoice number, and uses it without checking ownership. It's broken access control in its simplest form. The fix is an authorisation check on every object access, server-side, every time.
- What is rate limiting and what does it prevent? Capping how many requests a client can make in a window, so credential stuffing, OTP brute force and scraping stop being cheap. The cost is that it can lock out real users behind a shared address.
- What is the difference between a WAF and fixing the code? A web application firewall inspects requests for known attack patterns and blocks them. It buys time and catches noisy attacks, but it's pattern-matching, so a determined attacker rewrites the payload until it passes. The code fix removes the bug; the WAF just makes it harder to reach.
- What is a supply chain attack in a web context? Your app runs code you didn't write: npm packages, a tag manager, a CDN script. If any of those is compromised, it runs with your app's permissions. Ritika's post on dependencies running code before your code does explains the install-time part, which surprises most developers.
Identity and authentication
- What are the three factors of authentication? Something you know (a password), something you have (a phone or key), something you are (a fingerprint). MFA means at least two different factors, not two of the same type. A password and a security question are both "know", so that's not MFA.
- Rank SMS codes, authenticator apps and hardware keys. SMS is the weakest: SIM swap intercepts it, and you'll type the code into a fake page. Authenticator codes can't be intercepted but are still phishable the same way. A FIDO2 key or a passkey checks the website's origin before it answers, so a fake page gets nothing. Yash's post on passkeys vs passwords vs 2FA is the comparison I'd send a friend.
- What is a passkey? A public-private key pair stored on your device, where the private key never leaves and the website only ever holds the public key. The browser only signs a login challenge for the exact origin that registered the key, so there is no password to steal and no code to type into a phishing site.
- What is a credential stuffing attack? Taking username and password pairs from one breach and trying them on other sites, because people reuse passwords. It's automated and cheap. Rate limiting, MFA and checking new passwords against known-breached lists are the defences; unique passwords from a manager are the user-side fix.
- Why is password complexity policy mostly wrong? Length beats complexity. A long passphrase is harder to brute-force than a short string with symbols, and forced rotation just produces predictable patterns. Yash's post on why password strength meters lie makes the case, and the password strength tool shows the maths honestly.
- Explain OAuth 2.0 in one sentence. It's a way for a user to let one app act on their behalf at another service, by having the service issue a limited token to the app instead of the user handing over their password.
- What's the difference between OAuth and OpenID Connect? OAuth is about delegated authorisation, letting an app do things. OpenID Connect is a layer on top that adds identity, telling the app who the user is through an ID token. "Sign in with Google" is OIDC.
- What is SSO and what's its main risk? Single sign-on means one identity provider authenticates you for many apps. The benefit is one place to enforce MFA and one place to cut access. The risk is the same sentence read the other way: compromise the identity provider account and you have everything.
- What is a SIM swap attack? The attacker convinces the mobile carrier to move the victim's phone number to a SIM they control, often by social engineering a support agent. Every SMS code now goes to them. It's why SMS is the weakest second factor and why your phone account needs its own PIN.
- How do you handle offboarding from a security point of view? Disable the identity provider account first, because that cuts most things at once. Then rotate any shared secrets they knew, revoke API tokens and OAuth grants they created, and check for personal forwarding rules in their mailbox. Komal's post on who still has access to your accounts is the personal-account version of the same audit.
SOC and incident response
If you're interviewing for a SOC seat, this section is most of the interview. Ritika's post on how to become a SOC analyst goes into what the job is day to day.
- What's the difference between an event, an alert and an incident? An event is anything logged. An alert is an event or pattern a rule decided was worth a look. An incident is an alert a human confirmed as real and harmful. Most of tier 1 work is turning alerts into either incidents or closed tickets with a reason.
- What is a SIEM? A system that collects logs from everything, normalises them, and runs detection rules and searches across them. The value is correlation: a failed login on one system means nothing, a failed login followed by a success from a new country followed by a mailbox rule creation is a story.
- What is an IOC and what is a TTP? An indicator of compromise is an artefact: a hash, an IP, a domain. A tactic, technique and procedure is a behaviour: "uses scheduled tasks for persistence". IOCs are cheap for an attacker to change; TTPs are expensive, which is why detection based on behaviour lasts longer.
- How would you triage an alert for a suspicious login? First, is it really the user: new device, new location, impossible travel, time of day. Second, what did the session do afterwards: mail rules, password or MFA changes, data access. Third, decide, and write the reason down.
- What is the first hour of an account compromise about? Order. Change the password before you kill sessions and the attacker's existing session may stay valid; remove their recovery email before you change the password and they can't get back in. Komal's post on the first hour of a hacked account makes the case that it's an ordering problem, and the hacked account triage tool is the checklist version.
- Describe the ransomware lifecycle. Initial access, usually phishing, an exposed remote service or a stolen credential. Then privilege escalation and lateral movement, quietly, for days or weeks. Then data is copied out for the extortion half. Only at the end does encryption run, often at a weekend. Ritika's post on what ransomware is covers what actually stops each stage.
- What is lateral movement? Once inside one machine, the attacker uses it to reach others, usually by reusing credentials found on it or abusing legitimate admin tools like RDP, PsExec or WMI. Network segmentation and not reusing local admin passwords are what make it slow.
- What is the difference between containment, eradication and recovery? Containment stops the spread: isolate the host, disable the account. Eradication removes the attacker's foothold: malware, persistence, backdoor accounts. Recovery restores service from clean sources. Doing recovery before eradication is how you get hit twice.
- What is persistence, and name three mechanisms. How an attacker survives a reboot. On Windows: a registry Run key, a scheduled task, a new service. On Linux: a cron job, a modified shell profile, an added SSH authorised key.
- What is the kill chain? A model that breaks an intrusion into stages, from reconnaissance through delivery, exploitation, installation, command and control, and actions on objectives. The point is that breaking any one stage breaks the attack, so you don't need to stop everything, just something.
- What is a false positive and why do they matter? An alert that fired on benign activity. Individually cheap; collectively they burn analysts out and train them to close without looking. Tuning rules is part of the job, not an admission of failure.
- What would you do if you found a credential in a public git repository? Treat it as compromised, rotate it immediately, then look at logs for use of it since the commit date. Deleting the commit is not enough because the history and any forks still hold it. Kushagra's post on finding the secrets already in your git history covers finding them before someone else does.
- What is a playbook and why do SOCs use them? A written sequence of steps for a known alert type, so the response doesn't depend on who's on shift at 3am. A good playbook includes the decision points and the evidence to collect, not just the actions.
- What's the difference between EDR and antivirus? Antivirus matches files against known-bad signatures. Endpoint detection and response records process, network and file behaviour continuously, flags suspicious patterns, and lets an analyst isolate the host or pull a timeline remotely. EDR finds the thing antivirus has never seen before.
Cloud and infrastructure
- What is the shared responsibility model? The cloud provider secures the infrastructure; you secure what you put on it. The provider will patch the hypervisor; it will not stop you making a storage bucket public. Most cloud breaches are on the customer's side of the line.
- What is IAM in a cloud context? Identity and access management: the users, roles, and policies that define who and what can do which actions on which resources. Least privilege here is harder than it sounds because the policy language is huge, and the common failure is a role with wildcard permissions nobody meant to grant.
- Why is a public storage bucket such a common finding? Because a bucket is often created once and never looked at again. The fix is an account-level block on public access, plus scanning for exceptions.
- What is the cloud metadata endpoint and why does SSRF make it dangerous? Cloud instances can fetch their own credentials from a local-only address. If an attacker can make the server fetch a URL of their choosing, they can fetch that address and walk off with the instance's role credentials. Newer metadata services require a token to make this harder.
- What is infrastructure as code and why does security like it? Defining servers, networks and permissions in versioned files instead of clicking in a console. Security likes it because every change is reviewable, you can scan the files for misconfigurations before they exist, and drift from the intended state is visible.
- What is a security group versus a network ACL? Both filter traffic in a cloud network. A security group is attached to an instance and is stateful: allow the request and the reply is allowed automatically. A network ACL applies to a whole subnet and is stateless, so you must allow both directions explicitly.
- What is container security, in a sentence each for image and runtime? For the image: scan it for known-vulnerable packages, build from a minimal base, and don't bake secrets into it. For runtime: don't run as root inside the container, drop capabilities you don't need, and remember that the kernel is shared, so a container is not a VM.
- What is patch management and why is it hard? Keeping every system updated against known vulnerabilities. It's hard because patches break things and because there are always more systems than the inventory says. Knowing what you have is the real prerequisite.
Malware and phishing
- What is phishing, mechanically? A message that borrows the trust you have in someone else, a bank, a colleague, a courier, to get you to take an action you wouldn't take for a stranger. The channel doesn't matter: email, SMS, a phone call, a QR code. My post on what phishing is argues that every variant is the same mechanism in different clothes.
- How do you check where a link really goes without clicking? Hover and read the status bar, or long-press on a phone, and read the domain right to left from the first single slash. A link's visible text is just text. Where does this link actually go walks through the cases that fool people, including lookalike characters.
- What do SPF, DKIM and DMARC do? SPF lists which servers may send mail for a domain. DKIM signs the message so changes are detectable. DMARC tells receivers what to do when both fail, and asks for reports. Together they prove the domain, not the person, which is the point Yash makes in email authentication proves a domain, not a sender. You can inspect the headers of a suspicious mail with the phishing email analyser.
- What's the difference between a virus, a worm and a trojan? A virus attaches to another file and needs a user to run it. A worm spreads by itself across a network using a vulnerability. A trojan pretends to be something useful so you install it on purpose. Most modern malware is a trojan at the door and worm-like once inside.
- What is a command and control (C2) server? The machine that malware calls home to for instructions and to send data out. Beaconing, the regular check-in, is one of the most detectable things malware does, which is why DNS and proxy logs matter so much.
- What is business email compromise? A phishing attack with no malware at all. The attacker gets into, or convincingly imitates, a real mailbox, and uses it to redirect a payment or request a transfer. Its defences are process ones: a second channel to confirm bank detail changes, not a better spam filter.
- How would you explain social engineering to a non-technical colleague? It's getting someone to do something by making it feel normal, urgent or expected. The trick isn't technical; it's that the person was given no time to think. Any process where "slow down and check with someone" is allowed is a defence.
AI security
- What is prompt injection? Text the model was meant to read gets treated as instructions to obey, because an LLM has no reliable way to separate the two. Simon Willison coined the term. Direct injection is the user typing the attack; indirect is the attack arriving inside a document, email or web page the model reads on the user's behalf. Kushagra's post on what prompt injection is is where I'd start.
- What is the lethal trifecta? Simon Willison's name for an agent that has all three of: access to private data, exposure to untrusted content, and a way to send data out. With all three, an injected instruction in a single email can exfiltrate what the agent can see. Remove any one leg and the attack chain breaks; The lethal trifecta explains why filtering the prompt isn't removing a leg.
- Name a few OWASP Top 10 for LLM categories. Prompt injection, sensitive information disclosure, supply chain (models and datasets you didn't train), improper output handling (treating model output as trusted code or HTML), and excessive agency (giving the model tools it doesn't need). Mukul's post on the OWASP LLM Top 10 is the practitioner's walkthrough, and the AI audit tool scores an app against the list in the browser.
- Why is "we filter the input for bad prompts" not a sufficient defence? Because the attack is natural language and there are infinite ways to say the same thing, so a filter is a blocklist against a language. Real reductions come from design: limiting what the model can do, keeping untrusted content out of contexts with tool access, and treating model output as untrusted before it reaches a browser or a shell.
Behavioural questions, and how an intern honestly answers them
These aren't trick questions. They're asked because a junior hire's attitude predicts their first year better than their knowledge does. The honest answer is almost always the best one.
- Tell me about a time you found a security problem. What did you do? Pick something small and true: a public repository with a key in it, a friend's account you helped recover. Describe what you noticed, what you checked before you were sure, who you told and how. If you've never had one, say so, and describe what you'd do, including the step where you tell the owner rather than poking further.
That's the hundred. The behavioural round goes beyond one question, though, so here is how I'd answer the others I've been asked, since these are where people freeze.
"Why security?" Have a real answer. Mine is that I like the moment where a thing that looked solid turns out to have a seam in it, and I'd rather be the person who finds the seam than the one who's surprised by it. Yours will be different. Don't say "it's a growing field".
"What do you do to keep learning?" Name specifics: a lab platform, a podcast, a blog, a CTF you've done. Vague answers here read as "nothing". If you've done the beginner routes in learn ethical hacking for free, say which ones and what you got stuck on.
"How do you handle not knowing something in a live situation?" Say the truth: you say you don't know, you say what you'd check first, and you ask. Then give an example of doing that. In a SOC, this answer is the hire-or-don't question.
"Do you have any questions for us?" Always yes. Ask what a normal week looks like, what the last junior person on the team is doing now, and what the team's biggest unsolved problem is. The answers tell you whether you want the job.
Komal's post on whether cybersecurity is an entry-level field looks at whether the "no entry-level roles" claim is true. The short version is that the roles exist but they're competitive, and the people who get them can show evidence of work rather than evidence of interest. Bring the evidence: a lab writeup, a small tool, a blog post. The behavioural round is where you mention it.
Frequently asked questions
How many of these should I be able to answer before I apply? For an internship or a first SOC role, I'd want networking, fundamentals, SOC and phishing solid, and at least a sentence on everything else. Nobody expects all hundred. Sixty answered well, and "I'm not sure, but I think" said cleanly for the rest, is ready.
Are these the same questions for a penetration testing interview? The web application and cryptography sections overlap heavily, and a pentest interview will go much deeper on them, often with a hands-on exercise. The SOC and incident response sections matter less there. Kushagra's post on how to become a penetration tester describes that track separately.
Should I memorise the answers? No, and interviewers can tell when you have. Read each answer, close the page, and explain the idea out loud. If you can't, you don't know it yet, and that's the section to learn properly rather than re-read.
What if I get asked something that's not on this list? You will. Say what you do know about the area, reason towards an answer from the mechanism, and ask whether you're on the right track. They're checking how you think far more than what you've stored.
Do I need certifications to pass these interviews? Not for the questions above; they're all answerable from study and practice. Certifications help you get the interview more than they help you in it. Komal's post on whether CEH is worth it is a fair look at the most-advertised one.
Pick the section that matches the role, read it today, and tomorrow answer those questions aloud without looking. Then do the Daily Adversary for a week. If you can explain the mechanism to a friend who isn't in security, you can explain it to an interviewer who is.