Medusa/modules/Security

Security

Member verification, an account age gate, anti-raid lockdowns and ghost ping detection.

Security keeps bad accounts out and stops mention abuse. Each part has its own settings and can be turned on separately.

Verification

New members get the Unverified Role and must pass a check to get the Verified Role. Verification Mode picks the check:

ModeWhat the member does
Interactive ButtonPresses the button.
Distorted Image CaptchaTypes the code from an image. Captcha Code Length sets its length.
Secret PassphraseTypes the Verification Passphrase.

Post the panel from the dashboard Post page or with /post. Its title, description, color and button label are set under Panel. The description can use %server%.

Gatekeeper

Accounts younger than Minimum Account Age in Days get the Enforcement Action when they join: kick, give the Quarantine Role, or only log it. Direct Message Explanation tells them why. Bots are skipped while Exempt Applications is on.

Anti-Raid

When Join Threshold Count members join within Window Duration in Seconds, raid mode starts and Staff Alert Roles are pinged. The Raid Action decides what happens:

ActionWhat happens
Channel LockdownEveryone loses Send Messages in the Lockdown Channels.
Auto-Kick New JoinsEveryone who joins during the raid is kicked.
Audit Log OnlyThe raid is only logged.

Raid mode stays on until staff run /security raid action:deactivate, which also unlocks the channels.

Anti-Ping

  • Ghost pings: when a message that mentioned members is deleted or edited to remove the mention, Medusa posts an alert in the channel and logs it.
  • Mass mentions: messages with more than Maximum Mentions Per Message get the Mass Mention Action: delete the message, delete it and time the author out for 10 minutes, or warn the author.

Administrators and Exempt Roles are skipped.

Medusa's highest role must be above the verified, unverified and quarantine roles.

Settings

Verification Settings

SettingDefaultWhat it does
Enable VerificationOnTurns verification on or off.
Verification ModeInteractive ButtonThe check members must pass.
Verified RoleNoneGiven after passing.
Unverified RoleNoneGiven on join and removed after passing.
Verification ChannelNoneWhere the panel lives.
Verification PassphraseNoneUsed in passphrase mode.
Captcha Code Length5Characters in a captcha.
Direct Message on VerificationOnDMs the member after they pass.
Panel TitleMember VerificationTitle of the panel.
Panel DescriptionWelcome to %server%!...Text of the panel.
Panel Color#22c55eColor of the panel.
Button LabelVerifyText on the button.

Gatekeeper Settings

SettingDefaultWhat it does
Enable GatekeeperOffTurns the age check on or off.
Minimum Account Age in Days7Accounts younger than this are caught.
Enforcement ActionKick MemberKick, quarantine or log only.
Quarantine RoleNoneRole used for quarantine.
Direct Message ExplanationOnDMs the member the reason.
Exempt ApplicationsOnSkips bots.

Anti-Raid Settings

SettingDefaultWhat it does
Enable Anti-RaidOffTurns raid detection on or off.
Join Threshold Count10Joins that count as a raid.
Window Duration in Seconds10Time those joins must happen in.
Raid ActionChannel LockdownLock channels, kick joins or log only.
Lockdown ChannelsNoneChannels locked during a raid.
Staff Alert RolesNoneRoles pinged when a raid starts.

Anti-Ping Settings

SettingDefaultWhat it does
Enable Anti-Ping ProtectionOnTurns anti-ping on or off.
Alert in Channel on Ghost PingOnPosts an alert in the channel.
Log Ghost Pings to Security AuditOnLogs each ghost ping.
Maximum Mentions Per Message5Mentions allowed in one message.
Mass Mention ActionDelete Message OnlyWhat happens over the limit.
Exempt RolesNoneRoles that are never checked.

Commands

CommandWhat it does
/security verify <user>Verify a member by hand.
/security unverify <user>Remove a member's verification.
/security raid [action]Show raid status, or start or end a lockdown.
/security antiping [action]Show anti-ping status, or send a test alert.
Verify MemberRight-click a member, then Apps > Verify Member. Off by default on the Commands page.

These belong to the Admin rank by default. The Security Events log records verifications, gatekeeper kicks, raids, ghost pings and blocked mass mentions.