CySA Section 8 Logging Concepts & Analysis

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/82

encourage image

There are no tags or description

Looks like no tags are added yet.

83 Terms

1
New cards

Operating system logs

Generated by the OS itself and record things like user logins, privilege escalations, service starts and stops, and system errors

2
New cards

Windows Event ID 4624

Successful login

3
New cards

Windows Event ID 4625

Failed login

4
New cards

Windows Event ID 4648

Explicit credential use

5
New cards

/var/log/auth.log

log authentication events

6
New cards

/var/log/syslog

Records syslog/system events

7
New cards

Tracking Windows authentication events

Start with OS authentication logs, filter for Event ID 4625 then followed closely by 4624 from the same source

8
New cards

network logs

Come form firewalls, routers, switches, proxies, and IPS. Track allowed and denied connections, traffic flows, and protocol usage

9
New cards

Cloud environment equivalents of network logs

AWS VPC Flow Logs, Azure NSG Flow Logs

10
New cards

Application logs

Generate access logs and error logs, databases log queries, and custom applications log transactions

11
New cards

Syslog level 0

Emergency

12
New cards

Syslog level 1

Alert

13
New cards

Syslog level 2

Critical

14
New cards

Syslog level 3

Error

15
New cards

Syslog level 4

Warning

16
New cards

Syslog level 5

Notice

17
New cards

Syslog Level 6

Informational

18
New cards

Syslog Level 7

Debug

19
New cards

Running debug logging can cause

severe performance issues and overwhelming storage consumption

20
New cards

Only dial up to Debug during..

active incident investigation on isolated systems

21
New cards

Structured Logging

Refers to writing log entries in a consistent, machine-readable format, most commonly JSON

22
New cards

SIEM and log analysis tools parse

structured logs much more efficiently than unstructured plain text

23
New cards

log ingestion

Process of collecting log data from sources across the environment and getting it into a centralized system for storage and analysis

24
New cards

Agent-based collection

installation of a lightweight software agent on the source system

Reads local log files, parses them, forwards then to the SIEM or log aggregator

25
New cards

Agent-based collectors

Splunk Universal Forwarder, Elastic Beats, Microsoft Monitoring Agent

26
New cards

Downside of agent-based collection

Operaitonal overhead. You must deploy, manage, and update agents.

27
New cards

Agentless collection

Logs are pulled from source systems without installing anything on them

28
New cards

Windows Management Instrumentation (WMI)

Used to pull Windows event logs remotely

29
New cards

Syslog is agent-based or agentless

Agentless

30
New cards

SNMP Traps

Agentless; used for network device monitoring

31
New cards

Tradeoff using Agentless Collection

Less granular control and potential reliability gaps is the network between the source and collector is unreliable

32
New cards

Missing time windows in firewall events can indicate

A syslog UDP can indicate a Syslog UDP delivery failure; Syslog over UDP provides no delivery gurantee

33
New cards

Gaps in firewall logs during an incident can appear suspicious but may be caused by

a transport issue

34
New cards

Modern devices do not use traditional agentless collection, they use

APIs for data retrieval

35
New cards

AWS CloudTrail stores

Activity logs in S3

36
New cards

How are logs pulled

through the AWS API

37
New cards

Azure Monitor and Azure Activity Logs

Accessible through the Azure REST API

38
New cards

Log collection Google Cloud Operations Suite works..

the same way as Azure Monitor and Azure Activity Logs

39
New cards

Most modern SIEM platforms have ____ for cloud APIs

Native connectors

40
New cards

Native connectors examples

Microsoft Sentinel (Native connectors for Azure services), Splunk (Add-ons for AWS and GCP), Chronicle (Purpose-built for cloud log ingestion at massive scale)

41
New cards

Log aggregator/log forwarder

Buffers, normalizes, and batches the data before sending it upstream to the SIEM; agents on endpoints send logs to a local aggregator

42
New cards

Log aggregators give a resilient..

collection point even if the SIEM is down

43
New cards

Log aggregators examples

Logstash, Fluentd, Vector

44
New cards

Log Colleciton Chain

Is the agent running on the source?

Is the syslog forwarder configured correctly?

Is the aggregator healthy?

Is the SIEM connector active?

45
New cards

Log normalization

Process of transforming those different formats into a common, consistent schema

46
New cards

Log configuration

Is about making sure the sources are capturing the right events at the right level of detail

47
New cards

Widnows by default does not log

process creation

48
New cards

Windows has a granular audit policy system that

controls exactly which event categories get logged to the Security event log

49
New cards

Windows event categories that need to be enabled for logging

Logon and logoff events

Account management

Privilege use

Object access for sensitive files and registry keys

Policy Change

Process Creation

Detailed File Share

50
New cards

Process Creation Auditing

Also called Audit Process Creation under the Detailed Tracking category


When enabled, Windows logs Event ID 4688 for every process that starts, including the full command line

51
New cards

Capturing the command line in 4688 Events catches

LOLBin Abuse, PowerShell attacks, Malicious scripts

52
New cards

Linux primary logging daemon (legacy)

rsyslog

53
New cards

Linux primary logging daemon (modern replacement)

journald

54
New cards

On Linux, you want to make sure you’re capturing authentication events from

auth.log, sudo usage, cron job execution, kernel messages, any application-specific logs

55
New cards

auditd

Beyond basic Syslog configuration, this should be configured as part of the Linux audit Framework,. it allows specific audit rules to log file access system calls and user activity at a very granular level

56
New cards

Network logging needs to see

What connections were established, where they went, and how much data moved. Both allowed and denied traffic need to be logged

57
New cards

Network logging tradeoff is

log volume. Log aggregation architecture and SIEM configuration become important

58
New cards

Web application logs should log

Status codes, Source IP addresses, User agents, and response sizes

59
New cards

For databases, you want ___ logging enabled

query logging, at least for privilege operations and access to sensitive tables

60
New cards

AD Events that should be logged

Authentication events, Group policy changes, account modifications

61
New cards

Filtering at the source means

Excluding known-good, repetitive events before they ever hit the ingestion pipeline

62
New cards

The line between filtering noise and filtering evidence is not always

clear; bad actors know certain actions blend into routine traffic. Good configuration strategies filter aggressively on truly benign events

63
New cards

The most important thing to do to protect log integrity is

getting logs off source system quickly into a separate, secured environment

64
New cards

During a Windows incident, check the System event log for

Event ID 1102; means the audit log was cleared. Event ID 1102 near the time of a suspected attack is a major indicator of attacker cleanup activity

65
New cards

Write-once/Immutable storage

Once a log entry is written, it cannot be modified or deleted. Common in compliance-heavy industries like healthcare and finance

66
New cards

Cloud Write-once Storage examples

AWS S3 Object Log, Azure Immutable Blob Storage

67
New cards

Log file hashing

Checks the integrity of a log file by generating the hash of the original log file, then when looking at the log again, comparing the hash and seeing if the file was modified.

68
New cards

MITRE ATT&CK T1070

Indicator Removal; includes sub techniques used for clearing event logs

69
New cards

Windows Security log permissions

Event log should only be readable by administrators and log collection agent

70
New cards

Linux log permissions

Log files in /var/log should have appropriate file permissions so regular users cannot modify or delete them

71
New cards

SIEM Log permissions

Role-based access control determines who can view, modify, or delete log data

72
New cards

The solution to protecting log data in transit

Syslog over TLS, sometimes implemented in syslog-ng; the syslog traffic is encrypted so it cannot be read and requires authentication from both sides, preventing interception and injection.


Both Splunk Universal Forwarder and Elastic Beats support this

73
New cards

run w32tm /query /status

checks NTP sync status and offset on a Windows machine

74
New cards

Some SIEM platforms solve the issue of attackers modifying NTP or time drift occurring by…

applying a recent timestamp at the point of ingestion separate from the source timestamp

75
New cards

Cloud services often log in what time zone?

UTC

76
New cards

Best practice for time zones

Log events in UTC and let the SIEM handle local time zone

77
New cards

Mitigation for NTP Amplification and Time Manipulation Attacks

Disable the NTP monolith command and restrict NTP responses to known clients

78
New cards

NTPv4 and Precision Time Protocol (PTP)

Support cryptographic authentication to ensure systems are syncing from legitimate time sources and not from an attacker-controlled NTP server

79
New cards

timedatectl status

checks NTP sync status and offset on a Linux machine

80
New cards

Log retention

Defining how long different types of log data are kept before they are archived or deleted

81
New cards

Retention policy is about finding…

the right balance between long enough to be useful and not so long that storage costs unsustainable

82
New cards

PCI DSS Log Retention requirement

Requires audit log retention for at least 12 months, with three months of logs immediately available for analysis

83
New cards