Certopolis

CompTIA Security+ (SY0-801)

SIEM and log analysis: Security+ explained

A SIEM is centralized logging software that collects logs from many sources, then filters, aggregates, normalizes and correlates them so analysts can spot significant events. Sending copies of logs to central servers also protects them, because an attacker who alters a host's own logs usually cannot reach the central copies.

How logs reach the SIEM

NIST SP 800-92 describes three tiers: log generators, log servers that receive copies of the logs, and consoles for monitoring and reports. Servers that receive logs from many generators are sometimes called collectors or aggregators.

A SIEM collects logs in one of two ways. Agentless: the server pulls logs by authenticating to each host, or hosts push logs to it. Agent-based: an agent on each host filters, aggregates and normalizes the logs before sending them. The agentless method skips filtering at the host, so much more data crosses the network.

What the SIEM does with the data

Event filtering suppresses entries unlikely to matter, such as routine informational entries, from analysis or reporting without altering the original log files. Event aggregation merges similar entries into one entry with a count.

Normalization converts each field to one consistent format, for example one date and time format. Correlation finds relationships between entries; the most common form is rule-based correlation, which matches entries on values such as timestamps, IP addresses and event types, and can raise an alert.

Timestamps and evidence

Each host stamps entries from its own clock. If a database server runs two minutes behind the firewall, the timeline is wrong. SP 800-92 says to use time synchronization such as Network Time Protocol (NTP) servers whenever possible.

During an incident, attackers may alter or destroy a system's own logs, but they usually have no access to the central infrastructure logs. Responders can compare the two copies to see what was changed or removed.

Where the exam catches people

  • Believing normalization fixes clock drift: normalization reformats timestamps, while NTP keeps the source clocks in sync so the times are correct in the first place.
  • Believing filtering deletes log data: event filtering removes entries from analysis or reporting and does not alter the original log files.
  • Believing "aggregation" always means one thing: collecting copies on central servers is log aggregation, while NIST's event aggregation merges similar entries into one counted entry.
  • Believing agentless collection is lighter on the network: without host-level filtering, agentless collection usually sends much more data.

Written from CompTIA's documentation

Try 3 questions on this

Pick an answer to see why each option is right or wrong.

  1. An attacker with administrative rights on a web server deleted its local event logs, but responders still recovered the entries because the server had sent copies of each event to a central collector. Which of the following activities preserved the entries?

    Right. In the game that’s Renown for your Security Operations building.

    Not that one: A is right. In the game your Security Operations building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    Sending copies of logs to a central collector is log aggregation.

    Written from nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-92.pdf

  2. A SIEM raises hundreds of low-value notifications from routine informational log entries, such as successful scheduled backups. Analysts configure it to exclude those entries from analysis while leaving the original logs unchanged. Which of the following monitoring activities does this describe?

    Right. In the game that’s Renown for your Security Operations building.

    Not that one: D is right. In the game your Security Operations building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    Adjusting a SIEM so routine entries stop producing low-value notifications is what the objectives list as alert tuning.

    Written from nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-92.pdf

  3. While building an incident timeline, a security analyst notices that a database server's log entries are consistently about two minutes behind the matching entries from the firewall. Which of the following would best prevent this discrepancy?

    Right. In the game that’s Renown for your Security Operations building.

    Not that one: A is right. In the game your Security Operations building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    It says organizations should use time synchronization technologies such as Network Time Protocol (NTP) servers whenever possible to keep log sources' clocks consistent. A steady two-minute offset is a clock out of sync, which synchronization prevents.

    Written from nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-92.pdf