SEC09-BP02 Enforce encryption in transit
Encryption in transit protects data as it moves between systems and across networks you do not control. Enforcing it means requiring secure protocols for sensitive traffic, rejecting weak or outdated ones, and confirming that both endpoints negotiate strong parameters. Your organization's policies, regulatory obligations, and standards define what counts as strong for your workloads.
Desired outcome:
-
You encrypt traffic between your resources and the internet to prevent unauthorized access to data in transit.
-
You encrypt internal traffic within your environment according to your security requirements.
-
Your TLS connections use current protocol versions and cipher suites that provide Perfect Forward Secrecy (PFS), so recorded traffic stays protected even if a key is later exposed.
-
Your services reject deprecated protocols and weak cipher suites.
Common anti-patterns:
-
Teams use deprecated versions of SSL, TLS, or cipher suite components.
-
Public-facing resources accept unencrypted HTTP traffic.
-
X.509 certificates expire without monitoring or replacement.
-
Services use self-signed X.509 certificates for TLS.
-
Cipher suites without Perfect Forward Secrecy (PFS) remain in use.
-
Teams configure cipher suites once and never review them against current standards.
Benefits of establishing this best practice:
-
Data confidentiality and integrity hold during transmission.
-
Eavesdropping and on-path attacks are prevented.
-
Regulatory adherence for data protection improves.
-
Perfect Forward Secrecy preserves the confidentiality of past communications if a key is later exposed.
Level of risk exposed if this best practice is not established: High
Implementation guidance
A service can support HTTPS while still accepting plaintext HTTP on the same port. Unauthorized users or misconfigured clients can then use the plaintext path. Enforcement means refusing the insecure option. A public endpoint that answers on both HTTP and HTTPS lets sensitive data travel unencrypted.
TLS security depends on the protocol version and the negotiated
cipher suite. Older versions of SSL and TLS contain known
weaknesses, and
AWS requires TLS 1.2 or later
Algorithms change, so build for crypto agility. Post-quantum key
agreement requires TLS 1.3, and many AWS service endpoints
negotiate hybrid post-quantum key agreement when the client
supports it.
Migration to post-quantum cryptography
You enforce encryption at the points where traffic enters or
leaves a boundary. AWS API endpoints already require TLS. For your
own public endpoints, you can
redirect HTTP to HTTPS in Amazon CloudFront or on an
Application Load Balancer, and block plaintext with security groups.
For object storage, an
Amazon S3 bucket policy
Internal traffic is where enforcement often stops. Encrypt service-to-service communication scaled to data sensitivity. Enforcement also depends on valid certificates, so monitor expiry and renew before certificates lapse.
Implementation steps
-
Define your encryption requirements: Review your organization's policies, regulatory obligations, and industry standards to set the required protocol versions, cipher suites, and key lengths for data in transit.
-
Enforce encryption for internet-facing services: Configure HTTPS on public endpoints such as Amazon CloudFront and Application Load Balancer, select security policies that prefer TLS 1.3, and redirect or block plaintext HTTP.
-
Enforce TLS for Amazon S3 access: Apply S3 bucket policies that deny requests not sent over TLS, for both uploads and downloads.
-
Encrypt internal traffic to your requirements: Configure TLS for service-to-service traffic within your VPC, scaled to the sensitivity of the data each flow carries.
-
Require TLS for database connections: Configure database services such as Amazon RDS, Amazon Aurora, and Amazon Redshift to require SSL/TLS connections.
-
Protect traffic leaving your network: Review the patterns in the Network-to-Amazon VPC connectivity options to determine the best approach for securely connecting remote networks to your Amazon AWS resources.
-
Provision and renew certificates automatically: Use AWS Certificate Manager
to provision and deploy public TLS certificates, and monitor expiration so certificates renew before they lapse. For a private PKI, use AWS Private Certificate Authority . -
Review protocols and cipher suites on a cadence: Select security policies that prefer modern TLS versions and PFS cipher suites, and re-check these configurations against current standards on a regular schedule.
Resources
Related best practices:
Related documents: