Skip to content

Cybersecurity Analyst interview questions

100 real questions with model answers and explanations for Junior candidates.

See a Cybersecurity Analyst resume example

Practice with flashcards

Spaced repetition · Hunter Pass

Questions

fundamentals

The CIA triad describes confidentiality, integrity, and availability as the core goals of information security.

  • Confidentiality limits information access to authorized people and systems.
  • Integrity protects data from unauthorized or accidental alteration.
  • Availability keeps systems and information accessible when authorized users need them.
  • Security controls often support several goals, but a decision may trade one goal against another.

Why interviewers ask this: The interviewer checks whether you can define the three security goals and apply them beyond memorizing the acronym.

vulnerabilitiesrisk-management

A threat can cause harm, a vulnerability is a weakness, and risk reflects the likelihood and impact of exploitation.

  • A threat may be an attacker, malicious software, human error, or a natural event.
  • A vulnerability may be an unpatched service, weak password, or unsafe process.
  • Risk exists when a relevant threat can exploit a vulnerability and affect an asset.
  • Controls reduce risk by lowering likelihood, impact, or both.

Why interviewers ask this: A strong answer distinguishes the terms and explains how they combine in risk assessment.

controls

Assets are things worth protecting, exposures are conditions that can lead to loss, and controls reduce that possibility.

  • Assets include data, identities, devices, applications, services, and business processes.
  • Exposure describes being subject to harm, even when no specific software flaw is present.
  • Preventive controls try to stop unwanted events, while detective controls reveal them.
  • Corrective controls restore a secure state or reduce damage after a problem occurs.

Why interviewers ask this: The interviewer evaluates whether you understand the basic objects and safeguards used in security analysis.

fundamentals

Defense in depth uses multiple independent security layers so one failed control does not expose the entire system.

  • Identity controls restrict who can sign in and what they can access.
  • Network and endpoint controls limit communication and malicious execution.
  • Logging and monitoring provide visibility when preventive controls fail.
  • Backups and recovery measures reduce impact when an attack still succeeds.

Why interviewers ask this: A strong answer explains layered protection rather than naming one product as complete security.

fundamentals

An attack surface is the set of reachable points where an attacker could try to enter, extract data, or affect a system.

  • It includes internet-facing services, endpoints, user accounts, APIs, and physical access.
  • Unused ports, excessive permissions, and forgotten cloud resources expand the attack surface.
  • Asset inventory is necessary because unknown systems cannot be secured consistently.
  • Removing unnecessary exposure is usually safer than relying only on detection around it.

Why interviewers ask this: The interviewer checks whether you connect system exposure with inventory and reduction of unnecessary entry points.

social-engineering

Phishing uses deceptive communication to make a person reveal information, open malicious content, or authorize an action.

  • Messages often imitate a trusted organization and create urgency or fear.
  • Spear phishing targets a specific person with tailored details, while broad phishing reaches many recipients.
  • Link inspection, verified communication channels, email filtering, and user training reduce exposure.
  • MFA limits some credential theft impact, although phishing-resistant factors provide stronger protection.

Why interviewers ask this: A strong answer covers the social mechanism, common forms, and layered protections.

malware

Malware is software designed to disrupt systems, steal information, gain access, or perform unauthorized actions.

  • A virus attaches to other files, while a worm can spread between systems without user action.
  • A trojan disguises itself as legitimate software to persuade a user to run it.
  • Spyware collects information, while a rootkit attempts to hide malicious presence or preserve privileged access.
  • Modern malware may combine several behaviors, so categories describe capabilities rather than strict boundaries.

Why interviewers ask this: The interviewer checks whether you can distinguish major malware behaviors without treating every malicious file as the same.

malware

Ransomware is malware that denies access to data or systems and demands payment for restoration or non-disclosure.

  • Many campaigns encrypt files, while double-extortion campaigns also steal data before encryption.
  • Initial access commonly involves phishing, stolen credentials, or exposed unpatched services.
  • Segmentation, patching, MFA, endpoint protection, and restricted privileges reduce likelihood and spread.
  • Tested offline or immutable backups reduce recovery dependence on the attacker.

Why interviewers ask this: A strong answer describes both encryption and extortion while naming preventive and resilience controls.

passwordsattacks

The three attacks misuse credentials differently based on how passwords and accounts are selected.

  • Brute force tries many password guesses against one or more accounts.
  • Password spraying tries a small set of common passwords across many accounts to avoid lockouts.
  • Credential stuffing reuses username and password pairs stolen from another service.
  • MFA, rate limits, breached-password checks, strong password policy, and anomaly detection reduce their effectiveness.

Why interviewers ask this: The interviewer checks whether you can distinguish credential attacks and match them with appropriate controls.

social-engineering

Social engineering manipulates people into bypassing normal security behavior or disclosing protected information.

  • Pretexting creates a believable identity or story to justify a request.
  • Baiting offers something attractive, while tailgating seeks physical access by following an authorized person.
  • Verification through a separate trusted channel breaks the attacker's control of the conversation.
  • Clear procedures and a culture that rewards cautious reporting are as important as awareness training.

Why interviewers ask this: A strong answer recognizes that social engineering targets trust and process, not only technical weaknesses.

injectionweb-attackssql

SQL injection occurs when untrusted input changes the structure or meaning of a database query.

  • String concatenation can let attacker-controlled characters become executable SQL syntax.
  • Parameterized queries keep code separate from values and are the primary defense.
  • Input validation helps enforce expected formats but should not replace parameterization.
  • Least-privileged database accounts limit damage if an injection flaw remains.

Why interviewers ask this: The interviewer checks whether you understand the cause of SQL injection and the correct primary control.

web-attacks

Cross-site scripting, or XSS, makes a trusted website execute attacker-controlled script in a user's browser.

  • Stored XSS persists malicious content on the server, while reflected XSS returns it in an immediate response.
  • DOM-based XSS arises when client-side code writes unsafe data into a dangerous browser sink.
  • Context-aware output encoding and safe templating prevent data from becoming executable markup or script.
  • Content Security Policy adds defense in depth but does not replace correct encoding.

Why interviewers ask this: A strong answer distinguishes XSS types and identifies output encoding as the central defense.

web-attacks

Cross-site request forgery, or CSRF, tricks an authenticated browser into sending an unwanted request to a trusted site.

  • The browser may automatically attach session cookies even when the request started on a malicious page.
  • Anti-CSRF tokens bind state-changing requests to the legitimate application session.
  • SameSite cookies and origin checks provide additional protection.
  • CSRF differs from XSS because it abuses an existing session rather than executing script in the trusted page.

Why interviewers ask this: The interviewer checks whether you understand the browser behavior behind CSRF and how it differs from XSS.

owasp

The OWASP Top 10 is an awareness document describing broad categories of important web application security risks.

  • Categories include broken access control, injection, cryptographic failures, and security misconfiguration.
  • It helps teams share terminology and prioritize secure development education.
  • It is not a complete testing checklist and does not rank every vulnerability in a specific application.
  • Risk decisions still require application context, threat modeling, and evidence from testing.

Why interviewers ask this: A strong answer treats OWASP Top 10 as guidance rather than a security certification or exhaustive standard.

web-attacks

Broken access control allows a user to perform an action or access data beyond their intended permissions.

  • Examples include viewing another user's record by changing an identifier or reaching an admin function directly.
  • Authorization must be enforced on the server for every protected object and action.
  • Deny-by-default rules and centralized policy reduce missed checks.
  • Tests should cover horizontal access between peers and vertical access to higher privileges.

Why interviewers ask this: The interviewer checks whether you understand that authentication alone does not enforce permissions.

injectionvulnerabilities

Injection is prevented by keeping untrusted data separate from executable commands and enforcing expected input structure.

  • Parameterized interfaces should be used for SQL, operating-system commands, and similar interpreters when available.
  • Allowlist validation rejects values outside the required format or range.
  • Output encoding is context-specific and is especially important when data enters HTML, JavaScript, or shell contexts.
  • Least privilege limits the actions available to the interpreter if another control fails.

Why interviewers ask this: A strong answer names structural defenses instead of relying on ad hoc character filtering.

web-attacks

Security misconfiguration is an unsafe setting or default that exposes more capability or information than intended.

  • Examples include default credentials, public storage, verbose errors, and unnecessary services.
  • Secure baselines such as CIS Benchmarks make expected settings explicit and repeatable.
  • Automated configuration checks can detect drift from an approved baseline.
  • Hardening must be maintained through updates because new features and defaults can change exposure.

Why interviewers ask this: The interviewer checks whether you recognize configuration as an ongoing security control rather than a one-time setup task.

network-securitynetworking

A firewall permits or blocks network traffic according to rules about source, destination, protocol, port, and connection state.

  • Packet-filtering firewalls evaluate header fields, while stateful firewalls also track established connections.
  • Rules should allow required communication and deny unnecessary paths.
  • Host firewalls protect individual endpoints, while network firewalls control traffic between network zones.
  • Firewall logs provide evidence of allowed and denied connections but do not prove that permitted traffic is safe.

Why interviewers ask this: A strong answer explains rule-based traffic control and the limits of a firewall.

network-security

Network segmentation divides systems into zones so communication can be limited according to trust and business need.

  • User devices, servers, management systems, and sensitive databases should not share unrestricted connectivity.
  • Access control lists and firewalls enforce which protocols may cross zone boundaries.
  • Segmentation reduces lateral movement and limits the reach of compromised accounts or devices.
  • Segments require maintained asset classification and rules or they become broad, ineffective trust zones.

Why interviewers ask this: The interviewer checks whether you connect segmentation with controlled communication and reduced blast radius.

network-security

An IDS detects and alerts on suspicious traffic, while an IPS can also block or modify traffic inline.

  • Signature-based detection matches known patterns and is precise for covered threats.
  • Anomaly-based detection looks for deviations but may generate more false positives.
  • An IPS can stop activity quickly but an incorrect rule may disrupt legitimate traffic.
  • Both require current rules, relevant traffic visibility, and tuning for the protected environment.

Why interviewers ask this: A strong answer distinguishes passive detection from inline prevention and explains their tradeoff.

Locked questions

  • 21

    How does a VPN protect network communication?

    network-security
  • 22

    Why should a security analyst understand ports, TCP, and UDP?

    networking
  • 23

    What is a web application firewall?

    network-securitynetworking
  • 24

    What is Burp Suite used for?

    appsec-tools
  • 25

    What is Wireshark used for?

    network-tools
  • 26

    What is the difference between hashing and encryption?

    encryptioncryptography
  • 27

    How do symmetric and asymmetric encryption differ?

    encryptioncryptography
  • 28

    What does a digital signature provide?

    cryptography
  • 29

    What are PKI and digital certificates?

    cryptography
  • 30

    How does TLS protect a connection?

    tlscryptography
  • 31

    Why are passwords hashed with a unique salt?

    passwords
  • 32

    What is the difference between encryption at rest and encryption in transit?

    encryptioncryptographyrest
  • 33

    What is the difference between authentication and authorization?

    authidentity-access
  • 34

    What is multi-factor authentication?

    authidentity-access
  • 35

    What is role-based access control?

    identity-access
  • 36

    What is the principle of least privilege?

    least-privilegeaccess-control
  • 37

    What is privileged access management?

    identity-access
  • 38

    What is a SIEM and what does Splunk provide in that role?

    siem
  • 39

    Which log sources are most useful for security monitoring?

    monitoring
  • 40

    What makes a security log useful?

    logging
  • 41

    What are false positives and false negatives in security monitoring?

    detection-tuningmonitoring
  • 42

    What do vulnerability scanners such as Nessus and Qualys do?

    vulnerabilitiesscanners
  • 43

    What are CVE, CWE, and CVSS?

    vuln-management
  • 44

    How do vulnerability management and patch management differ?

    vulnerabilitiesvuln-management
  • 45

    How do antivirus and EDR differ?

    endpoints
  • 46

    What is the MITRE ATT&CK framework?

    threat-intel
  • 47

    What is the NIST Cybersecurity Framework?

    governance
  • 48

    What is ISO 27001?

    governance
  • 49

    What are CIS Benchmarks?

    governance
  • 50

    What is the difference between security and compliance?

    compliance
  • 51

    A SIEM alert reports a successful login from an unfamiliar country. How would you triage it?

    alertingsiem
  • 52

    An impossible-travel alert shows logins from two distant cities within ten minutes. What would you check?

    alerting
  • 53

    A user receives repeated MFA prompts they did not initiate. How would you respond?

    identity-access
  • 54

    Your SIEM generates hundreds of failed-login alerts for one public service. How would you decide whether it is a brute-force attack?

    alertingsiem
  • 55

    An alert says a standard user account was added to a privileged group. How would you investigate?

    incident-responsealerting
  • 56

    CrowdStrike flags PowerShell with an encoded command on an employee laptop. What would you do?

    edr
  • 57

    An EDR alert detects malware on a workstation, but the file was quarantined automatically. Is the case finished?

    malwareendpointsalerting
  • 58

    When would you isolate an endpoint during an investigation?

    incident-responseendpoints
  • 59

    Several endpoints suddenly rename files and contact the same unknown domain. How would you respond?

    endpoints
  • 60

    An employee forwards a suspicious email to the security team. How would you analyze and respond to it?

  • 61

    How would you investigate a link from a suspected phishing email without putting your workstation at risk?

    social-engineeringincident-responserisk-management
  • 62

    A suspicious attachment is included in a phishing report. How would you examine it?

    social-engineering
  • 63

    A user's mailbox starts sending phishing messages internally. What would you do?

    social-engineering
  • 64

    Finance reports an email requesting an urgent bank-account change from a known vendor. How would you handle it?

    procurement
  • 65

    A user granted a newly registered OAuth application access to email and files. How would you investigate?

    oauthidentity-accessincident-response
  • 66

    A data-loss alert shows a large upload to a personal cloud-storage service. How would you triage it?

    discoveryalertingcloud-security
  • 67

    DNS logs show one workstation querying many random-looking subdomains. How would you investigate?

    queriesdnsincident-response
  • 68

    A server begins making outbound connections to an unfamiliar IP every five minutes. How would you analyze it?

  • 69

    You receive a packet capture for a suspected data transfer. What would you examine in Wireshark?

    network-tools
  • 70

    A SIEM alert contains only an IP address and a rule name. How would you add enough context to triage it?

    alertingsiem
  • 71

    How would you build a timeline for suspicious activity seen across several log sources?

  • 72

    Two log sources disagree by several minutes during an incident. What would you do?

    conflictincidents
  • 73

    A SIEM rule repeatedly alerts on an approved backup process. How would you reduce the false positives safely?

    alertingsiemconcurrency
  • 74

    You have five alerts at once: malware on a laptop, a public test server scan, an executive login anomaly, a blocked phishing email, and an offline printer alert. How would you prioritize them?

    social-engineeringmalwareprioritization
  • 75

    Ten alerts appear to involve the same user and workstation. How would you handle them efficiently?

    alerting
  • 76

    Nessus reports a critical vulnerability on a production server. What would you verify before escalating it?

    escalationvulnerabilitiesscanners
  • 77

    A system owner says a vulnerability-scanner finding is a false positive. How would you handle the disagreement?

    vulnerabilitiesdetection-tuningsystem-design
  • 78

    A scanner returns thousands of vulnerabilities. How would you help prioritize remediation?

    vulnerabilities
  • 79

    An internet-facing service has a high-risk vulnerability, but no patch is available yet. What would you recommend?

    vulnerabilitiesrisk-management
  • 80

    A credentialed vulnerability scan suddenly reports far fewer findings than usual. How would you investigate?

    vulnerabilitiesincident-response
  • 81

    A web scanner reports possible SQL injection in an internal application. How would you validate and route the finding?

    injectionvalidationweb-attacks
  • 82

    AWS Security Hub flags a storage bucket as publicly accessible. What would you do?

  • 83

    A developer reports that an AWS access key was committed to a public repository. How would you respond?

  • 84

    A new privileged pod appears in a Kubernetes cluster with no matching deployment ticket. How would you investigate?

    kubernetesdeploymentincident-response
  • 85

    A container-image scanner finds a critical package vulnerability in many images. How would you help the team respond?

    vulnerabilitiescontainers
  • 86

    You are asked to collect basic forensic evidence from a suspected compromised laptop. How would you proceed?

    forensicsincident-response
  • 87

    A suspicious workstation is still powered on. Should you shut it down?

  • 88

    How would you maintain chain of custody for a collected disk image?

    forensics
  • 89

    An endpoint was isolated after malware execution. What would you check before returning it to service?

    malwareendpoints
  • 90

    What actions would you take after confirming an employee account is compromised?

    incident-response
  • 91

    When should a junior analyst escalate an investigation?

    escalationincident-response
  • 92

    An alert starts as low severity but later shows activity on a domain controller. What would you do?

    severity-priorityalerting
  • 93

    How would you brief a non-technical manager during an active security incident?

    incidentscommunication
  • 94

    Your shift ends while an investigation is still active. How would you hand it over?

    incident-response
  • 95

    You encounter a security event that is not covered by an existing playbook. What would you do?

  • 96

    You discover that authentication logs contain passwords or access tokens. How would you respond?

    authpasswordstokens
  • 97

    A senior teammate wants to close an alert, but an important data source has not been checked. What would you do?

    alerting
  • 98

    The alert queue is growing faster than your team can investigate it. How would you work safely?

    incident-responsedata-structuresalerting
  • 99

    You realize that your earlier triage missed evidence and delayed an escalation. What would you do?

    escalation
  • 100

    Two teammates disagree about isolating a critical server during an investigation. How would you help resolve it?

    conflictincident-response