Spooky's documentation
Security
Antinuke Protections

Antinuke Protections

Guide to all protections, and they functionality

Antinuke Protections

The Antinuke module includes a robust set of protections designed to prevent malicious actions within your server. Below is an explanation of each protection and its functionality:

Channel Protections

1. Channel Creation Protection

  • What it does: Detects unauthorized channel creation and deletes the newly created channel.
  • Reversion: Automatically deletes the unauthorized channel.

2. Channel Deletion Protection

  • What it does: Detects unauthorized channel deletion and recreates the deleted channel with the same settings.
  • Reversion: Recreates the deleted channel and restores its position.

3. Channel Rename Protection

  • What it does: Detects unauthorized renaming of a channel.
  • Reversion: Renames the channel back to its original name.

4. Channel Permissions Change Protection

  • What it does: Detects unauthorized changes to channel permissions.
  • Reversion: Restores the previous permissions.

5. Invite Creation Protection

  • What it does: Detects unauthorized invite creation.
  • Reversion: Deletes the newly created invite.

Guild Protections

1. Guild Rename Protection

  • What it does: Detects unauthorized changes to the server name.
  • Reversion: Renames the server back to its original name.

2. Guild Icon Protection

  • What it does: Detects unauthorized changes to the server icon.
  • Reversion: Removes the new icon.

3. Guild Banner Protection

  • What it does: Detects unauthorized changes to the server banner.
  • Reversion: Removes the new banner.

4. Guild Vanity URL Protection

  • What it does: Detects unauthorized changes to the server's vanity URL.
  • Reversion: Cannot be reverted automatically (Discord does not provide an endpoint to restore a previous vanity code). Instead, the bot punishes the actor who changed it and notifies the server owner via DM.

Community Protections

1. Community Description Protection

  • What it does: Detects unauthorized changes to the server description.
  • Reversion: Restores the previous description.

2. Community Features Toggle Protection

  • What it does: Detects unauthorized enabling or disabling of community features.
  • Reversion: Reverts the changes, recreating or deleting the required channels accordingly.

3. Community Rules Channel Protection

  • What it does: Detects unauthorized changes to the rules channel.
  • Reversion: Restores the original rules channel.

Member Protections

1. Member Kick Protection

  • What it does: Detects unauthorized member kicks.
  • Reversion: Re-invites the kicked member using OAuth2 if the user had authorized it.

2. Member Ban Protection

  • What it does: Detects unauthorized member bans.
  • Reversion: Unbans the member and re-invites them using OAuth2 if authorized.

3. Member Unban Protection

  • What it does: Detects unauthorized member unbans.
  • Reversion: Bans the unbanned user again.

4. Bot Add Protection

  • What it does: Detects unauthorized addition of bots to the server.
  • Reversion: Bans the newly added bot.

5. Member Role Addition Protection

  • What it does: Detects unauthorized addition of roles to a member.
  • Reversion: Removes the added roles.

6. Member Role Removal Protection

  • What it does: Detects unauthorized removal of roles from a member.
  • Reversion: Restores the removed roles.

7. Nickname Change Protection

  • What it does: Detects unauthorized changes to a member's nickname.
  • Reversion: Reverts the nickname back to the original.

8. Member Timeout Protection

  • What it does: Detects unauthorized timeouts.
  • Reversion: Removes (lifts) the user's new timeout.

9. Member UnTimeout Protection

  • What it does: Detects unauthorized un-timeouts.
  • Reversion: Re-applies the user's original timeout if it was still active, or otherwise punishes as configured.

Role Protections

1. Role Creation Protection

  • What it does: Detects unauthorized role creation.
  • Reversion: Deletes the newly created role.

2. Role Deletion Protection

  • What it does: Detects unauthorized role deletion.
  • Reversion: Recreates the deleted role and restores its position.

3. Role Rename Protection

  • What it does: Detects unauthorized renaming of roles.
  • Reversion: Renames the role back to its original name.

4. Role Permission Change Protection

  • What it does: Detects unauthorized changes to role permissions.
  • Reversion: Restores the previous permissions.

Thread Protections

1. Thread Creation Protection

  • What it does: Detects unauthorized thread creation.
  • Reversion: Deletes the newly created thread.

2. Thread Deletion Protection

  • What it does: Detects unauthorized thread deletion.
  • Reversion: Recreates the deleted thread.

3. Thread Rename Protection

  • What it does: Detects unauthorized renaming of threads.
  • Reversion: Reverts the thread name back to its original.

Webhook Protections

1. Webhook Creation Protection

  • What it does: Detects unauthorized webhook creation.
  • Reversion: Deletes the newly created webhook.

2. Webhook Rename Protection

  • What it does: Detects unauthorized renaming of webhooks.
  • Reversion: Renames the webhook back to its original name.

3. Webhook Channel Change Protection

  • What it does: Detects unauthorized changes to the webhook's channel.
  • Reversion: Restores the webhook to its original channel.
By enabling these protections, you can ensure the safety and integrity of your Discord server against potential attacks or unauthorized actions.