Chapter 13
Security Operations, Threat Intelligence and Analytics
Bachelors Program in Computer Science Engineering
Cybersecurity Basics
•
Bachelor
Security Operations, Threat Intelligence and Analytics
Introduction
Security operations convert large volumes of technical evidence into timely decisions. A security operations centre (SOC) collects events from endpoints, servers, identity systems, applications, networks, cloud services, and external intelligence sources. Analysts then determine whether activity is benign, suspicious, or malicious; contain confirmed incidents; and improve detection capability.
This work depends on more than a security information and event management (SIEM) platform. Effective operations combine reliable logging, detection engineering, indicators of compromise (IoCs), behavioral analytics, threat intelligence, human investigation, measurement, and governance. They must also manage uncertainty: legitimate administrative activity can resemble an attack, attackers can evade known signatures, and automated systems can produce biased or privacy-invasive conclusions.
Learning Objectives
After completing this chapter, students should be able to:
Explain the role and limitations of logs, SIEM systems, and security operations.
Design detections using signatures, correlation, and behavioral reasoning.
Distinguish IoCs, observables, indicators of attack, and tactics, techniques, and procedures.
Evaluate threat intelligence quality and operational relevance.
Interpret detection metrics, dashboards, false positives, and false negatives.
Explain how machine learning assists detection and how adversaries may attack it.
Apply privacy, governance, and ethical principles to security analytics.
1. Security Operations as a Decision System
A SOC is an organizational capability, not merely a room or software product. Its activities commonly include monitoring, triage, investigation, incident response, threat hunting, vulnerability coordination, and detection improvement. These activities form a feedback loop:
Security operations feedback loop
Figure: Security operations feedback loop
Figure: Security operations as a continuous evidence-to-improvement loop.
The loop is governed by risk. A high-confidence ransomware signal may justify immediate isolation, whereas an anomalous login may require enrichment and human review. Analysts should record decisions, evidence, confidence, and residual uncertainty.
2. Logs, Telemetry, and SIEM Architecture
A log is a recorded event generated by a system. Useful fields may include timestamp, source, destination, user, process, action, result, authentication method, device identity, and correlation identifier. Telemetry may also include network flow, endpoint process trees, cloud audit trails, DNS queries, email metadata, and identity-provider events.
A mature logging design addresses four questions:
Coverage: Which assets, identities, and actions are observable?
Quality: Are clocks synchronized, fields consistent, and events complete?
Retention: How long must evidence remain available for investigation and legal requirements?
Protection: Can attackers alter, delete, or access logs?
A SIEM commonly performs collection, parsing, normalization, enrichment, correlation, search, alerting, case management, and reporting. Normalization maps different vendor fields into a common schema. Enrichment may add asset criticality, geolocation, threat-intelligence context, vulnerability status, or identity risk.
SIEM implementation has trade-offs. Collecting everything can increase storage cost, processing delay, and analyst workload. Collecting too little creates blind spots. Logs should therefore be selected according to threat scenarios and business impact rather than volume alone. Time synchronization, immutable or access-controlled storage, role separation, and monitoring of the logging pipeline are essential. A missing log can be a security event in its own right.
3. Detection Engineering
Detection engineering is the disciplined creation, testing, deployment, and maintenance of analytic rules. A detection should specify:
the threat behavior or security objective;
required data sources and fields;
logic and thresholds;
severity and confidence;
expected analyst action;
exclusions and their justification;
test cases, owner, version, and review date.
Detection approaches
Signature detection matches known artifacts, such as a malicious hash or domain. It is precise when the artifact is stable but fails when attackers change it.
Rule-based correlation combines events, such as repeated failed logins followed by a successful login and privileged activity. Correlation improves context but depends on event completeness and correct time windows.
Behavioral detection models unusual activity, such as a service account downloading an unusually large quantity of data from a new location. It can identify novel attacks but may produce false positives when normal behavior changes.
Threat-informed detection maps analytic coverage to adversary behaviors, often using a framework such as MITRE ATT&CK. The mapping helps identify gaps, but it does not prove that a control detects every instance of a technique.
A detection is not complete when it merely generates an alert. It must support a decision. An alert should tell an analyst what happened, why it matters, what evidence to inspect, and what containment options are available.
Indicators and adversary behavior
An observable is a recorded value, such as an IP address, process name, command line, or domain. An indicator of compromise is an observable assessed as evidence of malicious activity. IoCs can be useful for blocking and retrospective search, but they are often brittle and short-lived.
An indicator of attack describes behavior associated with an attack, such as credential dumping or unauthorized persistence, even when no specific artifact is known. Tactics, techniques, and procedures (TTPs) describe the adversary’s objectives, methods, and operational habits. TTP-oriented detection is generally more resilient than dependence on a single hash.
4. Threat Intelligence
Threat intelligence is evidence-based knowledge about threats that supports decisions. It is not simply a list of suspicious IP addresses. Intelligence may be:
Strategic: trends, adversary motivations, and business risk for leadership.
Operational: campaigns, targeting, and likely objectives.
Tactical: TTPs and defensive priorities for security teams.
Technical: machine-readable observables for controls and hunting.
A useful intelligence product states source, confidence, relevance, timestamp, expected action, and uncertainty. Intelligence should be evaluated using the intelligence cycle: direction, collection, processing, analysis, dissemination, and feedback.
Sharing formats such as STIX and TAXII can improve interoperability, but standardized transport does not guarantee accuracy. Feeds may contain duplicates, stale indicators, false attribution, or inadequate context. Automation should apply expiration, confidence thresholds, provenance, and review rather than blindly blocking every item.
5. Analytics and Measurement
A detection system can be evaluated using a confusion matrix. Let TP denote true positives, FP false positives, TN true negatives, and FN false negatives.
Precision = TP ÷ (TP + FP)
Precision is the proportion of generated positive alerts that are correct. It is undefined when TP + FP = 0.
Recall = TP ÷ (TP + FN)
Recall, also called sensitivity, is the proportion of relevant malicious cases detected. It is meaningful only when a suitable set of actual cases is known or estimated.
F1 is the harmonic mean of precision and recall and is useful when both matter. It can conceal operational differences when the costs of false positives and false negatives are unequal.
For example, suppose a reviewed set contains TP = 45, FP = 15, and FN = 5. Precision = 45 ÷ 60 = 0.75, recall = 45 ÷ 50 = 0.90, and F1 = 2 × 0.75 × 0.90 ÷ 1.65 ≈ 0.818. The calculation assumes that the reviewed set and labels are reliable; it does not establish performance against unknown attacks.
Other operational measures include mean time to detect (MTTD), mean time to acknowledge (MTTA), mean time to contain (MTTC), dwell time, alert volume, analyst workload, coverage of important assets and behaviors, and percentage of detections tested recently. Definitions must be explicit. For example, MTTD may be measured from the first malicious activity, the first observable, or the first alert; these are not equivalent.
Dashboards should support decisions rather than celebrate activity. A dashboard showing increasing alert volume may indicate improved visibility, worsening configuration, or an attack. Metrics should be segmented by source, severity, business unit, and time period. Trend interpretation should account for changes in asset population, logging coverage, detection rules, and analyst staffing.
False positives and false negatives
A false positive is an alert classified as malicious when the investigated activity is benign. A false negative is malicious activity that is missed or classified as benign. Reducing false positives is not always beneficial if it is achieved by suppressing weak but important signals. Suppression should be narrow, documented, time-limited, and monitored.
Analysts can improve alert quality through asset and identity context, allowlists with expiration, threshold calibration, deduplication, grouping related events, and risk-based prioritization. They should distinguish alert correctness from alert usefulness: a technically correct alert may still be too vague or too expensive to investigate.
6. Behavioral Analytics and AI-Assisted Detection
Behavioral analytics establishes a baseline or comparison model for entities such as users, hosts, service accounts, and applications. A simple statistical baseline might use a mean and standard deviation:
z = (x − μ) ÷ σ
Here, x is the observed value, μ is the baseline mean, and σ is the baseline standard deviation in the same units. A large absolute z-score may indicate unusual behavior, but the interpretation assumes a reasonably stable distribution and meaningful observations. Security data are often skewed, seasonal, sparse, or contaminated by attacks; robust statistics, peer groups, and time-aware baselines may therefore be preferable. An anomaly is not automatically malicious.
Machine learning can assist with classification, clustering, sequence analysis, entity resolution, and prioritization. Supervised models require representative labeled data. Unsupervised models can identify deviations without labels but often confuse legitimate change with attack. Human analysts remain necessary for context, accountability, and response authorization.
AI systems create new risks:
Data poisoning: adversaries contaminate training or feedback data.
Evasion: attackers alter behavior to remain below model thresholds.
Concept drift: normal behavior changes after a merger, migration, or new work pattern.
Adversarial examples: carefully modified inputs cause incorrect classification.
Automation bias: analysts overtrust model output.
Opacity: complex models may not explain why an alert was produced.
Privacy leakage: models or logs may reveal sensitive personal information.
Controls include independent validation, holdout testing, drift monitoring, explainable evidence, human approval for consequential actions, access control, model inventories, rollback procedures, and adversarial testing. Model performance should be measured separately across relevant populations to identify disparate error rates.
Background. A university uses cloud identity services, endpoint protection, and centralized audit logging. A research administrator’s credentials are phished.
Problem. The attacker logs in from a new country, registers a new authentication method, accesses cloud storage, and creates an application token. A simple IP block is ineffective because the attacker uses residential infrastructure.
Analysis. The SOC correlates identity events, device posture, authentication changes, token creation, and unusual download volume. No individual event proves compromise, but their sequence is inconsistent with the administrator’s peer group. Threat intelligence identifies the infrastructure as recently associated with credential attacks, with moderate confidence.
Approach. A risk-based detection raises severity when a new authentication method is followed by token creation and abnormal data access within a defined period. The analyst verifies the user through an independent channel, revokes sessions and tokens, removes the unauthorized method, preserves evidence, searches for related activity, and assesses data exposure. The rule is tested against known benign cases, such as legitimate device replacement.
Outcome. The account is contained before broad data exfiltration. Investigation reveals that an earlier rule generated many alerts because it treated every foreign login as malicious. The improved detection uses identity, device, sequence, and data-access context, reducing unnecessary escalation while retaining a path for human review.
Learning points. Context is more valuable than a single IoC; authentication changes are high-value telemetry; threat intelligence should enrich rather than dictate conclusions; and detection quality must be measured after deployment.
8. Governance, Ethics, and Professional Practice
Security monitoring can process personal data, communications metadata, location information, and employee behavior. Organizations should define a legitimate purpose, collect only necessary data, restrict access, document retention, protect data at rest and in transit, and provide appropriate notice. Applicable privacy and employment laws vary by jurisdiction; legal review is necessary for deployment.
Governance should assign data owners, detection owners, incident authority, and escalation responsibilities. Access to sensitive investigations should be logged and reviewed. Evidence handling should preserve integrity and chain of custody when disciplinary or legal proceedings are possible.
Security teams should avoid using threat labels as unquestionable facts. Attribution is uncertain, intelligence sources may be biased, and automated risk scores can affect individuals unfairly. Decisions should be proportionate, reviewable, and based on multiple evidence sources. Responsible practice also includes accessibility, analyst well-being, and clear procedures for reporting model or detection failures.
9. Contemporary Developments and Best Practices
Cloud-native telemetry, identity-centric security, extended detection and response (XDR), privacy-enhancing analytics, and security data lakes are changing SOC architecture. Attackers increasingly exploit valid accounts, software supply chains, cloud permissions, and automation systems. Consequently, identity events, configuration changes, API activity, and third-party dependencies deserve attention alongside network indicators.
Recommended practices include:
Begin with business risks and concrete attack scenarios.
Establish synchronized time, consistent schemas, and protected log pipelines.
Maintain a data-source inventory and test telemetry failure.
Design detections with evidence, action, owner, and expiry criteria.
Prefer behavior and sequences over isolated, easily changed artifacts.
Enrich alerts with asset, identity, vulnerability, and intelligence context.
Test detections with benign and malicious simulations.
Measure precision, recall, latency, coverage, workload, and outcomes together.
Treat AI as decision support unless strong assurance justifies automation.
Review privacy, fairness, provenance, and retention continuously.
Chapter Summary
Security operations transform telemetry into risk-informed decisions through monitoring, detection, investigation, response, and feedback. Logs and SIEM systems provide the evidentiary foundation, but their value depends on coverage, quality, synchronization, retention, and protection. Detection engineering combines signatures, correlation, behavior, and threat-informed analysis. IoCs are useful but fragile; TTP-based reasoning is often more resilient.
Threat intelligence must be contextual, timely, sourced, and connected to action. Precision, recall, F1, latency, coverage, and workload provide complementary views of performance, while false positives and false negatives require explicit trade-offs. Behavioral analytics and AI can identify novel patterns, but drift, poisoning, evasion, opacity, automation bias, and privacy risks demand governance and human oversight. Effective SOCs therefore combine technical controls with disciplined measurement, ethical practice, and continuous improvement.
Key Terms
Log: A recorded system or application event.
Telemetry: Data collected about systems, users, networks, and actions.
SIEM: A platform for collecting, normalizing, correlating, searching, and alerting on security events.
SOC: A function responsible for security monitoring, investigation, and response.
Detection engineering: The design, testing, deployment, and maintenance of detections.
Observable: A recorded value such as an address, hash, process, or domain.
Indicator of compromise: An observable assessed as evidence of malicious activity.
Indicator of attack: Evidence of attack behavior independent of a specific artifact.
TTP: An adversary’s tactics, techniques, and procedures.
Threat intelligence: Evidence-based knowledge about threats used to support decisions.
Correlation: Combining related events to derive context or raise an alert.
Behavioral analytics: Analysis of activity patterns to identify unusual or risky behavior.
Baseline: A reference description of expected activity.
False positive: A benign case incorrectly treated as malicious.
False negative: Malicious activity that is missed or treated as benign.
Precision: The proportion of positive alerts that are correct.
Recall: The proportion of relevant malicious cases detected.
Concept drift: A change in the relationship between observations and expected behavior over time.
Security dashboard: A visual representation of security measurements for decision-making.
Detection coverage: The extent to which important assets, threats, or behaviors are observable and detected.
Review Questions
Short Answer Questions
What are the principal functions of a SIEM?
Distinguish an observable from an indicator of compromise.
Why is TTP-oriented detection often more resilient than hash-based detection?
Define precision and recall.
Identify two privacy risks associated with security analytics.
Long Answer Questions
Explain how a SOC feedback loop improves detection capability over time.
Compare signature, correlation, behavioral, and threat-informed detection.
Describe the intelligence cycle and the qualities of useful threat intelligence.
Explain why dashboard metrics can be misleading when their definitions are unclear.
Discuss the benefits and risks of AI-assisted detection and the controls required for responsible use.
Analytical / Application Questions
A detection produces 80 alerts, of which 60 are confirmed malicious. Investigation identifies 15 additional malicious cases that the detection missed. Calculate precision, recall, and F1, stating your assumptions.
Design a detection for a compromised cloud account involving a new authentication method, token creation, and unusual data access. Specify data sources, correlation logic, enrichment, and analyst actions.
A model’s false-positive rate increases after an organization adopts remote work. Analyze likely causes and propose a validation, retraining, and governance plan.
Multiple Choice Questions with Answers
Question 1
Which statement best describes precision?
A. The proportion of actual malicious cases that are detected
B. The proportion of generated positive alerts that are correct
C. The average time required to contain an incident
D. The proportion of benign events stored in a SIEM
Correct Answer: B. The proportion of generated positive alerts that are correct
Question 2
Which detection approach is generally most resilient to changing file hashes?
A. TTP- and behavior-oriented detection
B. Exact hash matching only
C. Blocking one known IP address
D. Searching only antivirus filenames
Correct Answer: A. TTP- and behavior-oriented detection
Question 3
An observable becomes an indicator of compromise when it is:
A. Automatically generated by any system
B. Always associated with a particular country
C. Assessed as evidence of malicious activity
D. Older than one year
Correct Answer: C. Assessed as evidence of malicious activity
Question 4
Which practice best reduces harmful threat-intelligence automation?
A. Blocking every indicator permanently
B. Ignoring source provenance
C. Removing confidence scores
D. Applying expiration, context, and confidence thresholds
Correct Answer: D. Applying expiration, context, and confidence thresholds
Question 5
If TP = 45 and FP = 15, precision is:
A. 0.25
B. 0.50
C. 0.75
D. 0.90
Correct Answer: C. 0.75
Question 6
A false negative occurs when:
A. Benign activity generates an alert
B. Malicious activity is missed
C. A log is normalized correctly
D. An analyst closes a duplicate case
Correct Answer: B. Malicious activity is missed
Question 7
What is a major limitation of an anomaly score?
A. An anomaly is not automatically malicious
B. It can only analyze hashes
C. It never changes with normal behavior
D. It eliminates the need for investigation
Correct Answer: A. An anomaly is not automatically malicious
Question 8
Which is an example of model poisoning?
A. Encrypting logs in transit
B. Changing a password after compromise
C. Adding malicious or misleading data to training or feedback data
D. Using a peer group baseline
Correct Answer: C. Adding malicious or misleading data to training or feedback data
Question 9
Why should a detection specify an expected analyst action?
A. To make every alert critical
B. To connect the alert to an operational decision
C. To eliminate all false positives
D. To avoid recording evidence
Correct Answer: B. To connect the alert to an operational decision
Question 10
Which metric definition is especially important when comparing SOC performance?
A. The color scheme of the dashboard
B. The number of dashboard widgets
C. The exact start and end points used for latency measurement
D. The font used in incident reports
Correct Answer: C. The exact start and end points used for latency measurement