Interview Prep · Cyber Security
Cyber Security Interview Questions and Answers (2026)
Prepare for cybersecurity interviews by explaining the reasoning behind a control, investigation or remediation step. These questions cover networking, SOC operations, authorised security testing, web applications, cloud security and incident response. Use the answers as a starting point, then practise describing a relevant lab example and its limitations in your own words.
70 questions7 topic areasUpdated 2026
Security fundamentals
The CIA triad means confidentiality, integrity and availability. Confidentiality restricts who can read information; integrity protects it against unauthorised changes; availability keeps systems usable when needed. For a customer database, I would combine access controls and encryption, change auditing and integrity checks, and tested backups with resilient infrastructure. A control can support more than one objective.
A threat is something that could cause harm, such as an attacker or accidental deletion. A vulnerability is a weakness that can be exploited, such as missing patches. Risk combines the likelihood of harm with its impact in a specific context. I assess exposure, asset value and existing controls before prioritising remediation, rather than treating every vulnerability as equally urgent.
Defence in depth uses complementary controls so one failure does not expose the entire system. A web service might have secure coding, a reverse proxy, network segmentation, least-privilege identities and monitored endpoints. The layers should cover prevention, detection and recovery. Adding several products that share the same blind spot is not effective depth; I check how controls fail and overlap.
Least privilege gives a person or workload only the permissions needed for its current task. I start with a defined role, scope access to required resources and separate administrative duties from everyday work. Temporary elevation, approval and auditing help with exceptional tasks. Regular access reviews remove obsolete permissions, and service accounts should not inherit broad human administrator rights.
Authentication verifies who or what is making a request, for example through a password, passkey or certificate. Authorisation determines what that identity may do. A valid login does not imply permission to view every record. I enforce authorisation on the server for each action and object, using the authenticated identity rather than trusting a user-supplied role or identifier.
MFA combines distinct factor categories: something you know, have or are. Two passwords are not two factors. Phishing-resistant methods such as FIDO2 passkeys bind authentication to the legitimate site and are stronger than SMS or push approval alone. MFA reduces credential theft risk but does not fix stolen sessions, insecure recovery procedures or excessive permissions, so those controls still need attention.
Hashing produces a fixed-length digest and is designed to be one-way; encryption protects confidentiality and is reversible with the correct key. Encoding changes representation, such as Base64, and provides no secrecy. I use dedicated password-hashing algorithms for passwords, authenticated encryption for sensitive data and encoding only for transport or formatting. A plain fast hash is unsuitable for storing passwords.
Symmetric cryptography uses a shared secret and efficiently encrypts bulk data. Asymmetric cryptography uses a public and private key pair for operations such as signatures or key establishment. TLS combines these approaches: asymmetric mechanisms authenticate peers and establish keys, then symmetric authenticated encryption protects traffic. I also discuss secure key storage and rotation, because strong algorithms cannot compensate for exposed keys.
Public key infrastructure manages certificates that bind identities to public keys through trusted certificate authorities. During TLS validation, a client checks the certificate chain, hostname, validity period and applicable trust or revocation information. A certificate authenticates an identity; it does not prove that an application is safe. Protecting private keys and maintaining renewal processes are essential operational responsibilities.
A salt is a unique random value stored alongside each password hash. It prevents identical passwords from producing identical stored results and defeats reusable precomputed hash tables. Salts are not secret and do not replace an expensive password-hashing algorithm such as Argon2id. A separately protected pepper can add defence, but it requires careful key management and a workable rotation strategy.
Network security
TCP establishes a connection using SYN, SYN-ACK and ACK. A SYN flood sends many connection attempts without completing the handshake, potentially exhausting pending connection resources. Mitigations include SYN cookies, appropriate connection limits and upstream DDoS protection. I distinguish resource exhaustion from a bandwidth flood, because host tuning cannot solve an attack that saturates the internet link before traffic reaches the server.
Common examples include SSH on TCP 22, DNS on UDP or TCP 53, HTTP on TCP 80, HTTPS on TCP 443, SMB on TCP 445 and RDP on TCP 3389. Ports suggest a service but do not identify it conclusively; applications can use nonstandard ports. I verify protocol behaviour and business need before recommending a firewall change or interpreting an alert.
A stateless firewall evaluates each packet independently against rules such as source, destination, port and protocol. A stateful firewall tracks connections and can permit legitimate return traffic automatically. State tracking simplifies policy but consumes resources and has protocol-specific limitations. In troubleshooting, I inspect both the configured rule and connection state, especially when asymmetric routing prevents the firewall from seeing both directions.
A next-generation firewall combines traditional traffic policy with features such as application identification, intrusion prevention and user-aware rules. Capabilities vary by vendor and licence. Encrypted traffic inspection may improve visibility but introduces privacy, certificate and performance considerations. I would enable controls according to risk and test them, rather than assuming an NGFW automatically blocks every attack or replaces endpoint protection.
An intrusion detection system observes activity and generates alerts; an intrusion prevention system can block traffic, commonly while operating inline. Both can use signatures and behavioural methods. IPS tuning matters because a false positive may interrupt legitimate work. I consider sensor placement, encrypted traffic visibility, update quality and fail-open versus fail-closed behaviour before relying on either system in production.
IPsec protects IP traffic and commonly supports site-to-site tunnels or remote access. SSL VPN is a product term usually describing TLS-based remote access, sometimes through a browser or client. Either approach needs strong authentication, patched gateways and restricted access after connection. I compare supported applications, routing, endpoint checks and deployment constraints rather than claiming one is universally more secure.
VLAN hopping attempts to cross intended VLAN boundaries, for example by abusing trunk negotiation or certain double-tagging configurations. I disable unnecessary trunk negotiation, explicitly configure access ports and trunks, restrict allowed VLANs and avoid using a user VLAN as the native VLAN. Segmentation also needs routed access controls; assigning different VLAN numbers alone does not enforce all security boundaries.
ARP spoofing sends misleading address mappings on a local network, potentially redirecting traffic through an attacker. Detection can include unexpected gateway MAC changes, duplicate mappings and switch telemetry. Dynamic ARP Inspection with trusted DHCP snooping bindings helps on supported networks. Static addressing needs additional planning. TLS limits readable interception, but it does not prevent every disruption caused by poisoned ARP mappings.
DNS threats include cache poisoning, domain hijacking, malicious lookalike domains and DNS tunnelling for command traffic or data theft. I protect registrar accounts, monitor resolution patterns and use well-managed resolvers. DNSSEC validates signed DNS data but does not encrypt queries or make a malicious domain trustworthy. Encrypted DNS protects transport privacy, while detection still requires endpoint and resolver visibility.
A DMZ separates internet-facing services from internal systems using explicit traffic policies. NAT translates addresses and can limit unsolicited inbound reachability in common deployments, but address translation is not an authorisation control. I define allowed flows between internet, DMZ and internal zones, monitor them and restrict outbound access. A compromised public server should not gain unrestricted access to internal databases.
SOC, SIEM and monitoring
Tier 1 commonly monitors and triages alerts, Tier 2 investigates escalated incidents and Tier 3 handles deeper analysis, detection engineering or threat hunting. Titles and responsibilities vary between organisations. I would follow the team's escalation criteria, document evidence and hand over a clear timeline. A tier model is a workflow arrangement, not a reason to investigate beyond assigned authority.
A SIEM collects and analyses security events, supporting searches, correlation and alerting. SOAR coordinates investigation and response workflows across tools, often through playbooks. They can overlap within a product. I automate repeatable enrichment first and require approvals for disruptive actions such as disabling accounts. Reliable inputs, scoped credentials and rollback procedures matter more than simply having an automation platform.
I start with identity and authentication logs, endpoint telemetry, firewall events, DNS and proxy activity, cloud audit trails and critical application logs. Priorities depend on the threats and assets being monitored. I verify timestamps, parsing, retention and coverage before building rules. Collecting large volumes is not enough if important fields are missing or failed ingestion silently removes visibility.
A false positive labels benign activity as malicious; a false negative misses actual malicious activity. Too many false positives overload analysts, while false negatives create undetected exposure. I tune with representative benign and attack examples and review detection coverage, not just alert volume. Suppression should be narrow and documented so reducing noise does not hide an entire attack technique.
I validate the alert and time window, identify the affected user and asset, and collect supporting events. Then I check business context, scope and signs of compromise before assigning severity. I document both evidence and uncertainty, escalate according to the playbook and recommend proportionate containment. Closing an alert requires a reason; a familiar process name alone does not establish that activity is benign.
A useful rule links relevant events into a testable detection hypothesis, such as repeated login failures followed by success from an unusual source. I define required fields, a time window and meaningful thresholds, then test benign and malicious cases. Enrichment and documented exceptions improve context. Rules also need ownership, versioning and monitoring for missing data, otherwise a broken parser can quietly disable detection.
Endpoint detection and response records process, file and network activity to support behavioural detection and investigation. It may also provide isolation and response actions, whereas traditional antivirus focuses more on identifying and blocking known or suspicious files. Features overlap between products. EDR requires deployment coverage, protected agents and analysts who review evidence; its presence does not guarantee detection of every intrusion.
An IOC is an observable artefact associated with compromise, such as a malicious file hash or domain. An IOA describes behaviour consistent with an attack, such as suspicious credential access followed by remote execution. Terminology varies across tools. I use artefacts for quick matching and behaviours for broader detection, validating context because shared infrastructure and legitimate administrative tools can produce misleading matches.
MITRE ATT&CK organises observed adversary behaviours into tactics and techniques. I use it to label evidence, identify visibility gaps and design detection tests. A tactic expresses an objective, while a technique describes a way to achieve it. Mapping an alert does not prove attribution or complete coverage; I document the actual telemetry and conditions that support a particular detection.
Threat hunting proactively searches for activity that existing alerts may have missed. I begin with a hypothesis, such as unexpected remote administration on sensitive hosts, and identify the telemetry needed to test it. I establish normal behaviour, examine exceptions and document findings. A hunt can end without an incident while still producing useful detection improvements, data gaps or a refined hypothesis.
Ethical hacking and VAPT
A penetration test starts with written authorisation, scope and rules of engagement. It then moves through reconnaissance, enumeration, vulnerability analysis and controlled exploitation, with post-exploitation only where explicitly allowed. Reporting, cleanup and retesting complete the work. I would preserve evidence and stop if a test threatens availability. The goal is to demonstrate relevant risk safely, not to maximise damage.
Passive reconnaissance gathers information without directly probing the target, using sources such as public records or published documentation. Active reconnaissance interacts with target systems, for example through authorised service discovery. Passive does not automatically mean unrestricted: privacy, contractual and legal constraints still apply. I record sources and stay within scope, because even a harmless-looking request can trigger controls or affect services.
A TCP connect scan completes connections through the operating system; a SYN scan probes connection establishment without a normal completed handshake and often needs elevated privileges. UDP scanning relies on responses and errors, so filtered or silent services can be ambiguous. Version detection adds probes. I choose approved targets and conservative timing; no scan type guarantees invisibility or perfectly identifies a service.
A vulnerability assessment identifies and prioritises weaknesses, often across a broad scope using scanners and manual checks. A penetration test validates selected attack paths and business impact through authorised exploitation. Scanner findings need verification, and a failed exploit does not prove a system is secure. The approaches complement each other; I choose depth and coverage according to the engagement's objectives.
A CVE identifier provides a common reference for a publicly disclosed vulnerability. CVSS describes technical severity using defined metrics; it is not a complete business-risk score. I confirm affected versions and applicability, then combine severity with exposure, exploit activity and asset importance. A high score on an isolated test system may need different prioritisation from an actively exploited flaw on an internet-facing service.
Privilege escalation gains permissions beyond the intended level, either vertically to a more powerful role or horizontally to another user's resources. Causes include weak permissions, vulnerable software and unsafe service configuration. In a permitted lab I demonstrate only the access needed to prove the finding. Defenders reduce risk through patching, least privilege, credential protection and monitoring unexpected changes to privileged groups or processes.
Metasploit is a framework for organising security testing modules, including exploits, auxiliary checks and payload handling. It can help validate a known weakness in an approved environment, but module descriptions and prerequisites must be reviewed first. I use minimal-impact validation, document results and clean up changes. A successful module does not replace explaining the vulnerability, its business impact and the appropriate remediation.
Brute force tries many guesses, password spraying tries a few common passwords across accounts, and credential stuffing reuses leaked credentials. Offline cracking attacks stolen hashes and is not stopped by login rate limits. Defences include unique passwords, phishing-resistant MFA, breached-password checks, adaptive throttling and strong password hashing. Testing must use agreed accounts and limits to avoid lockouts or unauthorised access.
Social engineering manipulates people into actions that undermine security; phishing delivers deceptive messages or sites to steal information or induce actions. Defences include trusted verification channels, reporting workflows, email protections and phishing-resistant authentication. Awareness training helps but should not be the only control. Simulated exercises require explicit approval, careful handling of personal data and a constructive response rather than blaming users.
Written authorisation should identify the approving asset owner, permitted systems, test period, methods and exclusions. Rules of engagement add communication contacts, stop conditions, data handling, evidence retention and cleanup requirements. Third-party platforms may need separate permission. I resolve ambiguity before testing and never treat public accessibility as consent. Any scope change needs approval, especially for phishing, persistence or access to sensitive records.
Web application security
The OWASP Top 10 highlights important categories of web application security risk, including access-control failures and injection-related weaknesses. It is an awareness document, not a complete test plan or certification checklist. I check the current edition, then use application-specific threat modelling and standards such as ASVS to define requirements. A system can avoid listed examples and still have serious business-logic flaws.
SQL injection happens when untrusted input changes the meaning of a database query, commonly through unsafe string concatenation. Parameterised queries separate values from SQL syntax; dynamic identifiers need strict allowlists. Least-privilege database accounts and safe error handling reduce impact. Input validation helps but does not replace parameterisation, and an ORM is protective only when raw queries and dynamic construction are handled safely.
Stored XSS persists malicious content for later rendering; reflected XSS returns attacker-controlled input in a response; DOM-based XSS arises from unsafe client-side processing. These categories can overlap. Prevention requires context-appropriate output encoding, safe DOM APIs and sanitisation when allowing rich HTML. Content Security Policy adds defence but is not a substitute for fixing unsafe data flows and executable insertion points.
Cross-site request forgery tricks a victim's browser into sending an unwanted authenticated request, often using automatically attached cookies. Anti-CSRF tokens, appropriate SameSite cookies and origin checks help protect state-changing operations. GET requests should not change state. XSS can undermine CSRF protections, and cross-origin restrictions alone are insufficient because browsers can send some requests even when scripts cannot read their responses.
IDOR occurs when changing an object reference exposes or modifies another user's resource because the server fails to check permission. Unpredictable identifiers make guessing harder but do not fix missing authorisation. I verify access against the authenticated identity for every object and action, including downloads and bulk operations. Tests should cover different users, roles and tenants rather than only a successful owner request.
Server-side request forgery makes a server fetch an attacker-influenced destination, potentially reaching internal services or metadata endpoints. I restrict permitted destinations and protocols, validate resolved addresses and handle redirects carefully. Egress controls and metadata-service protections add layers. Blocking a few hostname strings is insufficient because alternate address formats, DNS changes or redirects can bypass naive validation and reach sensitive networks.
Secure cookies are sent over HTTPS, HttpOnly prevents direct JavaScript access, and SameSite constrains cross-site sending. I also use narrow scope, unpredictable session identifiers, expiry and server-side invalidation. Rotate sessions after login or privilege changes to resist fixation. HttpOnly limits cookie theft but does not stop XSS from issuing authenticated requests, so application security and session protection must work together.
Cross-Origin Resource Sharing tells browsers when scripts from another origin may read a response. It is not authentication, authorisation or a firewall, and non-browser clients do not enforce it. I allow only trusted origins, especially for credentialed requests, and avoid blindly reflecting the Origin header. Preflight behaviour does not guarantee that every unwanted cross-origin request will be prevented.
Validate on the server against expected types, lengths, ranges and allowed values, with clear treatment of malformed or duplicate fields. Client validation improves usability but can be bypassed. Normalise carefully before checking values where appropriate. Validation does not replace output encoding, parameterised queries or authorisation. For uploads, also restrict size and content types, inspect files and keep them outside executable application paths.
Burp Suite can proxy permitted browser traffic, inspect requests and responses, and replay controlled variations to investigate weaknesses. I define target scope, use test accounts and avoid sending sensitive production data unnecessarily. Repeater is useful for comparing authorisation behaviour between accounts. Automated scanning depends on edition and approval; tool findings still need manual validation, impact assessment and a clear remediation explanation.
Cloud security
The provider secures its underlying cloud infrastructure, while customers secure their configurations, identities, data and workloads according to the service used. On virtual machines, customers generally manage guest operating-system patching; managed services shift some tasks to the provider. I check the exact service responsibilities rather than assuming cloud hosting removes security work. Access reviews, monitoring and recovery planning remain customer concerns.
I prefer federated access and roles with temporary credentials, then scope policies to required actions, resources and conditions. Explicit denies override allows, while organisational controls and permission boundaries can further limit effective access. I review real usage and remove unnecessary permissions. Wildcard administrator policies are not a sensible default, and resource policies must also be checked when assessing cross-account access.
I review account and bucket Block Public Access settings, bucket policies, access points and any enabled ACLs. I identify affected objects and audit access before changing permissions through the incident process. Least-privilege roles and explicit sharing methods reduce exposure. Encryption at rest does not prevent an authorised public read, and a presigned URL still needs controlled permissions, expiry and handling.
Security groups apply to network interfaces, are stateful and support allow rules. Network ACLs apply at subnet boundaries, are stateless and support ordered allow and deny rules. Return traffic needs corresponding NACL permissions, including appropriate ephemeral ports. I use security groups for workload access and NACLs for additional subnet controls, checking routes and both traffic directions when troubleshooting connectivity.
KMS manages cryptographic keys and integrates with services for encryption and auditing. Envelope encryption commonly uses a data key to encrypt content and a KMS key to protect that data key. Key policies and IAM permissions control usage. I protect decryption access, plan rotation and avoid accidental key deletion; encrypted data remains exposed if an attacker legitimately obtains permission to decrypt it.
CloudTrail records AWS API activity for auditing, while GuardDuty analyses supported telemetry to identify suspicious behaviour. I configure the required regions, retention and event coverage, including relevant data events where needed. GuardDuty findings are investigation leads, not conclusive proof. Protected central logs and accurate timestamps help reconstruct who acted, which resources were affected and whether activity continued across accounts.
Use a managed secrets store and workload identities rather than committing credentials to source code, images or infrastructure files. Fetch secrets with narrowly scoped permissions and support rotation without exposing values in logs. Temporary credentials are preferable where supported. If a secret leaks, revoke or rotate it and investigate usage; removing it from the latest commit does not erase repository history or prior exposure.
Cloud services can be securely designed yet exposed by permissive identity policies, public storage or unrestricted network access. Changes are easy to scale, so one incorrect template can affect many resources. I use reviewed infrastructure definitions, preventive guardrails, configuration monitoring and drift detection. Calling misconfiguration important does not require claiming a universal ranking; its impact depends on the environment and exposed assets.
Zero trust avoids granting access solely because a request comes from an internal network. Access decisions consider identity, device posture, resource sensitivity and context, with least privilege and continued evaluation. It is an architectural approach rather than one product. I apply it incrementally to important workflows, retaining segmentation and monitoring while planning availability and recovery if identity or policy systems fail.
Image scanning checks operating-system packages, application dependencies and sometimes secrets or configuration weaknesses. I scan during builds and rescan stored images as vulnerability information changes, prioritising exploitable exposure rather than score alone. Use trusted minimal bases, immutable digests and verified provenance. Image scanning cannot detect every runtime attack or unsafe deployment permission, so workload isolation and runtime monitoring are still required.
Incident response, malware and scenarios
The commonly taught lifecycle covers preparation; detection and analysis; containment, eradication and recovery; and lessons learned. NIST SP 800-61 Rev. 3 frames incident response within CSF 2.0 risk management, with Detect, Respond and Recover supported by preparation and improvement. I explain the version being referenced and follow the organisation's playbook, preserving evidence and feeding lessons back into preventive and detective controls.
Activate the incident plan, isolate affected systems through approved methods and assess the spread while preserving useful evidence. Protect backups and investigate compromised identities and entry points. Coordinate with incident leadership, legal and recovery teams before disruptive actions or external communication. Restore only into a verified clean environment. Payment is a management and legal decision, not an analyst's default recovery method.
Chain of custody records who collected, handled, transferred and stored evidence, with times, methods and purposes. I preserve original material, work on controlled copies and record cryptographic hashes to detect changes. Hashes alone do not prove who handled the evidence. Access restrictions, documented tools and reliable timestamps support integrity, while retention and collection procedures must follow organisational policy and applicable legal requirements.
Viruses attach to host content, worms can spread independently, and trojans disguise malicious functionality as legitimate software. Ransomware encrypts or otherwise disrupts data for extortion, while spyware collects information and rootkits conceal access. Categories can overlap in one campaign. I analyse observed behaviour and affected assets rather than relying solely on a filename, label or antivirus detection to determine response actions.
Preserve the original message and inspect sender details, headers, authentication results, reply addresses and link destinations using safe tools. I review attachments in an approved isolated environment rather than opening them on my workstation. SPF, DKIM or DMARC success does not prove content is harmless. Then I search for related messages and clicks, document evidence and escalate blocking or removal through the playbook.
I collect the time, URL, device and what happened next, without blaming the user. Clicking, entering credentials and running a downloaded file imply different risks. I inspect endpoint, browser and identity telemetry; isolate or revoke sessions where justified and approved. Credential resets should use a trusted device. I also check other recipients and related activity before declaring the incident resolved.
Look for unusual remote logins, administrative shares, remote execution and authentication patterns between hosts, especially after an initial compromise. Correlate identity, endpoint and network evidence with approved administrator activity. Legitimate tools can be abused, so their presence alone is not enough. Establish source, destination, account and timeline, then investigate credential theft and constrain affected access through the incident process.
The 3-2-1 principle keeps three copies of data on two different media or storage types, with one copy offsite. Ransomware resilience also benefits from offline or immutable copies and separate administrative credentials. I define recovery objectives and test restores, including application dependencies. Replication alone is not a backup because deletion or corruption can replicate; successful backup jobs do not prove successful recovery.
Business continuity plans how essential operations continue during disruption, including people, communication, suppliers and alternative processes. Disaster recovery focuses on restoring technology and data. Recovery time objective defines the targeted restoration time; recovery point objective defines tolerable data loss. I align technical recovery plans with business priorities and exercise them together, because a restored server is not automatically a functioning business service.
I describe the affected business process, the observed weakness and a realistic consequence in plain language. Separate verified evidence from assumptions, explain existing controls and propose a prioritised remediation with an owner and validation step. Avoid unsupported loss figures or alarmist language. Management needs enough context to choose treatment or accept risk knowingly, while technical evidence remains available for the teams implementing the fix.
Advanced Cybersecurity CourseCyber security course in ChennaiCyber security course in BangaloreEthical Hacking course
Put your security knowledge into practice.
Explore the Advanced Cybersecurity Course for networking foundations, CEH v13-aligned ethical hacking and AWS basics. Review the syllabus and ask about guided labs and interview preparation before choosing your next step.
