Ammit Portal
Shop Sign in
Feature overview

Anti-nuke

Premium

Detects and blocks members who delete or change server items in bulk.

At a glance

Availability
Premium
In the portal
Security › Anti-nuke
Default trigger
More than 3 destructive actions or 10 changes in 1 minute
Permission Ammit needs
View Audit Log

Overview

A “nuke” is the rapid destruction of a server by an account that has the permissions to do so, for example a moderator whose account was hacked or a compromised bot. Within seconds, channels and roles disappear, and members are banned or kicked.

Anti-nuke spots these repeated actions and applies a measure to their author, such as removing their roles or a ban. It also monitors changes in a row and, after a destruction, can offer to restore your server's latest backup.

How it works

Ammit follows Discord's audit log, which shows who performed each action on the server. For each member, it counts the actions in two groups.

SettingCounted actions
Destructive actions toleratedDeleting a channel or a role, banning or kicking a member, pruning inactive members, creating or deleting a webhook, deleting an emoji or a sticker.
Changes in a row toleratedCreating or editing a channel or a role, changing a channel's permissions, editing the server's settings, editing or deleting a webhook, deleting an emoji or a sticker, creating an invitation.

These settings set the number of actions tolerated. When the same member exceeds it during the Detection interval, Ammit applies the Measure applied to the author. With the default values, it reacts to the fourth destructive action or the eleventh change in one minute. It reacts only once per interval for the same author. The value 0 turns off the check on changes.

A prune that removes at least 20 members triggers the measure straight away. A smaller prune only gives rise to a Member prune alert.

Measures

  • Flag applies no measure. Ammit only posts the report and the alert.
  • Remove their roles removes from the author all the roles placed below Ammit's, except those managed by an integration. Ammit does not keep the list of those roles.
  • Quarantine removes the author's roles and gives them the Quarantine role, if one is chosen. Ammit keeps the list of removed roles to give them back when the quarantine is lifted.
  • Ban bans the author and records the sanction in their record.

Ammit never targets the server owner, nor the Trusted roles and Trusted members chosen in Alerts and quarantine. Its own actions are not counted, which leaves out sanctions applied with its commands or from the portal. If the author's highest role is at or above Ammit's, no measure is possible, but Ammit still posts the report and the alert. The same applies when the author has one of the Protected roles on the Sanctions page.

Each time it reacts, Ammit posts a report in the sanctions channel, with the author, the number of actions, the last action and the measure taken. It also records a Destruction in a row, Changes in a row or Member prune alert in Alerts and quarantine. This alert is posted with its buttons in the Security alerts channel, or failing that in the sanctions channel.

Restoring after destruction

With the Offer a restore after mass deletions option, the Destruction in a row alert shows the server's most recent backup and has a Restore the backup button. This button restores the roles, categories, channels and their permission overrides from that backup, after backing up the server's current state.

Protection test mode

When the Protection test mode is turned on in Alerts and quarantine, Ammit posts the report and the alert, without applying any measure or offering a restore.

Configuration

In your server's menu, open Anti-nuke, in the Security section.

Screenshot taken on the “Les Gardiens du Nord” demo server.
  1. Turn on the switch at the top of the page. It then shows Anti-nuke enabled, and this choice is saved right away. The settings appear below.
  2. In Detection, adjust the Destructive actions tolerated, the Detection interval, and the Changes in a row tolerated. A threshold that is too low may target a moderator who is tidying up directly in Discord.
  3. In Reply, choose the Measure applied to the author. Turn on Offer a restore after mass deletions if you back up your server's structure.
  4. Click Save changes, in the bar that appears as soon as a setting changes.

In Alerts and quarantine, Settings tab, then add your administrators to the Trusted roles or Trusted members, and choose a Security alerts channel. Monitoring of dangerous permissions granted, which complements anti-nuke, is also configured in this tab, in the Permissions and bots section.

Settings

Detection

Set the number of deletions or changes allowed and the period over which they are counted.

SettingDescriptionDefault value
Anti-nuke protectionPremiumDisabled
Destructive actions tolerated3
Detection interval1 minute
Changes in a row toleratedPremiumServer channels, roles, permissions and settings changed by the same member within the interval. 0: no check.10

Reply

Choose the sanction to apply and the restore options for deleted items.

SettingDescriptionDefault value
Measure applied to the authorPremiumRemove their roles
Offer a restore after mass deletionsPremiumThe alert includes a button to recreate the roles and channels deleted since the last backup.Disabled

Usage

Anti-nuke has no command. When it reacts, read the report in the sanctions channel and the alert in Alerts and quarantine. On a Premium server, your team can quarantine or ban the author with the Quarantine and Ban buttons, under the alert posted in Discord.

If the measure targeted a genuine member, lift their quarantine with the Lift button, in Alerts and quarantine. Their roles are given back to them. After the Remove their roles measure, give them their roles back by hand in Discord.

After a real attack, click Restore the backup under the alert, within the next three days and before closing the alert. After that, choose the backup to restore in Settings, Backups tab, where you can also follow the restoration's progress.

Required permissions

Ammit needs the View Audit Log permission. Without it, Discord does not send it members' actions, and anti-nuke sees nothing. The measures also require Manage Roles, to remove roles or put members in quarantine, and Ban Members, for banning. Restoration requires Manage Roles and Manage Channels.

Ammit's role must be placed above the roles of the members it needs to be able to stop. Place it as high as possible in your server's role list.

Only the server owner and administrators configure anti-nuke in the portal. Roles and members who have this page in Team and access view its settings without being able to change them. The Restore the backup button is reserved for the owner and members who have the Administrator permission. The Quarantine and Ban buttons are open to the moderation team, who must have the Manage Roles permission for quarantine and Ban Members for the ban.

Free version and Premium

FeatureFreePremium
Anti-nuke: mass destruction flagged, the author's roles removedNot includedIncluded
Anti-nuke: automatic quarantine or ban of the offenderNot includedIncluded
Anti-nuke: detection of mass changesNot includedIncluded
Anti-nuke: webhook, emoji and sticker deletionsNot includedIncluded
Dangerous permissions granted: flagged and revertedNot includedIncluded
Guided restore after mass deletionsNot includedIncluded

Limits

  • Discord does not allow an action to be blocked in advance. Ammit reacts after the fact, and what was deleted before the measure comes back only with a restoration.
  • Sanctions made directly in Discord count as destructive actions. A moderator who bans several members by hand can trigger anti-nuke, unlike one who uses /ban.
  • Ammit counts actions in memory. When Ammit restarts, these counts are reset to zero.
  • Restoration is offered only after a mass deletion, and only if a backup of the server exists.
  • The Restore the backup button exists only on the alert posted in Discord. Without a Security alerts channel or a sanctions channel, it is therefore not available.

Frequently asked questions

Why did a moderator lose their roles after banning several members?

Bans made directly in Discord count as destructive actions. Ask your team to use /ban, whose sanctions are not counted, or add your moderators' role to the Trusted roles, in Alerts and quarantine.

Why did anti-nuke apply no measure?

The author's highest role may be at the same level as Ammit's or above it, or the author has one of the Protected roles on the Sanctions page. The report posted in the sanctions channel gives the reason. Also check that the Protection test mode is turned off and that Ammit has the permission required by the chosen measure.

Why does anti-nuke not react at all?

Check that Ammit has the View Audit Log permission and that the page's switch shows Anti-nuke enabled. The server owner and trusted members are never targeted.

Learn more