0Pricing
AWS Security Academy · Lesson

Why Bastion Hosts Add Risk

See how jump boxes and open ports widen your attack surface.

Why Bastion Hosts Add Risk is a free AWS Security Academy lesson on CoddyKit — lesson 1 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the AWS Security Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

The Old Way In

To administer servers inside a private network, teams traditionally used a bastion host (also called a jump box): a hardened, internet-facing instance you SSH into first, then hop to internal machines. While common, this pattern widens your attack surface in several ways the SCS-C02 exam expects you to recognize and eliminate.

What a Bastion Host Is

A bastion host sits in a public subnet with a port (usually 22 for SSH or 3389 for RDP) open to the internet or a corporate IP range. Administrators connect to it, then reach private instances. It is the single guarded door into the environment, which makes it both critical and a prime target.

Open Ports Are Targets

The biggest risk is the open inbound port. Any internet-reachable SSH or RDP port is constantly scanned and brute-forced by attackers. Even with key-based auth, an exposed port invites attacks, and a single misconfiguration or unpatched vulnerability on the bastion can hand attackers a foothold into your whole network.

Standing SSH Keys

Bastion access usually relies on long-lived SSH key pairs distributed to administrators. These keys can be copied, lost, or left on former employees' laptops. Rotating them across a fleet is painful, and there is rarely a clean record of which key opened which session, undermining accountability.

Weak Auditing

Tracking who did what through a bastion is hard. Native SSH gives little centralized logging of the commands run on downstream hosts. Investigating an incident means stitching together host logs, and a compromised bastion could let an attacker erase its own traces, exactly the visibility gap auditors flag.

Patching Burden

The bastion itself is an instance you must continuously patch and harden. If it falls behind on updates, it becomes the weakest link. Maintaining a highly available, always-secure jump box is ongoing operational overhead that adds cost and risk without delivering business value.

A Single Point of Failure

Because all administrative traffic funnels through the bastion, it is both a single point of failure and a high-value target. If it goes down, admins lose access; if it is breached, the attacker gains a launching pad. Concentrating risk in one exposed host is an architecture the exam wants you to avoid.

The Modern Alternative

AWS Systems Manager (SSM) Session Manager removes the need for bastions entirely. It provides shell access to instances through the SSM service with no open inbound ports, no public IP, and no SSH keys. Access is controlled by IAM and every session is logged, addressing every weakness of the bastion model at once.

No Inbound, Outbound Only

SSM works because the instance runs an SSM Agent that makes an outbound connection to the SSM service; nothing inbound is opened. Security groups can deny all inbound traffic and administration still works. This inversion, outbound instead of inbound, is the key insight that makes bastions obsolete.

Why This Matters

On the exam, any scenario describing open SSH/RDP ports, distributed key pairs, or a jump box almost always has a better answer: replace the bastion with Session Manager. It shrinks the attack surface, centralizes access control in IAM, and produces a full audit trail, the secure, least-privilege design AWS recommends.

Putting It Together

A bastion host exposes an inbound port, depends on standing SSH keys, audits poorly, and must be constantly patched, making it a concentrated, attractive target. The recommended replacement is SSM Session Manager, which grants IAM-controlled, fully logged shell access with no open ports, public IP, or keys at all.

Quick Check

Test why bastions are risky.

Recap

A bastion host opens an inbound SSH/RDP port, relies on long-lived SSH keys, audits poorly, and demands constant patching, concentrating risk in one exposed target. SSM Session Manager replaces it with IAM-controlled, fully logged access over an outbound agent connection, needing no open ports, public IP, or keys.

Frequently asked questions

Is the “Why Bastion Hosts Add Risk” lesson free?

Yes — the full text of “Why Bastion Hosts Add Risk” is free to read here on the web, and the AWS Security Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the AWS Security Academy course, upgrade to CoddyKit PRO.

What will I learn in “Why Bastion Hosts Add Risk”?

See how jump boxes and open ports widen your attack surface. You practise AWS Security Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start AWS Security Academy?

No prior experience is required. AWS Security Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 1 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Why Bastion Hosts Add Risk” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this AWS Security Academy lesson?

Yes. Every AWS Security Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Why Bastion Hosts Add Risk
  2. Session Manager Without Open Ports
  3. Auditing and Logging Admin Sessions
  4. Hardening Endpoints and Patch Manager
← Back to AWS Security Academy