Skip to content
Skip to Content
Protection

Anti-Nuke

Contains rogue or hacked admins and bots, and restores what they destroyed.

A "nuke" is an admin or bot, often hacked, deleting channels and roles or banning members as fast as it can. Anti-nuke watches every audit log entry and contains the account the moment it crosses a limit.

Owner only

Anti-nuke settings can be seen by anyone with the panel, but only the server owner can change them. They're never part of a backup.

For anti-nuke to work, give Guard Administrator and put its role at the top. Members with roles above Guard's can't be contained.

An account crosses a limit, it is contained, then Restore undoes the damage

Limits

Every audit log entry is counted per account and category in sliding windows. Bans and kicks made through Guard's commands count against the moderator who ran them. The standard limits, per minute:

ActionLimit
Channel or role deletes3
Channel or role creates6
Bans5
Kicks8
Webhooks3
Emoji deletes5
Admin grants (Administrator, Manage Server or Manage Roles)2 per 10 minutes

Hourly caps catch a slow nuke too (10 channel deletes an hour, for example). Sensitivity makes the limits stricter or looser. Bots added in the last day get half the limits.

Not counted: deleting a channel or role the same account made in the last hour (tickets), and banning members who joined in the last day (raid cleanup).

Acted on at once:

  • a prune
  • dangerous permissions given to @everyone (taken back first)
  • the vanity URL changing
  • Guard's own permissions or roles being taken

Never watched: the server owner, Trusted Users, and Guard itself.

Containing

The Response decides what happens to an account over a limit:

Response
Remove their roles (recommended)Takes every role Guard can. Bots get kicked instead. The alert can give the roles back
Quarantine themGives the quarantine role. Bots get kicked. Without a quarantine role it removes roles instead
Ban themWorks even if they already left
Only send an alertTells the owner and the alert channel and does nothing else

The alert goes to the log channel and, with DM the Owner, to the owner's DMs. It has Give Roles Back, Ban and Restore buttons for the owner and trusted users.

Several accounts at once: when destructive actions add up across several accounts within a minute, each one is contained like any other (or, with "Alert only", the alert gets a Contain All button).

Guard's own mass actions: /massban and /masskick count like any other mass ban or kick. A moderator who isn't the owner or trusted is told how many members they can still act on, instead of being contained halfway.

Snapshots

Snapshots hold your roles, channels, their permissions, and the server's own channels (like the rules channel).

  • They're taken when anti-nuke is turned on, every day (only when something changed), and by hand with Take a Snapshot.
  • The latest 3 are kept, plus the last one before an incident.
  • Deleted roles and channels are also remembered for an hour, as they were.

Restore

Restore on an alert undoes what the account did during the attack:

Deletes what it created.
Recreates what it deleted, as the snapshot from before the attack has it (anything the snapshot doesn't have is recreated without dangerous permissions).
Moves orphaned channels back into their categories.
Unbans who it banned.
Gives deleted roles back to their members, never to contained accounts, and never for roles with dangerous permissions.

Then Guard points its own settings at the new roles and channels, and puts back trap and verify channels. A restore that failed (missing permissions, for example) can be run again, building on what the first one recreated.

Restore What's Missing in the panel recreates exactly what its preview listed, from the latest snapshot, and never deletes anything.

Messages, threads, emoji images, other apps' webhooks and onboarding can't be restored.

On this page