Skip to content

Lesson 1 of 9 · 22m

Scope Before Servers: Designing From the Rules of Engagement

Infrastructure is a scoped control system, not a pile of VPS hosts — derive every design choice from authorization, safety, and measurement goals.

The worst red team infrastructure incident I ever cleaned up was not a domain being burned. It was a team that could not prove which host had touched a production payment subnet during an authorized exercise. The servers worked beautifully; the governance did not. Infrastructure starts with the rules of engagement, because every later decision — hosting, naming, logging, redirection, even password rotation — exists to satisfy them.

Write the operating picture first

Before anyone rents a box, document five things in the operations plan:

operation:      q3-retail-phishing-sim
owner:          enterprise security / red team
authorization:  ROE-2024-118, signed 2024-09-12
window:         2024-10-07 09:00 UTC through 2024-10-18 17:00 UTC
in scope:       corp users in pilot group; mail perimeter; lab egress
out of scope:   payment VLANs, customer production data, third-party brands
success:        measurable reporting rate, controlled credential capture only

That paragraph drives the architecture. If success is reporting behavior, you do not need stealth beyond realistic pretext delivery. If third-party brands are out of scope, your infrastructure must never clone them. If the window is ten days, durability means controlled availability, not permanent stealth.

Infrastructure is a control system

Think in control loops rather than assets:

operator -> controller -> tasking channel -> execution host
                 |                |
                 v                v
             audit log      collection -> evidence store

The controller is privileged and small. Execution hosts are disposable. Evidence storage is append-only or tightly versioned. Redirectors are expendable filters, not places where identity or data accumulate. When you draw it this way, dangerous concentration becomes obvious: a single server that tasks implants, stores credentials, and sends phishing mail is not efficient — it is one compromise away from losing the operation.

The authorization boundary must be machine-checkable

Put scope into configuration where possible, not just prose. Egress allowlists, DNS views, mail recipient filters, and cloud firewall rules can all encode the boundary:

variable "allowed_target_ranges" {
  type    = list(string)
  default = ["198.51.100.0/24", "203.0.113.25/32"]
}

Documentation tells humans what should happen; enforcement tells systems what may happen. You want both.

Design review questions

Ask these before building anything:

  • What event would make us stop immediately, and who can call that stop?
  • Which data classes may be collected, and where do they rest?
  • How do we distinguish exercise traffic from real intrusion traffic during a live incident?
  • What is the maximum lifetime of each asset?
  • What evidence must exist for a defender or auditor to reconstruct the timeline?

Field notes

  • "Authorized" is not a property of a domain or server; it is a property of a specific action at a specific time.
  • If the success metrics do not require user harm, design so user harm is impossible rather than merely unlikely.
  • A redaction plan is part of scope. Capturing a real password when the exercise only needed a synthetic token is an operational failure.
  • Treat legal, privacy, and incident-response stakeholders as infrastructure dependencies. If they cannot be reached in an emergency, you are not ready.

Was this lesson helpful?

Sign in to rate