WAF++ WAF++
Back to WAF++ Homepage

WAF-SUS-080 – Network & Data Transfer Efficiency

Beschreibung

Alle Datentransfers MÜSSEN für minimale Netzwerkbelastung ausgelegt sein. CDN MUSS für alle user-facing statischen und semi-statischen Inhalte genutzt werden. HTTP-Kompression (gzip/brotli) MUSS auf allen CloudFront-Distributions aktiviert sein (compress = true). VPC Endpoints MÜSSEN für AWS-Service-Kommunikation genutzt werden (S3, DynamoDB mindestens). Cross-Region-Transfers MÜSSEN begründet sein. Azure CDN-Endpoints MÜSSEN is_compression_enabled = true haben.

Rationale

Netzwerkgeräte (Switches, Router, Unterseekabel) verbrauchen Energie proportional zum Datenvolumen. CDN-Kompression reduziert Text-Payloads um 60–80% und eliminiert Long-Haul-Transfers für gecachte Inhalte. VPC Endpoints halten AWS-Service-Traffic im AWS-Backbone — weniger Netzwerk-Hops, keine Internet-Gateway-Energie. Same-Region Co-location vermeidet Cross-Region-Energie-Overhead. Diese Maßnahmen kombinieren Sustainability-Gewinne mit direkten Kosteneinsparungen (Egress-Gebühren).

Bedrohungskontext

Risiko Beschreibung

Unkomprimierte CDN-Delivers

Jeder User erhält unkomprimierte HTML/JSON-Payloads — 5–10× höherer Netzwerk-Energiebedarf.

Internet-Gateway-Egress für AWS-Services

S3, DynamoDB, CloudWatch-Calls über Internet-Gateway statt VPC Endpoint verursachen unnötige Netzwerk-Energie und Egress-Kosten.

Fehlende Cross-Region-Governance

Unbeabsichtigte Cross-Region-Replikation durch fehlende S3-Bucket-Policies oder falsch konfigurierte Multi-Region-Architectures.

Maximale Payload-Größen ohne Filterung

REST-APIs, die immer alle Felder zurückgeben statt nur angefragter Felder — unnötiger Transfer für jede Anfrage.

Anforderung

  • CDN MUSS für alle user-facing Anwendungen konfiguriert sein

  • CloudFront MUSS compress = true auf allen Cache Behaviors haben

  • Azure CDN MUSS is_compression_enabled = true haben

  • VPC Endpoints für S3 und DynamoDB MÜSSEN in allen produktiven VPCs vorhanden sein

  • HTTP-Kompression MUSS auf allen Load Balancern und API Gateways aktiviert sein

  • Cross-Region-Transfers MÜSSEN monatlich auf Notwendigkeit geprüft werden

Implementierungsanleitung

  1. CDN-Deployment: CloudFront / Azure CDN / Cloud CDN für alle user-facing Properties

  2. Kompression aktivieren: compress = true in CloudFront; is_compression_enabled = true in Azure CDN

  3. VPC Endpoints: S3 + DynamoDB Gateway Endpoints (kostenlos); Interface Endpoints für SSM, ECR, CloudWatch

  4. Cache-Control-Headers: Cache-Control: max-age=86400 für statische Assets; immutable für versionierte Files

  5. API Field Filtering: GraphQL-Projection oder OData $select für REST-APIs einführen

  6. Monatlicher Transfer-Review: AWS Cost Explorer Egress-Kosten nach Region auswerten; Cross-Region-Spikes untersuchen

Reifegrad-Abstufung

Level Bezeichnung Kriterien

1

Keine Optimierung

Kein CDN; keine Kompression; Internet-Gateway für alle AWS-Services; kein Transfer-Monitoring.

2

Basis CDN + Kompression

CDN für Haupt-Produkt; Kompression auf wichtigsten APIs; keine VPC Endpoints.

3

Systematisch mit VPC Endpoints

CDN überall; Kompression auf allen APIs; VPC Endpoints S3+DynamoDB; monatlicher Review.

4

Transfer-Budgets per Workload

Transfer-Budgets definiert; API-Payload-Profiling im CI; Cross-Region begründungspflichtig.

5

Netzwerk-CO₂ in SCI

Network-Emissionsfaktor (gCO₂e/GB) getrackt; Zero Cross-Region ohne ADR; Netzwerk-Effizienz in SCI.

Terraform Checks

waf-sus-080.tf.aws.cloudfront-compression

Prüft: CloudFront Distributions haben compress = true.

Compliant Non-Compliant
resource "aws_cloudfront_distribution" "web" {
  default_cache_behavior {
    allowed_methods        = ["GET", "HEAD"]
    cached_methods         = ["GET", "HEAD"]
    target_origin_id       = "web-origin"
    viewer_protocol_policy = "redirect-to-https"
    compress               = true
  }
}
resource "aws_cloudfront_distribution" "web" {
  default_cache_behavior {
    allowed_methods        = ["GET", "HEAD"]
    cached_methods         = ["GET", "HEAD"]
    target_origin_id       = "web-origin"
    viewer_protocol_policy = "redirect-to-https"
    compress               = false
    # WAF-SUS-080 Violation: unkomprimierte Delivers
  }
}

Remediation: compress = true auf alle cache_behavior und default_cache_behavior Blöcke setzen. CloudFront komprimiert automatisch gzip/brotli-fähige Content-Types.


waf-sus-080.tf.aws.vpc-endpoint-s3

Prüft: VPC hat S3- und DynamoDB-Gateway-Endpoints.

Compliant Non-Compliant
resource "aws_vpc_endpoint" "s3" {
  vpc_id            = aws_vpc.main.id
  service_name      = "com.amazonaws.${var.region}.s3"
  vpc_endpoint_type = "Gateway"
  route_table_ids   = aws_route_table.private[*].id
}
resource "aws_vpc_endpoint" "dynamodb" {
  vpc_id            = aws_vpc.main.id
  service_name      = "com.amazonaws.${var.region}.dynamodb"
  vpc_endpoint_type = "Gateway"
  route_table_ids   = aws_route_table.private[*].id
}
resource "aws_vpc" "main" {
  cidr_block = "10.0.0.0/16"
  # Keine VPC Endpoints
  # WAF-SUS-080 Warning: AWS-Service-Traffic über Internet-GW
}

Remediation: S3- und DynamoDB-Gateway-Endpoints erstellen (kostenlos). Alle Route Tables der privaten Subnets zuordnen.

Evidenz

Typ Pflicht Beschreibung

IaC

✅ Pflicht

CDN-Konfiguration (CloudFront, Azure CDN, Cloud CDN) für user-facing Anwendungen.

IaC

✅ Pflicht

VPC-Endpoint-Konfiguration für AWS-Services (S3, DynamoDB mindestens).

Config

Optional

HTTP-Response-Headers mit Content-Encoding: gzip oder br auf API-Responses.

Process

Optional

Monatlicher Data-Transfer-Cost-Report mit Cross-Region-Breakdown.

Regulatorisches Mapping

Framework Controls

EU CSRD (Corporate Sustainability Reporting Directive)

ESRS E1 – Climate change; ESRS G1 – Governance; ESRS S1 – Own workforce

GHG Protocol (Corporate Accounting and Reporting Standard)

Scope 1 – Direct emissions; Scope 2 – Indirect emissions from purchased energy; Scope 3 – Other indirect emissions

Green Software Foundation (GSF)

Software Engineering Principles – Carbon-aware computing; Carbon accounting standards

SBTi (Science Based Targets initiative)

Target setting methodology; Validation and verification; Corporate target standards

ISO 14001:2015

Clause 6.1 – Actions to address risks and opportunities; Clause 8.1 – Operational planning and control

ISO 14064-1:2018

Clause 5 – GHG inventory quantification; Clause 6 – GHG inventory validation and verification

GDPR

Art. 28 – Processor obligations; Art. 32 – Security of processing

CSRD

ESRS E1-6 – Emissions; ESRS G1-3 – Governance

NIST SP 800-53

AU-1 – Audit and accountability policy; AU-2 – Audit events; AU-3 – Content of audit records

NIST CSF 2.0

GV.PO – Policy; DE.CM – Continuous monitoring; RV.RP – Recovery planning

TISAX

Information security – Sustainability; Prototype protection – Environmental protection

ANSSI SecNumCloud

Domain – Environmental impact

BIO

BIO – Milieueffecten

ENS High

op.exp.9 – Gestión del impacto ambiental

UK NCSC CAF

B6 – Environmental impact

CMMC 2.0

AU.L2-3.8.1 – Automated audit logging

IRAP

ISM – Environmental monitoring

CCCS PBMM

AU-2 – Audit events

MAS TRM

Ch.12 – Outsourcing risk management

ISMAP

Sustainability and environmental impact

FISC

Operational measures – Environmental impact

Verwandte Controls