Ammit Portal
Shop Sign in
Feature overview

Anti-raid

Detects mass joins, filters suspicious accounts and can lock down the server.

At a glance

Availability
Free, with Premium options
In the portal
Security › Anti-raid
Default detection
10 joins in 30 seconds

Overview

Anti-raid protects your server against waves of coordinated joins. Ammit counts the members who join the server and alerts you as soon as their number becomes abnormal. It can then switch to raid mode, which applies a measure to every new arrival until the attack stops.

On the same page, you configure the new account check, which spots accounts that are too recent, have no avatar or whose name contains a suspicious word. You also turn on there the automatic slowdown of channels where messages come in too fast. During an attack, the /raidmode, /panic, /lock, /unlock and /slowmode commands help you regain control.

How it works

Raid detection

Ammit counts joins to the server, leaving bots out. When the number of Joins triggering the raid alert is reached during the Detection interval, it considers that a raid is under way. With the default values, the tenth join within 30 seconds triggers the alert.

Ammit then posts a report in the sanctions channel, with the number of joins and the measure taken. It also records a Raid detected alert in Alerts and quarantine and posts it in the Security alerts channel, or failing that in the sanctions channel. Ammit does not report a new raid before the end of the interval.

Without an automatic response, the report invites you to turn on raid mode with /raidmode. If the Enable raid mode automatically option is turned on, Ammit applies the Automatic response to a raid by itself for the Automatic raid mode duration. When panic mode is chosen but cannot start, because it is already active or Ammit is missing the Manage Channels or Manage Roles permission, Ammit turns on raid mode instead and says so in the report.

Raid mode

While raid mode is on, each new arrival receives the Action applied to new arrivals in raid mode. This action also applies to the raid mode you turn on yourself.

  • Kick removes the member from the server.
  • Mute times the member out until raid mode ends, for at least 5 minutes. If raid mode has no expiry, the mute lasts for the time set by Automatic raid mode duration.
  • Quarantine gives the member the Quarantine role chosen in Alerts and quarantine. Without this role, Ammit applies no measure.

Kicks and mutes are recorded in the member's file and posted in the sanctions channel, like your team's sanctions, but earn them no escalation points. The member receives the sanction direct message if the Direct message to the member is turned on in Sanctions.

During raid mode, Ammit also suspends the welcoming of new members. It posts no welcome message, sends no arrival direct message and gives neither the automatic roles nor the temporary role on arrival. Verification is suspended for all members. Ammit no longer checks new accounts and no longer counts arrivals to detect a raid. A member who joined during raid mode and leaves the server before it ends, for example after a kick, gets no leave message.

Raid mode ends when it expires, with /raidmode and the action Disable, with the Disable button on the Alerts and quarantine page, or when panic mode ends. Measures already applied remain in place.

Panic mode

Panic mode locks all the server's text channels at once, as /lock does for one channel but without posting a message in it, and turns on raid mode if it is not already on. Channels that Ammit has already locked and those where @everyone can no longer write are left as they are. It is started with /panic, or by itself when the Automatic response to a raid is panic mode.

If Ammit has the Manage Server permission, it also suspends the server's invites and direct messages between its members. Discord limits this suspension to 24 hours. It is lifted when panic mode ends.

Panic mode ends when it expires or with /panic and the action Disable. Ammit then reopens the channels it locked, with their original permissions, then turns off raid mode. It posts a report in the sanctions channel at activation and at the end, and records a Panic mode alert.

New accounts

Outside raid mode, Ammit examines each new member when they join. Each signal depends on its setting.

  • Minimum account age flags a Discord account created more recently than the chosen duration. The value 0 turns off this check.
  • Flag accounts without avatar spots an account that has chosen an avatar neither on Discord nor on your server.
  • Flag names containing suspicious words compares the member's username and display name with your list, one word or phrase per line. As with Automod's banned words, Ammit recognises whole words despite capital letters, accents, spaced-out letters or digits used in place of letters.

As soon as a signal is detected, Ammit applies the Action on a suspicious arrival. Report is limited to the report. Kick removes the member from the server. Mute times them out until their account reaches the minimum age, or for one day if their account is not too new. Quarantine gives them the Quarantine role.

In every case, Ammit posts the signals detected and the measure taken in the sanctions channel, then records a Suspicious arrival alert. If, in Verification, the Members subject to verification are Suspicious arrivals only, these same signals identify the members who must go through verification.

Automatic slow mode

When the Automatic slow mode is turned on, Ammit counts the messages in each text channel over 10 seconds. As soon as their number reaches the chosen value, it turns on the channel's slowmode with the Delay between two messages, then removes it after the Slow mode duration. Bot messages are not counted, and a channel that already has slowmode is not affected.

Each slowdown is reported in the sanctions channel. If you change the channel's slow mode with /slowmode in the meantime, Ammit no longer removes it on its own.

Invitation used by the raid

With Premium and the Manage Server permission, Ammit remembers the invitation used by each new member. When a raid is detected and a single invitation was used for at least 60% of the joins counted for the detection, and for at least three joins, Ammit revokes that invitation and says so in the alert. This total includes the join that triggered the detection, as well as joins whose invitation is unknown, for example those that came through the server's vanity URL. When an automatic response is set up, Ammit applies it before looking for this invitation, so as not to delay it.

Protection test mode

When the Protection test mode is turned on in Alerts and quarantine, Ammit reports its detections without turning on raid mode or panic mode by itself. It does not revoke any invite and does not sanction suspicious arrivals. Automatic slowdown, however, still applies, as do raid mode and panic mode when you turn them on yourself. Turn this mode on for a few days to adjust your thresholds before letting Ammit act.

Configuration

In your server's menu, open Anti-raid, in the Security section. The page has no general switch. Each section is configured separately.

Screenshot taken on the “Les Gardiens du Nord” demo server.
  1. In Detection, adjust the Joins triggering the raid alert and the Detection interval to the size of your community. If your server sometimes receives many members at once, for example after an announcement, raise the number of joins to avoid false alerts.
  2. In Automatic raid mode, choose the Action applied to new arrivals in raid mode. This setting can still be changed when the section's switch is turned off.
  3. For Ammit to switch to raid mode by itself, turn on the section's switch, then choose the Automatic response to a raid and the Automatic raid mode duration.
  4. In New accounts, choose the signals to check and the Action on a suspicious arrival.
  5. If needed, turn on Automatic slow mode, then adjust the number of messages, the delay, and the duration.
  6. Click Save changes, in the bar that appears as soon as a setting changes.

To put arrivals in quarantine, first choose a Quarantine role in Alerts and quarantine, Settings tab. Also choose a Security alerts channel there if you want to receive raid and suspicious arrival alerts somewhere other than the sanctions channel.

Settings

Detection

Set the number of joins and the period over which they are counted to trigger the alert.

SettingDescriptionDefault value
Joins triggering the raid alert0: detection disabled.10
Detection interval30 seconds

Automatic raid mode

Configure the actions Ammit takes automatically when a raid is detected.

SettingDescriptionDefault value
Enable raid mode automaticallyPremiumDisabled
Automatic response to a raidPremiumIf Ammit has the “Manage Server” permission, it automatically revokes the invite used to launch the raid.Raid mode (measure on each arrival)
Action applied to new arrivals in raid modePremiumAlso applies to raid mode enabled manually. Quarantine requires a dedicated role, to be configured in the “Alerts and quarantine” section.Kick
Automatic raid mode duration30 minutes

New accounts

Assess new accounts based on their age, avatar and name, then set the measures to apply if they seem suspicious.

SettingDescriptionDefault value
Minimum account agePremium0: no account age check.Disabled
Flag accounts without avatarPremiumDisabled
Flag names containing suspicious wordsPremiumExamples: nitro, discord.gg, free.None
Action on a suspicious arrivalPremiumQuarantine requires a dedicated role, to be set up in the “Alerts and quarantine” section.Report

Automatic slow mode

Ammit turns on slow mode when messages come in too quickly.

SettingDescriptionDefault value
Automatic slow modePremiumDisabled
Number of messages in 10 seconds before slow mode is turned on15
Delay between two messages10 seconds
Slow mode duration10 minutes

Usage

The anti-raid commands reply with a message visible only to you. Their effect is recorded in the sanctions channel, except that of /slowmode, which only appears in the Event log.

To close the server to newcomers for an hour, type /raidmode, choose the action Enable, enter 1h in the duration option and a reason in the reason option. Without a duration, raid mode stays on until you turn it off. Durations are written with a unit, such as 30m, 2h or 1j, and a number on its own counts as minutes. The Status action shows how long raid mode has been on and when it will end.

/panic is used in the same way, with the Enable, Disable, and Status actions. Only enabling requires a Premium server.

/lock closes the channel where you type the command, or the one given in the channel option. Ammit removes from @everyone the right to send messages, write in threads, create threads, and add reactions. It keeps the right to write for itself and for the roles that have the Moderation access at that moment, in Team and access, then posts a message in the channel announcing the lock, with your reason. Server administrators can always write.

/unlock restores the permissions the channel had before it was locked, even after Ammit restarts, and announces the reopening in the channel. On a channel that was closed directly in Discord, the command removes the ban on writing set on @everyone, without touching the other permissions.

/slowmode sets a delay between two messages in the current channel or in the one given in the channel option. For example, enter 30s, 5m, or 2h in the duration option. A bare number counts as seconds here, and 0 removes slow mode.

During raid mode, a member who tries to complete verification is told that it will resume when this measure ends.

Discord commands

Discord commandWhat it does and optionsRequired permissions
Lock a channel: only the team can write in it
  • channelOptionalChannel to lock (current channel by default)
  • reasonOptionalReason
Manage Channels
Manage Roles
Panic mode: lock everything while you regain controlPremium
  • actionWhat to doEnableDisableStatus
  • durationOptionalDuration (30m, 2h; empty: until deactivated)
  • reasonOptionalReason
Manage Server
Enable, disable or check raid mode
  • actionWhat to doEnableDisableStatus
  • durationOptionalRaid mode duration (30m, 2h; empty: until disabled)
  • reasonOptionalReason
Manage Server
Set a channel's slow mode
  • durationDelay between two messages: 5s, 1m, 2h (0 to disable)
  • channelOptionalChannel concerned (current channel by default)
Manage Channels
Unlock a channel
  • channelOptionalChannel to unlock (current channel by default)
  • reasonOptionalReason
Manage Channels
Manage Roles

Required permissions

Ammit needs the permissions that match the chosen measures.

  • To kick new arrivals, Ammit needs the Kick Members permission.
  • To mute them, it needs the Timeout Members permission.
  • Quarantine requires Manage Roles, and Ammit's role must be placed above the Quarantine role.
  • /lock, /unlock, and panic mode require Manage Channels and Manage Roles.
  • /slowmode and automatic slow mode require Manage Channels.
  • Invite tracking and revoking a raid's invite require Manage Server.

In the portal, the server owner and administrators configure the Anti-raid page. The access of other roles and members is set in Team and access. In Alerts and quarantine, team members who have the Manage Server permission can also turn raid mode on and off.

/raidmode and /panic require the Manage Server permission. /slowmode requires Manage Channels in the target channel. /lock and /unlock also require Manage Permissions in that channel, as Discord requires to change a channel's permissions. A member who has Manage Roles on the server also has Manage Permissions in channels, unless a channel removes it from them. Ammit checks these permissions on every command, even if command access has been changed in your Discord server settings, under Integrations.

Free version and Premium

FeatureFreePremium
Basic anti-raid: detection and alert, manual raid mode, /lockIncludedIncluded
Automatic raid mode and slowmode, quarantine for new arrivalsGraduated response: raid mode or panic modeNot includedIncluded
Revocation of the invite used by a raidNot includedIncluded
Suspicious arrivals flagged (age, avatar, name), with automatic mute, kick or quarantineNot includedIncluded
Panic mode (channels locked, invites paused, raid mode)Not includedIncluded
Invite tracking (who invited whom)Not includedIncluded

Limits

  • Raid mode applies to all arrivals, including genuine new members. Turn it off as soon as the attack is over.
  • Ammit counts joins and messages in memory. When Ammit restarts, these counts are reset to zero, but raid mode, panic mode, and locked channels stay in place.
  • Ammit checks deadlines every 30 seconds. Raid mode, panic mode, or slow mode can therefore end up to 30 seconds after the scheduled time.
  • /lock, /unlock, /slowmode, and automatic slow mode apply only to text channels. Panic mode locks neither voice channels nor forums.
  • Discord limits a mute to 28 days and slow mode to 6 hours.
  • When several members arrive at the same moment, Ammit cannot always tell which invite each of them used. A raid's invite is then not always found.
  • The end of raid mode or panic mode cancels neither kicks, nor mutes, nor quarantines. Lift quarantines in Alerts and quarantine.

Frequently asked questions

Why did raid mode not turn on by itself?

Automatic raid mode requires a Premium server and the option Enable raid mode automatically. Also check that the Protection test mode is turned off in Alerts and quarantine. Without an automatic response, Ammit alerts you and lets you turn on raid mode with /raidmode.

Why did Ammit turn on raid mode instead of panic mode?

Panic mode could not start. It was already active, or Ammit was missing the Manage Channels or Manage Roles permission. The raid report, in the sanctions channel, gives the reason.

Why were arrivals not put in quarantine?

Quarantining arrivals requires a Premium server and a Quarantine role, chosen in Alerts and quarantine, Settings tab. Ammit needs the Manage Roles permission, and its role must be placed above the quarantine role.

Why does automatic slowdown not trigger in a channel?

Automatic slowdown requires a Premium server. Ammit does not slow down a channel that already has slowmode, and it needs the Manage Channels permission in that channel.

Learn more