Cybersecurity/AWS Cybersecurity papers/AWS Communication hardening guide: Difference between revisions

From Cramsession
Jump to navigationJump to search
✍️ Verified Author: Mflavell • Click to view professional profile & credentials
No edit summary
Line 1: Line 1:
=== Core Concepts ===
=== Core Concepts ===
This post focuses on the funementals of communcation security in the AWS environment focusing the following on securing both the subnet and host through the correct assigmnet of security groups and network access controls.
This post examines the core principles of communication security within the AWS environment, emphasizing the protection of subnets and hosts through the appropriate configuration of security groups and network access control lists. Notably, this design does not incorporate a Web Application Firewall (WAF); in a production environment, the implementation of a WAF is essential.


=== High level network design ===
=== High level network design ===
Line 16: Line 16:


=== Securing the web server ===
=== Securing the web server ===
==== Securing the public subnet ====
The key to securing the public subnet is ensuring the concept of least permission is applied to the NACL (Network Access control lists) governing data flow to the public subnet.
What to include:
* Inbound:
** Port 80 / 443 inbound for HTTP / HTTPS requests
** Port 1024 - 65535 - Empirical
** Deny all other inbound ports
* Outbound:
** All traffic - allow
===== Why this approach works =====
Only the critical ports required for the web servers on the public subnet are open (80 and 443). As NACL's are stateless the empirical ports are included. As it should, SSH access to servers on the public subnet is caught by the "deny all" rule. SSH access to these servers must be performed through SSM.

Revision as of 04:06, 5 November 2026

Core Concepts

This post examines the core principles of communication security within the AWS environment, emphasizing the protection of subnets and hosts through the appropriate configuration of security groups and network access control lists. Notably, this design does not incorporate a Web Application Firewall (WAF); in a production environment, the implementation of a WAF is essential.

High level network design

[Internet]
    |
  [IGW]
    |
    +------ Public subnet ---+
    |                        |
 [NAT GW]               [Webserver]
    |                        |   |
    +---+- Private Subnet ---+   +---[Gateway]
        |
    [Private server]

Securing the web server

Securing the public subnet

The key to securing the public subnet is ensuring the concept of least permission is applied to the NACL (Network Access control lists) governing data flow to the public subnet.


What to include:

  • Inbound:
    • Port 80 / 443 inbound for HTTP / HTTPS requests
    • Port 1024 - 65535 - Empirical
    • Deny all other inbound ports
  • Outbound:
    • All traffic - allow
Why this approach works

Only the critical ports required for the web servers on the public subnet are open (80 and 443). As NACL's are stateless the empirical ports are included. As it should, SSH access to servers on the public subnet is caught by the "deny all" rule. SSH access to these servers must be performed through SSM.