How Gmail Detects and Blocks Malicious Documents

7.6K views
•
February 26, 2020
by
RSAC Cybersecurity
YouTube video player
How Gmail Detects and Blocks Malicious Documents

TL;DR

Gmail blocks malicious documents through layered filtering that checks attachment policies, runs independent scanners in parallel, and combines their findings in a decision engine. Suspicious documents or users can also receive slower analysis through sandboxing and detonation chambers. Because attackers continually modify files to evade static detection, defenses must remain responsive to changing formats, targets, and tactics.

Transcript

Good afternoon, everyone, and welcome to the one o'clock session. Our session is Malicious Documents: Emerging Trends, a Gmail Perspective. And our speaker today is Elie Bursztein, Security and Anti-Abuse Research Lead at Google. Uh, in order to make this a much more pleasurable experience, could you please all mute your cell phones? Thank you. Bon... Read More

Key Insights

  • Malicious documents are a major email threat because they consistently represent one of the largest methods attackers use when attempting to reach Gmail users, including individual users and people working within enterprise domains.
  • Office documents recently represented about fifty-six percent of the malware Gmail blocked, while PDFs represented only two percent. These figures describe a temporary snapshot because attackers can shift to different or more exotic formats as conditions change.
  • Gmail analyzes about three hundred billion documents every week, requiring its defenses to process millions of documents within milliseconds. The detection architecture is distributed across multiple data centers so it can operate at this scale.
  • The policy engine is Gmail's first attachment defense stage. It determines whether a file type is permitted and immediately rejects prohibited formats, including executable files and other formats that Gmail has forbidden over time.
  • The scanner stage uses multiple custom systems and traditional antivirus scanners independently and in parallel. Each scanner applies its own rules and methods to decide whether an accepted attachment appears malicious.
  • The decision engine is the final fast-path stage that combines and weights detections from the independent scanners. Its resulting judgment determines whether the email reaches the intended user's inbox.
  • Sandboxing and detonation chambers provide a slower analysis path for selected documents or users when additional scrutiny is warranted. Gmail uses this path selectively because applying it to every attachment would be less practical and less cost-effective.
  • Malware changes too quickly for purely static defenses because attackers repeatedly alter files to evade caching, hash-based blocking, static rules, and related detection methods. These changes do not necessarily represent entirely new attacks, but they still undermine fixed detection systems.

Install to Summarize YouTube Videos and Get Transcripts

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: How does Gmail detect malicious email attachments?

Gmail uses a layered process. A policy engine first checks whether the attachment type is allowed and rejects prohibited formats. Permitted files then go to multiple custom and traditional antivirus scanners that work independently and in parallel. A decision engine combines and weights those findings to determine whether the message should reach the user's inbox.

Q: Why does Gmail use a policy engine for attachments?

The policy engine prevents disallowed attachment types from proceeding through the rest of the delivery process. Gmail has prohibited executable files since its inception and has forbidden other formats, including Windows link files, over time. Rejecting unacceptable formats at the first stage reduces exposure before permitted attachments receive more detailed analysis from the scanning systems.

Q: What does Gmail's decision engine do?

The decision engine receives findings from the independent scanners that examine an attachment. It combines those detections, assigns weight to them, and makes the final delivery judgment. That judgment determines whether the recipient receives the email in the inbox, allowing Gmail to use several different scanning signals instead of relying on a single detector.

Q: When does Gmail use sandboxing and detonation chambers?

Gmail uses sandboxing and detonation chambers as a slower analysis path for particular document types or particular users when the fast detection path leaves doubt or additional scrutiny is appropriate. These systems supplement the main defenses rather than analyzing every attachment because universal use would be less practical and less cost-effective at Gmail's operating scale.

Q: Which malicious attachment formats does Gmail block most often?

Office documents recently accounted for about fifty-six percent of the malware Gmail blocked, making them the largest observed category in that snapshot. PDFs accounted for only two percent. The presentation warns that these proportions are not permanent because attackers may switch to PDFs, Office files, or other formats when their preferred methods and opportunities change.

Q: Who is most targeted by malicious documents in Gmail?

Among organizations using G Suite domains, governmental organizations were the most targeted category in the presented snapshot, followed by nonprofits and companies, while educational organizations were the least targeted. The speaker stresses that everyone can still be targeted and that these patterns oscillate, so a lower current targeting level does not imply lasting protection.

Q: Which industries and countries receive more malicious documents?

Manufacturing, utilities, and transportation were among the most targeted industries in the period discussed. Information technology, retail, and trade occupied the middle, while financial-sector targeting had recently declined. Norway, Great Britain, and Finland showed comparatively high targeting ratios, but the speaker offered no firm explanation and emphasized that geographic patterns change over time.

Q: Why are static malware detection systems likely to fail?

Static systems struggle because attackers continually make small changes to malware and malicious documents. These variations are designed to defeat caching, hash-based blocking, static rules, and other fixed checks. The changes do not necessarily indicate wholly new attacks, but the constantly shifting files mean defenses must react to evolving samples instead of depending on an unchanging dataset.

Summary & Key Takeaways

  • Malicious documents represent a major route for attempts to reach Gmail inboxes. Office documents recently made up most blocked malware attachments, while PDFs accounted for a much smaller share. The distribution can change quickly because attackers move between formats as defenses, opportunities, and preferred techniques evolve over time.

  • Gmail processes attachments through a layered detection system. A policy engine first rejects prohibited file types. Accepted attachments then pass through multiple custom and traditional antivirus scanners operating independently and in parallel. A decision engine weighs their results and determines whether the message should be delivered to the recipient's inbox.

  • Targeting patterns differ across organization types, industries, and countries, but they are temporary snapshots rather than permanent rankings. Governmental organizations were the most targeted organization type in the presented data, followed by nonprofits and companies. Manufacturing, utilities, and transportation also appeared among the more heavily targeted industry sectors.


Read in Other Languages (beta)

Share This Summary 📚

Explore More Summaries from RSAC Cybersecurity 📚