MYTHOSAI

Network segmentation & traffic labs / GUIDED EXERCISE

Model outbound egress filtering

A test server should reach software repositories and a monitoring endpoint, but not arbitrary destinations.

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 test server should reach software repositories and a monitoring endpoint, but not arbitrary destinations. This scenario is an invented teaching example, not a description of an actual breach or test of a named organisation.

MITRE ATT&CK identifies multiple network-relevant data sources, but log availability varies by product and configuration. 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. Could an exploited application use unrestricted outbound access to contact unknown services?

Blue team perspective: define the boundary

Defensive decision. Document required destinations and protocols, then evaluate a limited allowlist with logging and expiry.

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. Make six synthetic connection requests and apply a policy that permits documented update and monitoring paths.
  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: An allow/deny table with service owner and two false-block checks for routine maintenance.

Three synthetic cases to classify — examples, not observed incidents
CaseFictional inputDecision to justify
Expected activityServer connects to approved update endpoint over TLSExplain the precise reason it is permitted or expected.
Boundary challengeLab process connects to unexpected external destination and logs a blockIdentify the policy, detection or approval that should respond.
Lookalike or exceptionDNS queries to approved resolver are independent of HTTPS allowlistIdentify the missing context before making an accusation.

Interpret this example

Start with the expected case: server connects to approved update endpoint over TLS. Compare the relevant boundary with the adverse case: lab process connects to unexpected external destination and logs a block. The distinction depends on Process identity, destination, port, rule match, and change ticket, not the alarming appearance of an isolated event.

The third case deliberately resists a snap conclusion: dNS queries to approved resolver are independent of HTTPS allowlist. Record which additional fact would change the decision. Separate route availability, transport reachability and service authorisation. An allowed DNS or monitoring path does not mean arbitrary connections should cross the same boundary.

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

Evaluate evidence and failure modes

False confidence to avoid: IP-only allowlists can break cloud endpoints whose addresses change; destinations need maintained ownership. Read-only traffic checks do not reveal every route and may not cover services beyond the one tested.

An apparently isolated network can still have permitted routes, shared management systems or cloud-dependent traffic paths. 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: Use service-aware rules where available and review denied traffic before enforcement. Evaluate a named source–destination–service flow rather than claiming that a whole network is protected.

  • Which exact asset and named owner does this decision concern?
  • Would your evidence include Process identity, destination, port, rule match, and change ticket?
  • 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.