Cloud Network Exposure

Cloud Network Exposure

An open database port has no application in the path.

What Is Cloud Network Exposure?

A security group is a firewall, and a database port opened to 0.0.0.0/0 means what it says. The application never sees that traffic, so authentication, authorization, rate limiting and logging never run. You'll scan a production host from outside, find the port answering, connect with a credential, and read personal records out of the table. Then you'll rewrite the inbound rule to allow only the application subnet's CIDR range, prove it with the same probe, and rotate the credential, because that secret is now disclosed.

What You'll Learn in Cloud Network Exposure

Cloud Network Exposure — Training Steps

  1. Scanning for open ports

    Bob does not target companies, he targets open ports. He runs a scanner across a cloud provider's public address ranges looking for one thing: a database or admin port answering from the internet. Today a host in Halbrint's range answers.

  2. Only the firewall was in the way

    An open port is an invitation, not a break-in. The database still wants a login. But teams that assume a database is unreachable from outside often leave it with a weak or default application password, because 'nothing on the internet can even see it.' That assumption is the whole vulnerability. The security group was the only control, and it is wide open.

  3. Connecting straight to the database

    Bob points a database client at the open port and tries the kind of credential these setups are left with. There is no application, no API, no audit log in the path - just Postgres and a password.

  4. Every student on every route

    Bob is in. He reads the table that logistics runs on: the children Halbrint transports, where they live, and who to call.

  5. Which control failed?

    Before the response, one question about what actually went wrong here.

  6. An external monitor flags the port

    Halbrint runs an external attack-surface scan. Overnight it flagged a production database answering from the internet, and it landed in Alice's inbox.

  7. Open the security groups

    Alice opens the cloud console to the VPC security groups for the production account. The database's firewall is one rule table, and one row on it decides who on earth can reach the port.

  8. Find the wide-open rule

    The database security group has one inbound rule that matters, and it is the one the scanner found.

  9. 0.0.0.0/0 is the whole internet

    There it is, in the inbound rules: Postgres on 5432, allowed from 0.0.0.0/0.

  10. Scope the rule to the app subnet

    Alice rewrites the inbound rule so 5432 is reachable only from the app-tier subnet - the one set of hosts that actually needs the database. The public internet loses its route to the port entirely.

Security Framework Coverage

CWE

  • CWE-668 Exposure of Resource to Wrong Sphere
  • CWE-284 Improper Access Control

MITRE ATT&CK

  • T1046 Network Service Discovery
  • T1133 External Remote Services

CIS Controls

  • CIS 12 Network Infrastructure Management

NIST CSF

  • PR.AT-02 Individuals in specialized roles are provided with awareness and training so that they possess the knowledge and skills to perform relevant tasks with cybersecurity risks in mind
  • PR.IR Technology Infrastructure Resilience