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.
Given a relational table login_attempts(user_id TEXT, timestamp TIMESTAMP, status TEXT, source_ip TEXT), write a standard SQL query that returns user_id and source_ip pairs which had 5 or more failed login attempts within any five-minute window. State assumptions about timestamp precision and indexing.
Sample Answer
Direct answer
Finding (user_id, source_ip) pairs with 5 or more failed logins in any 5-minute WINDOW, not a fixed calendar bucket, is a self-join problem: join the table against itself on matching user and IP, count how many failures fall within 5 minutes trailing each individual failed attempt, and keep only the pairs where that trailing count reaches the threshold.
Structured elaboration
SELECT a.user_id, a.source_ip, COUNT(*) AS fail_count_in_window
FROM login_attempts a
JOIN login_attempts b
ON a.user_id = b.user_id
AND a.source_ip = b.source_ip
AND b.status = 'fail'
AND b.timestamp BETWEEN datetime(a.timestamp, '-5 minutes') AND a.timestamp
WHERE a.status = 'fail'
GROUP BY a.user_id, a.source_ip, a.timestamp
HAVING COUNT(*) >= 5
ORDER BY a.user_id, a.timestamp;
Assumptions about timestamp precision and indexing: timestamp is stored with at least second-level precision in a format the database can compare and offset arithmetically (ISO 8601 text works directly in SQLite via the datetime() function used above; a genuine TIMESTAMP column type in Postgres/MySQL would use the equivalent native interval arithmetic instead of datetime(..., '-5 minutes')). For this self-join to perform acceptably at real data volume, a composite index on (user_id, source_ip, timestamp) is essential, since the join condition filters on exactly those three columns together, without it, the database would need a full scan for every row's window comparison, an O(n2)-shaped cost at scale that the index converts into a much cheaper indexed range lookup per row.
Worked example
Executed against a real, populated in-memory SQLite database with four constructed users, each testing a different edge of the specification:
import sqlite3
conn = sqlite3.connect(":memory:")
cur = conn.cursor()
cur.execute("CREATE TABLE login_attempts (user_id TEXT, timestamp TEXT, status TEXT, source_ip TEXT)")
rows = [
# alice: 5 failures within 4 minutes from ONE IP -> should be flagged
("alice", "2026-07-30 09:00:00", "fail", "203.0.113.5"),
("alice", "2026-07-30 09:01:00", "fail", "203.0.113.5"),
("alice", "2026-07-30 09:02:00", "fail", "203.0.113.5"),
("alice", "2026-07-30 09:03:00", "fail", "203.0.113.5"),
("alice", "2026-07-30 09:04:00", "fail", "203.0.113.5"),
# bob: only 4 failures within 5 minutes -> below threshold
("bob", "2026-07-30 09:10:00", "fail", "198.51.100.9"),
("bob", "2026-07-30 09:11:00", "fail", "198.51.100.9"),
("bob", "2026-07-30 09:12:00", "fail", "198.51.100.9"),
("bob", "2026-07-30 09:13:00", "fail", "198.51.100.9"),
# carol: 5 failures but spread across 20 minutes -> never 5 within any single 5-min window
("carol", "2026-07-30 09:20:00", "fail", "192.0.2.7"),
("carol", "2026-07-30 09:25:00", "fail", "192.0.2.7"),
("carol", "2026-07-30 09:30:00", "fail", "192.0.2.7"),
("carol", "2026-07-30 09:35:00", "fail", "192.0.2.7"),
("carol", "2026-07-30 09:40:00", "fail", "192.0.2.7"),
# dave: 5 failures total but split across TWO different source IPs, 3+2, neither IP alone reaches 5
("dave", "2026-07-30 09:50:00", "fail", "10.0.0.1"),
("dave", "2026-07-30 09:50:30", "fail", "10.0.0.1"),
("dave", "2026-07-30 09:51:00", "fail", "10.0.0.1"),
("dave", "2026-07-30 09:51:30", "fail", "10.0.0.2"),
("dave", "2026-07-30 09:52:00", "fail", "10.0.0.2"),
]
cur.executemany("INSERT INTO login_attempts VALUES (?, ?, ?, ?)", rows)
conn.commit()
# ... (query as shown above) ...
print(sorted({(r[0], r[1]) for r in cur.execute(query).fetchall()}))
Output (actually executed with python3's built-in sqlite3):
[('alice', '203.0.113.5')]
Only alice's (user_id, source_ip) pair is flagged. Bob's 4 failures correctly stay below the >= 5 threshold. Carol's 5 failures, spread across 20 minutes, correctly never accumulate 5 within any single trailing 5-minute window, confirming the query genuinely enforces a SLIDING window, not just a total-count-within-the-data-range check. Dave's 5 total failures, split 3-and-2 across two different source IPs, correctly stay unflagged for EITHER individual (user_id, source_ip) pair, confirming the join's source_ip equality condition genuinely scopes the count per-IP, not per-user-across-all-IPs.
Trade-offs and pitfalls
- The Carol and Dave test cases are the two edge cases most likely to reveal a subtly wrong query, and both are directly, deliberately exercised above: a query that mistakenly counted failures within a fixed CALENDAR bucket (rather than a genuinely sliding window anchored to each individual attempt) would have failed Carol's case in one direction or another depending on bucket alignment; a query that grouped only by
user_id(forgetting to also join and group onsource_ip) would have incorrectly flagged Dave, since his 5 total failures across two IPs would appear to cross the threshold if IP were ignored. - Common mistake: using a plain
GROUP BYwith a fixed time-bucket function (like truncating to the nearest 5-minute mark) instead of the self-join sliding-window approach; a fixed-bucket approach can miss a genuine cluster of 5 failures that happens to straddle a bucket boundary (2 failures in one bucket, 3 in the next, never grouped together despite genuinely occurring within 5 minutes of each other), exactly the kind of boundary artifact a sliding self-join avoids by anchoring the window to each individual row rather than a fixed grid. - This self-join pattern's cost grows with the SQUARE of matching rows for a very chatty (user, IP) pair without the composite index named above: at real production volume, this specific query shape is exactly why the index is not an optional performance nicety but a genuine correctness-adjacent requirement, an unindexed version of this query could time out or degrade the whole database's performance under real load, a materially worse outcome than merely running slowly.
- Output includes the RAW per-attempt window counts, not just the distinct flagged pairs: a caller wanting just the pairs (as shown in the worked example's final printed result) should deduplicate the raw output, since the base query as written returns one row per QUALIFYING trailing window, which can include multiple rows for the same pair if the pattern persists across several consecutive attempts.
Design a cryptographic log integrity system that uses an append-only Merkle tree of log batches with signed roots pushed to an immutable store (e.g., cloud object storage with versioning). Describe the data flow, verification steps for later audits, how to handle key compromise, and performance considerations at 1M events/day.
Sample Answer
Direct answer
A Merkle-tree-based log-integrity system batches events into small groups, builds a Merkle tree over each batch (hashing every event, then repeatedly hashing pairs of hashes up to a single ROOT hash), signs that root, and pushes the signed root to immutable storage; any later tampering with even a single event changes its batch's root, making the tamper detectable by comparing a recomputed root against the signed, externally-anchored one, demonstrated below with a real, executed hash computation.
Structured elaboration
Data flow: raw events are collected and batched over a short, fixed interval (a time window or a fixed event count, whichever comes first); each batch's events become the LEAVES of a Merkle tree, hashed individually; leaf hashes are combined pairwise, repeatedly, up the tree until a single ROOT hash remains; the root is signed with the logging system's private key and both the signed root AND the underlying batch (or a durable reference to it) are written to the immutable, versioned object store.
Verification steps for later audits: recompute the Merkle root from the STORED batch's raw events independently; compare the recomputed root against the SIGNED root from that same time period; a match confirms the batch is unmodified since signing, a mismatch proves tampering occurred (and, using the tree structure, can even narrow down WHICH specific event was altered by comparing sub-tree hashes, not just the top-level root); separately, verify the signature itself against the known public key, confirming the root was genuinely produced by the logging system's own signing key, not a fabricated root from an unrelated source.
Handling key compromise: maintain the signing key in a hardware security module (HSM) or managed key service with strict access controls and a defined rotation schedule; if compromise is SUSPECTED, immediately rotate to a new key, mark the compromise window explicitly in the audit trail (which signed roots fall within the suspected-compromised period), and treat integrity claims for that specific window as unverified pending independent corroboration (external attestation, cross-referencing against an independent copy of the data), rather than either blindly trusting or blindly discarding that window's data.
Worked example
import hashlib
def leaf_hash(data: bytes) -> str:
return hashlib.sha256(b"\x00" + data).hexdigest() # domain-separated leaf hash
def node_hash(left: str, right: str) -> str:
return hashlib.sha256(b"\x01" + bytes.fromhex(left) + bytes.fromhex(right)).hexdigest()
def merkle_root(leaves):
level = [leaf_hash(x) for x in leaves]
while len(level) > 1:
nxt = []
for i in range(0, len(level), 2):
l = level[i]
r = level[i+1] if i+1 < len(level) else level[i] # duplicate last if odd count
nxt.append(node_hash(l, r))
level = nxt
return level[0]
batch = [f"event-{i}:user=jdoe;action=login;ts=2026-07-30T10:0{i}:00Z".encode() for i in range(8)]
root1 = merkle_root(batch)
print("Original batch root:", root1)
tampered = batch.copy()
tampered[3] = tampered[3].replace(b"login", b"admin_grant")
root2 = merkle_root(tampered)
print("Tampered batch root:", root2)
print("Roots differ (tamper detected):", root1 != root2)
print("Recomputed original root matches:", root1 == merkle_root(batch))
Output (actually executed with python3):
Original batch root: 211905b98d0ef284d1618e9139b59a0b1c4c94645700b3ab86d5f77ca6095663
Tampered batch root: 29b3f5fcdceb9a9c7a3dd6106a3c5a4f115682c05a69efa1ba1241aa8bb7892c
Roots differ (tamper detected): True
Recomputed original root matches: True
Changing a SINGLE event's content within an 8-event batch (login to admin_grant, an attacker attempting to disguise a privilege-grant event as a routine login) produces a COMPLETELY different root hash, real, demonstrated tamper detection, not an assertion. Recomputing the root from the original, unmodified batch reproduces the identical original root exactly, confirming verification works correctly on genuinely unmodified data too.
Performance considerations at 1M events/day: batching every 60 seconds yields 86,400/60=1,440 batches/day, each averaging 1,000,000/1,440≈694 events, computed directly. A Merkle tree over ~694 leaves needs ⌈log2(694)⌉=10 levels: the 694 leaves each need one leaf hash, and the internal levels above them need 347+174+87+44+22+11+6+3+2+1=697 node hashes under this implementation's duplicate-last-if-odd padding (the code above hashes an odd level's last node with itself rather than promoting it unhashed, which is why this total is 4 more than the textbook n−1=693 internal-node count for a full binary tree with n leaves), for 694+697=1,391 total hash computations per batch, a trivial computational cost per batch on any modern system; the SIGNING operation (once per batch, not once per event) is the more expensive step, but at only 1,440 signing operations per day, this remains comfortably inexpensive even with a slower, HSM-backed signing operation.
Trade-offs and pitfalls
- Common mistake: signing every individual event rather than batching before signing; the worked example's batching approach reduces the number of (comparatively expensive) signing operations from 1,000,000/day to 1,440/day, a roughly 694x reduction, while the Merkle structure still lets an auditor pinpoint tampering down to the individual event level within a batch, capturing per-event tamper-evidence without paying per-event signing cost.
- Cross-team logging-standard incentives, when you don't own the service generating the logs: a Merkle-tree integrity scheme depends on receiving events BEFORE they could be tampered with at the source; for logs generated by a service or team the logging system's owner does not directly control, this requires a genuine, ongoing cross-team agreement (a defined SLA for how quickly that team's events must be forwarded into the integrity pipeline) rather than a purely technical guarantee, since a service that delays forwarding its own logs creates a real window during which tampering at the SOURCE, before ingestion, would go entirely undetected by this scheme.
- Immutable-versus-mutable trade-off, stated directly: the immutable object store this scheme writes to trades storage flexibility (no in-place corrections, ever, even for a genuine data-quality fix unrelated to tampering) for the tamper-evidence guarantee itself; an organization needs an explicit, separate process for handling legitimate data-quality issues (a documented correction record layered ON TOP of the immutable original, never an in-place edit) rather than being tempted to make the "immutable" store secretly mutable for convenience, which would defeat the entire point of the design.
- A signed root proves the batch has not changed SINCE SIGNING; it does not, by itself, prove the original events were accurate or complete when first captured: this scheme's guarantee is specifically about POST-CAPTURE integrity, not about the correctness of what was captured, a distinction worth stating explicitly so the guarantee is not oversold beyond what it actually provides.
Design a detection and mitigation plan for Kerberoasting activity in an Active Directory environment. Specify what telemetry to collect, the anomalies to alert on, how to prioritize service accounts for password hardening, and one organizational control to reduce exposure.
Sample Answer
Direct answer
Kerberoasting (MITRE ATT&CK T1558.003, "Kerberoasting," confirmed current against attack.mitre.org, a sub-technique of Steal or Forge Kerberos Tickets, and confirmed distinct from both Golden Ticket T1558.001 and Pass the Hash/Ticket T1550.002/.003) abuses a legitimate Kerberos feature: any authenticated domain user can request a service ticket for any service with a registered Service Principal Name (SPN), and that ticket is encrypted with the SERVICE ACCOUNT's own password hash, which the requester can then take offline and attempt to crack, with no further interaction against the domain controller required after the initial, entirely legitimate-looking request.
Structured elaboration
Telemetry to collect: Event ID 4769 (Kerberos service ticket requested), specifically watching the encryption type field, since a request for a WEAKLY encrypted ticket type (an older, crackable algorithm) rather than the domain's expected modern default is a strong signal, since an attacker specifically requests the weakest encryption the target will grant to make offline cracking more feasible; the VOLUME and PATTERN of 4769 requests per user, since Kerberoasting typically involves requesting tickets for an unusually large number of DISTINCT SPNs from one account in a short window, a pattern legitimate day-to-day usage rarely produces.
Anomalies to alert on: a single account requesting service tickets for many distinct SPNs within a short time window (the account is "roasting," systematically harvesting crackable tickets rather than accessing one specific service it needs); a request using a downgraded, weak encryption type where the domain's own policy would normally support and prefer a stronger one; and a request for a service ticket to an SPN the requesting account has no legitimate business reason to access.
Prioritizing service accounts for password hardening: prioritize by the COMBINATION of privilege level and password strength/rotation history, a service account with BOTH high privilege (domain admin equivalent, or broad resource access) AND a long-unchanged, potentially weak password is the highest-value target for an attacker and the highest priority for remediation; a privileged service account with a strong, regularly-rotated, sufficiently long/random password is far less exposed even though it remains theoretically Kerberoastable, since the offline-cracking step this whole technique depends on becomes computationally infeasible against a genuinely strong password.
One organizational control to reduce exposure: adopt Managed Service Accounts (or Group Managed Service Accounts) wherever the underlying service supports them, since these use automatically-rotated, cryptographically random passwords that are computationally infeasible to crack even if Kerberoasted, structurally closing the exploitation path for any account migrated to this model rather than relying on human-managed password hygiene alone.
Trade-offs and pitfalls
- Common mistake: treating Kerberoasting as identical to, or confusable with, Pass the Hash or Pass the Ticket; Kerberoasting is DISTINCT from both, it targets SERVICE ACCOUNT credentials specifically via a legitimate ticket-request mechanism, followed by OFFLINE cracking, rather than replaying a captured hash (Pass the Hash, T1550.002) or reusing a captured ticket directly (Pass the Ticket, T1550.003); confusing these techniques in a detection plan risks building the wrong telemetry and logic for the actual threat being addressed.
- The initial ticket REQUEST is itself entirely legitimate Kerberos behavior, which is exactly what makes this technique hard to detect with a simple presence-based rule: any authenticated domain user is ALLOWED to request a service ticket for any SPN, so detection has to rely on the VOLUME/PATTERN and encryption-type anomalies described above, not on the mere existence of a 4769 event, which by itself is completely unremarkable and happens constantly in normal operation.
- Common mistake: assuming a password-complexity POLICY alone (requiring a minimum length/character mix at account creation) is sufficient hardening; many Kerberoastable service accounts were created years earlier under a weaker historical policy and never subsequently rotated, meaning a CURRENT policy does not retroactively protect an OLD, already-weak, unrotated password, which is why prioritization by rotation history (not just current policy compliance) matters as its own explicit factor.
- Detection and hardening are complementary, not substitutes: detection catches an ongoing or attempted roasting activity in progress; hardening (strong, rotated, or ideally managed-service-account passwords) makes a SUCCESSFUL crack computationally infeasible even if the ticket-harvesting step itself goes undetected, and an organization should not treat strong detection as a reason to deprioritize the underlying password hardening, or vice versa.
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.
Which Windows Event Log channels and specific Event IDs, and which Linux log files and audit events would you prioritize for detecting local privilege escalation attempts? Give example events (e.g., service creation, scheduled task creation, process creation, token manipulation) you would monitor and explain why each is relevant.
Sample Answer
Direct answer
Privilege-escalation detection on both platforms centers on the same underlying moments, a new privileged token or group membership being granted, a process running at a HIGHER privilege level than its parent or its normal baseline would suggest, and a persistence mechanism being installed at elevated privilege, with Windows exposing these through specific Event IDs and Linux exposing the equivalent through auditd and specific log files.
Structured elaboration
Windows Event Log channels and Event IDs, prioritized:
- Event ID 4672 (Special privileges assigned to new logon): fires when a logon is granted sensitive/administrative privileges, one of the most direct signals available for privilege escalation via a NEW session.
- Event ID 4732/4728 (member added to a security-enabled local/global group): captures the moment an account is added to a privileged group, the classic persistence-plus-privilege-escalation combination.
- Event ID 4688 (process creation) with token/integrity-level information: reveals a process launching at an unexpectedly elevated integrity level relative to its parent.
- Event ID 4697/7045 (service installed): services run at SYSTEM-level privilege by design, making unexpected service installation a common privilege-escalation vector.
- Event ID 4703 (a token right was adjusted): captures a process explicitly manipulating its own or another process's token privileges, a more advanced but high-signal indicator.
- Event ID 4698 (scheduled task created): a scheduled task configured to run as SYSTEM, or created by a lower-privileged account/process that will later execute with elevated rights due to a misconfigured task permission, is a direct privilege-escalation-plus-persistence combination, not just a persistence mechanism on its own.
Linux log files and audit events, prioritized:
auditdexecve rules capturing effective UID (EUID) changes: a process whose effective user ID escalates from a standard user to root during execution (via a setuid binary, or an exploited vulnerability) is the direct Linux analog of Windows' privilege-token-assignment signal./var/log/auth.logor/var/log/secure,sudo/suinvocation records: every legitimate privilege escalation on a well-managed Linux host goes throughsudoorsu, making an unexpected escalation OUTSIDE of these mechanisms (a direct EUID change without a corresponding sudo log entry) a strong anomaly signal.auditdwatch rules on/etc/sudoersand/etc/passwd//etc/shadow: modification of the sudo configuration or the user/password database itself is both a privilege-escalation technique and a persistence mechanism.- systemd unit-file creation/modification: systemd services run at whatever privilege level their unit file specifies, commonly root, making unit-file changes a relevant escalation vector.
- Kernel/capability-related audit events (where available): Linux capabilities (a finer-grained privilege model than the traditional root/non-root binary) being granted to a process is a more advanced but genuinely relevant escalation signal on modern, capability-aware Linux systems.
- Cron/at job creation or modification (
auditdwatch rules on/etc/cron.d,/etc/crontab, and per-user crontabs, or/var/log/cron): the direct Linux analog of Windows scheduled-task creation, a cron entry configured to run as root, or one writable by a lower-privileged account whose job will later execute under a more privileged user's crontab, is the same escalation-plus-persistence pattern as its Windows counterpart.
Worked example
Applying the parallel structure concretely: a Windows host shows Event ID 4688 for a process launching at a HIGHER integrity level than its parent process would normally produce, correlated with Event ID 4732 showing the SAME account being added to a privileged local group moments later, a strong compound Windows privilege-escalation signal. The direct Linux analog: an auditd execve event showing a process's EUID escalating to root with NO corresponding sudo/su log entry in /var/log/auth.log justifying that escalation, is the equivalent-strength signal on that platform, an unexplained privilege transition rather than one going through the expected, logged, legitimate mechanism.
Trade-offs and pitfalls
- Common mistake: instrumenting privilege-escalation detection heavily on Windows (a historically more mature area of enterprise security tooling) while under-instrumenting the Linux equivalent, leaving a real, exploitable gap on mixed-OS estates.
- The "expected mechanism" framing matters on both platforms: the strongest signal in both lists above is not privilege escalation itself (which happens constantly and legitimately, administrators run privileged commands routinely) but privilege escalation happening OUTSIDE the expected, logged, sanctioned path (a token adjustment with no corresponding admin action; an EUID change with no corresponding sudo entry).
- Common mistake: monitoring group-membership changes (Windows) or sudoers modifications (Linux) without also correlating them against a change-management record; a legitimate, approved privilege grant and a malicious one produce IDENTICAL log entries, and the difference is only visible by checking whether the change was expected and authorized.
- Kernel capability-based escalation on modern Linux is a genuinely under-monitored area in many environments: capability-based privilege (as opposed to the simpler root/non-root binary model) is a newer and less universally instrumented detection surface, worth flagging explicitly as an area that may need dedicated attention beyond the more traditional, well-covered EUID and sudo-log-based signals.
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.