MYTHOSAI

SOC & detection engineering labs / GUIDED EXERCISE

Build a baseline without overfitting

A file server typically has five users each weekday, but payroll processing doubles normal access at month end.

Before you start

No paid tools required. Use this guide with sample data, paper, or an explicitly authorised test environment. Keep a copy of any original configuration and obtain approval before changes.

A scenario worth testing

A file server typically has five users each weekday, but payroll processing doubles normal access at month end. This scenario is an invented teaching example, not a description of an actual breach or test of a named organisation.

MITRE ATT&CK offers detection strategies and data-source concepts; OWASP recommends meaningful security events, including authentication and authorisation failures. In this guide, the purpose is to evaluate a specific decision and its evidence. It does not follow that the scenario is likely in every environment, or that any untested product is vulnerable.

Red team perspective: define the risk

Question to test. What looks unusual only because the model ignored calendar-driven business activity?

Blue team perspective: define the boundary

Defensive decision. Capture working days, planned jobs and known seasonal events before threshold selection.

Safe experiment: make the question measurable

Scope: synthetic records or an explicitly authorised, disposable test environment only. No customer records, live exploit payloads or third-party probing.

  1. State the decision. Describe the asset, who should be authorised, and which fact would refute the initial hypothesis.
  2. Create a safe fixture. Construct the example. Score twelve fictional daily counts with one simple threshold and one calendar-aware threshold.
  3. Evaluate three cases. Use the fictional cases below; identify the permitted case, an adverse case and a plausible exception. Record what evidence distinguishes them.
  4. Write an outcome. Decide whether to allow, deny, escalate or ask for more information. Record the policy owner and one measurable follow-up. Never equate a planned test with a completed live test.

Worked example and expected observations

Illustrative result, not a measured finding: A side-by-side false-alert count plus a description of which genuine anomalies still pass.

Three synthetic cases to classify — examples, not observed incidents
CaseFictional inputDecision to justify
Expected activityKnown nightly backup creates a predictable batch of connectionsExplain the precise reason it is permitted or expected.
Boundary challengeAnomalous burst from new workstation outside baseline windowIdentify the policy, detection or approval that should respond.
Lookalike or exceptionPublic holiday causes normal activity to drop without indicating compromiseIdentify the missing context before making an accusation.

Interpret this example

Start with the expected case: known nightly backup creates a predictable batch of connections. Compare the relevant boundary with the adverse case: anomalous burst from new workstation outside baseline window. The distinction depends on Baseline cohort, period, exclusions and expected seasonal variation, not the alarming appearance of an isolated event.

The third case deliberately resists a snap conclusion: public holiday causes normal activity to drop without indicating compromise. Record which additional fact would change the decision. Document fields actually present in the event source before writing the rule. Threshold tuning cannot compensate for missing telemetry or a failing ingestion path.

Download the three-case CSV exercise (illustrative inputs, not collected production evidence).

Evaluate evidence and failure modes

False confidence to avoid: A perfect score against a tiny synthetic dataset does not predict production performance. Synthetic samples are useful to teach reasoning, not to produce a defensible production precision or recall estimate.

Detection is not simply an enabled rule: it requires a useful data source, tested conditions, alert routing and a response owner. When a log source is missing or a sample is ambiguous, mark the conclusion unverified rather than estimating a success rate from fictional data.

Decide what to improve

Recommended next action: Pilot the rule on representative retained data and publish its evaluation limits. Measure false positives and silent misses with representative cases before claiming operational efficacy.

  • Which exact asset and named owner does this decision concern?
  • Would your evidence include Baseline cohort, period, exclusions and expected seasonal variation?
  • Does the adverse case need blocking, investigation or both?
  • What one controlled follow-up would distinguish the lookalike case from abuse?

Official references and limitations

Primary references explain the underlying control or framework; they do not validate the fictional cases above.

Try the related offline practice workbook, with runnable Python standard-library examples and marked limitations.