Ammit Portal
Shop Sign in
Feature overview

Antivirus

Scan the files sent on your server and decide what to do when a threat is found.

At a glance

Availability
Free, with Premium options
In the portal
Security › Antivirus
Scan engine
ClamAV, installed on Ammit's servers
Files kept
None. Ammit keeps the file's name, its size, its fingerprint, the result, and the measure taken for 30 days.

Overview

The antivirus scans files sent on your server and detects malware, such as programs that steal Discord accounts. The members you authorise start a scan on a specific message, from the right-click menu. With Premium, Ammit also scans every file as soon as it is sent.

When a file presents a threat, Ammit removes the message and notifies the people concerned, according to your settings. It records the incident in the author's file and sends an alert to your team.

How it works

Two scanning engines

Ammit scans files with ClamAV, an antivirus installed on its own servers. It reads files on Discord, in memory, without saving them to disk or passing them to any other service.

Without Premium, files are compared against ClamAV's official signatures. With Premium, Ammit uses a second, reinforced engine. It also detects unwanted programs, documents with macros and password-protected files. It also applies additional rules, including rules written for threats specific to Discord, such as login token theft or fake Nitro generators.

Each file gets one of the following results, repeated in Ammit's reply and in the History tab.

ResultMeaning
No threatThe engine detected nothing. Ammit never states that a file is safe, because no scan can guarantee it.
ThreatThe file contains malware, whose name Ammit gives. The measures set for a threat apply.
SuspiciousThe file presents a risk without a confirmed threat. Ammit handles it according to the Suspicious files setting.
Too largeThe file exceeds your plan's maximum size. It is not scanned.
Scan failedThe file could not be read, or the engine was unavailable or overloaded. No measure is taken.

Scan on request

Right-click a message that contains a file, open Apps, then choose Antivirus. Ammit scans all the message's files and replies with a message that only you can see. It gives the result for each file there, then the measures taken.

The Who can scan files? setting designates the members allowed. With the choice Members allowed to manage messages, the Manage Messages permission is needed in the message's channel. Server administrators can always start a scan. The Antivirus action remains visible to everyone in Discord, and Ammit tells other members that they are not authorised.

The number of on-demand scans per day depends on your plan. The counter is shared by the whole server and resets at midnight, in the server's time zone. Each scanned message counts once, and a file that is too large or a scan that cannot be done does not count.

If the scan reveals a threat, Ammit applies the same measures as with automatic scanning, whichever member started the scan.

Automatic scan

With Premium, the Scan new files automatically option is turned on by default. Ammit then scans every file attached to a new message, except in the Channels not scanned automatically and for members who have one of the Roles not scanned automatically. Files from your team and from administrators are scanned like any others. Messages from bots and webhooks are never scanned.

With the React to safe files option, Ammit adds the ✅ reaction to the message when all of its files have been scanned and nothing was detected. This option is enabled by default on a Premium server.

Hold the file during the scan

With this Premium option, the message disappears while the scan runs, and Ammit shows “File from @member being scanned…” in its place. If no threat is detected, Ammit reposts the message, with its files, under its author's name and avatar. A malicious file is never reposted, nor is a suspicious file if you chose to delete suspicious files.

Ammit holds a message back only if it contains at least one file other than an image, a video, or a sound. Each file must also respect the upload size allowed on your server, and all of them together must not exceed 200 MB. Otherwise, the message stays visible while it is being scanned.

The reposted message is sent by a webhook of the channel. Its author can no longer edit it, and the mentions it contained do not notify anyone again. If the webhook does not work, Ammit reposts the files itself, naming their author, without the text of the original message.

When a threat is found

When a file contains a threat, Ammit applies your settings in this order.

  1. With the Warn in the channel option, Ammit replies to the message and mentions its author, with the file's name and the threat's name. If the message could not be deleted, the reply asks people not to open the file.
  2. The Delete the message option then removes the message from the channel.
  3. If the Notify the author by direct message option is on, the author receives the name of the file, the channel and the threat. Ammit advises them, if they did not send this file themselves, to change their Discord password and turn on two-factor authentication.
  4. Ammit records the incident in the member's record under the name Dangerous file, with the Points added to the member's record. These points count toward automatic escalation, even if you choose no sanction.
  5. The Sanction applied comes next, without adding points.
  6. Finally, Ammit sends a Dangerous file alert in the Security alerts channel chosen in Alerts and quarantine, or failing that in the sanctions channel. It sends at most one every 30 seconds for the same member.

The server owner and members who have one of the Protected roles on the Sanctions page receive neither a case nor a sanction. The other measures apply to their files just as they do to other members' files.

Suspicious files

Password-protected archives and documents, which Ammit cannot open, documents with macros and unwanted programs are classified as suspicious. The Suspicious files setting decides what happens next. Report only sends a Suspicious file alert to your team. Delete the message also removes the message, with a reply explaining that it was removed as a precaution. Do nothing leaves the file in place, with no alert. A suspicious file is never recorded in the member's file or sanctioned.

Test mode

The Protection test mode, in Alerts and quarantine, also applies to the antivirus. Ammit then sends its alerts, but deletes no message and applies no other measure. If the Hold the file during the scan option is on, a malicious file is not reposted, even in test mode.

Configuration

In your server's menu, open Antivirus, in the Security section. The page has two tabs, Settings and History.

Screenshot taken on the “Les Gardiens du Nord” demo server.
  1. Check that the switch at the top of the page shows Antivirus enabled. The antivirus is turned on by default, and the switch is saved as soon as you change it.
  2. In File access and scanning, answer the question Who can scan files? With Only the selected roles, then choose the Allowed roles.
  3. With Premium, choose the options for automatic scanning, holding back, and reacting.
  4. In When a threat is detected, choose the measures and the Sanction applied. The Mute duration matters only with the Mute sanction.
  5. Choose how Suspicious files are handled.
  6. In Exceptions, add the channels and roles that automatic scanning should leave aside.
  7. Click Save changes, in the bar that appears at the bottom of the screen.
All server members

With this choice, each member can scan another member's message and trigger the measures planned for a threat. The number of scans per day, shared by the whole server, can then run out faster.

Settings

File access and scanning

Decide who can start a scan and how files are handled.

SettingDescriptionDefault value
AntivirusEnabled
Who can scan files?Scans are available from a message's Apps menu.Members allowed to manage messages
Allowed rolesSelect the roles that can start a manual scan.None
Scan new files automaticallyPremiumEvery file sent is scanned as soon as it arrives.Enabled
Hold the file during the scanPremiumThe file is held temporarily, then posted again if no threat is detected.Disabled
React to safe filesPremiumAdds a reaction when no threat is detected in the file.Enabled

When a threat is detected

Choose how Ammit handles the file and informs members.

SettingDescriptionDefault value
Delete the messageRemoves the message containing the malicious file from the channel.Enabled
Warn in the channelInforms members in the channel where the file was sent.Enabled
Notify the author by direct messageSends a private warning to the author of the message.Enabled
Sanction appliedChoose the sanction applied to the author of the message.No sanction
Mute durationMute duration, if a mute sanction is selected.1 hour
Points added to the member's recordCounted by automatic escalation, even with no sanction. 0: no points.3

Suspicious files

Files Ammit cannot fully scan, or that are simply risky.

SettingDescriptionDefault value
Suspicious filesPassword-protected archive, document with macros, unwanted program.Report only

Exceptions

Channels and roles the antivirus skips.

SettingDescriptionDefault value
Channels not scanned automaticallyNone
Roles not scanned automaticallyNone

Usage

To check a file before opening it, right-click the message, open Apps and choose Antivirus. For example, before downloading a .zip archive shared in a channel, start the scan and wait for Ammit's reply.

The History tab lists the files scanned over the last 30 days, with the date, the author, the channel, the type of scan, the result, and the measure taken. Filter the list by result, or search for a file, a threat, a member, or a channel.

Screenshot taken on the “Les Gardiens du Nord” demo server.

If a file was mistaken for a threat, remove the member's Dangerous file case. Type /revoke and enter the case number in the number option. Its points then no longer count towards escalation. If a sanction was also applied, remove it in the same way. Marking the Dangerous file alert as a False positive removes neither the case nor the sanction.

Right-click actions

Right-click a message or a member, then open the Apps menu to use these actions.

ActionUsed onWhat it doesRequired permissions
AntivirusMessageScan a message's files with the antivirusDepends on the antivirus settings

Required permissions

Ammit must see the channels where files are sent. To delete a message, it needs the Manage Messages permission. Holding files back also requires Manage Webhooks, to repost the message under its author's name. To reply in the channel, it needs Send Messages, and for the ✅ reaction, Add Reactions and Read Message History.

The Sanction applied requires the matching permission, Timeout Members for a mute, Kick Members for a kick or Ban Members for a ban. Ammit does not sanction a member whose highest role is equal to or above its own. For alerts, it needs the Send Messages and Embed Links permissions in the Security alerts channel, or failing that in the sanctions channel.

In the portal, the server owner and administrators configure the antivirus and view its history. The access of other roles and members is set in Team and access. In Discord, the Who can scan files? setting decides who can use the Antivirus right-click action. The alert buttons are reserved for the moderation team.

Free version and Premium

FeatureFreePremium
Antivirus: on-demand file scanIncludedIncluded
Antivirus: every file scanned as soon as it is sentNot includedIncluded
Enhanced antivirus: unwanted programs, macros, protected archives, extra rulesNot includedIncluded
Antivirus: on-demand scans per day2Unlimited
Antivirus: maximum file size, in MB8 MB160 MB

Limits

  • Ammit scans the files attached to messages. A file offered through a link to another site is neither downloaded nor scanned.
  • The Exceptions only apply to automatic scanning. An on-demand scan remains possible in all channels.
  • Only text channels can be added to the Channels not scanned automatically. The threads of these channels are excluded with them.
  • The History tab shows the last 2,000 scans at most.
  • Ammit's administration can suspend the antivirus for all servers. The Antivirus page then says so, and no file is scanned.

Frequently asked questions

Why does the Antivirus action tell me I do not have permission?

The Who can scan files? setting does not include you. Depending on the choice made, you need the Manage Messages permission in the channel or one of the Allowed roles. Server administrators can always start a scan.

Why did a member's message disappear, then reappear?

The Hold the file during the scan option is on. Ammit removed the message for the duration of the scan, then reposted it under its author's name and avatar, because no threat was detected.

Why was a file not scanned automatically?

Check that the channel and the author's roles are not in the Exceptions, and that the file does not exceed your plan's maximum size. The History tab shows the result of each file, including Too large and Scan failed.

Learn more