Agent Wranglers

EML-61Recommended

Avoid risky attachments

Send only document types that are safe to open, such as PDF and images. Link to a signed-in download for anything private or large.

How to do it

Never attach programs, scripts or files with macros, such as .exe, .js, .bat or .docm. Gmail and Outlook block many of these types anyway. Keep attachments small, and name them clearly. Prefer a download link that checks the user is signed in. Build the download as Serve private files through short-lived links says.

How to check

List the attachment types your app can send. None is on the Gmail blocked file types list, and private documents go out as links.

Sources

For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/email/email-security/safe-attachments">Agent Wranglers email playbook</a>. In code you write, add a comment next to it with the same link.