Lesson 2 of 3 Security Control Testing

Log Reviews, Synthetic Transactions and Simulations

Several testing techniques check controls continuously or from the user's perspective. This lesson covers log reviews, synthetic transactions and benchmarks, breach and attack simulation, and compliance checks.

Learning outcomes

After completing this lesson, you will be able to:

  • Explain log reviews, synthetic transactions and benchmarks.
  • Describe breach and attack simulation and compliance checks.

Log reviews

Log reviews examine logs from systems, applications, network devices and security tools for signs of attack, policy violations and control failures, such as repeated failed logins, logins at unusual times, privilege changes and access to sensitive data. Reviews are performed through a SIEM or manually for specific systems, at a defined frequency and by people who are independent of the activity being reviewed.

Log review also tests logging itself: missing log sources, unsynchronised clocks or logs that administrators can edit are findings in their own right.

As a testing technique, log review asks whether controls left the evidence they should have.

Volume makes manual review impractical for most sources, so reviews focus on high-value events and use the SIEM to filter and summarise. Independence matters because an administrator who reviews logs of their own activity could overlook, or conceal, their own misuse.

Select all that apply

Findings from a log review

Exam skills 6.2.3

Identify which observations from a log review are findings in their own right.

Log in to try this activity Interactive activities are free with an account.
Worked example

Testing change control through log review

Policy says that every change to a firewall's rules requires an approved change ticket. How can a log review test whether this control works?

A reviewer takes the firewall's configuration change log for a month and matches each change against the ticketing system. Changes without tickets show that the change control is being bypassed, and changes with no log entry at all, discovered by comparing configuration snapshots, show that logging is incomplete.

The same approach tests account management: every account created in the directory log should match an approved request.

Synthetic transactions and benchmarks

Synthetic transactions are scripted actions, such as logging in or completing a purchase, run automatically at intervals to check that applications are available, perform well and that security functions such as authentication still work. They detect problems before users do. Real user monitoring, by contrast, passively records what actual users experience.

Benchmarks compare systems against a reference: performance benchmarks establish normal behaviour, and configuration benchmarks such as the CIS Benchmarks define secure settings.

Synthetic transactions can test security functions, not only availability. A script can attempt to log in with a known bad password and confirm that access is refused, request a page that requires authentication without a session and confirm a redirect to the login page, or check that the site's certificate is valid and not about to expire. Running these checks every few minutes detects a security control that has silently stopped working, for example after a configuration change disabled authentication on one server in a pool. The test accounts used by synthetic transactions must themselves be protected and excluded from business reports so that they do not distort figures.

The following diagram compares synthetic transactions with real user monitoring and log review.

Synthetic transactions compared with real user monitoring and log review. Scripted transactions run every few minutes, around the clock, so they fail as soon as the service does and alert the team even when no real users are active. Real user monitoring needs users present, and log reviews find the issue only afterwards.
Timeline is schematic.
Select all that apply

Testing security with synthetic transactions

Exam skills 6.2.4

Identify security checks a synthetic transaction script can perform.

Log in to try this activity Interactive activities are free with an account.

Breach and attack simulation and compliance checks

Breach and attack simulation (BAS) platforms continuously and safely run simulated attacker techniques, often mapped to MITRE ATT&CK, against production controls and report which were blocked or detected. BAS validates that controls keep working between penetration tests and after changes, and shows gaps in detection coverage.

Compliance checks verify that systems and processes meet required standards, often by automatically comparing configurations with baselines and collecting evidence. Compliance shows that agreed controls are in place, but being compliant does not by itself mean being secure.

BAS fills the gap between periodic tests. A penetration test shows the state of defences during one week of the year; a week later, a firewall change or an endpoint agent update may have reopened a gap. A BAS agent on a test workstation can, for example, safely simulate credential dumping, a connection to a known command-and-control address and an attempted upload of test data every night, then report which steps were blocked, which were only logged and which went unnoticed. A sudden change in those results points directly to the control that regressed.

The gap between compliance and security arises because standards set minimums and checks verify only what they ask about. An organisation can pass a check that every server has antivirus installed while attackers use techniques that antivirus does not detect. Compliance checks remain valuable, because they detect drift from required configurations cheaply and continuously, but they are one input to assurance, not proof of it.

True or false

BAS and compliance

Exam skills 6.2.9 · 6.2.10

Check what breach and attack simulation and compliance checks can show.

Log in to try this activity Interactive activities are free with an account.
Worked example

Proactive monitoring

An online banking service occasionally fails to process logins for a few minutes overnight, and the team learns about it only from customer complaints the next morning. Which testing technique would detect the problem earliest?

Synthetic transactions that perform a scripted login every few minutes, around the clock, would detect the failure as soon as it occurs and alert the operations team, even when no real users are active. Real user monitoring depends on users being present, and log reviews would find the issue only after the fact.

Check yourself

Is real user monitoring active or passive?

Show answer

Passive; synthetic transactions are the active alternative.

Exam Tips

Remember for the exam

  • Synthetic transactions are active; real user monitoring is passive.
  • BAS gives continuous validation of controls.
  • Compliant does not mean secure.