Chapter 11: Security Operations, Monitoring, and Threat Hunting
Learning Outcomes:
- Analyze data from SIEM solutions to identify trends, prioritize alerts, and reduce audit logs.
- Establish behavior baselines and analytics for networks, systems, users, and applications (UBA/UEBA).
- Incorporate diverse data sources into monitoring activities.
- Formulate alerting rules and metrics to minimize false positives and measure security effectiveness.
- Apply threat-hunting concepts using hypothesis-based searches, honeypots, and internal reconnaissance.
- Evaluate external threat intelligence sources, including OSINT, dark web monitoring, and ISACs.
- Implement threat intelligence platforms (TIPs) and indicator of compromise (IoC) sharing standards (STIX/TAXII).
- Develop rule-based detection logic using languages such as Sigma, YARA, and Snort.
Introduction
The previous chapters built defenses. This chapter is about watching them — turning the volumes of telemetry that every modern environment produces into actionable signal, baselining what “normal” looks like so anomalies stand out, hunting for adversaries who managed to slip past the preventative controls, and learning from the global threat-intelligence community so each organization is not detecting everything from scratch.
The hard problem in security operations is no longer collecting data — every endpoint, firewall, identity provider, cloud service, and application produces logs by default. The hard problem is making sense of it: which records are worth an analyst’s attention, which alerts are worth waking someone up over, and which gaps in coverage are the ones an adversary will exploit. A mature SOC measures itself not by the number of events ingested but by mean time to detect (MTTD), the average time from the start of an intrusion to its discovery; by mean time to respond (MTTR), the average time from discovery to response; and by how many real incidents it catches versus how many escape into the post-incident review of “why did we have telemetry but no alert?”
We start with the SIEM pipeline — collection, normalization, storage, correlation — because everything in this chapter depends on that data plane working. We then move to behavioral baselines (UEBA) that let anomalies surface without explicit rules, proactive threat hunting that goes looking for adversaries on a hypothesis rather than waiting for alerts, and finally the external threat intelligence ecosystem (OSINT, ISACs, STIX/TAXII, YARA/Sigma) that lets a defender benefit from what the rest of the industry has already learned.
How Do We Make Sense of Security Data?
A large enterprise can produce billions of log records a day across endpoints, network devices, identity systems, cloud services, and applications. None of that data is useful in raw form. The discipline of turning it into signal is Security Information and Event Management (SIEM) — historically a category of product (Splunk, IBM QRadar, Microsoft Sentinel, Elastic Security, Google Security Operations, Sumo Logic), increasingly a pattern that combines a data lake, a detection engine, and a workflow layer regardless of vendor.
SIEM Log Aggregation and Correlation
A SIEM pipeline has five stages, each with its own failure modes.
- Collection. Agents and forwarders pull or receive logs from sources: syslog from network devices, the Windows Event Log via Windows Event Forwarding (WEF), EDR telemetry via vendor APIs, cloud audit logs (AWS CloudTrail, Azure Activity Log, GCP Cloud Audit Logs) via streaming, application logs via Fluent Bit / Vector / Filebeat, identity provider logs via API.
- Normalization and enrichment. Raw records are parsed into a consistent schema — increasingly the Elastic Common Schema (ECS) or the Open Cybersecurity Schema Framework (OCSF) — and enriched with context the raw record lacks: GeoIP, asset criticality, user role, threat-intelligence overlap.
- Storage and indexing. Normalized data is written into a searchable store, typically with hot / warm / cold retention tiers — fast SSD for recent days, slower object storage for months-to-years, archive for compliance retention. Retention length is set by regulation, contract, and investigation needs; intrusions can dwell for months, so retention that is too short destroys evidence.
- Correlation and detection. Rules — written in vendor-specific languages or the cross-platform Sigma standard — combine multiple events into higher-level alerts. UEBA models flag statistical anomalies the rules would never have anticipated.
- Alerting, dashboards, and response. Alerts route to analysts; dashboards summarize trends; security orchestration, automation, and response (SOAR) playbooks (Chapter 12) automate response on the most common patterns.
Figure 11.1: The SIEM pipeline flows from heterogeneous sources
through collectors and forwarders into a normalization-and-enrichment
stage, then into indexed storage, correlation and detection, and finally
to alerts, dashboards, and SOAR workflows. Schema discipline at the
normalize stage is what makes everything downstream queryable across
data sources.
Example
A Sigma rule detecting suspicious scheduled task creation
Sigma is a vendor-neutral detection language that converts into a given SIEM’s query syntax. A rule that fires when a Windows scheduled task is registered to run a program from a user-writable folder, unless the registering account is the approved software-deployment account, looks like this:
title: Scheduled Task Registered from a User-Writable Path status: experimental description: A new scheduled task runs a program from a folder any user can write to logsource: product: windows service: security detection: selection: EventID: 4698 # "A scheduled task was created" TaskContent|contains: # the task's XML, including its action - '\AppData\' - '\Users\Public\' - '\Temp\' filter_deployment_tool: SubjectUserName: 'svc-endpoint-mgmt' # known deployment account condition: selection and not filter_deployment_tool falsepositives: - Software installers and updaters that register their own tasks level: medium tags: - attack.persistence - attack.t1053.005Event ID 4698 is logged whenever a task is registered, and
TaskContentholds its definition, including the program it runs. Tasks that launch programs from user-writable folders are a common persistence pattern after initial access, so the rule flags them while the filter suppresses the known-good deployment account. Windows logs 4698 only if Audit Other Object Access Events is enabled: a rule is only as good as the telemetry behind it.The
sigma-clitool converts the rule for a chosen backend:sigma convert -t splunk -p splunk_windows rule.ymlproduces Splunk SPL, and thekustobackend produces KQL for Microsoft Sentinel (the oldersigmacconverter is retired). One rule, any SIEM, kept in Git with a commit history and an ATT&CK tag (T1053.005, Scheduled Task) so coverage maps stay accurate.
Quick Check 11.1
- Recall. Name the five stages of the SIEM pipeline described in the chapter.
- Discriminate. Cloud-audit logs and EDR logs both arrive, but analysts cannot correlate them because their field names and structures do not line up. Which SIEM stage is failing?
- Apply. Your SOC is moving from one SIEM platform to another but wants to keep a suspicious-scheduled-task detection portable and auditable. What two practices from the section help most?
Answers — Quick Check 11.1
- Collection, normalization and enrichment, storage and indexing, correlation and detection, and alerting, dashboards, and response.
- Normalization and enrichment. Without a shared schema, cross-source joins become fragile or impossible.
- Write the rule in Sigma and manage it as detection-as-code in Git. That gives portability across SIEMs and an auditable review history.
Prioritizing Alerts and Reducing Noise
Most SOCs do not fail because they detect too little — they fail because they detect too much. An analyst who receives 400 alerts a day cannot triage them with care; some will be ignored, and the ignored ones will eventually include real attacks. Five disciplines reduce this:
- Tune at the source. Suppress noisy events at the agent or forwarder rather than ingesting and then filtering them — every byte that does not need to be stored is cost saved and noise removed. This is audit log reduction: trimming logs down to the records that matter without dropping anything of detection or forensic value.
- Stage alerts by severity and context. Weigh asset criticality and type, user privilege, data classification, impact, and residual risk. An alert on a domain controller from a domain admin’s account is not the same priority as the same alert on a workstation. Category matters too: a malware alert (an EDR, antivirus, or sandbox verdict on a file or process) usually means active compromise and calls for prompt host containment, while a vulnerability alert (a scanner or posture finding) signals exposure and routes to remediation on a deadline set by severity and known exploitation.
- Use detection-as-code. Detections live in a Git repository, get code review, are versioned and tested, and are retired when they outlive their usefulness — the same engineering rigor as application code.
- Maintain a known-noise allowlist. Vulnerability scanners, internal penetration tests, and developer experiments should be enumerable so they do not trip detections.
- Measure false-positive rate (FPR) per detection. A false positive is an alert on benign activity, and a rule’s FPR here is the share of its alerts that turn out benign. (Statisticians call that share the false discovery rate and reserve “false-positive rate” for the share of all benign events that raise an alert; SOC teams usually mean the first.) A rule with a 95% FPR is doing more harm than good and should be tuned or retired. A false negative, a real attack that raises no alert, is the opposite error, and over-aggressive tuning creates it.
Two data-quality problems distort all of this. Event duplication — the same event arriving through overlapping collectors — inflates counts and double-fires correlation rules, so deduplicate on a stable event ID. Non-reporting devices are the reverse: a silent log source produces no alerts, which looks like safety. Alert on missing heartbeats, because an alert failure is a false negative nobody sees.
Key Point Coverage gaps and noise are two sides of the same problem. You cannot tell an analyst to “look harder” past the noise — you have to engineer the noise down before they can see signal. The MITRE ATT&CK framework is increasingly used to measure coverage gap-by-gap: which techniques does the org have detections for, at what fidelity, and where are the holes?
Diverse Data Sources
Every additional data source the SIEM correlates against multiplies its detective power, but only if the data is parsed correctly and the right relationships are modeled. The high-leverage sources for any modern SOC:
- Endpoint (EDR) and operating-system logs. Process creation, file write, registry edit, network connection, syscall pattern.
- Infrastructure and application logs. Firewall, VPN, proxy, and web-application logs show how traffic moves and how business logic is abused.
- DNS. Query logs from the recursive resolver — extraordinarily high signal-to-noise for malware C2.
- Authentication. Active Directory and identity-provider logs (Entra ID, Okta) — the substrate of every credential-based attack.
- Cloud control plane. CloudTrail / Activity Log / Audit Logs — captures every API call.
- DLP. Egress and copy-paste events.
- Vulnerability scan results and CVE details. Posture context for prioritization: a CVE’s severity score and known-exploited status make an alert on a vulnerable host outrank the same alert elsewhere.
- Bug-bounty and disclosure reports. Outside researchers sometimes report weaknesses, or active abuse, before any sensor notices.
- Email gateway. Delivery, signature failure, sandbox detonation results.
- Third-party reports, logs, and telemetry. CASB, CSPM (cloud security posture management) findings, attack-surface management feeds, and partner or SaaS-provider logs and breach notices.
- Threat-intelligence feeds. Indicators of compromise (IoCs) — observable artifacts such as malicious IPs, domains, file hashes, and URLs — usually delivered as STIX (the data model) over TAXII (the transport), compared in Table 11.1.
| Property | STIX (Structured Threat Information eXpression) | TAXII (Trusted Automated eXchange of Indicator Information) |
|---|---|---|
| What it is | A language / data model for describing threat intelligence | A transport protocol for exchanging threat intelligence |
| Layer | Information layer | Transport layer |
| Current version | STIX 2.1 (2021) | TAXII 2.1 (2021) |
| Format | JSON objects (indicators, malware, campaigns, threat actors, attack patterns that describe adversary techniques, sightings) | HTTPS REST API built around collections (channels are reserved for a future version) |
| Typical use | Encoding IoCs, ATT&CK mappings, campaign descriptions | Pulling / pushing STIX bundles between TIPs, ISACs, and vendors |
| Analogy | Like the language of an email | Like the SMTP protocol that carries it |
The current OASIS CTI ecosystem centers on STIX 2.1 and TAXII 2.1, with STIX defining the data model and TAXII defining the exchange protocol (OASIS Open Cyber Threat Intelligence Technical Committee 2021a, 2021b).
Dashboards, Reporting, and Security Metrics
Dashboards exist for two audiences with very different needs:
- Operational dashboards (for analysts) show real-time alert queues, the age of open cases, current investigation status, and the day-over-day trend on top noisy detections.
- Executive dashboards (for leadership) show longer-horizon metrics: MTTD, MTTR, alert volume by severity, coverage against MITRE ATT&CK, incident counts by type, and trend lines on the security KPIs the program is committed to. Vanity metrics like “number of events processed” should be ruthlessly resisted; they grow with the data, not the defenders’ effectiveness.
Example
A high-fidelity multi-source detection
The single highest-value detection in many SOCs is not exotic — it is the cross-source correlation of three boring events on the same user within minutes:
- An authentication from an unfamiliar country / ASN to an identity provider (Okta, Entra ID).
- A mailbox rule created shortly after that auth that forwards or auto-deletes mail (a hallmark of business email compromise).
- An OAuth grant to an unfamiliar third-party application requesting mail-read permissions.
Individually, each event has a substantial false-positive rate — travelers exist, users do legitimately create rules, OAuth apps are not all malicious. Together within a fifteen-minute window on the same user account, they are nearly diagnostic of credential compromise. The detection requires authentication logs, mailbox audit logs, and OAuth grant logs all in the same SIEM with a shared user identifier. None of that is exotic. Most organizations simply have not connected the data.
Quick Check 11.2
- Recall. Which two outcome metrics does the chapter treat as more meaningful than “number of events ingested”?
- Discriminate. The same alert fires once on a domain controller using a domain-admin account and once on a low-value workstation using a standard user. Which should be triaged first, and why?
- Apply. A SOC receives 400 alerts a day, many from vulnerability scanners and known developer tests. Name three noise-reduction steps from the chapter.
Answers — Quick Check 11.2
- MTTD and MTTR. They measure whether the security team is actually detecting and responding effectively.
- The domain-controller and domain-admin alert should go first because asset criticality and privilege level both raise the likely impact dramatically.
- Tune noisy events at the source, maintain a known-noise allowlist, and measure false-positive rate per detection so weak rules get tuned or retired. The chapter also recommends staging alerts by severity and criticality.
How Do We Baseline Normal Behavior?
Rules are the most explicit way to detect — “if X then alert” — but rules can only catch things you anticipated. Behavioral analytics flip the problem around: learn what is normal for each user, host, network segment, and application, then alert on statistically significant deviations.
User and Entity Behavior Analytics (UEBA)
User and Entity Behavior Analytics (UEBA) systems (the successor to earlier user-only UBA) build per-entity baselines from historical telemetry and detect anomalies against those baselines. Modern UEBA capabilities include:
- Per-user feature vectors. Typical login hours, geographies, devices, applications, peer group membership, data-access patterns.
- Per-host baselines. Normal process trees, child-process relationships, outbound destinations, scheduled-task inventories.
- Network baselines. Normal flow volumes between segments, protocol mix, and external destinations — the raw material for beaconing and data-staging detections.
- Peer-group analysis. A finance analyst accessing engineering source control is suspicious not because access is impossible — it might be authorized — but because peers in finance do not do it.
- Risk scoring. Anomalies compose into a numerical risk score per entity. Users above a threshold surface for analyst review, with the constituent anomalies linked.
- Adaptive thresholds. Baselines update as the environment evolves; static thresholds rot quickly.
UEBA shines against three classes of threat that static rules struggle with: compromised credentials (the attacker has valid login but does not behave like the user), insider threats (the user has legitimate access but is using it abnormally), and lateral movement post-compromise (an attacker on a foothold host is reaching systems the host never reached before).
Identifying Anomalies in Systems and Apps
UEBA is not limited to users. Entity behavior generalizes the idea to any first-class object: workstations, servers, service accounts, applications, IoT devices. The most fruitful anomalies in practice are usually the unglamorous ones:
- A service account suddenly performing interactive logons.
- A backup server initiating outbound HTTPS to an unfamiliar destination.
- A workstation generating DNS queries at 4× its normal rate at 2 a.m.
- A database that has historically responded only to three application accounts beginning to receive queries from a new source.
- An EDR agent that has stopped reporting from a host that is still pinging on the network.
Each of those anomalies is hard to express as a static rule and almost impossible to anticipate by name — but easy to detect once you have a baseline.
Case Study
Hamlet, the Insider, and the Off-Hours Database Queries
Hamlet, threat hunter at Denmark Cyber Defense, is reviewing the weekly UEBA risk-score report on a Wednesday morning when one entity stands out: a developer account belonging to a contractor who has been with the firm for nine months. The score is 78 out of 100, up from a baseline near 5, accumulated over the past eleven days.
Hamlet clicks through. The anomalies tell a story when read together:
- Eleven nights running, the account has logged into a database read-replica at roughly 11:30 p.m. — outside the user’s historical 9 a.m. – 6 p.m. login pattern. The replica is one the user has access to but has never used in nine months on the job.
- The queries run against the replica are unusually large —
SELECT *across the customer table, withLIMITvalues incrementing each night (1000, then 5000, then 25000) as if the user were testing what size of result would not trigger alarms.- The result sets are written to a local CSV under the user’s home directory on the developer workstation, and the workstation’s outbound HTTPS volume in the half-hour after each query is roughly 4× the user’s baseline — but split across multiple destinations including a personal cloud storage domain.
- The user has not opened chat or email between 11 p.m. and 6 a.m. on any of those nights — they are active only on the database and the uploads.
No individual event would have tripped a static rule. The database access is authorized, the hours are unusual but not impossible, the volumes sit within a developer’s normal variance, and the cloud upload alone would have been a low-priority DLP alert that the queue routinely dismissed.
Together, the pattern is unmistakable. Hamlet escalates to the incident response team, who pull the workstation’s EDR timeline and confirm a script that automates the SELECTs and uploads. HR and legal are looped in; the contractor’s access is suspended pending investigation. The full extracted volume — about 380,000 customer records over the eleven-day window — is recovered from the personal cloud storage provider through a preservation-and-disclosure process, and not (so far as can be determined) exfiltrated further.
The post-incident review lowers the UEBA risk-score threshold for off-hours access to databases an account has never used, even when access is permitted, and adds a DLP rule for the personal-cloud domain involved, since the company already sanctioned a different provider.
The case is the textbook example of why behavioral analytics matter: an attacker — internal or external — who has legitimate access is invisible to access-control alone. Only deviation from baseline reveals them.
Quick Check 11.3
- Recall. Besides users, what kinds of entities does UEBA baseline in the chapter?
- Discriminate. A service account suddenly begins performing interactive logons. Why is that a strong UEBA anomaly even if the account is technically valid?
- Apply. In Hamlet’s case, what combination of signals turned technically authorized database access into a likely insider incident?
Answers — Quick Check 11.3
- UEBA baselines hosts, service accounts, applications, and other entities, not just human users.
- It violates the account’s normal baseline. Service accounts are supposed to act like services, not like people logging in interactively.
- The decisive pattern was off-hours first-time use of the
replica, progressively larger
SELECT *exports, local CSV staging, and unusual outbound HTTPS to personal cloud storage. No single event was enough; the composition was.
How Do We Proactively Hunt for Threats?
Detective controls catch attackers when they trip an alarm. Threat hunting assumes the alarms have already failed — that some adversary is already inside the environment, evading detection — and goes looking for them based on a hypothesis about how they would behave. The yardstick is dwell time: how long an adversary stays inside before being detected. Hunting is what separates a reactive SOC from a proactive one.
Internal Reconnaissance and Honeypots
A threat hunt starts with a hypothesis (“an adversary using technique X would leave artifact Y”) and ends with one of three outcomes: an incident, a new detection that operationalizes what was learned, or a documented coverage confirmation. The hunt itself draws on the same telemetry the SIEM already ingests, but interrogated by a human asking questions a rule could not.
Hunters also draw on internal intelligence sources. Internal reconnaissance means mapping your network the way an intruder would (asset inventories, Active Directory enumeration, which hosts can reach which), because anything you can discover from inside, an attacker on a foothold host can discover too; it also means watching for the attacker’s own discovery activity, such as a workstation suddenly scanning subnets. An adversary emulation engagement goes further: a red or purple team re-creates a named threat actor’s ATT&CK-mapped techniques, with tools such as MITRE Caldera or Atomic Red Team, to test which detections fire. Each miss is a detection gap and a ready-made hunt hypothesis. Honeypots, honeynets, and UEBA complete the set.
Honeypots and honeynets are deception infrastructure that produce extraordinarily high-fidelity signal precisely because there is no legitimate reason for anyone to interact with them. A honeypot is a single decoy system; a honeynet is an isolated network of them.
- Low-interaction honeypots (Dionaea, Honeyd, Conpot for industrial protocols) emulate services with limited functionality. They are easy to deploy, hard to compromise meaningfully, and useful for capturing automated scanning, credential-stuffing, and worm-style attacks.
- High-interaction honeypots are real systems with real operating systems and applications, instrumented to capture every action. They produce richer intelligence about attacker tradecraft, at the cost of more careful containment to prevent them from being used as a pivot.
- Honey tokens / honey credentials. Decoy secrets placed in real systems — a “honey” AWS access key in a developer’s home directory, a fake admin password in a vault entry, a canary file on a fileshare. Any use of these tokens generates a high-confidence alert. CanaryTokens.org and similar services have made honey tokens extremely cheap to deploy. Expect a few benign visitors — vulnerability scanners and asset-discovery tools will touch decoys too — so allowlist those sources and every remaining alert stays meaningful.
Figure 11.2: A honeynet is an isolated VLAN containing decoy systems
and tokens, with every interaction logged and alerted. Because no
legitimate users have any reason to touch these systems, the
signal-to-noise ratio approaches one — every alert is worth
investigating.
Hypothesis-Based Searches
A useful hunt is built on a specific, testable hypothesis. Examples:
- Hypothesis: an adversary using BloodHound for AD reconnaissance would issue distinctive LDAP queries. Telemetry: domain controller LDAP query logs. Test: search for LDAP filter patterns characteristic of BloodHound collection.
- Hypothesis: a Cobalt Strike beacon configured with a particular sleep-and-jitter pattern would produce regular outbound HTTPS connections at predictable intervals. Telemetry: netflow + DNS. Test: find hosts whose outbound HTTPS shows strong periodicity over the past 30 days. (RITA, covered below, automates this test over Zeek network logs.)
- Hypothesis: an attacker performing Kerberoasting (ATT&CK T1558.003) would request Kerberos service tickets for many user accounts that have service principal names (SPNs), then crack the tickets offline. Telemetry: Windows Event ID 4769 (a service ticket was requested). Test: aggregate 4769 events by requesting account, looking for one account requesting tickets for many SPNs in a short window, especially with the older RC4 encryption type.
- Hypothesis: a malicious browser extension on a developer workstation would exfiltrate clipboard contents to an unfamiliar domain. Telemetry: DNS + EDR network connection. Test: compare developer-workstation DNS query destinations against a known-good baseline.
A hunt that finds something becomes an incident. A hunt that finds nothing still pays off: the query can become a detection rule that keeps looking for the same pattern automatically, and the negative result becomes a documented record of coverage that auditors and leadership can point to.
Case Study
Marriott / Starwood (2014–2018): Four Years of Undetected APT Access
On 30 November 2018, Marriott International disclosed that an unauthorized party had been inside the reservation database of its Starwood subsidiary since 2014. Marriott’s first estimate was up to approximately 500 million guests; for about 327 million of them the exposed data included some combination of names, mailing addresses, phone numbers, email addresses, passport numbers, Starwood loyalty account information, and dates of birth, and for some guests payment card data. Marriott later revised the count to at most about 383 million guest records (Marriott International 2018; Marriott International, Inc. 2019).
The exposure came to light on 8 September 2018, when an internal security tool alerted Marriott to an attempt to access the Starwood guest reservation database in the United States. Pulling on that thread led investigators to a longer history of unauthorized access in the Starwood network dating back to 2014 (Marriott International 2018; Marriott International, Inc. 2019).
The detection failures were not exotic. They were the kind of multi-year operational drift this chapter has been describing:
- Monitoring gaps. When the UK Information Commissioner’s Office (ICO) fined Marriott £18.4 million in 2020, it found insufficient monitoring of privileged accounts and of databases, along with missing server hardening and unencrypted personal data. (The penalty covered only the period after the GDPR took effect in May 2018.) (UK Information Commissioner’s Office 2020)
- Long dwell time. Industry reports at the time put the global median dwell time at roughly 100 days. The Starwood intrusion lasted about four years, roughly fifteen times that. With long enough dwell, any architecture that depends on perimeter prevention and rare audit will fail.
- Acquired-environment blind spot. The intrusion predated Marriott’s 2016 acquisition of Starwood and stayed in the inherited environment for years, illustrating how acquired platforms can sit outside the acquirer’s normal telemetry and hardening processes for too long (UK Information Commissioner’s Office 2020).
- Unencrypted personal data. Marriott reported about 5.25 million unencrypted passport numbers among the records (Marriott International, Inc. 2019). Tokenization or field-level encryption (Chapter 8) would have meant that even a complete database extraction yielded surrogate values rather than government identifiers.
The consequences were substantial: regulatory scrutiny in multiple jurisdictions, including the ICO fine, extensive remediation work, and years of litigation and response costs.
Two structural lessons for security operations come from the Marriott / Starwood case:
- Acquired companies are an enormous detection blind spot. Any acquisition large enough to matter is large enough to merit a deliberate, time-boxed program of telemetry integration and compromise assessment before its data is folded into the acquirer’s systems.
- Long-dwelling APTs require proactive hunting, not just rules. If a sophisticated adversary stays quiet enough, prevention and traditional detection will not catch them. Hypothesis-based hunts, honey tokens, and behavioral analytics are the controls that close the long-tail gap.
Quick Check 11.4
- Recall. What makes a threat hunt different from waiting for an alert?
- Discriminate. A fake AWS access key is planted in a developer’s home directory, and any use of it triggers an alert. What is that object called?
- Apply. Your company acquires another firm with a legacy reservation platform. Name two actions from the Marriott lesson that should happen before full integration.
Answers — Quick Check 11.4
- A hunt is hypothesis-driven and assumes detection may already have failed. It goes looking for adversary behavior rather than waiting for a rule to fire.
- A honey token or canary credential. Its value is that no legitimate actor should ever touch it.
- Time-boxed telemetry integration into the main SIEM and a deliberate compromise assessment or threat-hunting effort on the acquired environment are the two structural steps the case study argues for.
How Do We Leverage Threat Intelligence?
No single organization sees enough of the global threat landscape to build comprehensive defenses on its own observations alone. Threat intelligence is the practice of collecting, refining, and operationalizing information about adversaries — their tools, infrastructure, targets, and tactics, techniques, and procedures (TTPs), meaning the behaviors they use to reach their goals — and integrating that information into the SOC’s detection and response workflows.
External Feeds, OSINT, and ISACs
Threat intelligence comes from many sources, each with different fidelity and licensing:
- Open-source intelligence (OSINT). Public feeds (AbuseIPDB, AlienVault OTX, now operated by LevelBlue, abuse.ch’s URLhaus and ThreatFox, GreyNoise), security blogs, vendor reports, and the IoCs that appear in CISA advisories.
- Commercial feeds. Subscription products from vendors such as Mandiant (part of Google), Recorded Future (owned by Mastercard), CrowdStrike, Flashpoint, and Intel 471. Generally higher fidelity, with curated context — at substantial cost.
- Government and law-enforcement sources. CISA’s Automated Indicator Sharing (AIS) program, FBI / Secret Service notifications, and equivalent national-level alerts.
- Industry ISACs (Information Sharing and Analysis Centers). Sector-specific sharing communities — FS-ISAC for financial services, H-ISAC for healthcare, E-ISAC for electricity, Aviation ISAC, MS-ISAC for state, local, tribal, and territorial governments. Membership-restricted but extremely valuable because the threats are highly relevant.
- Internal intelligence. The most valuable threat intelligence in any environment is generated by that environment’s own SOC — IoCs from your incidents, tradecraft from your hunts, infrastructure observed on your honeynet.
- Dark-web monitoring. Services and internal teams that watch underground forums for stolen credentials, mentions of the organization, leaked data, and access-broker listings naming the company.
Judge each source by its reliability factors: track record, freshness, independent corroboration, collection method, and relevance to your sector and technology. The Admiralty system rates source reliability from A (completely reliable) to F (cannot be judged) and information credibility from 1 (confirmed) to 6 (cannot be judged).
Counterintelligence and operational security (OPSEC) protect your defensive work from the adversary’s attention. Do not browse a suspected command-and-control domain from a corporate laptop or publish your IoCs mid-response; either can tip off the attacker. Investigate from isolated systems, mark what you share with the Traffic Light Protocol (TLP) (TLP:RED, TLP:AMBER+STRICT, TLP:AMBER, TLP:GREEN, TLP:CLEAR), use deception such as honeypots and honey tokens to mislead intruders, and monitor the dark web passively, since buying stolen data or posing as a buyer carries legal and OPSEC risk.
STIX, TAXII, and Threat Intelligence Platforms
The plumbing that makes all of this manageable is the combination of STIX (the data model) and TAXII (the transport protocol), introduced in Table 11.1 (OASIS Open Cyber Threat Intelligence Technical Committee 2021a, 2021b). A Threat Intelligence Platform (TIP) — MISP and OpenCTI (open source), Anomali, ThreatConnect, ThreatQuotient — sits at the center:
- The TIP pulls STIX bundles from TAXII servers operated by ISACs, vendors, and partners.
- It deduplicates, scores, and ages indicators (an IP that was malicious in 2021 is probably no longer malicious in 2026).
- It pushes high-confidence indicators downstream to enforcement points: firewalls, DNS resolvers, email gateways, EDR.
- It pushes context into the SIEM so that alerts include the matched indicator’s known TTPs, campaign, and threat actor.
- It collects observations back from the SOC — every time an indicator matches, that match itself becomes intelligence to share with the community.
| Tier | Audience | Time Horizon | Examples |
|---|---|---|---|
| Strategic | Executives, board | Months to years | Adversary motivations, geopolitical risks, sector-targeting trends |
| Operational | SOC managers, IR leads | Weeks to months | Campaign descriptions, threat-actor TTPs, ATT&CK technique focus |
| Tactical | Analysts, hunters | Days to weeks | Tool families in use, malware variants, evolving tradecraft |
| Technical | Detection engineers, automation | Hours to days | IoCs (IPs, domains, hashes, URLs), YARA rules, Sigma rules |
IoCs go stale fast because attackers change IP addresses and file hashes cheaply. Indicators of attack (IoAs) describe behavior and intent — TTPs such as dumping credentials from LSASS memory or registering a scheduled task for persistence — and are far harder to change. An IoC says “this artifact was seen in an attack”; an IoA says “something is doing what attackers do.” Technical intelligence is mostly IoCs; the operational and tactical tiers are mostly IoAs.
Rule-Based Detection Languages: Sigma, YARA, Snort
Several open rule languages and tools dominate community sharing:
- Sigma. A vendor-neutral SIEM rule format. A Sigma rule describes a detection in YAML, and converter tooling translates it into the underlying query language of whatever SIEM the consumer uses (Splunk SPL, KQL, ES|QL, etc.). The SigmaHQ repository ships thousands of community-contributed rules covering a large share of MITRE ATT&CK techniques.
- YARA. A pattern-matching language for files — used to identify malware families by byte sequences, strings, and structural patterns in executables. YARA rules drive malware sandboxes, EDR scanners, and threat-intelligence platforms.
Example
Anatomy of a YARA rule
YARA rules have three sections:
meta(freeform annotation),strings(what to look for), andcondition(when to fire). Here is a simplified rule flagging executables that impersonate security tools with fake-alert strings:rule FakeAV_ScarewarePrompt { meta: author = "Denmark Cyber Defense" description = "Detects rogue AV using scare-language lures" date = "2026-03-01" strings: $s1 = "Your PC is infected with" ascii nocase $s2 = "Call Microsoft Support" ascii nocase $hex = { 50 61 79 4E 6F 77 } // "PayNow" in hex condition: uint16(0) == 0x5A4D // MZ header — Windows PE file and 2 of ($s*) and $hex }
uint16(0) == 0x5A4Densures the rule only fires on Windows executables.2 of ($s*)requires at least two of the ASCII strings to be present. The hex pattern adds a third, harder-to-rename anchor. A sandbox scanning a suspicious download, or Hamlet’s threat-hunting session scanning the developer workstation fleet, would flag any file matching all three conditions for analyst review — regardless of the filename or file extension an attacker chose.
Snort / Suricata rules. Network IDS signature languages, widely used and widely shared via Emerging Threats and Talos rule sets. A rule is a header (action, protocol, source address and port, direction arrow, destination address and port) followed by options in parentheses:
alert tcp $HOME_NET any -> $EXTERNAL_NET 4444 (msg:"Outbound connection to a common reverse-shell port"; flow:to_server,established; classtype:trojan-activity; sid:1000001; rev:1;)$HOME_NETand$EXTERNAL_NETare configured variables;sidis the rule’s unique ID (1,000,000 and up is for local rules) andrevits revision.RITA (Real Intelligence Threat Analytics). An open-source framework that scores Zeek network logs for behaviors such as beaconing, long connections, and DNS tunneling, so it can catch command-and-control that no signature has seen.
A well-run detection-engineering program treats these rule libraries the way a software team treats open-source dependencies: pulled in, version-controlled, tested for false-positive impact in staging, and selectively enabled in production.
Warning Threat intelligence feeds are a fast way to introduce both false positives and operational fragility. A blocklist of “known-bad IPs” pulled from a low-fidelity feed and applied to the perimeter without curation will eventually block a legitimate cloud provider IP, a customer’s mail server, or your own VPN endpoint. Aging, fidelity scoring, and human review are not optional — they are the difference between an intelligence program and a self-inflicted denial-of-service.
Thought Question Your SOC has just begun consuming a commercial threat-intelligence feed that delivers about 50,000 new indicators per day. Should every one of those indicators flow directly to your perimeter firewall’s blocklist? If not, what filtering, scoring, and review process should sit between the feed and the enforcement point — and who in the organization owns the resulting false positives when something legitimate is blocked?
Chapter Review and Conclusion
Security operations is where every other control in this textbook is either validated or exposed. The SIEM pipeline determines what an organization can see; behavioral analytics catch the attacks that prevention missed; threat hunting catches the attackers that detection missed; and threat intelligence ensures that no SOC has to learn every lesson on its own. The discipline that ties them together is engineering rigor applied to detection — schemas, version-controlled rules, measured false-positive rates, hypothesis-driven hunts, and intelligence that is aged and curated, not merely consumed. Hamlet’s eleven nights of UEBA scoring and Marriott’s four years of missed dwell make the same point: with the right telemetry and discipline, even patient adversaries are detectable; without them, an ordinary intrusion can run for years.
Key Terms Review
- SIEM (Security Information and Event Management): Platform that collects, normalizes, stores, correlates, and alerts on security telemetry from across the environment.
- SIEM Pipeline: Collection → normalization / enrichment → storage / indexing → correlation / detection → alerting / dashboards.
- ECS / OCSF: Elastic Common Schema and Open Cybersecurity Schema Framework — common normalization schemas for security telemetry.
- Hot / Warm / Cold Storage Tiers: Retention tiers from fast and expensive to slow and cheap, balancing query latency with cost.
- Detection-as-Code: Treating detection rules as software — version-controlled, peer-reviewed, tested, and lifecycle-managed.
- Sigma: Vendor-neutral YAML SIEM rule format with converters into specific SIEM query languages.
- YARA: Pattern-matching rule language for identifying malware by file content.
- Snort / Suricata Rules: Open network IDS signature languages widely shared by community and commercial feeds.
- UEBA (User and Entity Behavior Analytics): Behavioral baselining of users and entities to detect statistical anomalies.
- Risk Scoring: Composite numerical score per entity that aggregates anomalies for analyst review.
- Peer-Group Analysis: Comparing a user’s behavior against peers in the same role to surface deviations.
- Threat Hunting: Proactive, hypothesis-driven search for adversaries already inside the environment.
- Honeypot / Honeynet: Decoy system / network used to detect and study attacker activity with high signal-to-noise ratio.
- Honey Token / Canary Credential: Decoy secret whose use generates a high-confidence alert.
- Threat Intelligence: Collected and refined information about adversaries — tools, TTPs, infrastructure, and targets.
- OSINT: Open-source intelligence drawn from public feeds, reports, and analyses.
- ISAC: Information Sharing and Analysis Center — sector-specific threat-sharing community (FS-ISAC, H-ISAC, E-ISAC, MS-ISAC, etc.).
- STIX: Structured Threat Information eXpression — JSON data model for threat intelligence.
- TAXII: Trusted Automated eXchange of Indicator Information — HTTPS REST transport for STIX bundles.
- Threat Intelligence Platform (TIP): System that ingests, deduplicates, scores, ages, and operationalizes threat intelligence.
- Strategic / Operational / Tactical / Technical Intelligence: Four-tier layering of threat intelligence by audience and time horizon.
- Indicator of Compromise (IoC): Observable artifact (IP, domain, hash, URL, mutex) associated with malicious activity.
- MTTD / MTTR: Mean Time To Detect / Mean Time To Respond — primary SOC effectiveness metrics.
- Dwell Time: Duration from initial compromise to detection — the canonical measure of detective shortfall.
- Audit Log Reduction: Trimming logs to the records that matter without dropping forensic evidence.
- False Positive / False Negative: An alert on benign activity / a real attack that raises no alert.
- Event Duplication / Non-Reporting Devices: An event ingested twice / a log source that has gone silent.
- Adversary Emulation: A red- or purple-team exercise that re-creates a real threat actor’s techniques to test detections.
- Indicator of Attack (IoA): Evidence of attacker behavior (TTPs) rather than a static artifact such as a hash or IP.
- Traffic Light Protocol (TLP): Color-coded labels limiting how widely a shared report may travel.
- Internal Reconnaissance: Mapping your own network as an intruder would, and watching for attackers doing the same.
- Counterintelligence / OPSEC: Protecting defensive work from adversary attention and using deception against intruders.
Practice-Based Questions
Apply The Chapter
Hamlet Builds a Threat-Hunting Program at Denmark Cyber Defense
Design PBQ. Map each row of a damning SOC program scorecard to the control that fixes it — OCSF normalization, tiered storage, detection-as-code, UEBA, TIP, MTTD.
Diagnose The Failure
Hamlet Investigates the Insider That Dwelled
Diagnostic PBQ. Four months in, a year-long insider data theft surfaces — and every signal was visible the whole time. Walk backward through three missed signals and name the discipline that would have joined them into one investigation.
Synthesis Activities
These open-ended activities extend the chapter beyond what a search engine or chatbot can answer. Each works alone or in a group, and the goal is the conversation, debate, or artifact itself. Sidebars show how to use a chatbot as a practice partner, never as a source (Chapter 0 explains how).
Conduct an Interview (1 hour)
Talk to someone who works in security operations: a SOC analyst, detection engineer, threat hunter, or SOC manager. Questions worth asking:
- Walk me through your last shift. What did the queue actually look like, and how many alerts mattered?
- What does threat hunting look like in your environment: scheduled, ad hoc, or aspirational?
- When you write a new detection rule, how do you decide it’s good enough to deploy, and what tells you it’s bad after it ships?
Listen for the gap between SOC-as-described (analysts triaging high-signal alerts, hunters finding the missed adversary) and SOC-as-lived: alert fatigue, tooling sprawl, and coverage gaps.
No one to interview? Rehearse with a chatbot playing a senior detection engineer at a mid-sized SOC. The rehearsal exposes which of your questions confuse analyst work, detection engineering, and threat hunting.
Hold a Debate (1 hour)
Pick the position you find least sympathetic and argue it as well as you can (in class, assign positions and go live):
- A modern SOC’s primary investment should be threat hunting, not alert triage. Reactive detection has been a losing battle for two decades; shift budget to hypothesis-driven hunts and accept a worse alert queue before the metrics improve.
- Threat hunting is a vanity exercise that fails to scale. Risk falls when you tune detections, fix noisy rules, and follow up every alert. Hunting is what under-staffed SOCs do to feel important.
- The whole framing is wrong. The axis that matters is coverage: whether your telemetry covers the surfaces attackers use today (identity, SaaS, cloud control plane) or only those SIEM connectors made cheap a decade ago (Windows endpoint, firewall, DNS).
Studying alone? Have a chatbot attack your argument as a senior SOC director, citing real dwell-time reports (Mandiant M-Trends, CrowdStrike), hunt-program failures and successes, and shifts in attacker tradecraft.
Track a Current Debate (20 min)
Find a security operations or threat-hunting event from the last six months. Good starting points: MITRE ATT&CK updates, CISA Joint Cybersecurity Advisories with detection guidance, and annual threat reports such as Mandiant M-Trends. Be ready to explain to a classmate, in two minutes, what happened, which ATT&CK technique was decisive, and what other SOCs are changing as a result. Bring two primary sources.
Lab Artifact: Read a Real Sigma Rule (20 min)
Sigma is the closest thing security operations has to an open, vendor-neutral detection format. Reading a real rule makes you think like a detection engineer.
- Go to github.com/SigmaHQ/sigma.
Browse into
rules/and pick a rule that maps to an ATT&CK technique you find interesting (credential dumping, lateral movement, evading defenses, persistence). Process-creation rules underrules/windows/process_creation/read like English, so start there. - Open the rule’s YAML. Identify, in your own words: the logsource (the telemetry that must be collected for it to fire), the detection logic, the ATT&CK technique(s), the level (informational to critical), and any false-positive notes.
- In plain English, write what this rule would alert on and what the analyst would see when it fires.
- Now do the harder part: evade it. Name two ways an attacker could perform the same technique without tripping this rule (process renaming, different flags, a living-off-the-land binary swap, a different parent process). For each, identify one additional detection that would close the gap.
- Is this rule worth deploying as written, or would you tune it first? What false-positive rate would you expect in a real environment, and how would you find out?
Safety: This is a read-only exercise on public detection rules. Do not attempt to test the evasions you identify against any real environment. The whole point is to think like a detection engineer, not to operate like an adversary.
Draft a Detection (2+ hours)
Pick one MITRE ATT&CK technique and write a Sigma-style detection rule for it from scratch. The goal is an honest attempt at encoding the logic, assumptions, and gaps, not a production rule. Choose a technique you can detect from one telemetry source:
- T1059.001 — PowerShell. Encoded commands
(
-EncodedCommand) launched by an unusual parent process. - T1078.004 — Cloud Accounts. An IAM principal authenticating from a country it has not used in 90 days.
- T1003.001 — LSASS Memory. A process other than
known credential tooling opening a handle to
lsass.exewith read access. - T1566.002 — Spearphishing Link. A user clicking an emailed URL whose domain is under 7 days old.
Write (in YAML or Sigma-shaped pseudo-code):
- The logsource, named explicitly (Sysmon EventID 1, AWS CloudTrail, Microsoft Defender for Cloud Apps, etc.).
- The selector conditions that fire the rule, and any filters that exclude expected benign behavior.
- Honest false-positive notes: what legitimate activity would trip it, and how often.
- The ATT&CK technique ID and tactic.
Then write a short paragraph on how you would validate and roll out the rule (log-only for a week, a low-volume alert tier, then escalation) and tell whether it was working or just adding noise. Detection engineering looks simple in the textbook and is unforgiving in practice.