All specialtiesTechnology · Job interview

Cybersecurity

Security interviews reward clear thinking under pressure. Practise explaining threats, defences and your decisions in short, calm English sentences.

Words → phrases → sentences → speaking

Try SpeakRole ↗
Job interviewCybersecurity
V

How would you respond to a suspected credential leak?

0:18
Interviewer question

Cybersecurity

Security interviewers listen for two things: a structured way of thinking about risk, and the ability to explain it to people who are not security experts. A long list of attacks without a plan for defence does not impress them. A short, clear explanation with one concrete example does.

For each topic, use this order: what the threat or control is, how it works, and what you would do in a real system. Add the trade-off when there is one, because security always competes with usability, speed and cost.

  • ✓Words → phrases → sentences → speaking
  • ✓Answer meaning
  • ✓Language

Common questions and sample answers

How do you approach threat modelling?

What the interviewer wants to hear. A repeatable method: a diagram of the system, trust boundaries, a threat checklist, and a decision for each risk.

Sample answer to practise aloud

Threat modelling means thinking like an attacker before the system is built or changed. I start by drawing the system: the components, the data flows and the trust boundaries, for example where data comes from the internet. Then I ask what can go wrong at each point. A simple checklist is STRIDE: spoofing, tampering, repudiation, information disclosure, denial of service and elevation of privilege. I rank the threats by impact and likelihood, and for each one I decide to fix it, reduce it, accept it or transfer it. The result is a short list of actions for the backlog. It is cheaper to find a design problem on a diagram than in production.

What is the difference between authentication and authorisation?

What the interviewer wants to hear. Two separate questions: who are you, and what may you do. Plus the principle of least privilege and a typical access-control bug.

Sample answer to practise aloud

Authentication answers the question: who are you? Authorisation answers the question: what are you allowed to do? They are separate steps. For authentication, I use a proven solution, such as an identity provider with OpenID Connect, and multi-factor authentication for sensitive accounts. I never build my own password system. For authorisation, I check permissions on the server for every request, not only in the user interface. I follow the principle of least privilege: each user, service and token gets only the access that it needs, and nothing more. A typical bug is a user changing an ID in the URL and seeing the data of another person. That is broken authorisation, and I test for it.

Can you explain SQL injection and cross-site scripting, and how to prevent them?

What the interviewer wants to hear. A clear mechanism for each attack, and the right fix: separation of data and code, not only input filtering.

Sample answer to practise aloud

Take SQL injection. The attacker puts SQL code into an input, and if the application builds the query by joining strings, the database runs that code. The fix is to use parameterised queries, so data and commands are always separate. Cross-site scripting, or XSS, is similar: the attacker gets their JavaScript to run in the browser of another user. To prevent it, I encode output for the correct context, avoid inserting raw HTML, and add a content security policy as an extra layer. I also validate input, but I do not rely on it alone, because the real protection is how the data is used. Regular updates and dependency scanning help against known vulnerabilities.

What is the difference between symmetric and asymmetric encryption, and how do you store passwords?

What the interviewer wants to hear. Two kinds of keys, how TLS combines them, and the difference between hashing and encrypting.

Sample answer to practise aloud

Symmetric encryption uses one key to encrypt and decrypt, for example AES. It is fast, so it is good for large amounts of data. Asymmetric encryption uses a public key and a private key. It is slower, so it is used to agree on keys and to make digital signatures. TLS combines both: asymmetric cryptography to set up the connection, and symmetric encryption for the traffic. I encrypt data in transit with TLS, and sensitive data at rest. Passwords are different. I never encrypt them. I hash them with a slow algorithm and a unique salt, such as bcrypt, scrypt or Argon2. Keys belong in a secrets manager, not in the code.

What do you do when you suspect a security breach?

What the interviewer wants to hear. The stages of incident response in order: confirm, contain, eradicate, recover, learn, and clear communication throughout.

Sample answer to practise aloud

First, I stay calm and follow the incident plan. I confirm that it is a real incident and decide how serious it is. Then I contain it: isolate the affected systems, disable the compromised accounts and rotate the keys, but I try to keep the evidence, such as logs. Next comes eradication: find the root cause, remove the access of the attacker and fix the vulnerability. Then recovery: restore from clean backups and watch the systems closely. Communication matters during the whole process. The right people must know early, and sometimes the law requires us to tell customers or regulators. Afterwards, we hold a blameless review and improve our process.

How to say the key terms

authentication
aw-then-tih-KAY-shun
authorisation
aw-thuh-ry-ZAY-shun
vulnerability
vul-ner-uh-BIL-ih-tee
encryption
en-KRIP-shun
privilege
PRIV-uh-lij
phishing
FISH-ing
cross-site scripting
kross-site SKRIP-ting

Useful phrases for answering

  • Let me think like an attacker for a moment.
  • The first step is to contain the damage.
  • I would apply the principle of least privilege.
  • We never trust input from the client.
  • The risk depends on the impact and the likelihood.
  • I would not build my own cryptography.
  • Security is always a trade-off with usability.
  • As far as I know, the current recommendation is…

Common mistakes to avoid

  • Mixing up "authentication" and "authorisation", or saying them too fast. Say them slowly, and keep the meaning ready: the first is who you are, the second is what you may do.
  • Saying "encrypt the password". Passwords are hashed, not encrypted, because the system never needs to read them back. Say "hash and salt".
  • Listing attacks without defences. For every attack that you name, add one sentence about how to prevent or detect it.
  • Saying that a system is "100 percent secure". Security means reducing risk, so say what you accept and how you would notice a problem.
  • Using "hacker" for every attacker. In an interview, "attacker", "threat actor" and "breach" are more precise and sound more professional.

Frequently asked questions

Do I need to know the OWASP Top 10?

You should know the main ideas of this list of common web application risks, such as injection and broken access control. OWASP updates it from time to time, so check the current version. Be ready to explain two or three items with a real prevention step.

How do I answer if I have not worked in a security team?

Most developers have more security experience than they think. Talk about handling secrets, setting permissions, reviewing dependencies, fixing a vulnerability or adding multi-factor authentication. Describe one real case with the result.

Is it fine to talk about a real incident?

Yes, if you avoid confidential details. Do not name customers or internal systems. Say "a production service" and focus on what happened, what you did and what you changed afterwards. Interviewers like honest lessons.

Reading an answer is not the same as saying it. Practise each question out loud, then compare the meaning and the language of your own answer.

Try SpeakRole ↗

Other topics in this area