Cybersecurity Interview Questions and Answers

Cybersecurity interviews assess whether you understand real-world threats, defensive strategies and incident response, not just textbook definitions. These questions progress from fundamentals for freshers to advanced architecture and scenario questions for experienced professionals, covering network security, application security, cloud security, cryptography, SOC operations and compliance.

The scenario-based section mirrors what hiring managers and technical leads actually ask: a ransomware outbreak, a suspicious login from another country, a misconfigured cloud storage bucket. Practise explaining your approach step by step, because structured thinking is what gets scored.

  • Freshers & career changers
  • SOC analysts & security engineers
  • Penetration testers & ethical hackers
  • Security architects & CISOs
  • 54questions with answers
  • 9scenario-based
  • October 2026last updated

Jump to your level

Answers reflect current industry practice and widely used frameworks such as NIST, MITRE ATT&CK and OWASP. Tools, versions and regulations change, so confirm specifics in official documentation and your employer's policies.

Fresher

Basic Cybersecurity Interview Questions for Freshers

Start here if you are new to cybersecurity or transitioning from IT support, networking or software development. These questions test vocabulary, core concepts and the foundational models every security professional must know.

15 questions
Q1

What is the CIA triad in information security?

Fresher

The CIA triad is the foundational model for information security:

  • Confidentiality – ensuring information is accessible only to authorised individuals. Controls include encryption, access controls and data classification.
  • Integrity – ensuring data has not been altered or tampered with. Controls include hashing, digital signatures, checksums and version control.
  • Availability – ensuring systems and data are accessible when needed. Controls include redundancy, backups, failover clusters and DDoS protection.

Every security control, policy and architecture decision maps back to one or more of these three pillars. Some frameworks add Authenticity and Non-repudiation as additional properties.

Link
Q2

What is the difference between a threat, a vulnerability and a risk?

Fresher
  • Threat – any potential cause of an unwanted event that could harm the organisation. Examples: a ransomware group, a disgruntled employee, a natural disaster.
  • Vulnerability – a weakness in a system, process or control that a threat can exploit. Examples: an unpatched Apache server, a misconfigured S3 bucket, weak passwords.
  • Risk – the likelihood that a threat will exploit a vulnerability, combined with the impact. Risk = Threat × Vulnerability × Impact.

Security teams prioritise risks, not individual threats or vulnerabilities in isolation.

Link
Q3

What is the difference between authentication and authorisation?

Fresher

Authentication verifies *who you are*: passwords, biometrics, tokens, certificates. Authorisation determines *what you can do*: file permissions, role-based access, API scopes.

Authentication always comes first. A user might authenticate successfully but still be denied access to a resource because their role does not have the required authorisation.

AuthenticationAuthorisation
QuestionWho are you?What can you do?
ControlsPasswords, MFA, biometricsRBAC, ACLs, policies
ProtocolsSAML, OIDC, KerberosOAuth 2.0, XACML, ABAC
HappensFirstAfter authentication
Link
Q4

What is a firewall, and what are its types?

Fresher

A firewall is a network security device or software that monitors and controls incoming and outgoing traffic based on predefined security rules.

Types:

  • Packet-filtering firewall – inspects packet headers (source/destination IP, port, protocol) and makes allow/deny decisions. Fast but cannot inspect payload.
  • Stateful inspection firewall – tracks the state of network connections and makes decisions based on context, not just individual packets.
  • Application-layer firewall (proxy firewall) – inspects traffic at the application layer (Layer 7), understanding protocols like HTTP, FTP and DNS.
  • Next-generation firewall (NGFW) – combines traditional firewall with intrusion prevention, deep packet inspection, application awareness and threat intelligence feeds. Examples: Palo Alto Networks, Fortinet FortiGate, Cisco Firepower.
  • Web Application Firewall (WAF) – specifically protects web applications by filtering HTTP/HTTPS traffic. Defends against SQL injection, XSS and other OWASP Top 10 attacks.
Link
Q5

What are the common types of malware?

Fresher
  • Virus – attaches to a legitimate file or program and replicates when the host file is executed.
  • Worm – self-replicating malware that spreads across networks without user interaction (e.g., WannaCry exploited SMB).
  • Trojan – disguises itself as legitimate software but performs malicious actions once installed.
  • Ransomware – encrypts the victim's files and demands payment for the decryption key (e.g., LockBit, REvil).
  • Spyware – silently collects user information such as keystrokes, browsing history and credentials.
  • Rootkit – hides its presence in the operating system kernel or firmware to maintain persistent, privileged access.
  • Adware – displays unwanted advertisements, often bundled with free software.
  • Fileless malware – operates entirely in memory using legitimate tools like PowerShell, making detection harder.
Link
Q6

What is phishing, and what are its variants?

Fresher

Phishing is a social engineering attack that tricks users into revealing sensitive information or performing actions like clicking malicious links.

Variants:

  • Spear phishing – targeted at a specific individual or organisation, using personalised information.
  • Whaling – targets senior executives or high-profile individuals.
  • Vishing – phishing via voice calls.
  • Smishing – phishing via SMS messages.
  • Business Email Compromise (BEC) – the attacker impersonates a trusted business contact to trick victims into transferring funds or sharing data.

Defences: email filtering, DMARC/DKIM/SPF, security awareness training, MFA (limits damage even if credentials are stolen).

Link
Q7

What is encryption, and what is the difference between symmetric and asymmetric encryption?

Fresher

Encryption transforms plaintext into ciphertext using an algorithm and a key so that only authorised parties can read the data.

  • Symmetric encryption – the same key encrypts and decrypts. Fast, used for bulk data. Examples: AES-256, ChaCha20. Challenge: secure key distribution.
  • Asymmetric encryption – uses a public key to encrypt and a private key to decrypt (or vice versa for signing). Slower, used for key exchange, digital signatures and authentication. Examples: RSA, ECC, Ed25519.

In practice, TLS combines both: asymmetric encryption establishes a shared session key, then symmetric encryption handles the actual data transfer.

SymmetricAsymmetric
KeysOne shared keyPublic + private key pair
SpeedFastSlower
Use caseBulk data encryptionKey exchange, signatures
ExamplesAES, ChaCha20RSA, ECC, Ed25519
Link
Q8

What is a VPN, and how does it work?

Fresher

A Virtual Private Network creates an encrypted tunnel between a client and a VPN server, protecting data in transit and masking the client's IP address. It is used for:

  • Secure remote access to corporate networks.
  • Encrypting traffic over untrusted networks like public Wi-Fi.
  • Site-to-site connectivity between branch offices.

Common protocols: IPSec (IKEv2), OpenVPN, WireGuard. Enterprise VPNs often integrate with identity providers for MFA-based authentication.

Link
Q9

What is HTTPS, and how does TLS work?

Fresher

HTTPS is HTTP over TLS (Transport Layer Security). TLS provides encryption, integrity and authentication for web traffic.

The TLS 1.3 handshake:

  1. Client Hello – client sends supported cipher suites, a random number and supported TLS versions.
  2. Server Hello – server selects a cipher suite, sends its certificate and a key share.
  3. Key exchange – both sides derive the session key using Diffie-Hellman.
  4. Finished – encrypted application data begins.

TLS 1.3 completes the handshake in one round trip (1-RTT), compared to two in TLS 1.2.

Link
Q10

What are common network ports a security professional should know?

Fresher
PortServiceProtocol
20/21FTP (data/control)TCP
22SSHTCP
23Telnet (insecure)TCP
25SMTPTCP
53DNSTCP/UDP
80HTTPTCP
443HTTPSTCP
445SMBTCP
3389RDPTCP
3306MySQLTCP
8080HTTP proxy / altTCP

Knowing these ports helps in firewall rule analysis, port scanning interpretation and network forensics.

Link
Q11

What is the difference between IDS and IPS?

Fresher
  • Intrusion Detection System (IDS) – monitors network traffic or host activity and generates alerts when suspicious behaviour is detected. It is passive and does not block traffic. Examples: Snort (in IDS mode), OSSEC.
  • Intrusion Prevention System (IPS) – sits inline in the network path, actively blocking or dropping malicious traffic in real time. Examples: Snort (in IPS mode), Suricata, Palo Alto Threat Prevention.

Detection methods:

  • Signature-based – matches against known attack patterns. Fast, low false positives, but misses zero-days.
  • Anomaly-based – establishes a baseline of normal behaviour and flags deviations. Catches novel attacks but can produce more false positives.
  • Heuristic/behavioural – analyses behaviour patterns to identify suspicious activity.
Link
Q12

What is social engineering?

Fresher

Social engineering manipulates people into breaking security procedures or revealing confidential information. It exploits human psychology rather than technical vulnerabilities.

Common techniques:

  • Pretexting – creating a fabricated scenario to gain trust (e.g., posing as IT support).
  • Baiting – leaving infected USB drives in public places.
  • Tailgating/piggybacking – following an authorised person through a secure door.
  • Quid pro quo – offering something in exchange for information.

Defence: security awareness training, strict access policies, physical security controls, verification procedures.

Link
Q13

What is multi-factor authentication (MFA)?

Fresher

MFA requires two or more independent authentication factors:

  • Something you know – password, PIN.
  • Something you have – hardware token, authenticator app, smart card.
  • Something you are – fingerprint, face recognition, iris scan.

MFA significantly reduces account compromise, even if passwords are stolen. FIDO2/WebAuthn and passkeys are the modern standard, providing phishing-resistant authentication.

Link
Q14

What is the OSI model, and why is it important for security?

Fresher

The OSI (Open Systems Interconnection) model divides network communication into seven layers. Security professionals use it to identify where attacks occur and where to apply controls:

  1. Physical – cable tapping, physical access controls.
  2. Data Link – MAC spoofing, ARP poisoning. Controls: port security, 802.1X.
  3. Network – IP spoofing, routing attacks. Controls: firewalls, ACLs, IPSec.
  4. Transport – SYN floods, port scanning. Controls: stateful firewalls, rate limiting.
  5. Session – session hijacking. Controls: secure tokens, session timeouts.
  6. Presentation – SSL/TLS attacks. Controls: strong cipher suites, certificate pinning.
  7. Application – SQL injection, XSS, CSRF. Controls: WAF, input validation, secure coding.
Link
Q15

What is the difference between black-box, white-box and grey-box testing?

Fresher
  • Black-box testing – the tester has no prior knowledge of the system. Simulates an external attacker.
  • White-box testing – the tester has full knowledge including source code, architecture and credentials. Finds deeper vulnerabilities.
  • Grey-box testing – the tester has partial knowledge, such as user credentials but not source code. Simulates an insider or a compromised account.

Most real-world penetration tests are grey-box, combining realistic attack simulation with efficient coverage.

Link
Intermediate

Intermediate Cybersecurity Interview Questions

For candidates with SOC experience, junior penetration testing roles or security engineering positions. These questions test operational knowledge, tooling and protocol-level understanding.

15 questions
Q16

What is the OWASP Top 10, and why does it matter?

Intermediate

The OWASP Top 10 is a regularly updated list of the most critical web application security risks. The 2021 edition includes:

  1. A01: Broken Access Control – users acting outside their intended permissions.
  2. A02: Cryptographic Failures – weak or missing encryption of sensitive data.
  3. A03: Injection – SQL, NoSQL, OS command, LDAP injection.
  4. A04: Insecure Design – missing or ineffective security controls in the design phase.
  5. A05: Security Misconfiguration – default credentials, unnecessary features, verbose errors.
  6. A06: Vulnerable and Outdated Components – using libraries with known CVEs.
  7. A07: Identification and Authentication Failures – weak session management, credential stuffing.
  8. A08: Software and Data Integrity Failures – insecure CI/CD pipelines, unsigned updates.
  9. A09: Security Logging and Monitoring Failures – insufficient logging to detect breaches.
  10. A10: Server-Side Request Forgery (SSRF) – application fetches a remote resource without validating the URL.

Security teams use the OWASP Top 10 as a baseline for code reviews, penetration testing and developer training.

Link
Q17

What is a SIEM, and how does it work?

Intermediate

A Security Information and Event Management (SIEM) system collects, normalises and correlates log data from across the environment to detect threats and support incident response.

Core capabilities:

  • Log aggregation – collects logs from firewalls, servers, endpoints, cloud services and applications.
  • Normalisation – converts logs from different sources into a common format.
  • Correlation – applies rules, patterns and analytics to identify related events that indicate an attack (e.g., failed logins from multiple IPs followed by a successful login).
  • Alerting – generates prioritised alerts for the SOC team.
  • Dashboards and reporting – provides visibility and compliance reporting.
  • Threat intelligence integration – enriches alerts with external IOC feeds.

Examples: Splunk, Microsoft Sentinel, IBM QRadar, Elastic Security, Google Chronicle.

Link
Q18

Explain the incident response lifecycle.

Intermediate

The NIST incident response lifecycle (SP 800-61) has four phases:

  1. Preparation – policies, playbooks, tools, training, communication plans and tabletop exercises.
  2. Detection and Analysis – identify indicators of compromise (IOCs) through SIEM alerts, EDR alerts, user reports or threat intelligence. Determine scope, severity and impact.
  3. Containment, Eradication and Recovery – contain the threat (isolate affected systems), eradicate it (remove malware, patch vulnerabilities, reset credentials), recover (restore from backups, rebuild systems, verify integrity).
  4. Post-Incident Activity – lessons learned, root cause analysis, update playbooks, report to management and regulators if required.

Key principle: document everything with timestamps. Evidence preservation is critical for forensics and legal proceedings.

Link
Q19

What is penetration testing, and what are its phases?

Intermediate

Penetration testing is an authorised simulated attack on a system to identify exploitable vulnerabilities.

Phases (based on PTES):

  1. Pre-engagement – scope, rules of engagement, legal agreements.
  2. Reconnaissance – passive and active information gathering (OSINT, DNS enumeration, port scanning).
  3. Scanning and enumeration – service identification, vulnerability scanning (Nessus, OpenVAS).
  4. Exploitation – attempting to exploit identified vulnerabilities (Metasploit, Burp Suite, custom scripts).
  5. Post-exploitation – privilege escalation, lateral movement, data exfiltration, persistence.
  6. Reporting – findings with severity ratings, evidence, remediation recommendations and executive summary.
Link
Q20

What is network segmentation, and why is it important?

Intermediate

Network segmentation divides a network into smaller, isolated zones to limit lateral movement if one segment is compromised.

Common segmentation strategies:

  • VLANs – Layer 2 segmentation using 802.1Q tagging.
  • Subnets with firewall rules – Layer 3 segmentation with inter-subnet firewall policies.
  • Microsegmentation – granular, workload-level segmentation using software-defined policies (e.g., VMware NSX, Illumio).
  • DMZ – a perimeter network that exposes public-facing services while shielding the internal network.

Example: separating the guest Wi-Fi from the corporate network, or isolating the PCI cardholder data environment from the rest of the network.

Link
Q21

What is a DMZ (Demilitarised Zone)?

Intermediate

A DMZ is a network segment that sits between the untrusted external network (internet) and the trusted internal network. It hosts public-facing services such as web servers, email gateways and DNS servers.

Architecture: two firewalls or a single firewall with three interfaces:

  • External firewall allows internet traffic to reach the DMZ.
  • Internal firewall restricts DMZ-to-internal traffic.
  • Internal network resources are never directly exposed to the internet.

If a server in the DMZ is compromised, the attacker still faces the internal firewall before reaching sensitive systems.

Link
Q22

What is a vulnerability assessment, and how is it different from penetration testing?

Intermediate
Vulnerability AssessmentPenetration Testing
ObjectiveIdentify known vulnerabilitiesExploit vulnerabilities to prove impact
ApproachAutomated scanning + manual reviewManual exploitation + creative chaining
DepthBroad and shallowFocused and deep
OutputList of vulnerabilities with severityProof of exploitation with business impact
FrequencyRegular (monthly/quarterly)Periodic (annually or after major changes)
ToolsNessus, Qualys, Rapid7 InsightVMBurp Suite, Metasploit, custom scripts

Organisations need both: regular vulnerability assessments for continuous visibility and periodic penetration tests for validation.

Link
Q23

Explain SQL injection and how to prevent it.

Intermediate

SQL injection occurs when an attacker inserts malicious SQL code into an application's input fields, and the application passes it unsanitised to the database.

Example:

SQL
-- Vulnerable query
SELECT * FROM users WHERE username = '' OR '1'='1' -- ' AND password = 'anything';

This returns all users because '1'='1' is always true.

Prevention:

  • Parameterised queries / prepared statements – the primary defence. The database treats input as data, never as SQL code.
  • Input validation – whitelist acceptable characters and formats.
  • Stored procedures – when properly parameterised.
  • ORM usage – frameworks like Hibernate and SQLAlchemy generate parameterised queries.
  • Least privilege – the database user should have minimum required permissions.
  • WAF – an additional layer that can block common injection patterns.
Link
Q24

What is Cross-Site Scripting (XSS), and what are its types?

Intermediate

XSS occurs when an attacker injects malicious scripts into web pages viewed by other users.

Types:

  • Reflected XSS – the malicious script is part of the URL or request and is immediately reflected in the response. Requires the victim to click a crafted link.
  • Stored XSS – the script is stored on the server (e.g., in a database via a comment field) and executed whenever any user views the affected page. Higher impact.
  • DOM-based XSS – the vulnerability exists in client-side JavaScript that processes user input without sanitisation.

Prevention: output encoding, Content Security Policy (CSP) headers, input validation, HTTPOnly and Secure cookie flags, avoiding innerHTML and eval().

Link
Q25

What is Role-Based Access Control (RBAC)?

Intermediate

RBAC assigns permissions to roles rather than individual users. Users are then assigned to roles based on their job function.

Example:

  • Role: SOC Analyst → permissions: read logs, create incidents, run scans.
  • Role: Security Admin → permissions: manage firewall rules, edit policies, create users.
  • Role: CISO → permissions: view dashboards, approve policies, access audit reports.

RBAC simplifies administration, supports the principle of least privilege and makes audit easier. More advanced models include Attribute-Based Access Control (ABAC), which considers attributes like time of day, location and device posture.

Link
Q26

What is Endpoint Detection and Response (EDR)?

Intermediate

EDR solutions continuously monitor and collect data from endpoints (laptops, servers, workstations) to detect, investigate and respond to threats.

Key capabilities:

  • Real-time monitoring – process execution, file changes, network connections, registry modifications.
  • Behavioural detection – identifies suspicious activity like credential dumping, lateral movement or fileless attack techniques.
  • Automated response – can isolate an endpoint, kill a process or quarantine a file.
  • Threat hunting – allows analysts to query historical endpoint data for IOCs.
  • Forensic data – records a timeline of activity for investigation.

Examples: CrowdStrike Falcon, Microsoft Defender for Endpoint, SentinelOne, Carbon Black.

Link
Q27

What is PKI (Public Key Infrastructure)?

Intermediate

PKI is a framework for managing digital certificates and public-private key pairs, enabling secure authentication, encryption and digital signatures.

Components:

  • Certificate Authority (CA) – issues and signs digital certificates. Examples: DigiCert, Let's Encrypt, internal enterprise CAs.
  • Registration Authority (RA) – verifies the identity of certificate requestors before the CA issues a certificate.
  • Certificate Revocation List (CRL) / OCSP – mechanisms to check if a certificate has been revoked.
  • Digital certificate (X.509) – binds a public key to an entity (person, server, organisation).

Use cases: HTTPS, email encryption (S/MIME), code signing, VPN authentication, mutual TLS.

Link
Q28

What is log analysis, and what should security teams monitor?

Intermediate

Log analysis involves collecting, parsing and examining log data to detect security incidents, troubleshoot issues and support compliance.

Critical logs to monitor:

  • Authentication logs – failed and successful logins, MFA events, account lockouts.
  • Firewall and proxy logs – blocked connections, unusual outbound traffic, connections to known malicious IPs.
  • Endpoint logs – process creation, PowerShell execution, file access, USB device connections.
  • DNS logs – queries to suspicious domains, DNS tunnelling indicators.
  • Cloud audit logs – API calls, IAM changes, resource creation and deletion.
  • Application logs – errors, access patterns, input validation failures.

Tools: Splunk, ELK Stack (Elasticsearch, Logstash, Kibana), Graylog, Windows Event Viewer.

Link
Q29

What is a zero-day vulnerability?

Intermediate

A zero-day vulnerability is a security flaw that is unknown to the vendor and has no available patch. The name refers to the vendor having "zero days" to fix it before it can be exploited.

The timeline:

  1. Vulnerability exists in software.
  2. Attacker discovers and exploits it (zero-day exploit).
  3. Vendor learns about it (through report, detection or breach).
  4. Vendor develops and releases a patch.
  5. Organisations apply the patch.

Defence against zero-days: defence-in-depth, behaviour-based detection (EDR/XDR), network segmentation, application whitelisting, virtual patching through WAF/IPS rules.

Link
Q30

What is the difference between hashing and encryption?

Intermediate
HashingEncryption
PurposeVerify integrityProtect confidentiality
ReversibleNo (one-way function)Yes (with the correct key)
OutputFixed-length digestVariable-length ciphertext
ExamplesSHA-256, bcrypt, Argon2AES-256, RSA, ChaCha20
Use casesPassword storage, file integrity, digital signaturesData at rest, data in transit

For password storage, always use a slow, salted hash like bcrypt or Argon2, never SHA-256 alone (too fast, vulnerable to brute-force).

Link
Experienced

Advanced Cybersecurity Interview Questions for Experienced Professionals

For security engineers, senior SOC analysts, penetration testers and architects. These questions test design judgement, modern attack techniques, cloud security and frameworks used to run a security programme.

15 questions
Q31

What is Zero Trust architecture?

Experienced

Zero Trust is a security model based on the principle "never trust, always verify". No user, device or network location is trusted by default, even inside the corporate perimeter.

Core principles (NIST SP 800-207):

  • Verify explicitly – authenticate and authorise every request using identity, device health, location and behaviour.
  • Least privilege access – grant just-in-time and just-enough access.
  • Assume breach – segment access, encrypt end to end and monitor continuously to limit blast radius.

Building blocks: strong identity (SSO + phishing-resistant MFA), device posture checks, Zero Trust Network Access (ZTNA) instead of flat VPN access, microsegmentation, continuous monitoring and policy engines that evaluate every session.

Link
Q32

What is the MITRE ATT&CK framework, and how do you use it?

Experienced

MITRE ATT&CK is a publicly available knowledge base of adversary tactics (the *why*, such as Initial Access, Persistence, Privilege Escalation, Lateral Movement, Exfiltration) and techniques (the *how*, such as T1566 Phishing or T1003 OS Credential Dumping), based on real-world observations.

Practical uses:

  • Detection engineering – map SIEM and EDR rules to techniques to find coverage gaps.
  • Threat hunting – build hypotheses around techniques used by threat groups relevant to your industry.
  • Red and purple teaming – emulate specific adversary behaviours and validate detections.
  • Incident reporting – describe attacker behaviour in a common language.

Related models: the Lockheed Martin Cyber Kill Chain and MITRE D3FEND (defensive countermeasures).

Link
Q33

What is the cloud shared responsibility model?

Experienced

In the cloud, security responsibilities are split between the provider and the customer:

  • Provider – security *of* the cloud: physical data centres, hardware, hypervisor, global network.
  • Customer – security *in* the cloud: data, identities, access policies, configuration, application code and (for IaaS) the guest operating system and patches.
Service modelCustomer responsibility
IaaS (EC2, Azure VMs)OS, middleware, apps, data, IAM, network rules
PaaS (App Service, RDS)Apps, data, IAM, configuration
SaaS (Microsoft 365, Salesforce)Data, users, access and sharing settings

Most cloud breaches come from customer-side misconfigurations, such as public storage buckets, over-permissive IAM roles or exposed access keys.

Link
Q34

How do you secure cloud environments (AWS, Azure, GCP)?

Experienced
  • Identity first – enforce SSO and MFA, remove long-lived access keys, use roles and workload identities, apply least privilege and review permissions regularly.
  • Guardrails – organisation-level policies (AWS SCPs, Azure Policy, GCP Organization Policies) to block risky actions such as disabling logging or creating public buckets.
  • Logging and detection – CloudTrail / Azure Activity Log / Cloud Audit Logs centralised to a SIEM; enable native threat detection (GuardDuty, Defender for Cloud, Security Command Center).
  • Posture management – CSPM tools to continuously detect misconfigurations against CIS Benchmarks.
  • Data protection – encryption at rest with KMS-managed keys, TLS in transit, private endpoints instead of public exposure.
  • Network – private subnets, security groups with minimal rules, WAF in front of public applications.
  • Infrastructure as Code scanning – check Terraform or CloudFormation templates before deployment.
Link
Q35

What is threat hunting, and how is it different from monitoring?

Experienced

Monitoring is reactive: analysts respond to alerts generated by rules. Threat hunting is proactive: analysts assume an attacker may already be inside and search for evidence that existing detections missed.

A typical hypothesis-driven hunt:

  1. Form a hypothesis, e.g. "An attacker is using scheduled tasks for persistence" (ATT&CK T1053).
  2. Identify data sources: EDR process telemetry, Windows event ID 4698, Sysmon logs.
  3. Query and analyse: look for scheduled tasks created by unusual parents or pointing to user-writable paths.
  4. Investigate findings and escalate confirmed incidents.
  5. Convert successful hunts into automated detection rules.
Link
Q36

Explain common Active Directory attacks and defences.

Experienced

Active Directory is a prime target because compromising it gives control of the whole Windows estate.

  • Pass-the-Hash – reusing an NTLM hash to authenticate without the password. Defence: LAPS for unique local admin passwords, Credential Guard, restricting admin logons.
  • Kerberoasting – requesting service tickets for accounts with SPNs and cracking them offline. Defence: long random passwords or gMSAs for service accounts, AES encryption, monitoring event 4769 anomalies.
  • AS-REP Roasting – targeting accounts without Kerberos pre-authentication. Defence: enforce pre-authentication.
  • Golden Ticket – forging TGTs using the krbtgt hash. Defence: protect domain controllers, rotate krbtgt twice after compromise.
  • DCSync – abusing replication rights to pull password hashes. Defence: restrict replication permissions and alert on replication from non-DC hosts.

Tiered administration (separating Tier 0 domain admins from workstation admins) is the strategic defence.

Link
Q37

What is SOAR, and how does it help a SOC?

Experienced

Security Orchestration, Automation and Response (SOAR) platforms connect security tools and automate repetitive workflows through playbooks.

Example phishing playbook:

  1. User reports an email.
  2. SOAR extracts URLs, attachments and sender details.
  3. It enriches them with threat intelligence and sandbox detonation.
  4. If malicious, it searches all mailboxes for the same email, deletes it, blocks the sender and URL, and opens a ticket.
  5. An analyst reviews and closes.

Benefits: faster mean time to respond (MTTR), consistent handling, reduced alert fatigue. Examples: Splunk SOAR, Palo Alto Cortex XSOAR, Microsoft Sentinel playbooks (Logic Apps).

Link
Q38

What is DevSecOps, and how do you integrate security into CI/CD?

Experienced

DevSecOps embeds security throughout the software delivery lifecycle instead of testing at the end ("shift left").

Pipeline controls:

  • Pre-commit – secret scanning (e.g. Gitleaks), IDE security plugins.
  • Build – SAST (static analysis such as SonarQube, Semgrep), SCA (dependency scanning such as Snyk, Dependabot) and SBOM generation.
  • Test – DAST (dynamic scanning such as OWASP ZAP, Burp Suite) against staging.
  • Deploy – IaC scanning (Checkov, tfsec), container image scanning (Trivy), signed artefacts.
  • Run – runtime protection, WAF, cloud posture monitoring.

Quality gates should fail the build only for high-confidence, high-severity findings, otherwise developers start ignoring the tools.

Link
Q39

What is the difference between SAST, DAST, IAST and SCA?

Experienced
TechniqueWhat it testsWhenStrength
SASTSource codeEarly (build)Finds flaws in code paths before deployment
DASTRunning application from outsideTest/stagingFinds runtime and configuration issues
IASTRunning app with an agent insideTestingCombines code context with runtime behaviour
SCAThird-party librariesBuildFinds known CVEs and licence risks

A mature programme uses several of these, because each misses things the others catch.

Link
Q40

How do you perform a risk assessment?

Experienced
  1. Identify assets – systems, data and processes, and their business value.
  2. Identify threats and vulnerabilities – using threat intelligence, vulnerability scans and architecture reviews.
  3. Analyse likelihood and impact – qualitatively (high/medium/low heat map) or quantitatively (e.g. annualised loss expectancy: ALE = SLE × ARO).
  4. Evaluate and prioritise – compare against the organisation's risk appetite.
  5. Treat – mitigate (add controls), transfer (insurance, outsourcing), avoid (stop the activity) or accept (with documented sign-off).
  6. Monitor and review – maintain a risk register and reassess periodically.

Frameworks: ISO/IEC 27005, NIST SP 800-30, FAIR for quantitative analysis.

Link
Q41

What are the main security frameworks and compliance standards?

Experienced
  • ISO/IEC 27001 – international standard for an Information Security Management System (ISMS), with Annex A controls; organisations can be certified.
  • NIST Cybersecurity Framework 2.0 – functions: Govern, Identify, Protect, Detect, Respond, Recover.
  • CIS Controls – prioritised, practical set of safeguards.
  • PCI DSS – mandatory for organisations handling payment card data.
  • SOC 2 – audit report on controls for service organisations (security, availability, confidentiality, processing integrity, privacy).
  • GDPR and India's Digital Personal Data Protection (DPDP) Act, 2023 – privacy and personal data protection laws.
  • CERT-In directions (2022) – Indian organisations must report specified cyber incidents to CERT-In within 6 hours and retain logs for 180 days.
Link
Q42

What is privilege escalation, and how is it prevented?

Experienced

Privilege escalation is gaining higher permissions than originally granted.

  • Vertical – a normal user gains admin or root rights (e.g. exploiting a vulnerable SUID binary, unquoted service paths, a kernel exploit or misconfigured sudo rules).
  • Horizontal – a user accesses another user's data at the same privilege level (e.g. changing an ID in a URL – an IDOR flaw).

Prevention: timely patching, least privilege, removing local admin rights, Privileged Access Management (PAM) with just-in-time elevation and session recording, secure service configurations and server-side authorisation checks on every request.

Link
Q43

How does ransomware typically operate, and how do you defend against it?

Experienced

Modern ransomware is usually human-operated and follows a pattern:

  1. Initial access – phishing, exposed RDP/VPN with weak credentials, or exploited internet-facing vulnerabilities.
  2. Discovery and credential theft – tools like Mimikatz, AD enumeration.
  3. Lateral movement – PsExec, RDP, WMI.
  4. Data exfiltration – for double extortion.
  5. Backup destruction – deleting shadow copies and targeting backup servers.
  6. Encryption – often pushed domain-wide via Group Policy.

Defences: MFA on all remote access, patching internet-facing systems, EDR with tamper protection, least privilege and tiered admin, network segmentation, immutable and offline backups with tested restores, and an incident response plan rehearsed through tabletop exercises.

Link
Q44

What is a supply chain attack?

Experienced

A supply chain attack compromises a trusted third party (software vendor, library, managed service provider) to reach its customers. Examples include the SolarWinds Orion compromise, the 3CX desktop app compromise and the XZ Utils backdoor attempt.

Defences: vendor risk assessments, SBOMs and dependency scanning, pinning and verifying package signatures, least privilege for vendor tools and accounts, network monitoring for unusual outbound connections from trusted software, and segmenting third-party access.

Link
Q45

What are digital forensics best practices?

Experienced
  • Order of volatility – collect the most volatile evidence first: CPU registers and cache, memory (RAM), network connections, running processes, disk, then logs and backups.
  • Chain of custody – document who handled evidence, when and how.
  • Integrity – create forensic images with write blockers and verify them with hashes (e.g. SHA-256).
  • Work on copies – never analyse the original evidence.
  • Tools – FTK Imager, Autopsy, Volatility (memory analysis), KAPE, Velociraptor.

Avoid powering off a compromised machine before capturing memory; you may lose encryption keys, injected code and network artefacts.

Link
Scenario

Scenario-Based Cybersecurity Interview Questions

These questions mirror what technical leads, SOC managers and client rounds actually ask. There is rarely one perfect answer – interviewers score your structure, prioritisation and communication.

9 questions
Q46

You notice a user logged in from Bangalore and then from another country 20 minutes later. What do you do?

Scenario

This is an impossible travel alert.

  1. Validate – check whether the second login used a VPN, corporate proxy or cloud egress IP that explains the location. Review device ID, user agent and MFA status.
  2. Check context – was MFA satisfied? Were there MFA push prompts the user did not initiate (MFA fatigue)? Any recent password reset or mailbox rule changes?
  3. Contact the user through a verified channel to confirm the activity.
  4. If suspicious – revoke active sessions and tokens, reset the password, enforce re-registration of MFA, and block the source IP.
  5. Investigate scope – review what the account accessed: emails sent, files downloaded, new inbox forwarding rules, OAuth app consents.
  6. Document and tune – record the incident; if it was a known VPN, add it to the trusted locations list to reduce false positives.
Link
Q47

Ransomware is detected on several machines. What are your first steps?

Scenario
  1. Activate the incident response plan and inform the incident manager, IT leadership and legal.
  2. Contain – isolate affected endpoints using EDR network containment or by disconnecting them from the network (do not power them off, to preserve memory evidence). Disable compromised accounts.
  3. Protect backups – immediately verify that backups are isolated and intact.
  4. Scope – identify patient zero, the ransomware variant, the initial access vector and whether data was exfiltrated.
  5. Eradicate – remove persistence, reset privileged credentials (including krbtgt if AD was compromised), patch the entry point.
  6. Recover – restore from clean backups in priority order of business-critical systems, monitor closely for reinfection.
  7. Notify – regulators (CERT-In within 6 hours for reportable incidents in India), customers and law enforcement as required.
  8. Lessons learned – update controls and playbooks.
Link
Q48

A public S3 bucket containing customer data is discovered. How do you respond?

Scenario
  1. Contain immediately – block public access on the bucket (and enable account-level S3 Block Public Access).
  2. Preserve evidence – review S3 server access logs and CloudTrail data events to determine whether and by whom the data was accessed or downloaded.
  3. Assess impact – what data was exposed (PII, financial data), for how long, and how many records.
  4. Notify stakeholders – legal, privacy/DPO and management to evaluate obligations under the DPDP Act, GDPR or contractual terms.
  5. Root cause – why was it public? Manual change, IaC template error, or missing guardrail?
  6. Prevent recurrence – enforce organisation policies blocking public buckets, CSPM alerts, IaC scanning in the pipeline.
Link
Q49

An employee reports a suspicious email with an attachment they already opened. What do you do?

Scenario
  1. Ask the user to not shut down, but disconnect from the network if EDR isolation is not available.
  2. Isolate the endpoint through EDR and collect the email (with full headers) and the attachment.
  3. Analyse the attachment in a sandbox; extract IOCs such as hashes, domains, IPs and dropped files.
  4. Search the SIEM/EDR for the same IOCs across the environment and use email tools to find and purge the same message from other mailboxes.
  5. Check for credential theft – reset the user's password and revoke sessions if any credentials could have been captured.
  6. Block IOCs at the email gateway, proxy, firewall and EDR.
  7. Thank the user for reporting quickly – encouraging reporting culture is part of the response.
Link
Q50

During a penetration test you gain domain admin access. What do you do next?

Scenario

Stop and refer to the rules of engagement. Typically:

  1. Document the full attack path with timestamps and screenshots as evidence.
  2. Notify the client contact if the scope requires immediate notification of critical findings.
  3. Do not access sensitive data beyond what is necessary to prove impact, and do not make destructive changes.
  4. Remove any artefacts you created (accounts, tools, scheduled tasks) or document them for the client to clean up.
  5. In the report, explain the business impact and give prioritised remediation for each step in the chain, not just the final step.
Link
Q51

Your SIEM generates thousands of alerts daily and analysts are overwhelmed. How do you fix it?

Scenario
  • Measure – identify the noisiest rules and their true-positive rate.
  • Tune – add context-based exclusions for known benign behaviour, adjust thresholds, and retire rules that never produce actionable alerts.
  • Prioritise – risk-based alerting that scores events by asset criticality and user risk; correlate multiple low-severity signals into one high-fidelity incident.
  • Automate – SOAR playbooks for enrichment and common triage steps.
  • Map coverage – align rules to MITRE ATT&CK so tuning does not create blind spots.
  • Feedback loop – analysts mark false positives and detection engineers review them weekly.
Link
Q52

A critical vulnerability (like Log4Shell) is announced. How do you respond?

Scenario
  1. Identify exposure – use asset inventory, SBOMs, SCA and vulnerability scanners to find affected systems; prioritise internet-facing ones.
  2. Mitigate quickly – apply vendor patches; where patching is not immediately possible, apply workarounds, WAF/IPS virtual patching and restrict network access.
  3. Hunt for exploitation – search logs for exploitation patterns and IOCs from before the patch was applied.
  4. Communicate – regular status updates to leadership with exposure counts and remediation progress.
  5. Verify – rescan to confirm remediation and track exceptions with risk acceptance.
Link
Q53

How would you explain a critical security risk to non-technical management?

Scenario

Translate technical findings into business impact: "An attacker could access our customer database through an unpatched VPN appliance, which could lead to a reportable breach, regulatory penalties and loss of customer trust." Then present:

  • Likelihood (is it being actively exploited?).
  • Options with cost, effort and residual risk.
  • A clear recommendation and a timeline.

Avoid jargon, use one simple diagram if possible and be ready to answer "what happens if we do nothing?"

Link
Q54

A developer accidentally pushed AWS access keys to a public GitHub repository. What do you do?

Scenario
  1. Revoke – deactivate and delete the exposed keys immediately; attackers scan GitHub for keys within minutes.
  2. Investigate – review CloudTrail for all API calls made using the key, including new IAM users, roles, EC2 instances (crypto-mining) or data access.
  3. Remediate – remove any resources or identities the attacker created.
  4. Clean the repository – remove the secret from git history, though you must assume it is already compromised.
  5. Prevent – enable secret scanning and push protection, use short-lived credentials and roles instead of access keys, and use a secrets manager.
Link

Cybersecurity Career Roles and What Interviewers Focus On

Different security roles are interviewed very differently. Focus your preparation on the role you are targeting.

SOC Analyst (L1/L2)

Alert triage, log analysis, SIEM queries, phishing analysis, incident response basics, common ports and protocols, and the MITRE ATT&CK framework. Expect hands-on log interpretation questions.

Penetration Tester / Ethical Hacker

OWASP Top 10, network and web exploitation, Burp Suite, Nmap, Metasploit, privilege escalation, Active Directory attacks and report writing. Practical tests or CTF-style challenges are common.

Security Engineer

Firewalls, EDR, identity and access management, cloud security, scripting (Python, PowerShell, Bash), automation and secure architecture.

Cloud Security Engineer

Shared responsibility model, IAM, cloud logging, CSPM, Kubernetes and container security, infrastructure as code security on AWS, Azure or GCP.

GRC Analyst / Auditor

ISO 27001, NIST CSF, risk assessment, policies, audits, vendor risk management, and privacy regulations such as GDPR and India's DPDP Act.

Security Architect / Manager

Zero Trust strategy, security roadmaps, risk-based decision making, budgets, stakeholder communication and leading incident response.

How to Prepare for a Cybersecurity Interview

A focused plan works better than memorising long lists of questions.

Master the fundamentals

Networking (TCP/IP, DNS, HTTP, subnetting), operating systems (Windows and Linux), and core security concepts. Most technical rounds start here.

Build a home lab

Set up virtual machines with Kali Linux, a Windows domain and a SIEM such as Splunk Free or Elastic. Practise attacks and then detect them in your own logs.

Practise hands-on challenges

Platforms such as TryHackMe, Hack The Box, PortSwigger Web Security Academy and blue-team labs show interviewers practical ability.

Learn one SIEM and one scripting language

Be able to write basic SPL or KQL queries and simple Python or PowerShell scripts to parse logs or automate tasks.

Prepare your story

Have two or three examples ready – an incident you handled, a vulnerability you found, a control you improved – explained with the problem, your actions and the outcome.

FAQ

Cybersecurity Interview FAQs

Can a fresher get a job in cybersecurity?

Yes. SOC analyst (L1), junior VAPT and GRC analyst roles regularly hire freshers. Employers look for strong networking and OS fundamentals, hands-on lab practice and an entry-level certification such as CompTIA Security+ or CEH.

Which cybersecurity certification is best for beginners?

CompTIA Security+ is a widely recognised vendor-neutral starting point. CEH is popular with Indian employers for ethical hacking roles, and CompTIA CySA+ suits SOC roles. OSCP is highly valued for penetration testing but is better attempted after building practical experience.

Do I need coding skills for cybersecurity?

Not for every role, but basic scripting in Python, Bash or PowerShell is a strong advantage. Application security and penetration testing roles require the ability to read code and understand how vulnerabilities arise.

What are common cybersecurity interview rounds?

Usually an HR screening, one or two technical rounds (concepts, tools and scenarios), sometimes a practical test or lab exercise, and a managerial or client round focused on communication and incident handling.

How should experienced candidates prepare differently from freshers?

Experienced candidates should focus on incident case studies, architecture decisions, tuning and automation, frameworks such as MITRE ATT&CK and NIST, and explaining risk to business stakeholders rather than definitions.

What should I do if I do not know an answer in a security interview?

Say so honestly and explain how you would find the answer – which logs, tools or documentation you would check. In security, a structured investigative approach is valued more than a confident guess.

Cybersecurity Training

Build practical cybersecurity skills before your interview

If several answers on this page felt unfamiliar, the gap is usually hands-on practice rather than theory. Aplus Edtech's Cybersecurity (Beginner to Expert) programme is instructor-led, with labs on networking, Linux, Wireshark, Nmap, Burp Suite, SIEM and incident response, so you can walk an interviewer through what you actually did.

Talk to a cybersecurity training advisor

Share your background and target role. An advisor will explain batch timings, curriculum, labs and placement support.

Explore Cybersecurity Training +91 70225 25702

Last updated: · Prepared by the Aplus Edtech cybersecurity training team.

Call Desk WhatsApp