Trustwave and Cybereason Merge to Form Global MDR Powerhouse for Unparalleled Cybersecurity Value. Learn More

Trustwave and Cybereason Merge to Form Global MDR Powerhouse for Unparalleled Cybersecurity Value. Learn More

Services
Managed Detection & Response

Eliminate active threats with 24/7 threat detection, investigation, and response.

Co-Managed SOC (SIEM)

Maximize your SIEM investment, stop alert fatigue, and enhance your team with hybrid security operations support.

Advisory & Diagnostics

Advance your cybersecurity program and get expert guidance where you need it most.

Penetration Testing

Test your physical locations and IT infrastructure to shore up weaknesses before exploitation.

Database Security

Prevent unauthorized access and exceed compliance requirements.

Email Security

Stop email threats others miss and secure your organization against the #1 ransomware attack vector.

Digital Forensics & Incident Response

Prepare for the inevitable with 24/7 global breach response in-region and available on-site.

Firewall & Technology Management

Mitigate risk of a cyberattack with 24/7 incident and health monitoring and the latest threat intelligence.

Solutions
BY TOPIC
Microsoft Security
Unlock the full power of Microsoft Security
Offensive Security
Solutions to maximize your security ROI
Rapidly Secure New Environments
Security for rapid response situations
Securing the Cloud
Safely navigate and stay protected
Securing the IoT Landscape
Test, monitor and secure network objects
Why Trustwave
About Us
Awards and Accolades
Trustwave SpiderLabs Team
Trustwave Fusion Security Operations Platform
Trustwave Security Colony
Partners
Technology Alliance Partners
Key alliances who align and support our ecosystem of security offerings
Trustwave PartnerOne Program
Join forces with Trustwave to protect against the most advance cybersecurity threats
Loading...
Loading...

HOWTO: Use custom rules to bypass scanning for large files

Expand / Collapse


This article applies to:

  • SWG 10.x
  • SWG 11.x

Symptoms:

  • Download is blocked and the following message is presented to the user:

Error Occurred 

HTTP Error Status: 403 Forbidden

Error Reason: Response body too large Please contact your system administrator

Cause:

  • SWG proxy is limited to downloading/uploading files up to 2GB in size. This limit is configured in the Downloads tab under Administration > System Settings > SWG Devices > Scanning Server > General node:

Resolution:

If SWG proxy is expected to deal with many large files, it may help to bypass scanning for those files. This can be done by creating two additional rules in the Security Policy, as detailed below.


Both the rules make sure that the files are not scanned. The first rule allows the file to download through SWG immediately, while the second rule needs to download the file first to evaluate the content size.

It is important to position these rules properly in the policy. For better performance, place the rules below the Allow Trusted Sites and Block Blacklisted Sites rules.

 

First Rule

The first rule should bypass scanning for large files based on the value in the content-length header field associated with the file in the transaction.

1. Create a custom HTTP header as shown below. Set the value relevant to your SWG implementation:  

         

    Note that the content-length header value should be set in bytes.

2. Create a new rule in the policy and add the new custom header as a condition for the rule.

     

3. Make sure the rule Action is set to Allow and Advanced Action is set to Bypass scanning:

     

 

Second Rule

It is possible that a file in a Web transaction will not have a content-length header specified for it. As a result, the rule we just created will not bypass scanning for such file.

For this reason we need a second rule to bypass scanning for large files based on the content size value. 

1. Use one of the default Content Size conditions available in the SWG OS, or create a new one to make it consistent with the rule above.

Content Size conditions are under: 

Version 10.x: Policies > Condition Settings > Content Size

Version 11.x: Policies > Condition Elements > Content Size

    

2. Create a new rule in the policy and use Content Size as a condition for the rule.

    



Notes:

Important: Content-length header value is set in bytes, content-size condition value is set in kilobytes.

 

 

 

 

 

 

 


To contact Trustwave about this article or to request support:


Rate this Article:
     

Add Your Comments


Comment submission is disabled for anonymous users.
Please send feedback to Trustwave Technical Support or the Webmaster
.