# Ensure the Application Load Balancer is Configured with Strictest Desync Mitigation Mode

- Source: https://support.icompaas.com/support/solutions/articles/62000233515-ensure-the-application-load-balancer-is-configured-with-strictest-desync-mitigation-mode
- Section: [Solutions](https://support.icompaas.com/support/solutions) › [AWS Checks New Version](https://support.icompaas.com/support/solutions/62000112673) › [AWS New Checks](https://support.icompaas.com/support/solutions/folders/62000169206)
- Last updated: 2026-05-29
- Publisher: iCompaas, Inc. (https://www.icompaas.com)

### **Profile Applicability:**

-   **Level 2**

**Description:**

Amazon Application Load Balancer (ALB) provides a highly available and scalable load balancing service for HTTP and HTTPS traffic. Desynchronization (Desync) attacks occur when malformed or unexpected HTTP request headers are used to bypass security controls or disrupt application traffic. ALB supports desync mitigation modes to protect against such attacks. This SOP checks if ALB is configured with the strictest desync mitigation mode. If not, it verifies if at least the drop\_invalid\_header\_fields attribute is configured.

### **Rationale:**

-   Security: Enabling the strictest desync mitigation mode ensures that ALBs can handle malformed or malicious request headers properly, reducing the risk of desync attacks.
    
-   Compliance: Many compliance standards (e.g., SOC 2, PCI-DSS) require adequate protection mechanisms against common web application attacks, including desynchronization.
    
-   Best Practices: Configuring ALBs with proper desync mitigation modes helps prevent attackers from exploiting request header vulnerabilities.
    

### **Impact:**

**Pros:**

-   Enhanced Security: Protects against desynchronization and header-based attacks.
    
-   Compliance: Helps in meeting security requirements for industry standards like PCI-DSS and SOC 2.
    
-   Reduced Risk: Lowers the chance of traffic disruption due to malformed headers.
    

**Cons:**

-   Performance Impact: The strictest desync mitigation mode might introduce a slight performance overhead due to additional validation of request headers.
    
-   Configuration Complexity: Setting up the strictest desync mitigation or configuring the drop\_invalid\_header\_fields attribute requires proper understanding and implementation.
    

### **Default Value:**

By default, ALBs may not have the strictest desync mitigation enabled. The desync mitigation mode must be configured manually.

### **Pre-requisite:**

-   AWS IAM Permissions:
    
    -   elasticloadbalancing:DescribeLoadBalancers
        
    -   elasticloadbalancing:ModifyListener
        
    -   elasticloadbalancing:DescribeListeners
        
    -   elasticloadbalancing:DescribeRules
        
-   AWS CLI installed and configured.
    
-   Ensure that you have Application Load Balancers (ALB) set up and are using HTTP/HTTPS listeners for traffic distribution.
    

### **Test Plan:**

#### **Using AWS Console:**

1.  Sign in to the AWS Management Console.
    
2.  Navigate to Elastic Load Balancing under Services.
    
3.  In the Load Balancers section, select your Application Load Balancer.
    
4.  Under the Listeners tab, select the listener configuration (HTTP or HTTPS).
    
5.  In the Rules section, check if the desync mitigation mode is configured. Specifically, check if the strictest mitigation mode is enabled.
    
    -   If it is not, check whether the drop\_invalid\_header\_fields attribute is configured to prevent processing invalid request headers.
        
6.  Ensure that the mitigation is either set to strictest or drop\_invalid\_header\_fields is enabled for enhanced security.
    

#### **Using AWS CLI:**

1.  To describe the Application Load Balancer, run:  
    
    aws elb describe-load-balancers --query 'LoadBalancers\[?Type==\`application\`\].{Name:LoadBalancerName,DesyncMitigationMode:DesyncMitigationMode}'
    
2.  If the DesyncMitigationMode is not strictest, check the listener configuration:  
    
    aws elb describe-listeners --load-balancer-name <load-balancer-name> --query 'Listeners\[\*\].{Protocol:Protocol,Port:Port,DefaultActions:DefaultActions}'
    
3.  Review the output to check if the drop\_invalid\_header\_fields attribute is enabled in the listener rules.
    

### **Implementation Steps:**

#### **Using AWS Console:**

1.  Log in to the AWS Management Console and navigate to Elastic Load Balancing.  
    ![](https://support.icompaas.com/assets/kb/91583751142602a2.png)
    
2.  In the Load Balancers section, select your Application Load Balancer.  
    ![](https://support.icompaas.com/assets/kb/b1adc3118110a8b3.png) ![](https://support.icompaas.com/assets/kb/bc05213fa3f1e381.png)
    
3.  Under the Listeners tab, choose the listener for your ALB (HTTP or HTTPS).  
    ![](https://support.icompaas.com/assets/kb/a1eb3f319b05edd6.png)
    
4.  Check the Desync Mitigation Mode under Advanced Settings.
    
    -   If it is not set to strictest, change the mitigation mode to strictest.  
        ![](https://support.icompaas.com/assets/kb/7b709dab9b6825e6.png)  
        ![](https://support.icompaas.com/assets/kb/23e8d538b5574053.png)
        
    -   If you cannot set it to strictest, enable the drop\_invalid\_header\_fields setting.
        
5.  Save the changes to enable the appropriate desync mitigation for your ALB.
    

#### **Using AWS CLI:**

1.  To enable the strictest desync mitigation mode, run:  
    
    aws elb modify-listener --load-balancer-name <load-balancer-name> --listener arn=<listener-arn> --default-actions '\[{"Type": "fixed-response", "FixedResponseConfig": {"StatusCode": 200}}\]' --desync-mitigation-mode strictest
    
2.  If you want to enable drop\_invalid\_header\_fields, use:  
    
    aws elb modify-listener --load-balancer-name <load-balancer-name> --listener arn=<listener-arn> --drop-invalid-header-fields true
    

### **Backout Plan:**

**Using AWS Console:**

1.  If enabling Strictest Desync Mitigation Mode causes issues, sign in to the AWS Management Console.
    
2.  Navigate to Elastic Load Balancing, select the ALB, and go to the Attributes tab.  
     ![](https://support.icompaas.com/assets/kb/31ae77187dc4241d.png)  
    ![](https://support.icompaas.com/assets/kb/39bc7f7af5b2c6bc.png)  
     ![](https://support.icompaas.com/assets/kb/bc05213fa3f1e381.png)
    
3.  Click Edit and revert the Desync Mitigation Mode to the previous setting (or disable it).  
    ![](https://support.icompaas.com/assets/kb/1dbc222c4e7f6f1e.png)
    
      
    
     ![](https://support.icompaas.com/assets/kb/400f87ccb4c9b525.png)
    
4.  Save the changes and verify that the mitigation mode is no longer in the strictest setting.
    

**Using AWS CLI:**

1.  To revert the Desync Mitigation Mode to the previous setting, run:  
    
    aws elbv2 modify-load-balancer-attributes --load-balancer-arn <LOAD\_BALANCER\_ARN> --attributes Key=desync\_mitigation\_mode,Value=default
    
2.  Verify that the Desync Mitigation Mode has been reverted:  
    
    aws elbv2 describe-load-balancer-attributes --load-balancer-arn <LOAD\_BALANCER\_ARN>
    

### **References:**

-   [AWS Elastic Load Balancing Documentation](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/introduction.html)
    
-   [AWS CLI: describe-load-balancers](https://docs.aws.amazon.com/cli/latest/reference/elb/describe-load-balancers.html)
    
-   [AWS WAF Documentation](https://docs.aws.amazon.com/waf/latest/developerguide/)
    
-   [AWS CLI: modify-listener](https://docs.aws.amazon.com/cli/latest/reference/elb/modify-listener.html)

## Related compliance guidance

- [SOC 2 compliance: a practical implementation guide for cloud-native SaaS teams](https://support.icompaas.com/compliance/soc-2-trust-services-criteria): Configuration checks like this one are the technical half of a SOC 2 / ISO 27001 programme — the guide shows where they fit, what else an auditor expects, and how to evidence them.
- [ISO/IEC 27001:2022 compliance: a practical implementation guide](https://support.icompaas.com/compliance/iso-27001-2022): ISO 27001 Annex A.8 (technological controls) is where cloud hardening evidence lands; the guide shows how to run the ISMS around it.
