Security Monitoring, SIEM, and Detection Engineering Questions
Building and operating the detection stack: the SOC and detection-engineering practice that answers 'can we see an attack happening.' Covers SIEM platform selection and architecture, use-case and detection-rule query development (for example Splunk SPL, KQL, or Sigma), alert triage and tuning to reduce false positives, detection engineering and closing coverage gaps, mapping detections to the MITRE ATT&CK framework and scoring detection coverage, log analysis and anomaly and baseline development, network and endpoint telemetry sourcing, malware and compromise-indicator recognition, and security operations center (SOC) alert escalation workflows. Distinct from the reactive work of containing, remediating, and communicating during a confirmed incident (incident response and postmortem topics own that ground; this topic stops at 'the alert fired and here is the detection logic', not 'here is how we contained and recovered from it'). Distinct from generic system-reliability monitoring and observability (SLOs, error budgets, uptime dashboards), a separate discipline even when the underlying ingestion mechanics look similar; the anomaly or signal here must be framed as adversarial or security-relevant. Distinct from hardening a software delivery pipeline against supply-chain compromise (SBOM generation, artifact signing, dependency and build-permission controls); this topic only touches the delivery pipeline from the detection side, spotting a compromised build or tainted artifact via telemetry, not the preventive-controls side. Distinct from designing security control architecture and governance (security architecture and cloud security architecture topics own the design-time question of what controls should exist); this topic is the run-time operation of the detection stack once those controls are in place.
Explain why mapping detection use cases to the MITRE ATT&CK framework is valuable. Provide three concrete examples showing how mapping to ATT&CK techniques influences the telemetry you collect and the specific detection logic you would implement.
Sample Answer
Direct answer
Mapping detection use cases to MITRE ATT&CK is valuable because it turns "what should we build detections for" from an open-ended, intuition-driven question into a structured one grounded in real, observed adversary behavior, and it does this concretely by shaping BOTH what telemetry a team collects and what specific detection logic it writes, not just how coverage gets reported afterward.
Structured elaboration
The mechanism is direct: a technique entry in ATT&CK describes a specific adversary behavior at a level of detail that implies specific, checkable telemetry requirements and specific, checkable detection logic, rather than a vague threat category. Three concrete examples showing this influence explicitly:
Example 1: T1003.001 (OS Credential Dumping: LSASS Memory). Mapping to this specific sub-technique tells a team exactly what telemetry to prioritize collecting, process-level visibility into which processes access LSASS memory, and with what access rights, since generic process-creation logging alone does not capture this. It also tells the team exactly what detection logic to build: a rule watching for non-standard processes requesting high-privilege memory access to the LSASS process, not a generic "suspicious process" rule.
Example 2: T1071.004 (Application Layer Protocol: DNS). Mapping to this technique tells a team that DNS query telemetry (not just DNS server logs, but query-level detail including subdomain content and frequency) needs to be collected with enough fidelity to support entropy and length-based analysis, and it tells the team the corresponding detection logic needs to score DNS query PATTERNS, not just match known-bad domains from a static blocklist.
Example 3: T1053.005 (Scheduled Task/Job: Scheduled Task). Mapping to this technique tells a team that Windows Event ID 4698 (scheduled task creation) needs to be collected and, critically, that the detection logic needs to distinguish EXPECTED scheduled-task creation (from known administrative or automation accounts) from unexpected creation, which in turn implies the team also needs an enrichment source identifying which accounts are legitimately expected to create scheduled tasks, a requirement that would not have been obvious from a generic "watch for persistence" goal alone.
Worked example
Without ATT&CK mapping, a team asked to "improve credential-theft detection" might reasonably start anywhere, broad login-anomaly detection, password-policy auditing, or generic process monitoring, all defensible but unfocused starting points. With the T1003.001 mapping specifically, the team's very first engineering task is unambiguous: confirm LSASS memory-access telemetry is actually being collected at all (frequently it is not, by default, on a standard endpoint configuration), and if not, that becomes the FIRST, concrete, prioritized backlog item, derived directly from the technique mapping rather than from a general sense that "credential theft is bad."
Trade-offs and pitfalls
- Mapping fields belong in the rule and playbook artifacts themselves, not just a separate tracking spreadsheet: each detection rule's own metadata should carry its mapped technique ID(s) directly, and incident-response playbooks referencing a given technique should link back to which specific rules provide coverage for it, so the mapping is a living, queryable part of the operational tooling rather than a document that goes stale the moment it is written.
- A practical use of the mapping in sprint/backlog prioritization: when a detection-engineering team plans its next work cycle, technique-level coverage gaps (a technique relevant to the organization's threat model with zero or weak mapped detections) are a concrete, defensible prioritization input, arguably a stronger one than "which rule idea sounds most interesting," since it ties engineering time directly to a documented, real gap rather than to intuition.
- Common mistake: treating the mapping as a one-time labeling exercise disconnected from actual engineering work; the value described above only materializes if the mapping genuinely DRIVES telemetry and detection-logic decisions, not if it is applied retroactively as a label on rules that were designed independently of it.
- A technique mapping does not by itself guarantee the mapped rule actually works: a mapping records intent, not proof, and should be validated (ideally via red-team or purple-team testing) to confirm the mapped detection genuinely fires against a realistic instance of the technique, not just that someone tagged a rule with the right ID.
What is log normalization in the context of SIEMs? Explain why normalization matters for correlation rules and threat hunting, and give a simple example mapping a Windows log event to a normalized schema with fields such as timestamp, src_ip, dst_ip, user, action, and process_name.
Sample Answer
Direct answer
Log normalization is the process of translating raw, source-specific log formats into one consistent schema, common field names, common data types, common timestamp format, so that events from entirely different systems can be searched, compared, and correlated using the same query logic; without it, a correlation rule or a threat hunt would need a separate, bespoke implementation for every single log source's own idiosyncratic format, which does not scale and quietly breaks the moment a source's format changes.
Structured elaboration
Why normalization matters for correlation rules: a correlation rule that joins events across sources can only do so if both event types expose a comparable "user" field, a comparable "host" field, and a comparable timestamp format; without normalization, the rule author would need to know and separately handle each source's own field-naming convention, and any new source added later would silently break every existing rule that assumed a single schema.
Why normalization matters for threat hunting: a hunter searching across MULTIPLE data sources for a hypothesis-driven pattern depends on being able to write ONE query spanning sources, rather than manually translating the same underlying question into several source-specific query dialects; normalization is what makes cross-source hunting practical at all, rather than a slow, manual, source-by-source exercise.
Worked example
A raw Windows Security Event Log entry for a successful logon (Event ID 4624) arrives with its own native field names (SubjectUserName, IpAddress, TargetLogonId, a Windows-specific timestamp format). Mapped to a normalized schema:
| Normalized field | Value (from the raw Windows event) |
|---|---|
timestamp | ISO 8601, UTC-normalized |
src_ip | The value from the raw event's IpAddress field |
dst_ip | The host that generated the event (the local system's own address) |
user | The value from the raw event's SubjectUserName field |
action | logon_success (a normalized, source-agnostic action label) |
process_name | Not applicable for this event type, left null rather than populated with a placeholder |
A completely different source, say, a cloud identity provider's own sign-in log, arrives in an entirely different native JSON structure with its own field names, but maps to the SAME normalized schema (timestamp, src_ip, user, action, and so on). A single correlation rule written against the NORMALIZED user and action fields works identically against both sources without ever needing to know either source's own native format, which is the entire practical payoff of normalization.
Trade-offs and pitfalls
- Common mistake: under-investing in normalization while over-investing in detection-rule content; a large library of well-written correlation rules is only as good as the normalization layer feeding it consistent field names, and a rule silently failing to match because a source's field was never mapped correctly is a much harder defect to notice than an obviously broken rule.
- Common mistake: leaving a field null/not-applicable inconsistently, sometimes null, sometimes an empty string, sometimes a placeholder value like "N/A"; inconsistent null handling across sources breaks exactly the kind of clean, uniform query logic normalization exists to enable, since a rule checking for a null field needs to know it will ALWAYS be represented the same way.
- Normalization schema changes need their own change-management discipline: adding or modifying a normalized field can silently affect every existing correlation rule and hunt query that touches it, making an uncoordinated schema change a genuine, systemic risk, not merely a routine data-pipeline update.
- This is a foundational definitional concept that more advanced telemetry-sourcing and detection-rule work builds directly on: the field-mapping example given here (Windows
SubjectUserName/IpAddressto a normalizeduser/src_ipschema) is the same underlying mechanism every additional log source has to go through, one mapping definition per source, feeding the same shared schema. - Normalized schemas need explicit VERSIONING, not just careful initial design: a schema is rarely finished on day one, a new detection use case eventually needs a field the original schema did not anticipate; adding a field is usually safe, but renaming or re-typing an EXISTING field breaks every rule and hunt query already written against it, so a versioned schema (with old field names supported alongside new ones for a defined deprecation window) avoids forcing a synchronized, error-prone rewrite of every downstream rule the moment the schema changes.
With very limited endpoint telemetry (process creation events and summarized netflow only), propose statistical heuristics and feature engineering to detect abuse of LOLBins. Suggest concrete features (for example: process-parent novelty score, command-line entropy proxy, atypical destination score, time-of-day deviation) and describe how you would combine them into a scoring model or anomaly detector.
Sample Answer
Direct answer
With only process-creation events and summarized (non-packet-level) netflow, LOLBin abuse detection has to lean entirely on BEHAVIORAL statistics computed from what little structure those two sources provide, rather than any content inspection, since there is no command-line-argument detail, file-content, or per-packet visibility available; the practical approach is a small set of cheaply-computed numeric features per process-creation event, combined into a single weighted or learned score rather than any one feature acting as a hard rule, since each individual feature alone is only weakly discriminating at this telemetry depth.
Structured elaboration
Process-parent novelty score: for each observed (parent process, child process) pair, maintain a per-host or per-fleet historical frequency count, and score a NEW event by how rarely (or never) that specific parent-child pairing has been observed before, for example score = -log(observed_frequency + epsilon), so a pairing seen thousands of times scores near zero and a never-before-seen pairing scores high; this directly targets the classic LOLBin abuse pattern of a legitimate binary (certutil.exe, mshta.exe, regsvr32.exe) being launched by an UNUSUAL parent (a browser, an Office application, a scripting host) rather than its normal parent (a shell or scheduled task).
Command-line entropy proxy: since full command-line content may not be captured at this telemetry depth, approximate obfuscation signal from whatever IS available, process name length and character-class mix (if partial command-line or image-path data exists), or, if command-line truly is unavailable, a proxy built from process-creation RATE and pattern instead (a burst of LOLBin-family process creations in a short window is itself an entropy-like signal of scripted/automated invocation rather than manual interactive use); where at least a truncated command-line is available, Shannon entropy over the character distribution is a cheap, standard obfuscation proxy (H = -sum(p_i * log2(p_i)) over character frequencies), with a high value pointing toward base64/hex-encoded payloads.
Atypical destination score: pair each process-creation event with the summarized netflow occurring in a short window AFTER it (the process launched, then made a connection), and score the destination by novelty against that HOST's own historical destination set (has this host ever connected to this destination/ASN before) rather than a global allowlist/denylist, since a global list misses host-specific abuse while a per-host novelty baseline catches "this LOLBin just talked to somewhere this host has never gone."
Time-of-day deviation: score each event's timestamp against the HOST's (or the responsible user account's) own historical activity-time distribution, not a fleet-wide baseline, since normal working hours vary by role and geography; a LOLBin invocation at 3am on a workstation with no history of any activity at that hour is a stronger signal than the same invocation timing on a server that runs scheduled maintenance nightly.
Combining into a scoring model: given how weak any single feature is at this telemetry depth, a WEIGHTED linear combination or a simple logistic-regression-style scoring function (score = w1*parent_novelty + w2*entropy_proxy + w3*destination_novelty + w4*time_deviation) calibrated against a labeled or semi-labeled sample of known-benign and known-suspicious LOLBin invocations is more robust than any single hard threshold on one feature; the weights themselves can start as analyst-assigned priors (parent novelty weighted highest, since it is the most directly diagnostic of the four at this telemetry depth) and be refined once enough labeled feedback accumulates to fit them properly.
Trade-offs and pitfalls
- Common mistake: treating any ONE of these four features as sufficient grounds for an alert; at this reduced telemetry depth, each feature individually has a meaningfully high false-positive rate (an unusual but entirely legitimate one-off administrative task can trigger parent novelty, time-of-day deviation, or both), and the combined score exists specifically to require CORROBORATION across independent signals before an alert fires.
- Common mistake: baselining destination or time-of-day novelty against a GLOBAL population instead of per-host or per-account history; this either misses attacks on unusually-active hosts or floods quiet hosts with false positives for entirely ordinary variation.
- Command-line entropy is the weakest of the four features WITHOUT full command-line capture: if only a truncated or partial command-line is available, the entropy proxy degrades significantly, and the design should be explicit that this feature's reliability depends directly on how much command-line detail the endpoint agent actually captures, not treated as equally strong to the other three regardless of capture depth.
- This entire approach is a deliberate telemetry-constrained fallback, not a substitute for richer visibility: if full command-line capture, DLL/module-load events, or packet-level netflow become available later, several of these proxy features (especially the entropy proxy) should be replaced with the direct signal rather than kept as permanent design choices; the scoring-model structure (weighted combination requiring corroboration) is the durable part, the specific proxy features are not.
Design a tiered storage and retention strategy for logs and telemetry to balance forensic readiness and cost for a large enterprise that must retain security logs for three years. Define tiers (hot/warm/cold/archival), recommended storage technologies (fast indexes, object storage, archival), expected query SLAs per tier, indexing strategies, and a cost vs retrieval-time trade-off analysis.
Sample Answer
Direct answer
For a large enterprise retaining 3 years of security logs, a four-tier design, hot, warm, cold, and archival, each with its own storage technology and an explicit query service-level agreement (SLA), is what lets the organization satisfy the full 3-year window without paying the same per-byte cost across all of it; the core discipline is matching each tier's query-speed guarantee to how the data at that age actually gets used, since almost all real investigative and correlation activity happens against recent data, and the further back in time a query reaches, the more latency an organization can reasonably accept in exchange for cost.
Structured elaboration
| Tier | Age range | Storage technology | Query SLA | Indexing strategy |
|---|---|---|---|---|
| Hot | 0-30 days | Fast, SSD-backed indexed store, replicated | Sub-second to low-single-digit-second interactive search | Full-field indexing, since this is where correlation rules and active investigations run continuously |
| Warm | 31-180 days | Indexed store on cheaper storage media, reduced replication | Low-single-digit to tens-of-seconds | Full-field indexing retained, but on denser, less expensive storage since query volume against this age range is lower |
| Cold | 181 days-1 year | Compressed object storage, minimally indexed (time range, tenant/source, and a small set of high-value fields only) | Minutes-scale, since a query typically requires locating and decompressing relevant objects first | Sparse indexing: index just enough (time, host, user) to locate the right compressed objects without a full field-level index, which would defeat the point of compressing this tier |
| Archival | 1-3 years | Deep archive-class object storage, heavily compressed, effectively write-and-forget | Hours-scale (rehydration/restoration typically required before a query can run at all) | No live indexing at all; retrieval is by explicit time-range and, where preserved, source/tenant metadata, treated as a restoration action rather than an ad-hoc search |
Cost vs. retrieval-time trade-off, stated directly: each tier transition trades an order of magnitude or more in query latency for a substantial reduction in per-byte storage cost; the organization's real design decision is choosing where each tier boundary sits, informed by how often data of that age actually gets queried in practice (which should itself be measured and revisited periodically, not fixed once and assumed correct for the life of the program).
Worked example
Assume this enterprise ingests 50,000 events per second, at the same 500-byte average event size assumption used elsewhere: 50,000×500×86,400=2.16×1012 bytes/day, 2.16 TB/day raw.
- Hot (30 days): 2.16×30=64.8 TB raw; with 1.3x index overhead and 2x replication, 64.8×1.3×2=168.5 TB indexed.
- Warm (150 days, months 2-6): 2.16×150=324 TB raw; with 1.3x overhead and 1x replication (single copy on cheaper storage), 324×1.3=421.2 TB indexed.
- Cold (185 days, months 7-12): 2.16×185=399.6 TB raw; compressed at 6:1 (a lighter compression ratio than the archival tier, since cold still needs some structure for minutes-scale retrieval), 399.6/6=66.6 TB.
- Archival (2 more years, 730 days): 2.16×730=1,576.8 TB raw; compressed at 10:1 (heavier compression is viable since this tier trades away fast retrieval entirely), 1,576.8/10=157.7 TB.
Total tiered 3-year footprint: 168.5+421.2+66.6+157.7=814.0 TB. Against the counterfactual of keeping all 3 years at hot-tier density and replication, 2.16×365×3×1.3×2=6,149.5 TB, the tiered design uses about 6,149.5/814.0≈7.6 times less storage for the identical 3-year retention obligation, the concrete justification for the four-tier structure over a flat design.
Trade-offs and pitfalls
- GDPR right-to-be-forgotten, and why it usually does NOT force per-record deletion from a security-log archive: the General Data Protection Regulation's erasure right (Article 17) carries explicit exemptions, most relevantly compliance with a legal obligation (Article 17(3)(b)) and the establishment, exercise, or defense of legal claims (Article 17(3)(e)), both of which routinely justify continuing to retain security audit logs despite an individual erasure request, PROVIDED the retention is proportionate, time-bound, and documented as such. The practical engineering implication is usually not "build per-user surgical deletion into a compressed archival tier" (a genuinely difficult capability to build correctly at this scale) but rather documenting the lawful basis for retaining security logs specifically, minimizing which personal fields are captured in the first place (data minimization), and applying pseudonymization to fields not strictly necessary for the security purpose, so what IS retained is defensible on its own terms rather than needing to be deleted on request.
- PCI DSS-specific prohibition for a fintech/payment-processing organization: regardless of retention tier, payment-related log entries must never capture full Primary Account Number (PAN) in a reversible form outside PCI's own permitted storage controls, and must never capture prohibited sensitive authentication data at all (the card's CVV2/CVC2 value, PIN blocks, or full magnetic-stripe track data) post-authorization, even for security-monitoring purposes; this is a data-minimization requirement enforced at the LOGGING SOURCE (redact or tokenize before the event is ever emitted), not something a retention-tiering policy downstream can retroactively fix.
- Common mistake: sizing compression ratios uniformly across tiers rather than letting each tier's own retrieval-speed requirement drive how aggressively it can be compressed; the cold tier's lighter 6:1 ratio versus the archival tier's heavier 10:1 in the worked example above is not an arbitrary choice, it reflects that cold still needs viable minutes-scale retrieval while archival has fully traded that away.
- Common mistake: treating tier boundaries as permanent once set; actual query patterns against each age range should be measured periodically (which age of data investigators and correlation rules ACTUALLY reach for) and the boundaries adjusted, since a boundary set once at program launch can drift out of alignment with real usage as the organization's detection content and investigative needs evolve.
List and justify at least eight common log sources that should be ingested into a SIEM for enterprise visibility. For each source briefly explain what kinds of threats or user actions it helps detect and any special collection considerations (agents, syslog, APIs, telemetry volume).
Sample Answer
Direct answer
At minimum, a SIEM needs visibility into identity, endpoint, network perimeter, DNS, cloud control-plane, application, and privileged-access sources to give a Security Operations Center (SOC) meaningful coverage; below that set, entire classes of attack (credential misuse, lateral movement, exfiltration, cloud account takeover) are effectively invisible regardless of how well the rest of the platform is tuned.
Structured elaboration
| # | Source | What it helps detect | Collection considerations |
|---|---|---|---|
| 1 | Identity provider / Active Directory authentication logs | Credential stuffing, brute force, privilege escalation, abnormal logon times/locations | High volume from busy directories; requires the domain controller's security event log or the IdP's sign-in log API |
| 2 | Endpoint Detection and Response (EDR) / OS security logs | Malware execution, process-level living-off-the-land activity, persistence mechanisms | Needs an agent per host; telemetry volume per host can be large (process creation, module loads) so filter to security-relevant event types |
| 3 | Firewall / perimeter logs | Port scanning, blocked-then-allowed connections, unusual outbound destinations | Typically syslog; volume scales with total traffic, consider sampling allow-only traffic if volume is a constraint |
| 4 | DNS query logs | DNS tunneling, C2 domain resolution, malware callback | Very high volume (every lookup); worth a dedicated ingestion path rather than mixing into general syslog |
| 5 | Cloud control-plane / audit logs (e.g. CloudTrail-style events) | Unauthorized IAM changes, new principal creation, resource abuse | Delivered via cloud-native APIs or event buses, not syslog; requires per-account/per-project enablement |
| 6 | Identity provider (IdP) sign-in logs for cloud/SaaS (separate from on-prem AD) | Cloud account takeover, impossible-travel logons, MFA bypass attempts | Often a different system from on-prem AD; must be onboarded separately even if the user population overlaps |
| 7 | Web/application server logs and web application firewall (WAF) logs | Application-layer attacks (injection attempts), abnormal business-logic usage | High cardinality (URLs, parameters); structured JSON logging at the source dramatically reduces downstream parsing fragility versus free-text formats |
| 8 | Privileged access / VPN and remote-access logs | Unauthorized remote access, VPN credential misuse, off-hours privileged connections | Often the earliest signal in an external intrusion, since remote access is frequently the initial foothold |
Special collection considerations across all eight: agent-based collection (EDR, some AD forwarding) needs a deployment and update lifecycle; syslog-based collection (firewall, network devices) is simple to set up but offers no built-in delivery guarantee, so a receiver outage can silently drop events; API-based collection (cloud audit logs) is rate-limited and needs credential/permission management per account; and telemetry volume varies by orders of magnitude between sources (DNS and process-creation events are usually the highest-volume, IAM change events the lowest), which should inform ingestion capacity planning per source, not a single flat estimate across all eight.
Worked example
A concrete onboarding priority order for a company standing up a SIEM from nothing, ranked by signal-to-noise and how early each source would catch a typical external intrusion: (1) identity/AD auth logs and (8) VPN/remote-access logs first, since credential misuse and unauthorized remote access are usually the earliest-visible signals in a real intrusion and are comparatively low-volume to ingest; (2) EDR and (5) cloud audit logs next, since they cover the two most common places initial execution and post-compromise activity happen (endpoints and cloud accounts); then (3) firewall, (4) DNS, (6) cloud IdP sign-in, and (7) application/WAF logs to round out network- and application-layer visibility. This ordering also reflects a genuine operational constraint: onboarding all eight simultaneously on day one is rarely realistic, so sequencing by expected detection value per unit of ingestion/parsing effort is itself a defensible design decision, not a shortcut.
For a brand-new internal service specifically, structured JSON logging emitted directly by the application (rather than free-text logs parsed after the fact) both reduces downstream normalization fragility and makes it far easier to enforce, at the source, that personally identifiable information (PII) such as full names, national ID numbers, or raw credentials is never written into a field the SIEM will ingest and retain.
Trade-offs and pitfalls
- Collector choice by source type: agents like Winlogbeat (Windows Event Log shipping) or NXLog collect and forward host-based logs with structure preserved; Filebeat-class shippers are common for flat-file application logs; each has its own resource footprint and update cadence to manage across a fleet.
- Data-platform-specific feeds: for organizations running a data platform (a data warehouse or lake), access events, schema-change events, and privilege-grant events on that platform are a distinct and often under-collected source category, since a generic "cloud audit logs" bucket does not automatically include data-plane access to a specific analytics platform, only its control-plane changes.
- Microservices architectures need explicit collection-point placement: in a service mesh or containerized environment, telemetry has to be collected consistently across many short-lived instances (per-pod or per-container log shipping, or a centralized sidecar/mesh-level collector), not assumed to flow naturally the way it does from a small number of long-lived hosts.
- Common mistake: ingesting a source but never validating field-level parsing accuracy; a "connected" source that silently mis-parses its timestamp or user field is often worse than not having the source at all, since it produces false confidence in coverage that does not actually exist.
- Common mistake: treating all 8 sources as equally cheap to ingest; DNS and process-creation telemetry alone can dwarf every other source combined in raw volume, so a fixed ingestion budget needs source-aware allocation, not an even split.
Unlock Full Question Bank
Get access to all Security Monitoring, SIEM, and Detection Engineering interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.