MYTHOSAI

Cloud & SaaS security labs / GUIDED EXERCISE

Audit cloud firewall ingress rules

A testing instance has port 22 open to the entire internet even though administration uses a private overlay.

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 testing instance has port 22 open to the entire internet even though administration uses a private overlay. This scenario is an invented teaching example, not a description of an actual breach or test of a named organisation.

NIST CSF 2.0 is a risk-management framework, not a vendor-specific hardening checklist or certification of one cloud product. 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. Does that access path create unnecessary exposure regardless of the strength of the SSH password?

Blue team perspective: define the boundary

Defensive decision. Review source CIDRs, ports, environment, owner and expiration with a safe change window.

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. Evaluate six imaginary ingress rules and mark public, partner-only and private-network access.
  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 before/after policy sheet, management-route test plan and owner approval for narrowing exposure.

Three synthetic cases to classify — examples, not observed incidents
CaseFictional inputDecision to justify
Expected activityAdministrative endpoint accepts only approved VPN rangeExplain the precise reason it is permitted or expected.
Boundary challengeCloud security group exposes management port to 0.0.0.0/0Identify the policy, detection or approval that should respond.
Lookalike or exceptionHealth probe is allowed from provider's documented address setIdentify the missing context before making an accusation.

Interpret this example

Start with the expected case: administrative endpoint accepts only approved VPN range. Compare the relevant boundary with the adverse case: cloud security group exposes management port to 0.0.0.0/0. The distinction depends on CIDR source, port, resource, rule owner and exception expiry, not the alarming appearance of an isolated event.

The third case deliberately resists a snap conclusion: health probe is allowed from provider's documented address set. Record which additional fact would change the decision. Evaluate effective permission for a particular identity, action, resource and condition. An inventory of configured policy does not automatically reveal the effective permission of every principal.

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

Evaluate evidence and failure modes

False confidence to avoid: An unused public rule may still matter; 'no login attempts seen' is not proof that it is safe. Cloud account boundaries, service permissions and logs differ by provider; confirm current official platform documentation.

Cloud permissions, workload identity, networking, audit trails and recovery can be governed by separate accounts or services. 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: Restrict administration ingress and confirm the alternate remote-management route first. Use policy evaluation or a non-production sandbox before narrowing the permissions of a live workload.

  • Which exact asset and named owner does this decision concern?
  • Would your evidence include CIDR source, port, resource, rule owner 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.