DefensiveHub

SOC Handbook

A practical reference for SOC analysts: T1 (triage), T2 (investigation) and T3 (hunting and engineering) tracks, with templates, playbooks and queries.

Tracks
T1, T2 and T3
Last updated
November 10, 2026
Built for
SOC analysts at T1, T2 and T3, and anyone preparing for the role

Start here

The SOC Handbook is a practical reference for SOC analysts across three levels: T1, T2 and T3. It is not a theory book. Every page is built to be opened in the middle of an alert: what should I ask? Where should I look? Close or escalate? What do I write in the ticket?

The map

T1 track: Triage

Available

How to triage alerts quickly and accurately: a fixed triage method, 12 cards for the most common alerts, email analysis, key events and Entra codes, and ticket writing and escalation.

T2 track: Investigation

Available

Investigating escalated cases: an investigation method and timeline, containment, endpoint, identity and email investigation, lateral movement, 6 response playbooks, report templates and investigation queries.

T3 track: Hunting and Engineering

Available

Threat hunting (PEAK), detection engineering (Sigma and detection as code), deep DFIR and memory, malware analysis basics, threat intelligence, purple teaming, leading major incidents and running the SOC.

Note

Tools and names change (especially Microsoft products). The examples here use Microsoft Sentinel, Defender XDR and Entra ID because they are the most common in the region, but the method applies to any SIEM and EDR. Any number or SLA is an example, and your company sets the real one.

The SOC on one page

The SOC (Security Operations Center) is the team that monitors the environment 24/7, detects attacks and responds to them. The core idea: every alert must be sorted quickly, and the dangerous ones must reach someone with more experience early.

The basic cycle

  1. Collection: logs and telemetry from devices, identities, network and cloud flow into the SIEM and XDR.
  2. Detection: detection rules raise alerts on suspicious activity.
  3. Triage: T1 decides: is it real? How important?
  4. Investigation: T2 works out exactly what happened and how far it went.
  5. Containment, eradication and recovery: stop the spread, remove the cause, return to normal.
  6. Learning: T3 turns what was learned into better detections and hunting.

The tools you will deal with

  • SIEM: collects logs and raises alerts. Examples: Microsoft Sentinel and Splunk.
  • EDR / XDR: monitors devices, identities and email. Example: Microsoft Defender XDR.
  • Ticketing: documents every case. Examples: ServiceNow and Jira.
  • SOAR: automates repetitive steps.
  • Threat intelligence: sources that help you judge an IP, domain or hash.
  • Sandbox: runs a suspicious file in an isolated environment.

Tiers and escalation

The T1, T2 and T3 split (or L1, L2, L3) is a common model for dividing work by complexity and authority. Role names and limits differ between companies, and many modern SOCs are moving to specialized roles instead of levels. The idea is the same either way: lots of simple work up front, and a small amount of hard work for the most experienced people.

T1: Triage Analyst

T1
  • Monitors the alert queue and triages it.
  • Does basic enrichment (IP, domain, hash, user).
  • Closes false positives with documentation, and escalates the rest.
  • Runs specific runbooks and playbooks.

Their question: "Is this alert real?"

T2: Incident Responder

T2
  • Takes escalated cases and investigates deeply.
  • Correlates events from many sources and builds a timeline.
  • Determines scope and impact, and usually has containment authority (isolate a device, disable an account).
  • Maps behavior to MITRE ATT&CK.

Their question: "What happened, and how far did it go?"

T3: Hunter and Engineer

T3
  • Leads major incidents and deep forensics.
  • Hunts threats without an alert.
  • Writes and tunes detections (detection engineering).
  • Trains T1 and T2.

Their question: "What have we not detected?"

When to escalate from T1

The exact rules are in your company's runbook, but these are the general signs:

  • The alert matches a confirmed IOC or clear malware behavior.
  • It involves a critical asset (domain controller, data server, VIP) or a privileged account.
  • Success after failure: a successful logon after many failed attempts from the same source.
  • Credentials were stolen: a user typed their password into a suspicious page, or a token was stolen.
  • Code actually ran (a malicious file executed, or a suspicious command was carried out).
  • More than one device or account is affected (a sign of spread).
  • Sensitive data left or may have left.
  • Something outside the runbook, or you do not understand it after a reasonable time. Escalating is not weakness.
The golden rule

When in doubt, escalate with a clear summary. An extra escalation costs minutes, and an incident closed wrongly costs weeks. But escalating without documentation wastes T2's time.

Severity and priority

  • Severity: how serious the alert itself is, as set by the detection (Low, Medium, High).
  • Priority: your real priority, computed from severity, the importance of the asset and user, your confidence in the alert, and the context.
  • Example: a medium alert on a domain controller can have a higher priority than a high alert on a test machine.
  • In Microsoft Defender XDR, incidents get a priority score from 0 to 100 (above 85 red, 15 to 85 orange, below 15 gray) based on severity, asset importance, how rare the alert is, and more.

The T1 day

T1 sees everything first. Your job is not to solve everything, but to sort quickly and accurately and document, so the real things reach someone who can handle them.

The shape of a shift

  1. Handover in: read the notes from the previous shift: what is open? What is under watch? Is an incident running?
  2. Review the queue: sort by priority, not only by time. High first.
  3. Triage: take alerts one by one with the fixed method (next section).
  4. Documentation: every alert has a note, even if it is closed.
  5. Handover out: write what is still open and what you noticed for the next shift.

Rules that make a difference

  • No alert is closed with "looks normal". There must be a written reason: what you saw and why it means it is benign.
  • Time matters: every alert has a reasonable time limit (set by your company). If the time runs out and you still have no decision, escalate.
  • Context matters more than the alert: the same alert on a regular machine and on a domain controller is not the same thing.
  • Do not assume it is a false positive just because the rule is usually wrong. Look for evidence.
  • A repeating alert is a tuning problem: tell T3 or the detection engineers instead of closing it every time.
  • Do not act outside your authority: containment only within the runbook's authority.
  • Ask early: a question to a colleague is cheaper than a mistake.

Handling pressure

In a SOC the queue can grow. Alert fatigue is real. Work by method, not panic: rank by priority, do not close fast and wrong, tell the supervisor if the queue exceeds the shift's capacity, and take real breaks.

The triage method

A fixed method applied to every alert saves thinking and keeps your work consistent. 5 steps:

  1. Understand: what exactly does the alert say? Which rule? What does it claim? Which ATT&CK technique? Who and which devices?
  2. Context: who is the user? What is their role? Is the device critical? Are the time and place normal? Is there an approved change or maintenance?
  3. Enrich: check the IP, domain, hash and URL. Ask: has anyone seen this before? Read the events before and after the alert.
  4. Decide: real (true positive), benign (false positive), real but expected (benign positive), or unsure.
  5. Act and document: close with a written reason, or escalate with a summary, or take the runbook action.

Classification

Microsoft Defender uses 3 classifications that are useful in any tool:

  • True Positive: the alert expresses a real threat. Specify the threat type so the team can see patterns.
  • Informational, expected activity (Benign Positive): the alert is technically right but the activity is normal or expected. Example: a security test, a red team, or a trusted app doing unusual behavior.
  • False Positive: the alert fired with no malicious activity.

The difference between benign positive and false positive matters: the first may help you spot a similar real threat later, and the second points to a detection that needs improvement.

Questions for every alert

  • What exactly happened? Is it normal for this user or device?
  • Is the asset important? Is the account privileged?
  • Did the activity succeed or get blocked? (Blocked is less serious than succeeded.)
  • Are there other events at the same time: the same user, device or IP?
  • Has it happened before? How was the same alert closed before?
  • What is the possible impact if it is real?
  • If you are wrong, what is the worst case?

A simplified decision tree

  • The activity was blocked and there is no impact? Document and close (usually).
  • The activity succeeded and there is a confirmed explanation (approved maintenance, a documented user)? Close it as benign with the evidence.
  • The activity succeeded and there is no explanation? Look further. If there is still no explanation, escalate.
  • Any escalation sign (in the "Tiers" section)? Escalate immediately.

Common triage mistakes

  • Judging from the alert alone without looking at the surrounding events.
  • Relying only on IP reputation. A clean reputation does not mean safe.
  • Closing an alert because "this always happens" without evidence.
  • Ignoring a low-severity alert that is part of a bigger attack chain.
  • Escalating without a summary.

Enrichment

Enrichment means adding information around the alert so you can judge it. The goal: answer "what is this? who is behind it? has anyone seen it before?".

What to look at

  • The IP: its reputation, country and ASN, and whether it is a VPN, proxy, Tor or cloud. Has the user signed in from it before?
  • Domain / URL: its age (newly registered?), the registrar, how it looks (similar to a known name?), and the content.
  • File hash: known malicious? The name, path and signer, and the parent process.
  • The user: role, permissions, recent sign-ins, and usual devices.
  • The device: importance, last update, who is on it, and whether the EDR is running.
  • The time: working hours or the middle of the night? And the time zone?

Common sources

  • VirusTotal: reputation of a hash, URL, domain and IP across many engines.
  • AbuseIPDB: reports on abusive IPs.
  • urlscan.io: opens a URL in an isolated browser and shows you the page and requests.
  • Whois and RDAP: domain registration information.
  • Shodan and Censys: which services are open on an IP.
  • MXToolbox and DNS tools: email and DNS records.
  • A sandbox (such as ANY.RUN and Hybrid Analysis): runs suspicious files safely.
  • CyberChef: decodes Base64 and simple encodings.
  • Your company's tools: the TI feed, the CMDB and the asset store. Often more useful than public tools, because they know your environment.
Careful
  • Do not upload a confidential file or sensitive data to public services. Files uploaded to VirusTotal are shared with the community. Use the hash instead of the file when possible.
  • Scans on urlscan.io can be seen publicly unless you make them private or unlisted.
  • An IP can be shared (CDN and cloud), so its reputation is not proof of what it is doing.
  • A good reputation does not mean safe, and a bad reputation does not mean it is responsible for the alert.
  • Watch your URLs: defang them before writing them in a ticket or message: hxxps://example[.]com.

Alert cards

12 cards for the alerts you will see most often. Each card answers: what does it mean? What do I ask? Where do I look? When do I treat it as real? When do I escalate? Use them as a starting point, and your company's runbook takes priority if it differs.

1. Many failed logons (brute force and password spray)

T1110

Someone is trying passwords on one or more accounts. Brute force: one account, many passwords. Spray: many accounts, one password.

Ask

  • Is the source internal or external? One IP or many?
  • One account or many? Privileged accounts?
  • Is there a successful logon from the same source after the failures?

Where to look

  • Entra: sign-in logs with code 50126 (wrong password) and 50053 (lockout).
  • Windows: Event 4625 and the SubStatus, and 4740 for lockouts.

Signs it is real

  • Strange IPs or unexpected countries, and many accounts in a short time.
  • Success after failure from the same source.

Signs it is benign

  • A user forgot their password, a device with a saved old password, or a service account with an expired password.

Escalate if

  • There is success after failure, the target is a privileged account, or the attack continues from an external source.

2. Sign-in from an unusual place or device (atypical travel)

T1078

A user signed in from far away in a short time, or from a new country. In Entra ID Protection this detection is called "Atypical travel".

Ask

  • Is the user traveling or using a VPN or proxy?
  • Is the IP from a cloud or a mobile carrier?
  • Did the sign-in pass MFA? From which device and application?

Where to look

  • Sign-in logs: IP, country, device, user agent and conditional access result.
  • Events after the sign-in: new inbox rules, a new MFA method registered, a large download.

Signs it is real

  • A successful sign-in from a country or device that never appeared, followed by strange activity in email or files.

Signs it is benign

  • The company VPN, known travel, or a mobile carrier changing the IP.

Escalate if

  • An unjustified success plus activity afterwards, or the account is privileged.

3. MFA fatigue

T1621

The attacker has the password and sends many MFA requests hoping the user approves out of annoyance.

Ask

  • How many requests in the period? Did the user approve one?
  • Did the user see the requests, or were they trying to sign in?

Where to look

  • Entra sign-in logs: repeated 500121 (strong authentication failed) and 50074 (MFA required).
  • A success after a series of denials or no response.

Signs it is real

  • Many requests from a strange IP, followed by a success.

Escalate if

  • There was an approval after repeated requests. Treat the account as compromised until proven otherwise, and tell the user immediately through the official channel.

4. A reported phishing email

T1566

A user reported a suspicious email, or Defender caught one.

Ask

  • Who else received it? Did anyone click a link or open an attachment? Did anyone enter a password?

Where to look

  • The headers and Authentication-Results (see "Email analysis").
  • Defender: Threat Explorer, and the EmailEvents and UrlClickEvents tables in advanced hunting.

Actions

  • Analyze the sender, links (defanged) and attachments.
  • Identify all recipients and who clicked.
  • Request the delete and block actions per the runbook.

Escalate if

  • A user entered credentials, opened an attachment that ran, or the sender is a compromised internal account.

5. Malware detected on a device

T1204

The EDR or antivirus detected a malicious file or behavior.

Ask

  • The action: was it blocked, quarantined or executed?
  • Where did the file come from (email, download, USB)? And the parent process?
  • Is the same hash on other devices?

Where to look

  • Defender: the alert page and the device timeline. In the Windows Defender log: Event 1116 (detection) and 1117 (action).

Signs it is real

  • The file executed, tried persistence, or contacted the network after execution.

Escalate if

  • Remediation failed, the file executed, or it appeared on more than one device.

6. A suspicious command (PowerShell and LOLBins)

T1059

An encoded PowerShell command or one that downloads something from the internet, or a legitimate system tool used in a strange way (certutil, mshta, rundll32).

Ask

  • Who ran it? From which process? (Office or a browser launching PowerShell is a bad sign.)
  • What does the command do after decoding?

Where to look

  • Event 4688 (with command line), 4104 (script block), or the process tree in the EDR.

Signs it is real

  • Base64, DownloadString, IEX, a connection to a new domain, and a strange parent.

Signs it is benign

  • An approved admin script, a deployment tool, or a system administrator.

Escalate if

  • The command actually downloaded or ran something, or you found no approved explanation.

7. A suspicious outbound connection (C2 and beaconing)

T1071

A device connects to a suspicious IP or domain, or in a pattern repeating at fixed intervals.

Ask

  • Which process makes the connection? The port and the volume?
  • Is the interval fixed (for example every 60 seconds)? Is the domain new?

Where to look

  • Firewall, proxy and DNS logs, and the DeviceNetworkEvents table.

Signs it is real

  • An unexpected process connecting, a domain days old, and very regular intervals.

Signs it is benign

  • Updaters and sync apps connect at fixed intervals to known services.

Escalate if

  • Confirmed malicious or no explanation, and it may need device isolation.

8. A permissions change (new admin)

T1098

A user was added to a privileged group or a new account was created.

Ask

  • Is there an approved change request? Who made the change? Is the time normal?

Where to look

  • Windows: 4720 (new account), 4728, 4732 and 4756 (group additions), and 4672 (special privileges).
  • Entra: audit logs for role assignments.

Escalate if

  • There is no approved request, the addition is to Domain Admins or Global Administrator, or the change happened at night.

9. Account lockout

T1110

An account was locked because of failed attempts.

Where to look

  • Event 4740 on the domain controller: the Caller Computer Name field tells you the device that is trying.

Signs it is benign

  • A device or phone with old saved credentials, or a service with an old password.

Escalate if

  • The source is external or strange, several accounts were locked from the same source, or the account is privileged.

10. Possible data exfiltration

T1567

A large upload to an external service, copying of sensitive files, or a DLP alert.

Ask

  • The volume and type of data? Is the destination approved? Does the user have a work reason? Are they about to leave the company?

Where to look

  • Proxy, cloud app logs and DLP, and DeviceNetworkEvents.

Escalate if

  • The data is actually sensitive, the destination is personal or unknown, or the account may be compromised. It may need HR and Legal through T2.

11. Ransomware indicators

T1486

Many files encrypted, backups and shadow copies deleted, or a ransom note.

Signs

  • vssadmin delete shadows, mass file extension changes, a README file with ransom terms, and a process reading many files fast.

Action

  • Immediate, urgent escalation. Follow the runbook: isolate the device if that is within your authority, do not power it off (memory holds evidence), and notify T2 and the supervisor.

12. Protection disabled or logs cleared

T1562

Someone stopped the antivirus or EDR, or cleared the security logs.

Where to look

  • Event 1102 (Security log cleared), 104 (System log cleared), 4719 (audit policy changed), and Defender 5001 (protection disabled) and 5007 (settings changed).
  • Commands such as Set-MpPreference.

Escalate if

  • Almost always. Attackers do this before or after the real activity. Treat it as a possible incident.

Email analysis

As a T1, phishing is what you will see most. The skill here is to read an email like an investigator: ignore what the mail client shows and read the headers.

Analysis steps

  1. Preserve the original: export the original email (.eml) with the full headers before any action.
  2. Compare the identities: From (what is displayed), Reply-To (where a reply goes), and Return-Path (the actual sender in the envelope). A difference between them is a sign, not proof on its own.
  3. Read Authentication-Results: the SPF, DKIM and DMARC results (below).
  4. Read the Received lines from bottom to top: the bottom line is the first hop. The first server you trust (your company's or the mail gateway) is the "trust boundary": anything before it can be forged.
  5. Inspect the links: hover without clicking, defang them, check the real domain and its age, and analyze it in urlscan or a sandbox.
  6. Inspect the attachments: the hash, the real type (a double extension?), and run it in a sandbox only. Do not open it on your machine.
  7. Inspect the content: urgency, a request for a password, payment or gift cards, a change of bank details, and an unusual address for a known person.
  8. Determine the scope: who else received the same email? Who opened it? Who clicked?

SPF, DKIM and DMARC results

  • SPF: is the sending server allowed to send for the envelope domain? pass means authorized. fail means not authorized (a strong signal). softfail means probably not authorized. none means no record.
  • DKIM: is there a valid cryptographic signature on the message? header.d says who signed. pass means the message was not altered and that domain signed it.
  • DMARC: does the SPF or DKIM that passed align with the domain shown in From? dmarc=fail means the sender is impersonating the displayed domain, even if SPF and DKIM passed for another domain.
What to remember

These results are evidence, not a verdict. An email from a legitimate compromised account can pass SPF, DKIM and DMARC, because the attacker uses the real account. The reverse also happens: a legitimate email through a forwarding system can fail SPF. Tie the results to the content, the context and the request.

Common red flags

  • A domain that looks like a known name (micros0ft or rnicrosoft) or a display name of an executive with an external address.
  • A link to a sign-in page on a strange domain.
  • An HTML, ISO or OneNote attachment, or a password-protected archive mentioned in the message.
  • A request to change a bank account or an urgent payment (BEC).
  • A reply in an old conversation from a compromised account (thread hijacking).

Useful queries (KQL)

// Who else received the same email?
EmailEvents
| where Timestamp > ago(7d)
| where SenderFromAddress == "sender@example.com" or Subject == "The subject"
| project Timestamp, RecipientEmailAddress, Subject, DeliveryAction, ThreatTypes
// Did anyone click a link from it?
UrlClickEvents
| where Timestamp > ago(7d)
| where Url has "example[.]com" or Url has "example.com"
| project Timestamp, AccountUpn, Url, ActionType

For more: KQL Hunting Library. The EmailEvents and UrlClickEvents tables require Defender for Office 365 and Safe Links.

Windows events

The key events in the Security log (unless noted otherwise). Many of them are not logged unless the audit policy is set correctly, so check it first.

Logon

  • 4624Successful logon. Read the Logon Type: 2 interactive, 3 network, 4 batch, 5 service, 7 unlock, 8 NetworkCleartext, 9 NewCredentials, 10 RemoteInteractive (RDP), 11 CachedInteractive.Type 3 from one user workstation to another is worth a question.
  • 4625Failed logon. The SubStatus gives the reason: 0xC0000064 user does not exist, 0xC000006A wrong password, 0xC0000234 account locked out, 0xC0000072 account disabled, 0xC000006F outside logon hours, 0xC0000071 password expired.One user and many passwords = brute force. Many users and one password = spray.
  • 4648Logon with explicit credentials (runas or a tool).Useful for tracing lateral movement.
  • 4672Special privileges assigned to a logon (an admin account).Link it to 4624 to see where admins sign in.
  • 4740Account locked out, on the DC. The Caller Computer Name field gives the source of the attempts.

Processes and persistence

  • 4688A process was created. Turn on "Include command line in process creation events" or you will see the program name without the command.The parent/child relationship is where the story is.
  • 4104PowerShell script block (from Microsoft-Windows-PowerShell/Operational). It logs the code after decoding.
  • 4698A new scheduled task. Look at the command the task runs and who created it.
  • 4697 / 7045A new service (4697 in Security, and 7045 in System).PsExec creates a service named PSEXESVC.

Accounts and groups

  • 4720An account was created. It should be rare and tied to an IT request.
  • 4722 / 4725An account was enabled or disabled. An old account that suddenly works again? Worth a question.
  • 4724An attempt to reset another account's password.
  • 4728 / 4732 / 4756A member was added to a group (global, local and universal). Any addition to Domain Admins or Administrators gets escalated.

Kerberos and NTLM

  • 4768 / 4769TGT request and service ticket request. Ticket Encryption Type 0x17 (RC4) for service accounts, and many from the same user = Kerberoasting.
  • 4771Kerberos pre-auth failed. 0x18 means a wrong password.
  • 4776NTLM validation on the DC. Useful to see who still uses NTLM.

Log tampering and protection

  • 1102 / 104Security log cleared (1102) or System log cleared (104). It is almost never legitimate.
  • 4719The audit policy changed: did someone turn off logging?
  • 1116 / 1117Windows Defender: a threat detected (1116) and the action taken (1117).
  • 5001 / 5007Windows Defender: real-time protection disabled (5001) and settings changed (5007).

Sysmon (if installed)

  • 1 / 3 / 10 / 11 / 131 process creation (with the hash and command), 3 network connection, 10 a process opening another process, 11 file creation, and 13 registry change.10 on lsass.exe means someone is trying to get credentials.

Entra sign-ins

Microsoft Entra ID sign-in logs contain an error code that tells you why a sign-in failed. These are the codes you will use most on the job. (In the logs you see the numbers, and in errors they appear with AADSTS in front.)

  • 50126Wrong username or password (InvalidUserNameOrPassword). A few of them are ordinary typos.Monitoring it with a threshold reveals spray. On privileged accounts it matters more.
  • 50053The account is locked (IdsLocked) after many attempts, or the sign-in came from an IP with malicious activity. Check the Failure reason field to tell which.
  • 50074Strong authentication (MFA) is required and has not been satisfied yet.
  • 500121Strong authentication failed: the user did not complete the MFA request.Many repeats on the same account = possible MFA fatigue, especially if a success follows.
  • 53003Blocked by Conditional Access (BlockedByConditionalAccess).It can indicate an attacker who has the password but cannot get past the policy. On a privileged account, make it high priority.
  • 53000The device is not compliant (DeviceNotCompliant) and the policy requires a compliant device.
  • 53004MFA registration was blocked because of risk (ProofUpBlockedDueToRisk).
  • 50097 / 50155 / 50158Problems with device authentication, or an external security challenge was not satisfied (per Microsoft's documentation).
  • 50058The user was verified but the sign-in did not complete. Often it is routine (no existing SSO session).
  • 70046The session expired or the reauthentication check failed (possibly from Conditional Access).

What to look at in any sign-in

  • The IP, ASN and country, and the device, OS, browser and user agent.
  • The application it signed in to (Exchange Online, Graph, Azure portal).
  • The Conditional Access result: what was applied? What was the outcome?
  • MFA: was it required? Was it satisfied? By which method?
  • The risk: the risk level Entra ID Protection computed.

And always ask: what happened after a successful sign-in? (A new inbox rule, a new MFA registration, a large download, a permissions change.)

The source of the codes

The official lookup tool: login.microsoftonline.com/error, and the codes reference on Microsoft Learn. Codes get updated, so go back to the reference when you meet a new one.

Network and logs

You do not have to be a network engineer, but you must understand the basics to read an alert.

Protocols and ports worth attention

  • 53 DNSLong, random subdomains, many TXT records, or a device talking to DNS outside your resolver = tunneling or DGA.
  • 80 / 443C2 hides here. Look for regular connections, rare user agents and new domains.
  • 445 SMBThe attackers' favorite lateral movement path (C$ and ADMIN$, and PsExec). It should never be open to the internet.
  • 3389 RDPOne of the most common initial access paths if exposed. Watch 4624 with logon type 10 from strange sources and brute force.
  • 22 SSHBrute force in auth.log, and new keys in authorized_keys.
  • 5985 / 5986 WinRMPowerShell remoting. wsmprovhost.exe running commands on a user machine = lateral movement until proven otherwise.
  • 88 KerberosKerberoasting (4769 requests with RC4 encryption) and AS-REP roasting.
  • 389 / 636 LDAPTools like SharpHound make very many queries to AD.
  • 25 / 587 SMTPUser machines should not send SMTP directly. If they do, it is malware or spam.
  • 21 / 23FTP and Telnet send the password in the clear. Their very presence is a finding.

Log sources: what they tell you

  • Windows Security logs: who signed in, what was done, and account changes.
  • Sysmon and EDR telemetry: processes, network and files in finer detail.
  • Entra sign-in and audit logs: sign-ins and identity changes in the cloud.
  • Email logs (Defender for Office 365): emails and links.
  • Firewall and proxy: outbound and inbound connections and URLs.
  • DNS logs: the domains devices asked for (very useful for hunting).
  • DHCP logs: they tie an IP to a device at a given time.
  • Cloud audit logs (Azure Activity and AWS CloudTrail): resource changes.
An important idea: time

Check the time zone in every source before you correlate events. A two-hour time zone difference can make you think two things are unrelated.

Writing and escalation

Good documentation is the difference between a good T1 and an excellent T1. What you write is where T2 will start, and what will be reviewed a month later when someone asks "why was this closed?".

What makes a good note

  • Short and specific: what you saw, not what you assumed.
  • In time order, with IPs, names and times (with the time zone).
  • It has the decision and the reason: "closed as benign because..." or "escalated because...".
  • URLs and IPs defanged.
  • No extra sensitive information (passwords, unnecessary personal data).

Triage note template

Alert: [Rule name] | Severity: [..] | Time: [UTC]
Affected: [user / host / IP]
What happened: [one or two sentences, facts only]
Checked: [sources and what each showed]
  - Sign-in logs: ...
  - EDR timeline: ...
  - Threat intel: ... (IOCs defanged)
Assessment: True Positive / Benign Positive / False Positive / Unknown
Reason: [why, in one sentence]
Action: Closed / Escalated to T2 / Containment per runbook [..]
Notes for tuning: [if the rule is noisy, say why]

Escalation message template for T2

Escalation: [short title] | Priority: [High / Medium] | Ticket: [#]
Summary: [what we believe happened, in 2 lines]
Why escalate: [criterion met, e.g. successful sign-in after spray, asset is critical]
Affected: [users, hosts, IPs, mailboxes]
Timeline (UTC): [time - event]
Evidence: [links to logs, alert, screenshots]
Actions taken: [what I did, and what I did NOT do]
Open questions: [what I could not determine]
Requested: [e.g. investigate scope, approve containment]

Shift handover template

Open incidents: [ID, status, owner, next step]
Under watch: [what, why, until when]
Noisy rules today: [rule, count, ticket for tuning]
Pending requests: [waiting on user / other team]
Notes: [outages, planned changes, special instructions]

Escalation matrix (example)

The numbers here are examples. In practice they are set by the runbook and the SLA in your company.

  • Critical: ransomware, confirmed data leak, or a domain admin compromise. Immediate escalation to T2 and the supervisor, and notify the incident manager.
  • High: malware that executed, a successful suspicious sign-in on a privileged account, or phishing with credentials. Escalate to T2 within minutes.
  • Medium: suspicious but unconfirmed activity. Investigate further, then decide.
  • Low: informational or expected. Document and close.

Growing into T2

T1 is not a place to stay forever. These are the steps that move you to the next level:

Skills to build

  • Queries: learn KQL (or SPL) well. This is the biggest skill that separates T2 from T1. Start with the KQL Hunting Library.
  • MITRE ATT&CK: map every alert to a technique and understand the chain (what follows what).
  • Windows and Linux internals: processes, the registry, services and persistence.
  • Networking: TCP/IP, DNS and HTTP, and reading Wireshark.
  • Identity: Kerberos, NTLM, OAuth and Entra ID.
  • Cloud: Azure and AWS basics and their logs.
  • Writing and communication: clear reports and professional escalation.

Hands-on practice

  • Training platforms: TryHackMe (the SOC Level 1 path), LetsDefend, Blue Team Labs Online and CyberDefenders.
  • Exercise data: Boss of the SOC from Splunk.
  • Build a home lab: a free Sentinel or Splunk, a Windows machine with Sysmon, and try simple attacks with Atomic Red Team and see what logs they leave.

Common certifications for the path

  • CompTIA Security+ and CySA+.
  • Microsoft SC-200 (Security Operations Analyst) if your company is on Microsoft.
  • Blue Team Level 1 (BTL1) and GIAC certifications (GSEC and GCIH).

A certificate opens the door, but hands-on experience is what makes you T2.

Signs you are ready for T2

  • You understand why the alert fired, not just what it is.
  • You build a timeline from more than one source on your own.
  • You write queries without copying.
  • Your escalations are complete and T2 does not ask basic questions.
  • You notice alerts that were not tuned and report them.

T2: from "is it real?" to "what happened?"

T1 answers: is this alert real? T2 answers: what exactly happened? How did it start? How far did it go? And what do we do? The difference is not only depth, but that you carry responsibility for the decision: containment stops an attack, but it can stop the business too.

When an escalation reaches you from T1

  1. Read the whole summary before you open any tool: what is the alert? Why was it escalated? What was done? What was not done?
  2. Re-verify from the base: do not rely on the conclusion. Open the evidence yourself.
  3. Decide: incident or not? If yes, open it formally, and set the severity and the incident owner (you or someone else).
  4. Notify the right people early: the supervisor, T3 if the case is complex, and the asset owner if needed.
  5. Start a log (investigation log): time, action, result. You will need it for the report, and for legal if the case ever reaches court.

T2 skills

  • Building a timeline from multiple sources.
  • Reading process trees, sessions and logs accurately.
  • Writing queries (KQL or SPL) to follow pivots.
  • Mapping to MITRE ATT&CK to understand the stage and predict.
  • Making containment decisions that balance risk and business impact.
  • Clear writing and communication under pressure.

Investigation method

A good investigation is not random digging. It is a loop you repeat: hypothesis, then test, then conclusion, then a new hypothesis.

The core loop

  1. Anchor: your first confirmed event (the alert, a file, or a sign-in). Start from it.
  2. Hypothesis: "if this is an attack, what should have happened before and after?" Write it down.
  3. Test: write a query or open a source that proves or disproves the hypothesis.
  4. Conclusion: confirmed? Refuted? Need more data? Record it with a confidence level (confirmed, likely, possible).
  5. Pivot: take a new entity (IP, hash, user, process) and return to step 2.

Two directions of investigation

  • Backward: how did they get in? What was the entry point (initial access): email? A vulnerability? A stolen account? This sets the root cause.
  • Forward: what did they do after getting in? Persistence? Credentials? Lateral movement? Did data leave? This sets the scope and impact.

Pivots: what to follow

  • The user: all their sign-ins, devices, email, files and permissions.
  • The device: the process tree, connections, new files, persistence, and who signed in.
  • The IP: who else connected to it or signed in from it?
  • The hash or file name: on which other devices did it appear?
  • The domain / URL: who visited it? Who clicked the link?
  • The session / token ID: all activity that happened in the same session (the identity section).
  • Time: everything that happened in the same period across all sources.

Scoping

Ask: who, what, where and when?

  • Who: the affected accounts (users, admins and service accounts).
  • What: the devices, applications and data.
  • Where: which networks, systems and environments (on-prem and cloud).
  • When: the first suspicious activity (patient zero) and the last. Dwell time is the period between them.

The timeline

The timeline is the backbone of the investigation. Each row: time (UTC), source, entity, event, significance, and ATT&CK mapping. Order it by time, convert all time zones to UTC, and separate confirmed from assumed.

Evidence before containment

Containment can destroy evidence (powering a device off wipes memory, and deleting a file loses its hash). If the situation is not extremely urgent, collect the basic evidence first (an investigation package, snapshots of logs), but if the spread is fast (ransomware) put containment first.

A rule

Write what you did and why, at the same time. An investigation that is not documented did not happen.

Biases that ruin an investigation

  • Confirmation bias: you look for what proves the first idea and ignore what contradicts it.
  • Anchoring: you stick to the first explanation.
  • Tunnel vision: you focus on one device and forget the rest.
  • Relying on one tool: every tool sees a part.

Containment

Containment is stopping the incident from spreading. The decision is a balance: if you contain early you may stop work, and if you contain late the attack may spread.

A decision framework

  • Confidence: how sure are you that it is a real attack?
  • Impact if you do not contain: data? Spread? Ransomware?
  • Impact if you contain: is the device or account critical? How many users will be affected?
  • Authority: is this within your authority or do you need approval? On high-value assets, response actions may be restricted by configuration.
  • Evidence: does this action destroy evidence?

Device actions (example: Defender for Endpoint)

  • Isolate device: cuts the device from the network and leaves it connected to the Defender service. You can allow Outlook and Teams to communicate with the user.
  • Collect investigation package: gathers the state of the device (processes, connections and more) for analysis.
  • Live Response: a remote shell on the device with commands such as analyze, remediate, run and putfile. Use it after you decide exactly what to do.
  • Restrict app execution: prevents apps not signed by Microsoft from running.
  • Run antivirus scan, Stop and quarantine file and Add indicator (block) for the hash.
  • Automated investigation: an automatic investigation that can suggest or carry out remediation.

Each of these actions is recorded in the audit log (such as IsolateDevice and CollectInvestigationPackage), so it is part of the evidence chain.

Identity actions (Entra ID)

  • Disable the account: prevents new sign-ins. It does not end existing sessions on its own.
  • Revoke sessions: revokes the refresh tokens. The user must sign in again on every device.
  • Reset the password: important, but not enough alone: according to Microsoft, some sessions and tokens (especially tokens not based on the password) can stay alive after a password change, so revoke as well.
  • Remove MFA methods the attacker added and review registered devices.
  • Review and revoke OAuth consents and suspicious apps.
  • Conditional Access: a temporary block of a source, country or legacy protocol.
Mind the timing

An access token usually lives about an hour, and it can stay valid until it expires even after a revoke, except in apps that support continuous access evaluation. Apps that use local session cookies end the session themselves. So a revoke stops renewal but does not always end access instantly.

Email actions

  • Delete the malicious messages from all mailboxes (Threat Explorer, or content search and purge).
  • Block the sender, domain and URL.
  • Delete inbox rules and forwarding the attacker added.

Network actions

  • Block the IP and domain on the firewall, proxy and DNS.
  • Isolate the segment if needed.

Containment rules

  • Prefer gradual containment that starts with the least harmful action (for example revoke sessions) and escalates.
  • High-impact actions (isolating a production server, disabling an admin account) need approval.
  • Do not power the device off unless that is the approved action: memory holds evidence.
  • Do not rely on a communication channel that may be compromised (company email): use an approved alternative channel if the attack is on email or identity.
  • After each action, verify it worked (is the device really isolated? Is the attacker still signing in?).

Endpoint investigation

Most attacks play out on a device. Start from the alert and build the story from the processes: who launched whom, what opened, what was written, and who it talks to.

Reading the process tree

  • Parent and child: the relationship tells the story. Word launching PowerShell? A browser launching cmd? w3wp.exe launching a shell? All bad signs.
  • The command line: more important than the name. Decode any Base64 and read the arguments.
  • The account: SYSTEM, a user, or an admin?
  • The path: a file in Temp, AppData, Downloads or Public is more suspicious than one in Program Files.
  • The signature: is the file signed? By whom? (And note that a legitimate tool's signature does not rule out its malicious use.)
  • The timing: what happened minutes before and after?

Legitimate system tools that get abused (LOLBins)

  • powershell.exeEncoded commands, downloads from the internet (IEX and DownloadString), and disabling Defender.
  • cmd.exe / wmic.exeRunning commands, lateral movement through WMI, and deleting shadow copies.
  • rundll32.exe / regsvr32.exeRunning a DLL or scriptlet from a strange path or URL.
  • mshta.exe / wscript.exe / cscript.exeRunning HTA, JS and VBS, usually from an email attachment.
  • certutil.exe / bitsadmin.exeDownloading files (urlcache and -split), and decoding Base64.
  • schtasks.exe / sc.exeCreating persistence (a scheduled task or service).
  • vssadmin.exe / wbadmin.exe / bcdedit.exeDeleting backups and shadow copies and disabling recovery: a ransomware sign.
  • psexec / winrm / wmiprvse.exeRemote execution: lateral movement.

Places for persistence

  • Registry Run keys: ...\CurrentVersion\Run and RunOnce.
  • Scheduled tasks: Event 4698 and new tasks.
  • Services: Event 4697 and 7045.
  • The Startup folder and WMI event subscriptions.
  • Accounts and SSH keys: a new local account or a key in authorized_keys.
  • DLL side-loading and modification of existing services.

Signs of credential theft

  • A strange process opening lsass.exe (Sysmon Event 10).
  • Dump tools such as procdump or comsvcs.dll with MiniDump.
  • Copying registry hive files (SAM and SYSTEM).
  • Unusual Kerberos requests (Kerberoasting).

Defender tools

  • Device timeline: a chronological sequence of the device's events, with process trees.
  • Advanced hunting: the DeviceProcessEvents, DeviceNetworkEvents, DeviceFileEvents, DeviceRegistryEvents and DeviceLogonEvents tables.
  • Investigation package and Live Response: to collect the current state and inspect it. Live Response can be disabled on devices onboarded as high-value assets, depending on configuration.

Ready queries are in the "T2 investigation queries" section below.

Identity investigation (Entra ID)

In the cloud, identity is the perimeter. Many breaches today have no malware on a device: an attacker with a session or token acts as the user.

What to read in a sign-in

  • The IP, ASN, country, user agent, device and browser.
  • The application (Exchange Online, Graph, Azure portal).
  • The authentication requirement: single-factor or multi-factor? And by which method?
  • Conditional Access: what was applied? What was the result?
  • The risk level and risk detections.
  • Interactive or non-interactive: non-interactive indicates token use.

The session and the token

  • After sign-in, an access token (about an hour by default) and a longer refresh token are issued. If an attacker steals a session (a session cookie or token) they can bypass MFA because they do not sign in again.
  • Token theft and AiTM (adversary-in-the-middle): the user passes MFA on an intermediary page, and the attacker takes the session.
  • Microsoft embeds linkable identifiers in every access token: the Session ID (SID) and the Unique Token Identifier (UTI). They help you tie all activity (Exchange, SharePoint, Teams, Graph) back to the original sign-in event.

Signs of token theft / AiTM

  • A successful sign-in with MFA by the user, then activity from a different IP, device or user agent in the same session.
  • Non-interactive sign-ins from a new country.
  • Email activity minutes after the sign-in (an inbox rule, forwarding, a lot of reading).
  • A new device or MFA method registered.
  • Risk detections such as "Anomalous token" or "Unfamiliar sign-in properties" (per Entra ID Protection).

What to look for once you suspect an account

  • The mailbox: new inbox rules, forwarding, MailItemsAccessed, and messages sent.
  • MFA: new methods, or MFA turned off on other accounts (MFA tampering).
  • OAuth: new apps the user consented to (consent grants).
  • Devices: new devices registered in Entra.
  • Permissions: role changes or additions to groups.
  • Files: large downloads from SharePoint or OneDrive.
  • Other accounts: did the same IP use other accounts?

Password spray investigation (from Microsoft's documentation)

  • The source: are most attempts failures? Is the gap between attempts regular (a sign of automation)? Are there successes with MFA (which may mean the IP is not malicious)?
  • Legacy protocols: POP3, IMAP and SMTP are an indicator. BAV2ROPC in the user agent means legacy authentication.
  • MFA: many MFA requests (fatigue), or suspicious admin activity (turning MFA off for other accounts).
  • Internal phishing: forwarding and inbox rules.
  • Did the user have alerts before (atypical travel and others)?

Email and BEC investigation

BEC (business email compromise) is one of the most expensive attacks in terms of losses. Often there is no malware: a compromised or impersonated account, and a message asking for a payment or a change of bank details.

The steps

  1. Identify the message: the Message-ID from the headers.
  2. Message trace: when did it arrive? To whom? Was it delivered or blocked?
  3. Scope: all recipients and variants from the same campaign.
  4. Interaction: who opened, clicked, opened an attachment and entered credentials? (Defender and sign-in logs.)
  5. Post-compromise: suspicious sign-ins, inbox rules, forwarding, OAuth and token abuse.
  6. Containment: delete the messages, reset and revoke, and block the sender.

BEC indicators

  • A lookalike domain (one letter different) or an executive's display name with an external address.
  • A request for payment or a change of bank account with urgency and secrecy.
  • An inbox rule that hides certain replies (moves them to RSS or Archive) or deletes them, or an external forward.
  • Thread hijacking: a reply from a compromised account in a real conversation.
  • A change in Reply-To to another address.

Financial actions

If a payment was made

Time is critical. Notify Finance and Management immediately so they can contact the bank to request a recall of the transfer, and notify Legal. Every hour matters for the chance of recovery.

Where the evidence is

  • The unified audit log: New-InboxRule, Set-InboxRule, UpdateInboxRules, MailItemsAccessed and Send.
  • Message trace and Threat Explorer.
  • The Entra sign-in logs for the account.

Ready queries for inbox rules are in the KQL Hunting Library.

Lateral movement and the network

After the first entry, the attacker moves to reach Domain Admin or the data. Catching the movement stops the attack before it spreads further.

Ways of moving and their traces

  • SMB / PsExecLogon type 3 from one device to another, ADMIN$, and a new service (PSEXESVC, Event 7045).
  • WMIwmiprvse.exe launching cmd or powershell. Logon type 3 before it.
  • WinRM / PowerShell Remotingwsmprovhost.exe on the target device.
  • RDPLogon type 10, sessions from one user device to another, and Events 4778/4779 for reconnect and disconnect.
  • Pass-the-Hash / TicketLogon type 3 with NTLM from an unusual source. Events 4768/4769 for unusual tickets.
  • Remote scheduled tasksEvent 4698 on the target device from an internal source.

The questions

  • Does this account usually sign in to these devices? How many devices in a short time?
  • Is the source device a server or a user machine? (A user machine signing in to another user machine is a red flag.)
  • Was an admin account used from an ordinary device? (Admins should sign in from privileged access workstations.)
  • Does it sign in to many devices one after another (scanning)?

Network analysis

  • Beaconing: regular-interval connections to the same destination. Compute the time gaps between connections: a small standard deviation is a strong sign.
  • DNS tunneling: long, random subdomain names, a large volume of TXT, and queries to the same domain.
  • Exfiltration: a large upload to an unusual destination, especially outside working hours.
  • Unusual internal connections: a user device talking SMB to dozens of devices.

Response playbooks

A playbook is ordered steps for a specific incident type. These are a starting point built on common practice (and on Microsoft's published playbooks for phishing, password spray and token theft), and your company's runbook takes priority. Every playbook has the same shape: identify, scope, contain, eradicate, recover and learn.

Phishing

T2

Identify

  • Get the original email and the Message-ID from the headers.
  • Use message trace: when did it arrive? To whom? Was it delivered or blocked?

Scope

  • All recipients and any variants of the campaign.
  • For each user: opened? clicked? opened an attachment? entered credentials? (Tie to Entra sign-in and the endpoint.)

Contain

  • Delete the messages from all mailboxes, and block the sender, domain and URL.
  • A user entered credentials: reset, revoke sessions, and review MFA and inbox rules.
  • An attachment was opened: isolate the device and look for execution.

Eradicate and recover

  • Remove persistence if malware ran. Turn on phishing-resistant MFA. Tune the email filters.

Learn

  • Turn the indicators into detections, train users, and update the playbook.

Password spray

T2

Identify

  • Review the alert: IP, failure pattern, regular intervals, and legacy protocols (BAV2ROPC).

Scope

  • All targeted accounts. Which of them had a success? The privileged ones?
  • For the successful accounts: activity after sign-in (inbox rules, MFA, admin).

Contain

  • Reset and revoke for the successful accounts. Block the IPs.
  • Block legacy authentication with Conditional Access. Require MFA.

Learn

  • Better detection thresholds, smart lockout, stronger passwords and passwordless.

Account compromise (token theft / AiTM)

T2

Identify

  • A successful sign-in with MFA, then activity from a different device or IP. Extract the Session ID and the UTI.

Scope

  • Trace all activity in the same session across Exchange, SharePoint, Teams and Graph (linkable identifiers).
  • Inbox rules, forwarding, OAuth consents, MFA methods, registered devices, and downloads.

Contain

  • Revoke all sessions first. Then reset the password, remove added MFA methods and devices, and revoke suspicious consents.

Eradicate and recover

  • Re-register MFA from a trusted channel. Inspect the device if malware stole the token.

Learn

  • Phishing-resistant MFA (FIDO2), token protection, Conditional Access with a compliant device, and CAE.

Malware on a device

T2

Identify

  • The file, hash, path, how it arrived (email, download, USB, vulnerability), and whether it executed.

Scope

  • The same hash and C2 on other devices? Credentials stolen? Persistence? Lateral movement?

Contain

  • Isolate the device, collect an investigation package, and block the hash and the C2.

Eradicate

  • Remove persistence (tasks, services, run keys), delete the files, and change the credentials used on the device.

Recover

  • Rebuild the device if confidence in it is low (best in serious cases). Monitor after it returns.

Ransomware

T2

First minutes

  • Isolate quickly the infected devices, and do not power them off (memory holds evidence and possibly the encryption key).
  • Notify the IR lead and management immediately.

Scope

  • The first device (patient zero), the accounts used (especially domain ones), the extent of encryption, and the affected servers.
  • Was data exfiltrated (double extortion)? Look for a large upload before encryption.

Contain

  • Disable compromised accounts, isolate segments, block the C2, and change critical credentials.

Recover

  • Make sure backups are intact, isolated and not affected before you use them. Restore gradually after you confirm the attacker is out.
  • The decision to pay the attackers is not a technical one: it belongs to management and Legal, and it carries legal implications.

BEC (business email compromise)

T2

Identify

  • Is the account compromised or spoofed? The headers, the domain and the Reply-To.

Scope

  • Inbox rules, forwarding, messages sent, and who was contacted. Was a payment made?

Contain

  • If a payment was made: notify Finance and Legal immediately to request a recall from the bank.
  • Reset and revoke, delete the rules and forwarding, and delete the fraud messages.

Learn

  • A financial verification procedure through another channel (a call to the known number) before any bank change.

Timeline and report

Timeline template

Time (UTC) | Source | Entity | Event | Significance | ATT&CK
2026-11-10 08:02 | Entra Sign-in | user@contoso.com | Success from new country, MFA satisfied | Likely token theft | T1078 / T1539
2026-11-10 08:07 | Exchange Audit | user@contoso.com | New-InboxRule (forward to external) | Persistence in mailbox | T1114.003
2026-11-10 08:15 | Defender | HOST01 | Encoded PowerShell from Outlook | Possible payload | T1059.001
Confidence: Confirmed / Likely / Possible (write it per row)

Incident report template

Incident ID / Title / Severity / Status
Detected: [time, how] | Contained: [time] | Resolved: [time]
Summary (3 lines for management)
Impact: [users, systems, data, business]
Timeline: [key events]
Root cause: [how they got in]
Scope: [who and what was affected]
Actions taken: [containment, eradication, recovery, with times]
Indicators (IOCs, defanged) and ATT&CK techniques
What worked / what did not
Recommendations: [owner, due date]
Notifications: [legal, privacy, regulators, customers - who, when]

Communication during the incident

  • Keep the circle small: only the people who need to know.
  • Use an alternative channel if email or identity is affected.
  • Organize updates: at fixed intervals (for example hourly for big cases) in the same template.
  • Separate facts from hypotheses: say what is confirmed and what is still being checked.
  • Legal and privacy: if personal data is involved there are legal notification deadlines (for example 72 hours under the GDPR, and Egypt's data protection law has its own deadlines under its regulations). Notify the DPO and Legal early. For details see the GRC Handbook.
  • Individuals: if the case concerns an employee (insider), it goes through HR and Legal. Do not contact them yourself.

Preserving evidence

  • Save the important logs (copy them) before the retention period ends (Entra logs are kept for a limited time depending on the license).
  • Record the hash of collected files, who collected them, when and where they were stored.
  • For legal cases, follow the chain of custody.
  • Do not work on the original: work on a copy.

Criteria for closing an incident

  • The root cause is known, or documented as unknown with an explanation.
  • Containment and eradication are verified (the attacker no longer has access).
  • Systems are back and being monitored.
  • The report is delivered and the recommendations have owners and dates.
  • New or improved detections were added.

T2 investigation queries

Queries for investigation (not for detection). They start from an entity (a device or a user) and build the picture. Change the values to yours, and start with a small time range. The names come from the Defender XDR advanced hunting and Sentinel tables, and they still need to be tried in your environment before you rely on them. For detections and hunting see the KQL Hunting Library.

1. A device timeline around a given time

let dev = "HOST01";
let t = datetime(2026-11-10 08:00:00);
union DeviceProcessEvents, DeviceNetworkEvents, DeviceFileEvents, DeviceRegistryEvents, DeviceLogonEvents
| where DeviceName =~ dev
| where Timestamp between ((t - 1h) .. (t + 1h))
| project Timestamp, Type, ActionType, FileName, ProcessCommandLine, InitiatingProcessFileName, RemoteIP, RemoteUrl, AccountName
| order by Timestamp asc

2. What a suspicious process launched

DeviceProcessEvents
| where Timestamp > ago(2d)
| where DeviceName =~ "HOST01"
| where InitiatingProcessFileName =~ "winword.exe"
| project Timestamp, FileName, ProcessCommandLine, InitiatingProcessCommandLine, AccountName
| order by Timestamp asc

3. A specific process's connections

DeviceNetworkEvents
| where Timestamp > ago(2d)
| where DeviceName =~ "HOST01" and InitiatingProcessFileName =~ "powershell.exe"
| summarize Connections = count(), FirstSeen = min(Timestamp), LastSeen = max(Timestamp) by RemoteIP, RemoteUrl, RemotePort
| order by Connections desc

4. Persistence through run keys

DeviceRegistryEvents
| where Timestamp > ago(7d)
| where ActionType == "RegistryValueSet"
| where RegistryKey has_any (@"\CurrentVersion\Run", @"\CurrentVersion\RunOnce")
| project Timestamp, DeviceName, RegistryKey, RegistryValueName, RegistryValueData, InitiatingProcessFileName

5. An account signing in to many devices (lateral movement)

DeviceLogonEvents
| where Timestamp > ago(1d)
| where ActionType == "LogonSuccess" and LogonType == "Network"
| summarize Devices = dcount(DeviceName), DeviceList = make_set(DeviceName, 20) by AccountName, RemoteIP
| where Devices >= 5
| order by Devices desc

6. All of a user's sign-ins

SigninLogs
| where TimeGenerated > ago(3d)
| where UserPrincipalName =~ "user@contoso.com"
| extend Browser = tostring(DeviceDetail.browser), OS = tostring(DeviceDetail.operatingSystem), Country = tostring(LocationDetails.countryOrRegion)
| project TimeGenerated, IPAddress, Country, AppDisplayName, ResultType, ConditionalAccessStatus, AuthenticationRequirement, RiskLevelDuringSignIn, Browser, OS, UserAgent
| order by TimeGenerated asc

7. MFA method changes

AuditLogs
| where TimeGenerated > ago(7d)
| where OperationName in ("User registered security info", "User deleted security info", "Admin registered security info")
| extend User = tostring(TargetResources[0].userPrincipalName)
| project TimeGenerated, OperationName, User, Result, InitiatedBy

8. Checking for regular connections (beaconing)

DeviceNetworkEvents
| where Timestamp > ago(1d)
| where DeviceName =~ "HOST01" and RemoteIPType == "Public"
| sort by RemoteIP asc, Timestamp asc
| serialize
| extend Gap = iff(RemoteIP == prev(RemoteIP), datetime_diff('second', Timestamp, prev(Timestamp)), long(null))
| summarize Connections = count(), AvgGap = avg(Gap), StdGap = stdev(Gap) by RemoteIP, RemoteUrl
| where Connections > 20 and StdGap < 5
Notes
  • These queries are a starting point. Adjust the thresholds (such as Devices >= 5 and StdGap < 5) to your environment. Many legitimate apps connect at fixed intervals.
  • Times in Kusto are filtered in UTC regardless of the time zone in the portal.
  • The Type in the union tells you which table the row came from.
  • If you use Splunk or another platform, the logic carries over: start from an entity, tie to time, and use pivots.

Growing into T3

T3 is not just "a better T2". It is a shift from reacting to taking the initiative: you look for what was not detected, you build the detections, and you lead the big cases.

Skills to build

  • Threat hunting: hypotheses, methods such as PEAK and TaHiTI, and testing them on data. Start with Hunting Hypotheses.
  • Detection engineering: writing, tuning and testing detections (Sigma and analytics rules), and detection as code.
  • DFIR: memory analysis (Volatility), disk artifacts (Prefetch, Amcache and MFT), and advanced timelines.
  • Malware analysis: basic static and dynamic analysis.
  • Threat intelligence: understanding threat actors and their TTPs and using them in hunting.
  • Automation: SOAR and Python/PowerShell to cut repetitive work.
  • Leadership: running a big incident, communicating with management, and training the team.

Signs you are ready for T3

  • You can lead an incident end to end, from detection to the report.
  • You find detection gaps and propose how to fix them.
  • You write hunts that find things that are not in alerts.
  • You explain technical matters to management in plain language.
  • T1 and T2 come back to you when they get stuck.

Certifications and paths

  • GIAC: GCIH, GCFA, GCFE and GNFA, and GCTI for threat intelligence.
  • Microsoft SC-200 for those interested in Defender and Sentinel.
  • Practice: Boss of the SOC, CyberDefenders, and Atomic Red Team to test detections.

T3: from reaction to initiative

T1 triages. T2 investigates. T3 asks the third question: what was not detected? And how do we prevent it from happening again? Its work is not tied to alerts alone: it improves the whole system that T1 and T2 work inside.

T3 roles (they differ between companies)

Threat Hunter

T3

Looks for threats that raised no alert, with hypotheses built on CTI, ATT&CK and past incidents.

Detection Engineer

T3

Writes, tests and tunes detections, and measures coverage and alert quality.

DFIR Analyst

T3

Does forensics on memory, disk and cloud, builds advanced timelines, and supports legal evidence.

CTI Analyst

T3

Turns threat information into decisions: detection and hunt priorities and protection.

Incident Commander / IR Lead

T3

Leads major incidents: coordinating teams, decisions, and communication with management and Legal.

Malware Analyst

T3

Analyzes suspicious samples to extract IOCs, behavior and detections.

The improvement loop

  1. T1 and T2 find noisy alerts or gaps and report them.
  2. T3 analyzes: does the detection need tuning? Is data missing? Is a technique not covered?
  3. They change or write a detection, and test it.
  4. They turn lessons from incidents into new hunts.
  5. They measure the effect: did alerts drop? Is detection faster?
A rule

Any T3 work without a measurable output (a new detection, a data source added, a runbook updated, or a decision made) is research nobody can use. Write down the output before you start.

Threat hunting

Hunting is a proactive search for a threat that is already in the environment and has gone undetected, without waiting for an alert. It is not "random searching in logs": it is a method with a hypothesis, data and an output.

The PEAK framework

A framework from Splunk (SURGe, 2023) that splits a hunt into 3 stages: Prepare, Execute and Act, and the K is Knowledge: every stage produces knowledge. It has 3 hunt types:

  • Hypothesis-driven: you start from a specific hypothesis about attacker behavior. The most used.
  • Baseline (or EDA): you build a picture of normal activity and look for deviations. Useful before the other types.
  • Model-assisted (M-ATH): you use machine learning models or statistics to surface the unusual, and you analyze the results yourself.

There is another well-known method: TaHiTI (Targeted Hunting integrating Threat Intelligence), which ties hunting to CTI.

A full hunt cycle

  1. Where the idea comes from: a CTI report, a gap in ATT&CK coverage, a past incident, or an anomaly you noticed.
  2. The hypothesis: specific and testable: "if an attacker used X, I will find Y in Z".
  3. The data: which tables and logs prove or refute it? Are they available? Is retention enough?
  4. The queries: write them and try them on a small scope, then widen.
  5. Analysis: sort the results: malicious, expected benign, and unclear. Document the logic.
  6. The output: at least one of: a new detection, a data gap identified, an incident opened, or the hypothesis refuted and documented.
  7. Knowledge: share the results with the team, and add the new ideas to the backlog.

Hunt plan template

Hunt ID / Title / Owner / Date
Hypothesis: If [adversary does X], we will see [Y] in [data source Z].
Why now: [CTI report, ATT&CK gap, past incident, anomaly]
ATT&CK: [tactic / technique IDs]
Data sources and retention: [tables, time range, gaps]
Method: [queries, baselines, models]
Scope and exclusions: [systems, accounts, known benign items]
Success criteria: [what counts as confirmed / refuted]
Findings: [confirmed activity, benign explanations, unknowns]
Outcome: Detection created / Data gap logged / Incident opened / Hypothesis refuted
Follow-ups: [owner, due date]

The Hunting Maturity Model

A model from David Bianco that measures hunting maturity from HMM0 (relying entirely on alerts and indicators with no hunting) to HMM4 (hunts that are automated and constantly turned into detections). Useful to decide where you are and what the next level is.

The Pyramid of Pain

A model from David Bianco (2013) that orders types of indicators by how hard they are for the attacker to change, from easiest to hardest:

  • Hash values: trivial, the attacker changes a file by recompiling.
  • IP addresses: easy.
  • Domain names: simple.
  • Network and host artifacts: annoying for the attacker.
  • Tools: hard.
  • TTPs: the hardest, because the attacker has to change how they work.

The lesson: the closer a detection is to the top of the pyramid, the harder it is for the attacker to escape it, but the harder it is for you to write. Focus hunts and detections on behavior.

Hunting tools in Microsoft

  • Advanced hunting: queries over Defender data and (after connecting) Sentinel.
  • Sentinel hunts (preview): manage a whole hunt: a hypothesis, queries, bookmarks, a result (confirmed or refuted), and automatic linking of new analytics rules and incidents.
  • Bookmarks: save important rows with notes and mapping to entities and ATT&CK. (In the Defender portal you only see existing ones.)
  • Livestream and notebooks: watch a query in real time, and Jupyter for advanced analysis.
  • MITRE ATT&CK map: shows you the gaps and suggests ready hunting queries for the missing techniques.

Common hunting mistakes

  • "I'll just look for anything": without a hypothesis there is no end point and no result.
  • Measuring success by the number of threats found. A hunt that refuted its hypothesis and found a data gap succeeded too.
  • A hunt that does not become a detection: you repeat the same work every quarter.
  • Ignoring the baseline: you will not know what is unusual.
  • Relying on old IOCs instead of behavior.

Ready hypothesis examples: Hunting Hypotheses, and queries in the KQL Hunting Library.

Detection engineering

Detection engineering treats detections as an engineering product: designed, tested, reviewed, deployed and improved, not a query written under pressure and forgotten.

The detection lifecycle

  1. The need: from a hunt, an incident, CTI or a coverage gap. Identify the technique and the risk.
  2. Research: how does the behavior appear in the logs? What is the data source? What is the similar benign activity?
  3. Design: detection logic, thresholds, exclusions, severity, and who the alert goes to.
  4. Build: write a simple, readable query (or Sigma).
  5. Test: actually run the attack (Atomic Red Team) and confirm it is detected, and try it on old logs to measure false positives.
  6. Review: a colleague reviews the logic and the runbook.
  7. Staged deployment: start in a monitoring mode (no alerts to T1) or a small scope, then turn it on.
  8. Tuning: review the false positives after two weeks to a month and adjust.
  9. Retirement: a detection that no longer has value or only makes noise is removed.

What makes a good detection

  • Behavior-based as much as possible (higher in the pyramid), not a hash alone.
  • Complete metadata: name, description, owner, ATT&CK, data source, severity, expected false positives, and a runbook link.
  • A useful alert: it has entities (user, device, IP) and context that lets T1 decide quickly.
  • Explainable: anyone reading the logic understands why it fired.
  • Measured: the number of alerts and the TP and FP rate.

Sigma

Sigma is an open format (YAML) for writing detections once and converting them to a query for any SIEM (Splunk, Elastic, Sentinel and others). A rule has 3 main parts: the metadata, the logsource (what kind of log), and the detection (the logic).

title: Office Application Spawning a Shell
status: experimental
description: An Office application launches a command shell or script host
logsource:
  category: process_creation
  product: windows
detection:
  selection_parent:
    ParentImage|endswith:
      - '\winword.exe'
      - '\excel.exe'
      - '\powerpnt.exe'
      - '\outlook.exe'
  selection_child:
    Image|endswith:
      - '\cmd.exe'
      - '\powershell.exe'
      - '\wscript.exe'
      - '\cscript.exe'
      - '\mshta.exe'
  condition: selection_parent and selection_child
falsepositives:
  - Business macros that call a shell
level: high
tags:
  - attack.execution
  - attack.t1204.002

Converting with sigma-cli (with the Kusto backend and the Microsoft XDR pipeline):

sigma convert -t kusto -p microsoft_xdr rule.yml

Pipelines map field names between the generic format and your platform's tables. Always review the output: automatic conversion does not guarantee that the log source you have matches.

Detection as code

  • Rules live in a Git repository: every change is a pull request with a review.
  • Automated tests (CI): a syntax check, running the query on test data, and checking the metadata.
  • Automated deployment to a test environment and then production, with the ability to roll back.
  • Microsoft supports managing custom detections as code (currently in preview) from GitHub or Azure DevOps through Bicep.

Custom detection rules in Defender XDR

Custom detection rules are advanced hunting queries that run automatically and raise alerts, and can take response actions. Facts from Microsoft's documentation:

  • Frequency: every 24, 12 or 3 hours, or hourly, or Continuous (NRT) (near real time), or Custom for data from Sentinel.
  • When you save the rule it runs immediately over the last 30 days, and the lookback is set from the frequency (for example every 24 hours means 30 days, and hourly means 4 hours).
  • NRT requires: a query on a single table, with no joins, unions or comments, and with supported KQL operators.
  • One rule can raise at most 150 alerts per run, so tune the query so it does not alert on normal activity.
  • It is important to include the Timestamp, DeviceId and ReportId columns (for endpoint tables) so the alert ties to the device and the process tree.
  • Matching events are grouped into one alert (deduplication).

Analytics rules in Sentinel

  • Scheduled or NRT or Fusion/ML, with entity mapping (user, device, IP) and MITRE mapping.
  • The MITRE mapping feeds the coverage map: you see the covered techniques and the gaps.
  • You can create a rule directly from a successful hunting query.

Priorities: what to write first

  • The threat: which techniques do the attackers targeting your sector use? (CTI)
  • Current coverage: what is missing from the ATT&CK map?
  • The data: do you have the log you need? If not, start by adding it.
  • The impact: if this technique succeeded, how large would the harm be?
  • The effort: which cheapest detection gives the highest value?
Warning: coverage on paper

Having a rule mapped to a technique does not mean the coverage is good. The rule may be disabled, the log may not arrive, or any small change may bypass the logic. Test by actually running the attack, and measure coverage by the result, not the count.

Tuning

  • Watch the actual false positives and learn what they share.
  • Narrow the condition (a process, parent or path) instead of allow-listing a whole account or device.
  • Every exception is written with a reason, an owner and a review date.
  • Try the change on old data before deploying, and confirm you did not lose a real detection.
  • Review the top 10 noisy rules monthly.

Deep DFIR

DFIR (digital forensics and incident response) answers precisely: what was executed? What was touched? What was stolen? And what can we prove? The difference from T2 investigation is that it relies on deep artifacts, memory and disk, and it carries the pressure of legal proof.

Principles

  • Order of volatility: collect the most volatile data first: memory, then network and process state, then disk, then archives.
  • Do not change the original: work on a copy, and compute the hash of the original and the copy and compare them.
  • Chain of custody: who collected, when, where it was stored, and who received it.
  • Document every step, tool and version: so someone else can repeat your work and reach the same result.
  • Time: check the time zone and the clock difference between the device and the logs.
  • Artifact versus evidence: not every trace is evidence. Evidence is what you collected properly and can rely on.

Collecting evidence (triage acquisition)

  • Memory: capture it with a memory capture tool on the device before shutdown. Choose an external storage location, and compute a hash.
  • The triage package: quickly collect the most important artifacts with tools such as KAPE or Velociraptor, or an investigation package from Defender for Endpoint.
  • A full disk image: for cases that need it legally, using a write blocker or a trusted imaging tool.
  • Logs: Windows event logs, Sysmon and service logs.

Windows artifacts: a quick guide

  • PrefetchEvidence that a program ran: the name, run count and last run times. (Usually not enabled by default on servers.)
  • AmcacheInformation about programs that ran or were installed, often with the hash. Useful for finding malware that was deleted.
  • ShimcacheEvidence that an executable existed on the machine. Its presence alone is not conclusive proof of execution.
  • BAM / DAMThe last execution time of a user's programs (on Windows 10 and later).
  • UserAssistPrograms the user launched from the graphical interface, with the counter and time.
  • SRUMResource usage per application, including network activity, for a retained period. Useful for estimating how much data left through an application.
  • $MFT / $UsnJrnlThe file record: creation, modification, deletion and rename with times.
  • LNK / Jump ListsThe files the user opened and recent locations.
  • ShellBagsThe folders that were browsed (even if deleted or on a network share).
  • Recycle BinDeleted files ($I holds the original path and the deletion time).
  • Registry HivesRun keys, services, settings and users (SYSTEM, SOFTWARE, SAM and NTUSER.DAT).
  • Event Logs and SysmonLogon, process, services, PowerShell and RDP (the Security, System and Operational logs).
  • Browser historyURLs, downloads and cookies, important in phishing and exfiltration.

Each artifact tells part of the story, and the timeline (from tools such as Plaso and Timesketch) puts them in one picture. Note that some evidence changes with the Windows version, so confirm the version before you interpret.

Memory forensics

Memory reveals things that are not recorded on disk: malware that ran only in memory, injection, connections and commands. The best-known tool is Volatility 3 (Python, which downloads symbols automatically instead of the old profiles).

vol -f memory.dmp windows.pslist      # running processes
vol -f memory.dmp windows.psscan      # find hidden or terminated processes
vol -f memory.dmp windows.pstree      # parent / child relationships
vol -f memory.dmp windows.cmdline     # command lines
vol -f memory.dmp windows.netscan     # network connections
vol -f memory.dmp windows.malfind     # suspicious injected memory regions
vol -f memory.dmp windows.dlllist --pid 1234
  • pslist versus psscan: a process that shows in the second and not the first may be hidden.
  • malfind: looks for memory regions that are executable and writable and not backed by a file on disk. Its results must be verified (some are benign).
  • Compare with the baseline of a clean machine to know what is unusual.
  • Compute the hash of the dump and record the tool version.

Cloud and identity forensics

  • Sources: Entra sign-in and audit logs, the Microsoft 365 unified audit log, the Azure Activity Log, and application and storage logs.
  • Retention is limited: Entra logs are kept for a limited time depending on the license (30 or 90 days). Export them to a SIEM before they are lost.
  • Linkable identifiers (SID and UTI) tie the activity of a stolen token across services.
  • In IaaS: a snapshot of the disk and the VM before any change, and the NSG and flow logs.

The DFIR report

  • The executive summary, and the scope, tools and versions.
  • The evidence collected, the hashes and the chain of custody.
  • The timeline and the conclusions, with a confidence level for each.
  • The limits: what I could not prove and why.

Malware analysis (basics)

You do not have to be a reverse engineer, but you should be able to analyze a sample quickly and extract behavior, IOCs and detection ideas.

Safety first

  • Work in an isolated VM with a snapshot, and do not connect it to the internal network.
  • The network: disabled, simulated (a fake network) or fully isolated.
  • Do not open the sample on your main machine, and change its extension if you must move it.
  • Record the sample's hash before anything else.

Static analysis

  • The hashes (MD5, SHA1 and SHA256) and a search for them in TI.
  • The type: PE, script or document? (the file tool or Detect It Easy).
  • Strings: URLs, IPs, commands, file names and messages.
  • The PE: the imports (suspicious functions), the sections (high entropy = packing), the signature, and the compile time.
  • Documents: inspect macros (such as olevba) and embedded objects.

Dynamic analysis

  • An automated sandbox: produces a behavior report (files, registry, connections and processes).
  • Manual monitoring: Procmon, Process Explorer and Wireshark in your isolated environment.
  • Ask: does it set persistence? Who does it connect to? Does it inject into a process? Does it delete itself?

The output

  • IOCs: hashes, domains, IPs, mutexes, paths and registry keys.
  • Behavior mapped to ATT&CK.
  • Detections: YARA rules for the file and Sigma for the behavior.
  • A short report: what it is, what it does, and how we detect and prevent it.

A simple YARA rule

rule Suspicious_PowerShell_Download
{
    meta:
        description = "Script that downloads and runs content"
    strings:
        $a = "DownloadString" ascii wide nocase
        $b = "IEX" ascii wide nocase
    condition:
        all of them
}

YARA describes files by patterns in text or bytes. It is good for files, but weak against a small change. Pair it with behavior-based rules.

Threat intelligence

CTI (cyber threat intelligence) is turning information about attackers into decisions. It is not a list of IPs: it is analyzed information that answers a specific question and becomes an action.

Levels of intelligence

  • Strategic: for leadership. Which threats concern our sector? Trends? Motives?
  • Operational: for the SOC and IR. Campaigns, tools and timing of a specific attacker.
  • Tactical: for detection and hunting. The TTPs and ATT&CK.
  • Technical: the IOCs (hashes, IPs and domains), short-lived.

The intelligence cycle

  1. Direction: what are the questions (intelligence requirements)? From management and the SOC.
  2. Collection: internal sources (incidents and logs) and external ones (reports, feeds and communities).
  3. Processing: organizing, normalizing and removing duplicates.
  4. Analysis: what does it mean? Why does it concern us? How confident are we?
  5. Dissemination: to the right people, in the right form, at the right time.
  6. Feedback: did it help? We adjust the questions.

Analysis models

  • Diamond Model: 4 elements: Adversary, Capability, Infrastructure and Victim. It links incidents together by pivoting on any element.
  • Cyber Kill Chain: the stages of an attack (from reconnaissance to actions on objectives). Good for understanding where to break the chain.
  • MITRE ATT&CK: attacker behavior in an organized form: groups, software and techniques. The basis of detection and hunting.
  • Pyramid of Pain: which indicators have longer-lasting value.

Sharing information

  • TLP (Traffic Light Protocol) sets who may share the information: TLP:RED for named recipients only, TLP:AMBER+STRICT and TLP:AMBER for the organization and as needed, TLP:GREEN for the community, and TLP:CLEAR with no restriction. Respect the label.
  • STIX and TAXII: a format and a protocol for exchanging threat intelligence data automatically.
  • Platforms: MISP, sector communities (ISACs) and government feeds (such as the CISA Known Exploited Vulnerabilities list).

The language of confidence

Write your confidence level (low, moderate, high) and the reasons, and separate fact (we saw it in our environment), assessment (we inferred it) and opinion (an outside source says).

Using CTI in practice

  • Hunts: a report about an attacker targeting your sector becomes hypotheses.
  • Detections: new TTPs become rules, and IOCs are added with an expiry date.
  • Priorities: which vulnerabilities get fixed first (the ones actually exploited).
  • Management: a clear summary of the risks and decisions.
  • An IOC has a lifespan: an old IP or domain creates noise. Set an expiry and review.

Purple teaming and validation

You do not confirm a detection by guessing. Purple teaming is when the red side (the one that attacks) and the blue side (the one that defends) work together to prove that the detections really work and fix the gaps.

The validation cycle

  1. Pick a technique from ATT&CK (from a gap or CTI).
  2. Run it safely with a simulation tool (such as Atomic Red Team or CALDERA) in a test environment, or with clear permission on production.
  3. Observe: was the log recorded? Did the detection fire? Did the alert reach T1 with enough context? Was it blocked?
  4. Classify the result: detected and prevented, detected only, logged only, or nothing happened (a gap).
  5. Fix: a missing data source, a new detection, tuning, or an improved runbook.
  6. Retest to confirm, and record the result.

Rules

  • Written permission before any execution, and define the scope, the time and an emergency contact.
  • Start in an isolated environment. When you do run on production, do it in coordination with the SOC and with safe techniques.
  • Turn every test into a regression test that repeats after any change to the detection or the logging.
  • Measure: the share of techniques detected out of those tested (not out of the whole matrix).

Tabletop exercises

Discussing an attack scenario without executing it: the team walks through the playbook and finds gaps in decisions, communication and authority. Run them at least twice a year, include management, Legal, PR and IT, and record the lessons.

Leading major incidents

In a major incident (ransomware, a domain compromise or a data leak) the problem is not only technical: it is coordination, decisions and communication under pressure. T3 is often the incident commander or supports them.

The command structure

  • The Incident Commander: the decision maker and coordinator. Stays off the keyboard. Sets priorities and assigns tasks.
  • The Technical Lead: leads the investigation and technical containment.
  • The Communications Lead: communicates with management and the stakeholders and keeps the messages consistent.
  • The Scribe: records decisions and events with times. You cannot do without one.
  • Legal, privacy, HR and PR: depending on the incident type.
  • A business representative: says which systems are critical and how much an outage hurts.

The working rhythm

  • A war room and an alternative communication channel (if email or Teams is affected).
  • Short meetings at fixed intervals (for example every hour or two): the situation, the hypotheses, the decisions needed, and the tasks.
  • A decision log: what was decided, why, who approved, and the time.
  • Shift handover: people get tired. Rotate people on a schedule, and hand over with written notes.
  • Rest: an incident that runs for days means you have to manage the team's energy.

The hard decisions

  • Stop a critical service for containment?
  • Notify regulators and customers? When? (Laws such as the GDPR set 72-hour deadlines, and Egypt's data protection law has notification deadlines too: see the GRC Handbook.)
  • Work with law enforcement or a specialist firm?
  • Pay a ransom? A decision for management and Legal, not a technical decision.

Executive update template

Incident: [name] | Severity: [..] | Status: Investigating / Contained / Recovering | Time: [UTC]
Situation: [what we know, 3 lines]
Impact: [business, data, customers, regulatory]
Actions since last update: [..]
Next steps and ETA: [..]
Decisions needed from leadership: [..]
Confidence: [confirmed / likely / unknown items]
Next update at: [time]

Post-incident review (PIR)

Do it within a few days of the end of the incident while memory is fresh. Blameless: the goal is to improve the system, not to blame a person.

Summary and impact
Timeline (detection, escalation, containment, recovery) with times
What went well
What did not go well
Root cause and contributing factors (technical, process, people)
Detection gap: why was it not detected earlier?
Action items: [owner, due date, how we will verify]
Detections / Hunts / Runbook updates created
Lessons for the next incident
  • Action items without an owner and a date will not be done.
  • Turn every lesson into a real improvement: a detection, logging, a runbook or training.
  • Review the action items after a month.

For the general response framework, see NIST SP 800-61 Rev. 3 (it ties response to the CSF 2.0 functions).

Running the SOC and improving it

T3 often takes part in designing and improving the SOC itself, not only solving cases.

Metrics

  • MTTD: mean time to detect. From the start of the malicious activity until the SOC knows.
  • MTTA: mean time to acknowledge: from the alert appearing until someone began handling it.
  • MTTR: mean time to respond or remediate. Define it clearly (containment? full resolution?) so the numbers can be compared.
  • Alert quality: the share of true positives, the false positives per rule, and alerts per incident.
  • Escalation quality: the share of escalations that were justified and complete.
  • Coverage: the share of techniques detected (tested) out of the priorities.
  • Hunting: the number of hunts and their output (new detections and gaps).
  • Team load: alerts per analyst per shift, and the backlog.

Metrics turn into wrong goals if measured without context (such as fast closing encouraging wrong closing). Read them next to quality.

Maturity

  • SOC-CMM: a model for measuring SOC maturity across domains (business, people, process, technology and services).
  • The MITRE: 11 Strategies of a World-Class SOC reference for strategic planning.
  • Assess yourself once a year, and pick 2 or 3 improvements, not 20.

Automation (SOAR)

Automate first the repetitive, high-volume, low-risk work:

  • Enrichment: automatically pulling IP and hash reputation and user and device data into the ticket.
  • Triage of reported phishing (there are tools and agents that do it, such as the Phishing Triage Agent in Defender with Security Copilot).
  • Containment with approval: isolating a device or disabling an account after the analyst approves.
  • Closing: closing known benign alerts with explicit rules.
Guardrails for automation and AI
  • A human is responsible for any decision with impact. The tool helps, it does not replace.
  • Review automated decisions regularly and by sampling.
  • Log every automated action and its approval window.
  • Start with reversible actions.
  • AI can be wrong or "hallucinate": verify the evidence it relies on before you trust the conclusion.

Knowledge management

  • Up-to-date runbooks with versions, linked to the detections.
  • A searchable library of queries, hunts and incident reports.
  • A runbook review after every major incident.
  • Ongoing training: tabletops, CTFs, purple teaming and certifications.

Governance and coordination with GRC

  • Link the highest risks in the risk register to detections and hunts.
  • Give management reports in the language of risk (not the count of alerts): see the GRC Handbook.
  • Prove detective controls with evidence from the SOC for audits.

Specialization paths

T3 is not the end of the road: you specialize or you lead.

Specializations

  • Threat hunter: hypotheses, hunts and statistical analysis.
  • Detection engineer: engineering, detection as code and testing.
  • DFIR specialist: memory, disk and cloud.
  • Malware analyst / reverse engineer: deep analysis of samples.
  • CTI analyst: analysis of threat actors.
  • Purple team / adversary emulation.
  • SOC lead / manager / incident commander: leadership and operations.
  • Security architect / detection strategy: security design and visibility.

Common certifications (by specialization)

  • Incident response and DFIR: GIAC GCIH, GCFE, GCFA and GNFA.
  • Malware: GIAC GREM.
  • CTI: GIAC GCTI.
  • Microsoft: SC-200 for Defender and Sentinel.
  • Management: CISM or CISSP for those moving toward leadership.

Building a professional reputation

  • Publish hunts, detections (Sigma) and analyses (with permission and without sensitive data).
  • Take part in CTFs, detection communities and local conferences.
  • Teach your colleagues: teaching T1 and T2 deepens your own understanding.
  • Write: good documentation is a rare skill.

Signs you are working as a real T3

  • In every incident you ask "how could we have detected it earlier?" and you do something about it.
  • Your detections are measured and improved.
  • You write hunts that produce value even when there is no threat.
  • You can explain the risk to management without scaring or minimizing.
  • The team gets better because of you.

References

Main sources for reading and verification. The links are the ones confirmed working at the time of writing.

Last reviewed: November 10, 2026. This content is a draft under review. The T1, T2 and T3 tracks are available in Arabic and English.