Join our Newsletter — 33% off our NHI Course
Home› Guides› Load Balancer Security Guide: TLS, Headers and Management…
Guide Network Security

Load Balancer Security Guide: TLS, Headers and Management Plane Hardening

← All guides
By NHI Mgmt Group, edited by Lalit Choda Updated 26 October 2026 14 min read
On this page

Load balancers terminate TLS, rewrite headers and hold the keys to every application behind them, yet they are often configured once at launch and never reviewed again. Hardware application delivery controllers, software balancers such as HAProxy and NGINX, Kubernetes ingress controllers and cloud services such as AWS Application Load Balancer and Azure Application Gateway all share three security surfaces: the TLS edge, the request and header handling on the data plane, and the management plane that controls them. Several of the most exploited vulnerabilities of recent years sit in this tier. This guide covers each surface with concrete settings, a rollout approach, detection and metrics, and is written for network, platform and cloud engineers who run or review load balancers.

Key takeaways

  • The management plane is the crown jewel. F5 BIG-IP CVE-2022-1388 (missing authentication) and CVE-2023-46747 (Configuration Utility authentication bypass) are both in CISA KEV with known ransomware use; management interfaces must never be reachable from the internet.
  • Defaults are not always safe. AWS documents that listeners created through the CLI or CloudFormation default to ELBSecurityPolicy-2016-08, which still allows TLS 1.0 and 1.1, while the console default allows only TLS 1.2 and 1.3.
  • Header handling decides what backends believe. X-Forwarded-For processing, Host header preservation and invalid header handling are explicit settings on modern balancers; choose them deliberately.
  • Sessions issued at the edge are credentials. CitrixBleed showed that patching a gateway does not revoke stolen session tokens; persistence and authentication sessions must be cleared.
  • Logs and deletion protection are off by default on some platforms. AWS ALB access logs and deletion protection both default to false, so turn them on in your templates.

Load balancer types and their security surface

TypeExamplesSeesSecurity strengthsSecurity limits
Layer 4 (TCP/UDP)AWS Network Load Balancer, HAProxy in TCP mode, IPVSAddresses, ports, optionally TLS if terminatingSmall parsing surface, high throughput, can pass TLS through to backends end to endNo HTTP inspection, header controls or WAF; client address needs PROXY protocol or source preservation
Layer 7 (HTTP)AWS ALB, Azure Application Gateway, Google Cloud external Application Load Balancer, NGINX, EnvoyFull HTTP requests after TLS terminationHeader normalisation, routing rules, WAF integration, authentication offloadHolds TLS keys, larger parsing surface, desync and Host header risks
Application delivery controllerF5 BIG-IP, Citrix NetScaler ADCL4 to L7 plus gateway, VPN and SSO functionsRich policy, iRules or scripting, centralised TLSLarge codebase with a history of KEV-listed flaws; management plane exposure is high impact
Kubernetes ingress / gatewayingress-nginx, Gateway API implementationsHTTP for cluster servicesConfiguration as code, per-route policyAnnotations and snippets can inject configuration; controller service account is often broad
Global / DNS-basedGSLB, cloud global load balancers, CDN front endsDNS queries or edge HTTPAbsorbs volumetric attacks, regional failoverOrigin bypass if backends accept traffic from anywhere

A layer 7 balancer is a reverse proxy, so the header trust and routing rules in the Proxies and Forward vs Reverse Proxy Security Guide apply; this guide focuses on what is specific to balancers and their management.

TLS termination, policies and certificates

NIST SP 800-52 Rev. 2 requires TLS 1.2 with approved cipher suites for government servers and set 1 January 2024 for TLS 1.3 support; the publication is currently under review, so check for a revision. Cloud balancers express this as named policies.

PlatformPolicy settingWhat to chooseWatch out for
AWS ALB / NLBListener security policyELBSecurityPolicy-TLS13-1-2-Res-PQ-2025-09 (AWS's general recommendation, TLS 1.3 and 1.2 with hybrid post-quantum key exchange); FIPS variants where requiredCLI, CloudFormation and CDK default to ELBSecurityPolicy-2016-08 (TLS 1.0 to 1.2); the backend policy is derived from the listener policy and cannot be set directly
Azure Application GatewaySSL policyAppGwSslPolicy20220101 or AppGwSslPolicy20220101S (TLS 1.2 minimum, 1.3 enabled), V2 SKUs onlyOlder predefined policies allow TLS 1.0 and 1.1; Microsoft states support for TLS 1.0 and 1.1 ended on 31 August 2025; backend TLS version and ciphers cannot be customised
Self-managed (HAProxy, NGINX, ADC)ssl-min-ver, ssl_protocols, cipher profilesTLS 1.2 minimum with forward-secret AEAD suites, TLS 1.3 enabledProfiles copied from old templates; separate client-side and server-side profiles on ADCs drift apart
  • End-to-end or re-encrypt: terminating TLS at the balancer and sending plaintext to targets leaves credentials readable on the internal network (T1557). Re-encrypt to targets and, on self-managed balancers, verify the backend certificate (verify required with a ca-file in HAProxy, proxy_ssl_verify on in NGINX). For workloads that must hold their own keys, use layer 4 TLS passthrough.
  • Keys in managed stores: import certificates into the cloud certificate service or a key vault reference, or an HSM on ADCs, rather than files on disk. Restrict who can export them.
  • Automate renewal: balancers are where expired certificates cause outages. With public TLS certificate lifetimes falling towards 47 days, renewal must be automated. See the Certificate Expiry Outages and 47-Day TLS Certificates Guide.
  • HSTS and redirects: redirect port 80 to 443 at the balancer and set Strict-Transport-Security there if applications do not. See the How TLS Works Guide for the handshake background.

Header handling and request hygiene

AWS exposes the header decisions as named ALB attributes, which makes a useful checklist for any platform.

Attribute (AWS ALB)DefaultRecommended stanceWhy
routing.http.desync_mitigation_modedefensivedefensive, or strictest where clients are well behavedControls handling of requests that pose an HTTP desync risk; monitor mode only logs
routing.http.drop_invalid_header_fields.enabledfalsetrue unless an application depends on non-conforming namesRemoves header names that do not match [-A-Za-z0-9]+ before they reach targets
routing.http.xff_header_processing.modeappendappend at the first trusted hop; remove where targets must not see client addressespreserve passes client-supplied values unchanged
routing.http.preserve_host_header.enabledfalseEnable only if the target validates Host against an allowlistHost header attacks such as password reset poisoning rely on unvalidated Host values
waf.fail_open.enabledfalseKeep false for sensitive applicationstrue lets requests reach targets when the WAF cannot be reached
routing.http2.enabledtrueKeep, with a patched platformHTTP/2 Rapid Reset (CVE-2023-44487, in CISA KEV) showed balancers must be patched for protocol-level DoS
  • Self-managed equivalents: in HAProxy, set option forwardfor with http-request del-header X-Forwarded-For before it at the edge so client values are replaced; in NGINX use proxy_set_header X-Forwarded-For $remote_addr at the first hop rather than $proxy_add_x_forwarded_for.
  • PROXY protocol trust: accept PROXY protocol only on listeners reachable solely from the layer 4 balancer (accept-proxy in HAProxy, listen ... proxy_protocol with set_real_ip_from in NGINX), otherwise clients can forge their source address.
  • Timeouts and limits: ALB defaults to a 60 second idle timeout and 3,600 second client keep-alive; on self-managed balancers set header, body and request timeouts (timeout http-request in HAProxy) to bound slow request attacks.
  • Origin lock: targets should accept traffic only from the balancer (security groups referencing the balancer, private subnets, or a shared secret header from a CDN), otherwise attackers bypass the WAF and rate limits by hitting the origin directly.

Desync is covered in depth in the HTTP Request Smuggling Guide, and edge request filtering in the Web Application Firewall Guide.

Management plane hardening

Exploited ADC vulnerabilities cluster in management functions: F5 BIG-IP CVE-2020-5902 in the Traffic Management User Interface, CVE-2022-1388 (missing authentication, in the iControl REST interface) and CVE-2023-46747 in the Configuration Utility. All three are in the CISA Known Exploited Vulnerabilities catalogue.

  • Isolate management: bind web UIs, REST APIs and SSH to a dedicated management interface on an isolated network reached through a jump host or privileged access workstation. Do not expose the configuration utility on self IPs or data plane listeners.
  • Authenticate administrators centrally: use the directory or identity provider with MFA, role-based access (read-only, operator, administrator) and per-person accounts. Keep built-in root accounts such as nsroot or admin as vaulted break-glass credentials. See the Privileged Access Management Guide.
  • Control cloud APIs: in the cloud, the management plane is the provider API. Restrict actions such as elasticloadbalancing:ModifyListener, certificate changes and attribute changes to deployment pipelines, enable deletion_protection.enabled, and alert on listener policy downgrades.
  • Configuration as code and drift detection: keep balancer configuration in version control, review changes, and compare running configuration against it. On ingress controllers, restrict configuration snippet annotations, which can inject arbitrary proxy configuration.
  • Patch to KEV deadlines: subscribe to vendor advisories, track internet-facing balancers separately, and plan maintenance windows using high availability pairs so patching is not deferred.
  • Back up and protect configuration exports: ADC configuration archives contain private keys and secrets; encrypt and restrict them.

See the Edge Device Security Guide for the wider appliance programme.

Sessions, persistence and identity at the balancer

  • Persistence cookies: sticky-session cookies should carry no user data, be set Secure and HttpOnly, and be scoped to the application host. They identify a backend, not a user, and must not be used for authorisation.
  • Authentication offload: when the balancer authenticates users (OIDC actions on ALB, AAA virtual servers on NetScaler, Access Policy Manager on BIG-IP), its session cookie is a bearer credential. Set short lifetimes and plan for mass revocation. After CitrixBleed, Citrix advised commands such as kill aaa session -all and clear lb persistentSessions after patching, because stolen cookies stayed valid.
  • Appliance administrator tokens: CitrixBleed 2 (CVE-2025-5777) leaked memory that, in researcher testing, included a session token for the nsroot administrator; rotate administrator credentials after any memory disclosure.
  • Machine identities the balancer holds: TLS keys, client certificates for backend mTLS, ingress controller service accounts and cloud roles for certificate retrieval are non-human identities. Scope them and assign owners. See the Non-Human Identity (NHI) Guide.

Availability and DDoS resilience

  • Health checks: use dedicated, unauthenticated health endpoints that reveal nothing sensitive, and do not let a health check path bypass authentication for real content.
  • Connection limits and rate limiting: set per-client connection and request rate limits (stick tables in HAProxy, limit_req in NGINX, WAF rate rules on cloud balancers) to blunt T1499 endpoint DoS. See the Rate Limiting and API Abuse Guide.
  • Volumetric attacks: a balancer is not a DDoS scrubbing service; network floods (T1498) need upstream protection. See the DDoS Protection Guide.
  • Fail closed or open by design: decide per application whether WAF, authentication or backend failures should block or allow traffic, and document it.

Choosing an approach

  • Managed cloud balancer vs self-managed ADC: managed services remove appliance patching and management interface exposure, leaving IAM and configuration as your surface; ADCs suit complex on-premises estates but need a dedicated patch and management network discipline.
  • TLS termination vs passthrough: terminate when you need WAF, header controls or routing on paths; pass through when regulatory or trust requirements demand keys stay on the workload, accepting less edge visibility.
  • Small organisations: prefer a managed balancer with the recommended TLS policy, access logs on, deletion protection on and targets reachable only from the balancer.
  • Large organisations: publish a balancer baseline per platform, enforce it with policy as code (for example AWS Config rules or Azure Policy), and run a single inventory of every listener and certificate.

Implementation: a phased rollout

  1. Discover: enumerate every balancer, listener, TLS policy, certificate, attribute set and management endpoint across clouds and data centres. Scan external ranges for exposed management ports and UIs.
  2. Close management exposure first: move admin interfaces off public and data plane addresses, enforce MFA and central accounts, and vault built-in root credentials.
  3. Turn on logs: enable access and connection logs and send them to the SIEM before changing TLS or header behaviour, to measure impact.
  4. TLS policy uplift: use logs (on ALB the optional x-amzn-tls-version header or access log TLS fields) to find clients on old versions, notify owners, then move listeners to the target policy one application at a time.
  5. Header and desync settings: set desync mitigation to monitor in staging to see classification, then defensive or strictest; enable dropping invalid headers after confirming no application depends on them.
  6. Origin lock and backend TLS: restrict target security groups to the balancer and enable re-encryption with verification.
  7. Rollback: apply changes through infrastructure as code with the previous version ready to re-apply, test on a canary listener or weighted target group, and define error-rate thresholds that trigger rollback.

Detection and measurement

Monitor management logins and configuration changes (failed logins, new admin accounts, iRule or policy changes outside change windows), cloud API events that change listeners, certificates or attributes, spikes in 4xx responses from desync or invalid header handling, unknown Host values, one session cookie seen from several source addresses, and traffic reaching targets directly rather than through the balancer.

MetricWhat it showsTarget
Management interfaces reachable from the internetManagement plane exposureZero
Listeners on a policy allowing TLS 1.0 or 1.1TLS baseline complianceZero, or documented exceptions with an end date
Balancers with access logging and deletion protection enabledLogging and change safety100%
Days from KEV listing to patch on internet-facing ADCsExposure windowWithin the KEV due date or stricter SLA
Targets reachable only through the balancerOrigin lock coverage100% of public applications
Certificates renewed automaticallyOutage and key hygiene riskRising to 100%

Common failure patterns

  • Management UI on the internet: configuration utilities and REST APIs exposed on public addresses turned F5 and Citrix flaws into mass exploitation events.
  • Template defaults: listeners created through infrastructure as code without a policy argument silently get a legacy TLS policy.
  • Patching without revoking: after gateway memory disclosures, stolen AAA and persistence sessions remained usable until killed.
  • Preserving client headers: passing client-supplied X-Forwarded-For or Host values unchanged lets attackers spoof addresses or poison links.
  • Origin bypass: targets with public addresses or open security groups let attackers skip the WAF and rate limits entirely.
  • WAF fail open by default habit: enabling fail open for availability without deciding per application removes protection during the incidents when it matters.

Framework mapping

FrameworkReferenceHow it applies to load balancers
NIST CSF 2.0PR.IR-01, PR.DS-02, PR.PS-01, PR.AA-05, DE.CM-01Network protection, data in transit, configuration, administrator access, monitoring
NIST SP 800-53 Rev. 5SC-5, SC-7, SC-8, SC-12, SC-17, SC-23, AC-17, CM-6, AU-2, SI-4DoS protection, boundary, TLS, keys and certificates, session authenticity, remote administration, configuration, logging
CIS Controls v8.14, 12, 13Secure configuration, network infrastructure management, network monitoring and defence
ISO/IEC 27001:2022 Annex AA.8.9, A.8.20, A.8.21, A.8.24, A.8.15Configuration management, networks security, network services, cryptography, logging
MITRE ATT&CK v20T1190, T1078, T1557, T1498, T1499Exploiting the balancer, using stolen sessions or admin accounts, interception, denial of service

Practitioner checklist

  • Inventory every balancer, listener, TLS policy, certificate and management endpoint with an owner.
  • Ensure no management interface, configuration utility or REST API is reachable from the internet or data plane addresses.
  • Enforce MFA, central accounts and role-based access for administrators, and vault built-in root accounts.
  • Set an explicit TLS policy on every listener (TLS 1.2 minimum, 1.3 enabled) in templates, not only in the console.
  • Re-encrypt to targets with certificate verification, and lock targets so they accept traffic only from the balancer.
  • Review header settings: forwarding header processing, Host preservation, invalid header dropping and desync mitigation.
  • Enable access logs, connection logs where available, and deletion protection; alert on listener and certificate changes.
  • Patch internet-facing balancers within KEV deadlines and kill sessions after any memory disclosure.
  • Automate certificate renewal and track keys and service accounts held by the balancer as non-human identities.

Standards and references

Related NHI Mgmt Group resources: Proxies and Forward vs Reverse Proxy Security Guide · Edge Device Security Guide · Network Security Guide · DDoS Protection Guide · Machine Identity, PKI and Certificate Lifecycle Guide

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Researched and written by the NHI Mgmt Group editorial team using AI tools, under the editorial direction of Lalit Choda. Facts are drawn from the sources listed on this page and checked by our automated quality process. Last updated 26 October 2026. Spotted an error? Use our contact page.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org