Sandbox with your own ANY.RUN access

Have suspicious attachments analysed in your own ANY.RUN account: entering the key, before or after delivery per policy, what gets checked, what happens on a finding.

If you have your own ANY.RUN access, you can connect it to MailGuard. Suspicious attachments then run in your ANY.RUN account. Whether this happens before or after delivery, you set per policy. If ANY.RUN detects malware, MailGuard acts right away.

Requirements

  • An ANY.RUN plan with API access. You find the key in ANY.RUN under Profile → API and limits.
  • MailGuard for the account and, in Conbool, the right to change the MailGuard settings.
  • Attachment protection is switched on in the policy.

Entering the key

  1. Open Settings → MailGuard, tab In the mailbox.
  2. Enter the API key in the card Sandbox with your own access.
  3. Click Check and save.

MailGuard asks ANY.RUN whether the key is valid. This question uses no submission. MailGuard stores only an accepted key. The card then shows Connected, the last four characters of the key, your monthly quota and how many analyses may run at the same time.

Use Replace key to enter a new one and Remove to disconnect. Both take effect within five minutes.

Setting it per policy

As soon as a valid key is saved, every policy shows the section Sandbox under Attachments → Basics. There you choose under Sandbox analysis:

  • After delivery, the default. Messages arrive immediately, the analysis runs afterwards. If ANY.RUN later detects malware, MailGuard alerts you and can remove the message from the mailboxes.
  • Before delivery. Messages with a risky attachment arrive only after the result, usually 5 to 30 minutes later. Until then MailGuard asks the sending server to try again later. Malware goes to quarantine, as does every message that still has no result after two hours. A mere suspicion does not hold a message back. If ANY.RUN cannot be reached, MailGuard delivers and checks after delivery.
  • Off. For this policy no attachment goes to ANY.RUN.

The choice takes effect within a few minutes.

What gets checked

Only attachments that can execute something when opened:

  • programs, scripts and shortcuts, such as exe, dll, js, vbs, ps1, hta, lnk, iso,
  • Office files in the old format, such as doc, xls, ppt, and RTF,
  • Office files in the new format only with macros or with external content,
  • PDF with active content,
  • HTML attachments and archives. Not encrypted ZIP archives, they cannot be opened.

The decision is made on the file content, not on the extension alone. Images, calendar entries, signatures, ordinary PDF and Office files without macros are not sent to ANY.RUN. Up to five files per message are submitted, each up to 20 MB.

The same file is not submitted twice. If it arrives again, for example to several recipients or in another message, it gets the stored result and uses no quota. An inconspicuous result counts for seven days, malware for 30 days, a result without a verdict for one day only. The results apply to your account only.

Viewing the result

  • Message trace: Messages with attachments in the sandbox carry the label Sandbox with the state in the list and in the message header: Running, Clean, Suspicious, Malware, No result or Not checked.
  • Detail view: In the MailGuard part, every file shows its type, the result and when it was checked. If the result came from an earlier check of the same file, it says so. The link Report at ANY.RUN opens the analysis in your ANY.RUN account; you need to be signed in there, and because ANY.RUN deletes the analysis after one day, the link works only that long.
  • Overview: The card Sandbox with your own access shows the last 30 days: how many messages and files were checked, how many of them were newly submitted to ANY.RUN, and how many were malware, suspicious, clean or without a result.

What happens on a finding

  • Malware: MailGuard records the finding on the message and sends the notification Found dangerous after delivery. This notification cannot be switched off. What happens to the message in the mailbox, you set in the card Dangerous mail in the mailbox; for this MailGuard needs Access to mailboxes. The notification says whether the message was removed.
  • Suspicious: MailGuard records the suspicion, the message stays delivered. A notification is sent if you have switched on Malware detected. A suspicion is not proof.

Data protection

Every analysis runs privately in your ANY.RUN account and is deleted after one day. You conclude the data processing agreement directly with ANY.RUN.

Conbool stores the key encrypted. It never appears in the portal in plain text, not even for Conbool staff.

If the access does not work

  • Key rejected: If the key expires or is blocked at ANY.RUN, the card shows Rejected. MailGuard then submits nothing until you save a valid key.
  • Quota used up: The file is not checked and not submitted later. From the next month or with more quota, MailGuard checks again.

In both cases you get the notification Scan service unreachable, at most every six hours, if you have switched it on. Other accounts are not affected.