Anti-Nuke
The anti-nuke system protects your server from destructive actions by compromised accounts or malicious users with elevated permissions. It monitors for suspicious bulk actions and responds automatically.
Commands
| Command | Description | Usage |
|---|---|---|
/antinuke setup | Run the interactive anti-nuke setup wizard | /antinuke setup |
/antinuke settings | View the current anti-nuke configuration | /antinuke settings |
/antinuke disable | Disable the anti-nuke system | /antinuke disable |
Dashboard Configuration
Configure anti-nuke from the Security section of the dashboard.
| Setting | Description |
|---|---|
| Enable/Disable | Toggle the anti-nuke system on or off |
| Whitelist Users | Add trusted users who are exempt from anti-nuke detection |
| Thresholds | Set how many actions within a time window trigger a response |
Always whitelist the server owner and any trusted bots. Anti-nuke detection does not distinguish between legitimate bulk actions and attacks unless users are whitelisted.
What It Protects Against
Mass Channel Deletion
Detects when multiple channels are deleted in rapid succession. If the threshold is exceeded, the attacker is stopped and affected channels can be restored.
Mass Role Deletion
Detects when multiple roles are deleted in a short time frame. The system strips the attacker's permissions and prevents further damage.
Mass Bans
Detects when a user bans many members quickly. The banning spree is halted, and the attacker's permissions are revoked.
Mass Kicks
Similar to mass bans, detects rapid kick activity and intervenes automatically.
Webhook Spam
Detects when webhooks are created in bulk or used to flood channels with messages. Malicious webhooks are deleted automatically.
Actions Taken
When anti-nuke detects a threat, it can take one or more of the following actions depending on your configuration:
| Action | Description |
|---|---|
| Strip Permissions | Immediately removes all dangerous permissions from the attacker's roles |
| Ban Attacker | Bans the user responsible for the attack |
| Restore Changes | Attempts to restore deleted channels and roles to their previous state |
Restoration works best for channel and role deletions. Unbanning mass-banned members requires manual action or use of the /unban command.
It is recommended to set conservative thresholds (e.g., 3-5 actions within 10 seconds) and only whitelist users you absolutely trust. The tighter your thresholds, the faster the system responds to an attack.