Skip to content
RED SAGSkills

Cyber Security interview questions and answers

Cyber security interview questions cover how attacks happen and how teams detect and respond to them, from fundamentals to the SOC.

Below are 60 Cyber Security questions with the correct answer and a short explanation, grouped from fresher to experienced level. Try each one before you open the answer.

What Cyber Security interviews usually check

  • ✓CIA triad, threats and vulnerabilities
  • ✓Common attacks: phishing, malware and injection
  • ✓SIEM and alert triage
  • ✓Incident response steps
  • ✓Cryptography basics

Cyber Security interview questions for freshers easy

1. What does SHA-256 do?

An analyst calculates the SHA-256 value of a suspicious file. What is SHA-256?

  1. A.A symmetric encryption algorithm that can be reversed with the right key
  2. B.A one-way cryptographic hash function that produces a fixed-length digest
  3. C.An encoding scheme like Base64 that anyone can decode
  4. D.A public key algorithm used to sign certificates
Show answer

Answer: B. A one-way cryptographic hash function that produces a fixed-length digest

SHA-256 is a cryptographic hash function. It turns any input into a fixed 256-bit digest and cannot be reversed to get the original data. Analysts use file hashes to identify malware samples and check them against threat intelligence such as VirusTotal.

2. A hash that no longer matches

A vendor publishes the SHA-256 hash of an installer. The hash of the file you downloaded is different. What does this tell you?

  1. A.The file is encrypted and needs a key
  2. B.The download is faster than expected
  3. C.The file was changed or corrupted, so its integrity cannot be trusted
  4. D.The vendor uses a newer version of SHA-256
Show answer

Answer: C. The file was changed or corrupted, so its integrity cannot be trusted

Any change to a file, even one bit, produces a completely different hash. A mismatch means the file is not the one the vendor published, either through corruption or tampering. Do not run it; download again from the official source and verify the hash or signature.

3. Why match Image with endswith

Why do Sigma rules usually write `Image|endswith: '\certutil.exe'` instead of an exact full path?

  1. A.Sigma does not support exact matches on the Image field
  2. B.endswith is the only modifier that ignores upper and lower case
  3. C.Exact paths make the rule fire on every process on the host
  4. D.The binary can live in different folders, so the path varies
Show answer

Answer: D. The binary can live in different folders, so the path varies

The same tool can run from System32, SysWOW64 or a copy in a user folder, so matching the end of the path catches all of them. The leading backslash stops it matching names like "notcertutil.exe". Sigma does support exact matches, and string matching is case-insensitive by default for all of them.

4. What a benign true positive is

A rule for "new local admin account created" fires. The analyst finds an IT engineer created the account for an approved change. How is this alert usually classed?

  1. A.False positive: the rule logic is broken and must be removed
  2. B.Benign true positive: the rule saw what it looks for, but it was allowed
  3. C.False negative: the rule missed a real attack
  4. D.True negative: nothing happened and nothing fired
Show answer

Answer: B. Benign true positive: the rule saw what it looks for, but it was allowed

The rule correctly detected an account creation, so it is a true positive, but the activity was authorised, so it is benign. Separating benign true positives from real false positives matters for tuning: the logic is fine, and the fix may be better context such as linking to the change ticket.

5. What auditd is for

What is the Linux audit daemon (auditd) mainly used for in detection?

  1. A.Blocking network traffic to suspicious IP addresses
  2. B.Scanning files on disk for known malware signatures
  3. C.Recording system calls and file access chosen by audit rules
  4. D.Encrypting log files so attackers cannot read them
Show answer

Answer: C. Recording system calls and file access chosen by audit rules

auditd receives kernel audit events, such as execve calls, file reads or writes on watched paths, and changes to users. You decide what to record with rules in audit.rules. It gives process and file telemetry on Linux similar to what Sysmon gives on Windows.

6. Why logs go to a SIEM

What is the main reason to send firewall, endpoint, identity and cloud logs to one SIEM?

  1. A.To reduce the amount of logs each device creates
  2. B.To stop attackers from reaching the endpoints
  3. C.To search and correlate events across sources in one place
  4. D.To replace the need for incident response plans
Show answer

Answer: C. To search and correlate events across sources in one place

A SIEM collects and indexes logs from many sources so analysts can search them together and write rules that join events, such as a VPN login followed by unusual file access. Sources still create the same logs. It supports response, but it does not block attacks by itself.

7. Collecting Windows logs with WEF

What is Windows Event Forwarding (WEF) used for?

  1. A.Forwarding emails that contain event invitations
  2. B.Sending chosen events from many hosts to a central collector
  3. C.Copying the registry from one host to another
  4. D.Replacing Sysmon with a built-in kernel driver
Show answer

Answer: B. Sending chosen events from many hosts to a central collector

WEF lets hosts push selected events, defined by subscriptions, to a Windows Event Collector without installing an agent. The collector is then read by the SIEM. It is a cheap way to gather Security, Sysmon and PowerShell logs across a domain.

8. Mapping a malicious attachment

An employee opens a booby-trapped invoice attached to an email, and that is how the attacker gets in. Which ATT&CK technique fits?

  1. A.T1566.001 Spearphishing Attachment
  2. B.T1059.001 PowerShell
  3. C.T1486 Data Encrypted for Impact
  4. D.T1021.001 Remote Desktop Protocol
Show answer

Answer: A. T1566.001 Spearphishing Attachment

T1566 Phishing is under Initial Access, and .001 is the attachment variant. What the attachment then runs, such as PowerShell, maps to Execution techniques. Mapping each step separately gives a truer picture of coverage.

9. Many discovery commands in a minute

A user's laptop runs whoami, ipconfig /all, net user /domain, systeminfo and nltest within 60 seconds, all from one cmd.exe. What does this pattern suggest?

  1. A.Someone is mapping the host and domain
  2. B.A normal Windows login script running
  3. C.A failed Windows update being retried
  4. D.An antivirus quick scan of the system
Show answer

Answer: A. Someone is mapping the host and domain

Each command alone is common, but a burst of them from one parent shell is typical of an attacker's first steps after access. Detections that count distinct discovery commands per parent process in a short window catch this with few false positives.

10. Why phishing creates urgency

Many phishing emails say things like "Your account will be closed in 2 hours". Why do attackers add this pressure?

  1. A.Spam filters let urgent-sounding messages through faster
  2. B.Rushed people skip checks they would normally make
  3. C.Urgent emails are excluded from DMARC checks
  4. D.Mail servers deliver urgent messages first
Show answer

Answer: B. Rushed people skip checks they would normally make

Urgency, fear and authority are pressure tactics that push people to act before they think. A person in a hurry does not hover over links or verify the sender. Filters do not give urgent wording any special treatment.

11. Invoice amount changed in transit

An attacker intercepts a PDF invoice and changes the amount from ₹45,000 to ₹4,50,000 before it reaches the client. Which part of the CIA triad was broken?

  1. A.Integrity
  2. B.Confidentiality
  3. C.Availability
  4. D.Accountability only
Show answer

Answer: A. Integrity

Integrity means data is accurate and has not been changed by anyone unauthorised. Reading the invoice would be a confidentiality issue, and making it unreachable would hit availability. Hashes, signatures and MACs are the usual integrity controls.

12. Salary sheet shared by mistake

An HR executive emails the full salary sheet to an outside vendor by mistake. Nothing was changed or deleted. Which CIA property was affected?

  1. A.Confidentiality
  2. B.Integrity
  3. C.Availability
  4. D.Non-repudiation
Show answer

Answer: A. Confidentiality

Confidentiality is about keeping data away from people who should not see it. The data is still correct and still available, so integrity and availability are fine. Data loss prevention rules and encryption are typical confidentiality controls.

13. Proving who approved it

A manager later claims he never approved a ₹12 lakh purchase order. Which property, given by a digital signature with his private key, helps prove he did?

  1. A.Availability
  2. B.Obfuscation
  3. C.Non-repudiation
  4. D.Anonymisation
Show answer

Answer: C. Non-repudiation

Non-repudiation means a person cannot believably deny an action. Only the holder of the private key can produce a signature that verifies with the matching public key. Good key protection and logging make this proof stronger.

14. Turning off unused services

A new Linux server has FTP, Telnet and a test web server running, none of which are needed. Why should they be disabled as part of hardening?

  1. A.Running services make the server's disk fill up much faster
  2. B.Each running service is another way to attack the server
  3. C.Services must be off for antivirus to install
  4. D.Disabled services make the server's IP address hidden
Show answer

Answer: B. Each running service is another way to attack the server

Hardening shrinks the attack surface: every listening service can have bugs or weak settings. Removing what is not needed is cheaper than patching and monitoring it forever. Telnet and FTP also send passwords in clear text.

15. Moving SSH to port 2222

An admin moves SSH from port 22 to port 2222 and says the server is now secure, while keeping password login enabled. What is the problem?

  1. A.Port 2222 is reserved by the OS and will block all logins
  2. B.Obscurity cuts noise but does not replace real controls
  3. C.SSH cannot run on any port other than 22
  4. D.Changing the port turns off SSH encryption
Show answer

Answer: B. Obscurity cuts noise but does not replace real controls

A non-standard port cuts down on automated scans, but any port scan finds it in seconds. It is security through obscurity, fine as an extra layer but not as protection. Real controls are key-based login, disabling passwords, and limiting who can connect.

16. The table for Windows security events

In Microsoft Sentinel, Windows Security log events such as 4624 and 4625 collected by the agent land in which table?

  1. A.SigninLogs
  2. B.Syslog
  3. C.SecurityEvent
  4. D.AuditLogs
Show answer

Answer: C. SecurityEvent

SecurityEvent holds Windows Security log events with fields such as EventID, Account and LogonType. SigninLogs and AuditLogs hold Entra ID sign-ins and directory changes, and Syslog holds Linux and network device logs.

17. ResultType 0 in sign-in logs

In the Entra ID SigninLogs table, what does ResultType "0" mean?

  1. A.The sign-in was blocked by policy
  2. B.The password was wrong
  3. C.The result is unknown
  4. D.The sign-in succeeded
Show answer

Answer: D. The sign-in succeeded

ResultType "0" means success. Any other value is an error code, such as 50126 for a bad username or password. Note that ResultType is a string, so compare it with "0" in quotes.

18. Automation rule or playbook?

In Microsoft Sentinel, how does an automation rule relate to a playbook?

  1. A.They are two names for the same feature
  2. B.Automation rules trigger on incidents and can run playbooks
  3. C.Playbooks are KQL queries; automation rules are charts
  4. D.Automation rules only work in Defender, not Sentinel
Show answer

Answer: B. Automation rules trigger on incidents and can run playbooks

Automation rules run when incidents or alerts are created or updated. They can assign owners, change status, add tags or call a playbook. A playbook is a Logic Apps workflow that does richer work such as enriching an IP or disabling a user.

19. Counting rows in KQL

Which KQL query returns the number of failed sign-ins in the last day as a single number?

  1. A.SigninLogs | where TimeGenerated > ago(1d) and ResultType != "0" | take 1
  2. B.SigninLogs | where TimeGenerated > ago(1d) and ResultType != "0" | distinct
  3. C.SigninLogs | where TimeGenerated > ago(1d) and ResultType != "0" | project
  4. D.SigninLogs | where TimeGenerated > ago(1d) and ResultType != "0" | count
Show answer

Answer: D. SigninLogs | where TimeGenerated > ago(1d) and ResultType != "0" | count

The count operator returns one row with the number of input rows. take returns sample rows instead of a total, and distinct and project need column names to work.

20. The Wazuh module for file changes

Which Wazuh module watches files and registry keys for changes such as a modified web.config?

  1. A.rootcheck
  2. B.syscheck
  3. C.syscollector
  4. D.active-response
Show answer

Answer: B. syscheck

syscheck is Wazuh's file integrity monitoring (FIM) module. It records hashes and attributes of chosen paths and alerts when they change, with optional real-time or who-data mode. syscollector gathers inventory, and active-response runs actions.

Cyber Security intermediate interview questions medium

21. Tactic vs technique in MITRE ATT&CK

In the MITRE ATT&CK framework, what is the difference between a tactic and a technique?

  1. A.A tactic is the attacker goal (the why), and a technique is how they achieve it
  2. B.A tactic is a specific malware family, and a technique is a threat group
  3. C.A tactic is a defensive control, and a technique is an attacker action
  4. D.A tactic is a CVE, and a technique is the patch for it
Show answer

Answer: A. A tactic is the attacker goal (the why), and a technique is how they achieve it

Tactics describe the adversary goal at a stage of the attack, such as Initial Access, Persistence or Lateral Movement. Techniques (and sub-techniques) describe how that goal is achieved, such as T1566 Phishing or T1021 Remote Services. Mapping alerts to both helps find gaps in detection coverage.

22. Why does a browser trust a certificate?

Why does a browser trust the TLS certificate of a website like a bank?

  1. A.The certificate chains up through intermediate CAs to a root CA in the browser or OS trust store, and the signatures verify
  2. B.The website sends its private key so the browser can check it
  3. C.The certificate uses a long RSA key, so it is automatically trusted
  4. D.The domain name appears in a public DNS record
Show answer

Answer: A. The certificate chains up through intermediate CAs to a root CA in the browser or OS trust store, and the signatures verify

Trust comes from a chain of signatures: the server certificate is signed by an intermediate CA, which is signed by a root CA already present in the trust store. The browser also checks the hostname, validity dates and revocation status. A private key is never sent to clients, and key length alone does not create trust.

23. The Pyramid of Pain

According to David Bianco's Pyramid of Pain, detecting which type of indicator causes the most trouble for an attacker?

  1. A.File hashes
  2. B.IP addresses
  3. C.Tactics, techniques and procedures (TTPs)
  4. D.Domain names
Show answer

Answer: C. Tactics, techniques and procedures (TTPs)

Hashes, IPs and domains are cheap for attackers to change, so blocking them only slows them briefly. TTPs describe how the attacker operates, and changing those means retooling and retraining. Behaviour-based detections therefore last longer than IOC lists.

24. What the related field records

A Sigma rule includes related: with type: derived and the id of another rule. What does it tell you?

  1. A.This rule must run before the other one
  2. B.This rule was built from the other rule
  3. C.Both rules must match for an alert
  4. D.The other rule has been deleted
Show answer

Answer: B. This rule was built from the other rule

related links rules with types such as derived, obsolete, merged, renamed and similar. derived means this rule was adapted from the referenced one. It keeps history clear when teams fork community rules and tune them.

25. What event 4672 tells you

Next to a 4624 logon you see event 4672 'Special privileges assigned to new logon' for an account. What does it mean?

  1. A.The account was just added to the Domain Admins security group
  2. B.The logon got admin-level rights such as SeDebugPrivilege
  3. C.The account failed MFA and was given limited rights
  4. D.The account's password was reset by an administrator
Show answer

Answer: B. The logon got admin-level rights such as SeDebugPrivilege

Event 4672 is logged when a logon session receives sensitive privileges, such as SeDebugPrivilege or SeBackupPrivilege, which normally means an administrator. It is useful for tracking where admin accounts actually log on. A Domain Admin with 4672 events on ordinary workstations breaks the tiering rule.

26. Invoice with only a phone number

An email says "Your Norton renewal of ₹24,999 will be charged today. To cancel, call +91-80-XXXX". It has no link or attachment. What is the attack flow?

  1. A.The caller is guided to install remote access tools
  2. B.The email itself silently installs malware when it is opened
  3. C.The number forwards a virus through the phone line
  4. D.The email steals contacts through a hidden pixel
Show answer

Answer: A. The caller is guided to install remote access tools

Callback phishing (telephone-oriented attack delivery) uses a scary fake charge so the victim phones the attacker. The "agent" then talks them into installing remote access software or paying a "refund" scam. With no link or file, filters have little to detect.

27. Malware in a reply to a real thread

A user gets a reply in a genuine months-old thread with a supplier: "Please see the attached updated file". The reply came from an unrelated domain. What is this technique?

  1. A.A normal reply that took a long route between mail servers
  2. B.A DKIM failure caused by the supplier
  3. C.Clone phishing of a brand newsletter
  4. D.Thread hijacking using stolen email data
Show answer

Answer: D. Thread hijacking using stolen email data

Malware families such as Emotet and Qakbot steal email threads from infected machines and reply inside them with malicious attachments. Real subject lines and quoted text make the email feel trusted. A mismatch between the sender's address and the thread's parties is a key clue.

28. Spotting lookalike domains early

How can a brand find out early that someone set up an HTTPS phishing site at sbi-netbanking-secure.example?

  1. A.Watch Certificate Transparency logs for its name
  2. B.Check its own SPF record every morning
  3. C.Search its own mailboxes for the domain
  4. D.Wait for customers to report the site to the bank's helpline
Show answer

Answer: A. Watch Certificate Transparency logs for its name

Public CAs must log every certificate they issue in Certificate Transparency logs. Phishing sites almost always get a TLS certificate, so watching these logs for brand keywords finds new lookalikes, often before the campaign starts. That gives time to block or take them down.

29. Lookalike domain in a payment chain

A real supplier is vendor-gulf.com. Mid-thread, a reply arrives from vendor-guIf.com (capital I instead of l) asking for payment to a new account. Which control is best at catching this?

  1. A.Checking that the reply passes SPF for its own domain
  2. B.Flagging senders whose domain looks like a known contact's
  3. C.Making all invoices use a PDF format
  4. D.Blocking all supplier emails after office hours
Show answer

Answer: B. Flagging senders whose domain looks like a known contact's

The lookalike domain can be fully authenticated, so SPF and DKIM pass for it. Detecting domains that closely resemble trusted partners or your own domain catches the trick. A strict callback rule for bank changes stops the loss even if the email gets through.

30. Keeping the algorithm secret

A vendor says its encryption is safe because "our algorithm is secret and nobody can see it". Which principle says this is the wrong basis for security?

  1. A.Least privilege: give the algorithm minimal rights
  2. B.Kerckhoffs's principle: only the key needs to be secret
  3. C.Defence in depth: hide the algorithm inside many layers
  4. D.Separation of duties: split the algorithm in two
Show answer

Answer: B. Kerckhoffs's principle: only the key needs to be secret

Kerckhoffs's principle says a cryptosystem should stay secure even if everything except the key is public. Secret algorithms tend to get reverse-engineered and are rarely well reviewed. Use public, well-studied standards like AES and keep keys secret.

31. Which apps use the bad library?

A critical flaw is announced in a popular open-source logging library. How does a software bill of materials (SBOM) help?

  1. A.It patches the library in every app automatically overnight
  2. B.It blocks network traffic to the vulnerable library
  3. C.It lists each app's components so you find affected ones fast
  4. D.It proves the library has no other vulnerabilities at all
Show answer

Answer: C. It lists each app's components so you find affected ones fast

An SBOM is an inventory of the components and versions inside a piece of software, including nested dependencies. With SBOMs for your apps you can search for the library and version instead of asking every team. Formats include SPDX and CycloneDX.

32. First checks on a reported phish

A user reports an email "from" hr@yourcompany.ae asking them to update their salary bank account. Which header details quickly show if the sender was spoofed?

  1. A.The X-Mailer header, which names the mail client
  2. B.The character encoding used in the Subject line
  3. C.The length and format of the Message-ID value
  4. D.SPF, DKIM and DMARC in Authentication-Results
Show answer

Answer: D. SPF, DKIM and DMARC in Authentication-Results

The Authentication-Results header shows whether the sending server was allowed for the domain (SPF), whether the message signature was valid (DKIM) and whether the visible From domain aligned (DMARC). A DMARC fail for your own domain is a strong spoofing sign.

33. What top shows

What does this Splunk search return?

index=fw action=blocked | top limit=5 dest_port
  1. A.The first 5 blocked events by time
  2. B.The 5 highest port numbers that were blocked
  3. C.The 5 most frequent blocked ports, with counts
  4. D.5 random ports sampled from blocked traffic
Show answer

Answer: C. The 5 most frequent blocked ports, with counts

top finds the most common values of a field and returns each with its count and percent. limit=5 keeps the top five. Its opposite, rare, shows the least common values, which is often more useful for hunting.

34. Trusting a GeoIP result

iplocation shows a login from Singapore for a user who is in Dubai. Before calling it a compromise, what should you keep in mind?

  1. A.GeoIP can be wrong, and VPNs or proxies shift location
  2. B.iplocation works only for private IP address ranges
  3. C.iplocation returns the home address of the user
  4. D.GeoIP is exact to the street for every public IP
Show answer

Answer: A. GeoIP can be wrong, and VPNs or proxies shift location

GeoIP databases map IP blocks to places and are often off, especially for mobile and cloud ranges. Corporate VPNs, Zscaler-type proxies and cloud egress make users appear elsewhere. Check the ASN, device, user agent and MFA result before deciding.

35. Benefit of search-time fields

Splunk extracts most fields at search time rather than at index time. What is the main benefit?

  1. A.Searches always run faster than with indexed fields
  2. B.Extractions can be changed later without reindexing
  3. C.Raw events take up less disk space on indexers
  4. D.Fields are available before data is indexed
Show answer

Answer: B. Extractions can be changed later without reindexing

Because search-time extractions are applied when you search, you can fix or add a field extraction and it works on all existing data. Index-time fields are fixed once written and need reindexing to change. They are used sparingly, mainly where speed matters.

36. Finding servers with no EDR data

You have a watchlist of all servers and want those with no rows in DeviceInfo in the last day. Which join kind do you use?

  1. A.leftanti
  2. B.inner
  3. C.leftouter
  4. D.fullouter
Show answer

Answer: A. leftanti

A leftanti join returns rows from the left table that have no match in the right table. With the server list on the left and recent DeviceInfo on the right, the output is servers that stopped reporting or never onboarded.

37. Listing all IPs per user in KQL

You want one row per user with the list of distinct IP addresses they signed in from. Which aggregation fits inside summarize?

  1. A.count(IPAddress)
  2. B.make_set(IPAddress)
  3. C.max(IPAddress)
  4. D.take_any(IPAddress)
Show answer

Answer: B. make_set(IPAddress)

make_set() collects the distinct values in each group into an array, so summarize make_set(IPAddress) by UserPrincipalName lists every IP per user. make_list() keeps duplicates. Add array_length() to flag users with many IPs.

38. Basic logs versus Analytics logs

You plan to send high-volume firewall logs to a Sentinel table on the Basic plan instead of Analytics. What is the trade-off?

  1. A.Ingestion costs more, but queries are free
  2. B.Ingestion is cheaper, but queries are limited and billed
  3. C.Basic tables cannot store firewall logs
  4. D.Basic tables keep data for ten years by default
Show answer

Answer: B. Ingestion is cheaper, but queries are limited and billed

Lower-cost plans such as Basic charge much less per GB ingested, which suits noisy, rarely queried data. In return, KQL features and detection use are limited and searches are billed by data scanned. Keep logs your rules depend on in Analytics tables.

39. Reading an ES|QL query

What does this Elastic ES|QL query return?

FROM logs-*
| WHERE event.outcome == "failure"
| STATS c = COUNT(*) BY source.ip
| SORT c DESC
| LIMIT 5
  1. A.The five source IPs with the most failed events
  2. B.Five random failed events from any source
  3. C.The first five failures in time order
  4. D.Source IPs that had exactly five failures
Show answer

Answer: A. The five source IPs with the most failed events

ES|QL is a piped language: filter failures, count them by source IP, sort by count descending and keep five rows. The result is a ranked list of the noisiest failing sources, a quick start for brute-force triage.

40. Mean or median time to acknowledge?

Five critical alerts were acknowledged after 4, 6, 10, 2 and 28 minutes. Which figure better shows the typical wait, and what is it?

  1. A.Mean, 10 minutes
  2. B.Mean, 6 minutes
  3. C.Median, 10 minutes
  4. D.Median, 6 minutes
Show answer

Answer: D. Median, 6 minutes

Sorted, the values are 2, 4, 6, 10, 28, so the median is 6. The mean is 50 ÷ 5 = 10, pulled up by one slow case. Median shows the typical case, but also track the maximum, since one 28-minute delay on a critical alert matters.

Cyber Security interview questions for experienced candidates hard

41. Detecting AS-REP roasting

Which pattern points to AS-REP roasting in domain controller logs?

  1. A.Event 4768 TGT requests with Pre-Authentication Type 0 for accounts that have "Do not require Kerberos preauthentication" set
  2. B.Event 4769 requests for the krbtgt service
  3. C.Event 4624 logon type 2 on a workstation
  4. D.Event 4740 account lockouts across many users
Show answer

Answer: A. Event 4768 TGT requests with Pre-Authentication Type 0 for accounts that have "Do not require Kerberos preauthentication" set

Accounts without Kerberos pre-authentication return encrypted data that attackers can crack offline without knowing the password first. Event 4768 with pre-auth type 0, often with RC4 encryption (0x17), shows such a request. Remove the DONT_REQ_PREAUTH flag wherever possible and give remaining accounts long random passwords.

42. Promoting a rule from test to stable

A Sigma rule in your repo has `status: experimental`. What should usually happen before it is changed to `status: stable` and allowed to page on-call?

  1. A.It is converted to at least three SIEM languages
  2. B.It runs in production long enough to measure noise and is tuned
  3. C.Its level is raised to critical so it gets attention
  4. D.Its author field is changed to the SOC manager
Show answer

Answer: B. It runs in production long enough to measure noise and is tuned

Sigma statuses describe maturity: experimental and test rules may be noisy or unproven, while stable rules have been run and tuned. A sensible pipeline runs new rules silently or to a low-priority queue, measures volume and precision, adds exclusions, then promotes them. Severity and author have nothing to do with maturity.

43. An AMSI bypass in script logs

A 4104 script block contains `[Ref].Assembly.GetType('System.Management.Automation.AmsiUtils')` and `amsiInitFailed`. What is the script doing?

  1. A.Disabling AMSI in the session so later code is not scanned
  2. B.Installing the latest Microsoft Defender signatures
  3. C.Checking whether PowerShell 7 is installed on the host
  4. D.Encrypting the PSReadLine history file on disk
Show answer

Answer: A. Disabling AMSI in the session so later code is not scanned

Setting the private amsiInitFailed field makes AMSI think it failed to load, so script content is no longer passed to antivirus. This is a classic bypass (T1562.001) that attackers run before loading tools. Real scripts almost never touch AmsiUtils, so this string in Script Block Logging is a high-fidelity alert, though attackers obfuscate it.

44. An attacker adding a Defender exclusion

Why is `Add-MpPreference -ExclusionPath C:\ProgramData\Intel` run from a script a valuable alert even if Defender stays on?

  1. A.It only changes the time of the next scheduled scan
  2. B.It sends a copy of the folder to Microsoft for analysis
  3. C.Files in that path are then not scanned, so tools can be dropped there
  4. D.It removes all existing Defender detections from the logs
Show answer

Answer: C. Files in that path are then not scanned, so tools can be dropped there

Exclusions make Defender skip a folder, process or extension, which lets attackers stage tools without turning protection off and raising the obvious alert. Defender logs config changes (Event 5007), and the PowerShell command appears in 4104. Exclusions should be set centrally, so local changes are suspicious.

45. Lowering a brute-force threshold

Out of 20 test attacks, a threshold of 10 failures caught 12 with 40 false positives a week. A threshold of 5 caught 18 with 200 false positives. What happens to recall and precision?

  1. A.Both recall and precision go up
  2. B.Recall goes from 60% to 90%; precision falls from about 23% to 8%
  3. C.Recall falls from 90% to 60%; precision rises to 50%
  4. D.Recall stays at 100%; only precision changes
Show answer

Answer: B. Recall goes from 60% to 90%; precision falls from about 23% to 8%

Recall is 12 ÷ 20 = 60% at threshold 10 and 18 ÷ 20 = 90% at 5. Precision is 12 ÷ 52 ≈ 23% and 18 ÷ 218 ≈ 8%. Lower thresholds usually catch more but bring more noise, so consider enrichment or risk scoring rather than just moving the number.

46. Worst-case time to alert

Logs arrive up to 10 minutes late, so a rule runs every 15 minutes over the window from 25 to 10 minutes ago. In the worst case, how long after an event happens is the alert raised?

  1. A.About 25 minutes
  2. B.About 10 minutes
  3. C.About 15 minutes
  4. D.About 40 minutes
Show answer

Answer: A. About 25 minutes

An event just after the end of one window (10 minutes before that run) is checked at the next run, 15 minutes later, so it is 10 + 15 = 25 minutes old by then. Detection latency is a design choice: shorter schedules or streaming rules reduce it for critical cases.

47. A host with thousands of NXDOMAINs

One host makes 3,000 DNS lookups an hour for random-looking domains like qx7vtk2m.info, almost all returning NXDOMAIN. What is the most likely cause?

  1. A.A browser preloading the next search results
  2. B.A local DNS server that is badly out of date
  3. C.Malware using a DGA to look for its C2 server
  4. D.An NTP client syncing its clock with servers
Show answer

Answer: C. Malware using a DGA to look for its C2 server

Domain generation algorithms make many pseudo-random names and try them until one the attacker registered resolves. That leaves many failed lookups for high-entropy names. Detect with NXDOMAIN rates per host plus name entropy, then find the process making the queries.

48. Spraying slower than the lockout

AD locks an account after 5 bad passwords, and the bad-password counter resets 30 minutes after the last failure. An attacker tries one password against every user every 40 minutes. Over 24 hours, how many guesses per user and how many lockouts?

  1. A.5 guesses per user, then every account is locked
  2. B.36 guesses per user and no lockouts at all
  3. C.48 guesses per user and about 9 lockouts each
  4. D.24 guesses per user and one lockout each
Show answer

Answer: B. 36 guesses per user and no lockouts at all

24 × 60 / 40 = 36 attempts per user. Each attempt comes after the 30-minute reset, so the counter never goes above 1 and nobody is locked out. Lockout alone does not stop slow spraying; you need banned-password checks, MFA, and detection of one source failing against many accounts.

49. Attacker uses the same email vendor

Your SPF has include:bigesp.example. An attacker opens his own account on that same email service and sends mail with Return-Path on your domain. SPF passes. What still stops him under DMARC p=reject?

  1. A.DMARC always blocks mail sent through vendors
  2. B.SPF alignment fails because the IP is shared
  3. C.Nothing, unless the vendor checks domain ownership
  4. D.The DKIM check fails for all shared vendors
Show answer

Answer: C. Nothing, unless the vendor checks domain ownership

If the vendor lets any customer use your domain as the envelope sender, the IP is in your SPF and the domain aligns, so DMARC passes. That is why broad shared includes are risky. Prefer vendors that verify domain ownership, and use DKIM with your own keys or a dedicated subdomain per vendor.

50. Caller asks helpdesk to reset MFA

A caller claiming to be a senior engineer says he lost his phone and asks the helpdesk to reset his MFA. He knows his employee ID and manager's name. What is the strongest verification?

  1. A.Accept the employee ID and manager name as proof
  2. B.Verify through a manager callback or ID check on video
  3. C.Ask him to email the same request from his work account
  4. D.Reset MFA but limit the account for one hour
Show answer

Answer: B. Verify through a manager callback or ID check on video

Groups such as Scattered Spider have breached large firms by calling helpdesks with details found on LinkedIn or in leaks. Facts like ID and manager are not secrets. Use out-of-band checks such as a callback via the manager or a live ID check before resetting MFA.

51. OTPs going to the attacker

A customer's phone suddenly loses signal, and within an hour OTP-protected transfers leave her account. What is the most likely attack?

  1. A.A DKIM replay of her bank's transaction alert emails
  2. B.A watering hole on her bank's website
  3. C.A phishing simulation by her employer
  4. D.SIM swap, moving her number to the attacker's SIM
Show answer

Answer: D. SIM swap, moving her number to the attacker's SIM

In a SIM swap, a fraudster convinces or bribes the mobile operator to move the number to a new SIM, so SMS OTPs go to the attacker. Sudden loss of service is a key warning sign. App-based or phishing-resistant authentication avoids relying on the phone number.

52. RSA private key with small numbers

In a toy RSA example, p = 5, q = 11 and the public exponent e = 3. What is the private exponent d?

  1. A.7
  2. B.27
  3. C.13
  4. D.33
Show answer

Answer: B. 27

n = 55 and φ(n) = (5−1)(11−1) = 40. d is the inverse of e mod φ(n): 3 × 27 = 81 = 2 × 40 + 1, so d = 27. Real RSA uses primes hundreds of digits long, which is what makes factoring n impractical.

53. Salts leaked with the hashes

An attacker steals a table of bcrypt hashes along with their salts. What protection does the salt still give?

  1. A.None, because salts only work while they stay secret
  2. B.Each password must be attacked one by one, not in bulk
  3. C.The hashes can no longer be cracked at all
  4. D.The attacker must also steal the secret bcrypt key
Show answer

Answer: B. Each password must be attacked one by one, not in bulk

Salts are not secret. Their job is to make each hash unique, so precomputed rainbow tables do not work and the same password gives different hashes for different users. The attacker must guess per user, and bcrypt's cost factor makes each guess slow.

54. The join that lost rows

A user has 3 sign-in rows and 2 mailbox rows. This join returns fewer rows than you expected. Why?

SigninLogs
| join (OfficeActivity) on $left.UserPrincipalName == $right.UserId
  1. A.join cannot match columns with different names
  2. B.OfficeActivity rows are always dropped by join
  3. C.The time range is ignored by the right side
  4. D.The default kind, innerunique, dedups the left side keys
Show answer

Answer: D. The default kind, innerunique, dedups the left side keys

With no kind given, KQL uses innerunique: it keeps only one left row per key before matching. So the 3 sign-ins become 1, giving 2 rows instead of 6. Write kind=inner when you want every combination.

55. Hours with no events vanish

A chart of failed logons per hour made with summarize count() by bin(TimeGenerated, 1h) skips hours that had no failures, which breaks your anomaly function. What fixes it?

  1. A.make-series, which fills empty bins with a default of 0
  2. B.Change bin to 1d so that every bucket has some data
  3. C.Add | sort by TimeGenerated asc at the end of the query
  4. D.Use take 24 at the end to force exactly 24 rows
Show answer

Answer: A. make-series, which fills empty bins with a default of 0

summarize only returns bins that contain at least one row, so quiet hours are missing. make-series builds an evenly spaced series and fills gaps with a default, usually 0. Functions such as series_decompose_anomalies() need that complete series.

56. Why dcount differs from the exact count

dcount(DeviceId) reports 10,042 devices but your asset system says exactly 10,000 onboarded. What is the likely reason?

  1. A.dcount counts every row, including duplicates
  2. B.dcount is an estimate with a small error margin
  3. C.dcount includes devices from other tenants
  4. D.dcount rounds up to the nearest hundred
Show answer

Answer: B. dcount is an estimate with a small error margin

dcount uses a HyperLogLog-style estimate that is fast on huge data but can be off by a small percentage. A 0.4% gap fits that. For exact counts on smaller sets, use count_distinct() or summarize by the key and count the rows.

57. Pay-as-you-go or commitment tier?

With these example prices, you ingest 120 GB a day. How much per day does the 100 GB tier save compared with pay-as-you-go?

Pay-as-you-go:     $5.00 per GB
100 GB/day tier:   $300 per day
Overage on tier:   $3.00 per GB above 100 GB
  1. A.$60
  2. B.$120
  3. C.$240
  4. D.$300
Show answer

Answer: C. $240

Pay-as-you-go costs 120 × $5 = $600. The tier costs $300 plus 20 GB × $3 = $60, so $360. The saving is $600 − $360 = $240 a day. Always check current list prices; these numbers are only for practice.

58. A rule that went quiet

A firewall rule that fired weekly has been silent for a month. You learn the vendor updated its log format and the parser now puts the source IP in a new field. What is the real problem?

  1. A.A false negative: the rule reads a field that is now empty
  2. B.A false positive: the rule is firing on benign traffic
  3. C.Normal behaviour: attackers have stopped targeting you
  4. D.A licence issue: the connector exceeded its quota
Show answer

Answer: A. A false negative: the rule reads a field that is now empty

When parsing changes, rules that depend on a renamed field quietly stop matching. Silence does not mean safety. Monitor rule health, track expected alert volumes, and test rules against sample data after any parser or connector change.

59. Comparing a row with the previous one

You want the time gap between each user's consecutive sign-ins. Which approach works in KQL?

  1. A.Sort by user and time, then use prev() to read the last row
  2. B.Use dcount() on the TimeGenerated column
  3. C.Use take 2 for each user and subtract
  4. D.Use make_set() and subtract the set from itself
Show answer

Answer: A. Sort by user and time, then use prev() to read the last row

Window functions such as prev() and next() need a serialized row order, which sort provides. Compare prev(UserPrincipalName) with the current user, then subtract prev(TimeGenerated) to get each gap. This is a common base for beacon and session analysis.

60. Firewall logs missing at peak hours

During busy hours, counts of firewall logs in the SIEM drop sharply, though traffic rises. Logs are sent as UDP syslog straight to the SIEM. What is the most likely cause and fix?

  1. A.UDP drops packets under load; use TCP or TLS via a buffering collector
  2. B.The firewall stops logging at peak by design; nothing can be done
  3. C.The SIEM deletes duplicate logs at peak; turn off dedup
  4. D.Syslog needs a weekly restart to clear memory
Show answer

Answer: A. UDP drops packets under load; use TCP or TLS via a buffering collector

UDP has no delivery guarantee, so when buffers fill, messages are silently lost. Sending over TCP or TLS to a local collector that queues data, such as a syslog relay or forwarder, absorbs bursts. Also monitor expected volumes per source to spot gaps.

Ready to test yourself?

Take a 15-question Cyber Security MCQ test with a score at the end, or practise the full Cyber Security question bank and earn points on the leaderboard.