Careers · 44 questions

Cyber security interview questions & model answers

Real questions asked for SOC, incident response, pentest, cloud, GRC, architecture, leadership and AI security roles, with concise model answers. Read the answer, then say it in your own words with an example from your work.

SOC analyst (L1/L2)Incident response & DFIRPenetration testing & AppSecCloud securityGRC, risk & auditSecurity architecture & IAMLeadership & CISOAI security

SOC analyst (L1/L2)

Walk me through how you triage a new alert.

Confirm it is real (check the raw event, not just the alert title), scope it (which user, host, IP, time window), enrich it (threat intel, asset criticality, user context), decide true/false/benign positive, then contain or escalate per the playbook and document every step so the next analyst can follow your reasoning.

What is the difference between an event, an alert and an incident?

An event is any observable occurrence. An alert is an event (or correlation of events) that a rule flagged as possibly malicious. An incident is a confirmed or highly likely violation of security policy that needs a response.

How would you investigate a suspected phishing email a user reported?

Look at headers (Return-Path, Received chain, SPF/DKIM/DMARC results), detonate links and attachments in a sandbox, search the mail gateway for the same sender, subject or URL across all mailboxes, check proxy/EDR logs for anyone who clicked, purge copies, block indicators and reset credentials for anyone who submitted them.

Explain SPF, DKIM and DMARC in one minute.

SPF lists the servers allowed to send for a domain. DKIM signs messages so the receiver can verify they were not altered and came from the domain's key. DMARC tells receivers what to do when SPF/DKIM alignment fails (none, quarantine, reject) and where to send reports.

Which Windows event IDs do you watch most?

4624/4625 (logon success/failure), 4672 (special privileges), 4688 (process creation, with command line), 4720/4728/4732 (account and group changes), 7045 (new service), 1102 (log cleared), 4104 (PowerShell script block) and Sysmon 1/3/11 if deployed.

What is a false positive and how do you reduce them without missing attacks?

An alert on benign activity. Tune with precise exclusions (specific host, path and hash rather than a whole process name), add context to the rule, track the false-positive rate per rule, and never delete a rule without checking the detection coverage it provided.

How do you tell whether a PowerShell command is malicious?

Look for encoded commands (-enc), download cradles (IEX, Net.WebClient, Invoke-WebRequest), AMSI bypass strings, hidden windows, unusual parent processes (Word spawning PowerShell) and connections to rare domains; then decode and read it rather than guessing.

What is lateral movement and how would you detect it?

An attacker moving from the first compromised host to others, for example with RDP, SMB/PsExec, WMI, WinRM or stolen tokens. Detect unusual logon types (3 and 10) between workstations, new service installs, admin share access and authentication from hosts that never normally talk to each other.

Incident response & DFIR

Describe the incident response lifecycle.

NIST SP 800-61 describes preparation; detection and analysis; containment, eradication and recovery; and post-incident activity. The 2025 revision aligns these with the NIST CSF 2.0 functions, but interviewers still expect the classic phases.

Your EDR flags ransomware on one server at 2 a.m. What do you do in the first hour?

Isolate the host via EDR (do not power it off, to preserve memory), confirm scope by searching for the same indicators across the estate, disable compromised accounts, protect backups, open the incident bridge, start a timeline, and assess regulatory clocks such as CERT-In's 6-hour reporting rule in India.

What is the order of volatility?

Collect the most volatile evidence first: CPU registers and cache, memory, network state and running processes, temporary files, disk, then remote logs and archival media.

How do you preserve chain of custody?

Record who collected each item, when, how and where it was stored; hash images at acquisition (SHA-256); work on copies; and log every transfer.

What artefacts show program execution on Windows?

Prefetch, Amcache, Shimcache, SRUM, UserAssist, BAM/DAM, Event ID 4688 and Sysmon Event 1.

Penetration testing & AppSec

Explain the OWASP Top 10 categories you test most often.

Broken access control (IDOR, missing function-level checks), injection, cryptographic failures, security misconfiguration, vulnerable components and authentication failures; I map findings to the current OWASP Top 10 edition in reports.

What is the difference between stored, reflected and DOM XSS?

Stored XSS is saved by the server and served to other users; reflected XSS bounces off a request parameter in the response; DOM XSS happens entirely in client-side JavaScript sinks without the server reflecting the payload.

How do you prevent SQL injection?

Parameterised queries or prepared statements everywhere, least-privilege database accounts, allow-list input validation as defence in depth, and no dynamic SQL built from user input.

What is SSRF and why is it dangerous in the cloud?

Server-side request forgery makes the server fetch a URL the attacker chooses. In the cloud it can reach the instance metadata service and steal temporary credentials; IMDSv2, egress filtering and URL allow-lists reduce the risk.

How do you scope and run a pentest legally?

Signed authorisation and rules of engagement, an agreed scope (IPs, URLs, accounts), testing windows, emergency contacts, data-handling rules and a stop condition. Never test anything outside written scope.

Explain CVSS versus EPSS.

CVSS rates technical severity; EPSS estimates the probability of exploitation in the next 30 days. Combine both with CISA KEV (known exploitation) and asset criticality to prioritise patching.

What is a CSRF attack and how is it prevented?

Tricking a logged-in browser into sending a state-changing request. Prevent with anti-CSRF tokens, SameSite cookies and re-authentication for sensitive actions.

Cloud security

What is the shared responsibility model?

The provider secures the cloud (facilities, hardware, hypervisor); the customer secures what they put in it (identity, data, configuration, network rules, workloads). The split shifts with IaaS, PaaS and SaaS.

How would you find and fix a public S3 bucket or storage account?

Use CSPM or provider tools (AWS Config, Access Analyzer, Defender for Cloud), enable account-level Block Public Access, review bucket policies and ACLs, check access logs for exposure, and rotate any secrets that were in the data.

How do you secure cloud identities?

SSO with MFA (phishing-resistant for admins), no long-lived access keys, least-privilege roles, just-in-time elevation, permission boundaries/SCPs, and monitoring for unusual API calls such as new access keys or disabled logging.

What logs must be on in AWS or Azure from day one?

AWS CloudTrail (all regions, to a protected bucket), GuardDuty, VPC Flow Logs and Config; in Azure, the Activity Log, Entra sign-in and audit logs, Defender for Cloud and NSG flow logs, all sent to a central SIEM.

How do you secure Kubernetes?

Private API server, RBAC with least privilege, Pod Security Admission, network policies, image scanning and signing, secrets in a vault, no privileged containers, and audit logging.

GRC, risk & audit

How do you run a risk assessment?

Define scope and assets, identify threats and vulnerabilities, assess likelihood and impact with a consistent method, compare against risk appetite, agree treatment (mitigate, transfer, avoid, accept) with an owner and date, and review regularly.

What changed in ISO/IEC 27001:2022?

Annex A was restructured into 93 controls in four themes (organisational, people, physical, technological), with 11 new controls such as threat intelligence, cloud services, data leakage prevention and secure coding.

SOC 2 Type I versus Type II?

Type I tests whether controls are suitably designed at a point in time; Type II tests whether they operated effectively over a period, usually 6 to 12 months.

How do you assess a third-party vendor?

Tier the vendor by data access and criticality, send a proportionate questionnaire, review evidence (SOC 2, ISO certificate, pentest summary), check contract clauses (breach notification, audit rights, sub-processors), track remediation and reassess on a schedule.

What does India's DPDP Act require of a company?

Lawful processing based on notice and consent or a legitimate use, reasonable security safeguards, breach notification to the Data Protection Board and affected people, data-principal rights and grievance redressal. Most obligations apply from 13 May 2027 under the 2025 Rules.

How would you explain a cyber risk to the board?

In business terms: which service could stop, for how long, the likely cost range, what we are doing about it, what decision or money we need from them, and how we will know it worked.

What is the difference between a policy, a standard and a procedure?

A policy states intent and is approved by leadership; a standard sets mandatory specific requirements; a procedure gives step-by-step instructions; guidelines are recommended practice.

Security architecture & IAM

What is zero trust?

No implicit trust based on network location: every request is authenticated, authorised and evaluated continuously using identity, device health and context, with least privilege and micro-segmentation (NIST SP 800-207).

Explain OAuth 2.0 versus OpenID Connect versus SAML.

OAuth 2.0 delegates authorisation (access tokens for APIs). OpenID Connect adds an identity layer on top of OAuth (ID tokens). SAML is an older XML-based federation standard mostly used for enterprise web SSO.

Why is phishing-resistant MFA better than SMS or push codes?

FIDO2/passkeys bind authentication to the real site's origin, so a fake site cannot relay it; SMS and push can be phished, SIM-swapped or approved through MFA fatigue.

How do you manage privileged access?

Inventory privileged accounts, vault and rotate credentials, use just-in-time elevation, separate admin accounts and workstations, record sessions, and review access regularly.

Symmetric versus asymmetric encryption?

Symmetric uses one shared key and is fast (AES). Asymmetric uses a key pair (RSA, ECC) and solves key exchange and signatures. TLS uses asymmetric crypto to agree a symmetric session key.

Leadership & CISO

How do you build a security strategy in your first 90 days?

Listen first (business goals, crown jewels, recent incidents, regulators), baseline maturity against a framework such as NIST CSF 2.0, pick a few quick wins, then publish a prioritised three-year roadmap tied to business risk and budget.

How do you measure the security programme?

A small set of outcome metrics: time to detect and contain, patch latency for known-exploited vulnerabilities, MFA and EDR coverage, third-party risk closure, phishing-report rate and control-test results, trended over time.

How do you handle a business unit that wants to accept a high risk?

Make sure they understand it in business terms, document the risk acceptance with an accountable owner at the right level, set an expiry date and compensating controls, and report it in the risk register.

Tell me about a security decision you got wrong.

Use the STAR format, be specific about what you misjudged, and focus on what you changed afterwards (process, metric or control). Interviewers are testing honesty and learning, not perfection.

AI security

What is prompt injection?

Instructions hidden in input (user text, documents, web pages) that make an LLM ignore its intended instructions. Mitigate with least-privilege tools, human approval for risky actions, separation of trusted and untrusted content, and output filtering.

How would you govern employee use of generative AI tools?

An acceptable-use policy, an approved-tools list with enterprise data controls, data classification rules for prompts, DLP and logging, vendor assessments for AI suppliers, and training on what not to paste.

What new risks do AI agents add compared with chatbots?

They take actions with real permissions: excessive agency, tool misuse, data exfiltration through tool calls, supply-chain risk in plugins and MCP servers, and harder audit trails. Scope permissions tightly and log every action.

Next: plan the path

Roles, salary ranges in India and certification routes.

Career guide →

Original content © CyberStrategiX. Not affiliated with any employer or certification body.