These following are the guidelines that the Web Security Service uses to determine Executables (this is not an exhaustive list).
- HTTP response headers (application/octet-stream can cause false-positives)
- HTTP file extensions
- Magic bytes
- Content dispositions
The following CPL summarizes an object represented as Executables, but not limited to:
define condition Object_RepresentedAs_Executable
; Test URL extension
; Test for content-type headers
; Test for content-disposition (how to save) headers
response.x_header.Content-Disposition = "\.(exe|com|cab|ocx|dll|msi)($|[^a-z0-9])"
NOTE: Blocking by file extension and its MIME type is not currently possible.
This Executable rule blocks the PDF because the content was delivered with the content-type as application/octect-stream.
- bto.bluecoat.com serves the file as Application/Octect-Stream, which tells the browser it might contain executable content even if it delivers .pdf file.
- It is just another way to deliver content. In this case, it’s likely used to prompt the Save As dialog instead of displaying the PDF inside the browser.
The below .pdf download links are downloadable.
The content-type here is application/pdf. Notice that they display inside the web browser rather than prompt with Save As dialog.