Skip to content

Anti-Nuke

Defends against a compromised admin (or compromised bot) destroying your server. Detects rapid destructive actions and either auto-strips the actor's roles or quarantines them, with optional auto-revert of their changes.

What it watches

Per-actor rate limits on:

  • Channel deletes
  • Channel creates
  • Role deletes
  • Role creates
  • Role permission changes
  • Member ban bursts
  • Member kick bursts
  • Webhook creates
  • Webhook deletes

Each one has its own count + window (e.g. 3 channel-deletes in 30 seconds).

Settings

SettingWhat it does
EnabledMaster switch.
Whitelisted user IDsThese users bypass every check. Reserve for trusted automation.
Whitelisted role IDsAnyone with one of these roles bypasses every check.
PunishmentWhat to do when an actor trips a limit. strip_roles / quarantine / ban / kick.
Auto-revertTry to undo their destructive changes — recreate the deleted channel, restore the role, unban the user.
LimitsPer-action-class count + window. Defaults: 3 channel-deletes / 30s, 5 channel-creates / 30s, etc.
Alert channelPosts a detailed incident embed when the system fires.
Alert on dangerous perm grantSeparate single-event watcher — alerts when any single role grant adds Administrator / ManageGuild / ManageRoles, even if there's no rate-limit trip. Observation-only; never auto-acts.

Default limits

channel_delete : 3 in 30s
channel_create : 5 in 30s
role_delete    : 3 in 30s
role_create    : 5 in 30s
role_perm_change: 3 in 30s
ban_burst      : 5 in 30s
kick_burst     : 5 in 30s
webhook_create : 3 in 30s
webhook_delete : 3 in 30s

These err on the strict side — a normal admin doing normal admin work won't trip them.

Tips

  • Whitelist your trusted bots. Build bots, ticket bots, etc. that legitimately rate-create channels need to be on the whitelist or they'll trip every time they do their job.
  • strip_roles is the safest punishment. It removes the attacker's ability to keep doing damage without permanently losing them. They can be re-roled by another admin once the situation is sorted.
  • Auto-revert is best-effort. It recreates the deleted channel/role with the same name + permissions; webhook attachments and message history can't be recovered.
  • alert_on_dangerous_perm is a free safety net. It costs nothing to leave on and alerts you the moment someone elevates a role to Administrator — the most common precursor to a server nuke.

Cross-Server Sync

Syncable settings (when Cross-Server Sync → security sync is on):

  • Enabled toggle
  • Punishment
  • Rate limits
  • Auto-revert
  • Alert on dangerous permission grant

The whitelisted users, whitelisted roles, and alert channel stay local per server — sharing those would silently grant another server's whitelisted user immunity on yours.

Permissions

  • security.view — see incidents + tunables
  • security.edit — change settings, revert incidents

Behaviour

  • A single dangerous-permission grant (e.g. role X is given Administrator) fires the alert even outside of a burst.
  • Each rate limit is tracked per-actor, per-action-type, on a rolling window.
  • An incident is a record of one actor exceeding one limit. The dashboard lists incidents with a one-click revert.

Phantom is a product of Hydra Labs. The bot is run as a managed service; you do not need to host it yourself.