MYTHOSAI

Red team × blue team / GUIDED EXERCISE

Design a detection with a negative control

A rule watches a late-night privileged login but has been producing noise from approved automation.

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 rule watches a late-night privileged login but has been producing noise from approved automation. This scenario is an invented teaching example, not a description of an actual breach or test of a named organisation.

ATT&CK describes observed adversary tactics and techniques; a local detection still needs telemetry and a validation exercise. 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. Can the detector recognise an unauthorised privilege use without firing on the nightly backup task?

Blue team perspective: define the boundary

Defensive decision. Include service-account identity, change window and asset context, while retaining alerts for unknown actors.

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. Create four suspicious and four authorised fictional records; write pseudocode conditions and run them through a handwritten truth table.
  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 confusion matrix showing which four cases generated alerts and which authorised cases were suppressed.

Three synthetic cases to classify — examples, not observed incidents
CaseFictional inputDecision to justify
Expected activityBackup automation service signs in on its scheduled host and windowExplain the precise reason it is permitted or expected.
Boundary challengeUnknown account obtains privilege outside the approved windowIdentify the policy, detection or approval that should respond.
Lookalike or exceptionNamed backup service retries once after scheduled maintenanceIdentify the missing context before making an accusation.

Interpret this example

Start with the expected case: backup automation service signs in on its scheduled host and window. Compare the relevant boundary with the adverse case: unknown account obtains privilege outside the approved window. The distinction depends on Service identity, host, operation, alert decision, and exception expiry, not the alarming appearance of an isolated event.

The third case deliberately resists a snap conclusion: named backup service retries once after scheduled maintenance. Record which additional fact would change the decision. State the observable behaviour, not an imagined attacker identity. A detector firing is not proof that prevention worked; each has to be validated separately.

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

Evaluate evidence and failure modes

False confidence to avoid: Suppressing every event from a known server hides misuse of that same server; exceptions need scope and expiry. A facilitated tabletop tests decisions, not the performance of real prevention or recovery systems.

Decide what to improve

Recommended next action: Narrow the exception to a named automation identity and a specific permitted action. Test one hypothesis at a time, record expected observation and record what the test cannot establish.

  • Which exact asset and named owner does this decision concern?
  • Would your evidence include Service identity, host, operation, alert decision, and exception expiry?
  • 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.