PHOENIX
A phoenix of flame perched on a dark stone watchtower above a village of glowing corn, one lantern lit in its window, watching the night

Chapter five

Your server's security

Old Hob the Sergeant keeps the watch on every server that runs Phoenix: an audit against 23 rules every month, rated by NIST FIPS 199 and mapped to ISO/IEC 27001, a status you can see from across the room, and every safety tool on one tab. This is his watch book.

Your security officer

Meet Old Hob

Old Hob the Sergeant: bald, with a great grey moustache, in a crimson sergeant's coat with a gold phoenix badge, holding up a lit brass lantern

Old Hob the Sergeant comes from Shadows of the Corn, where he is one of the Mercenaries, the hands for hire who work for either side. He has retired four times and keeps a spare uniform for the fifth. In a fight he blows his whistle and every defender near him fires faster.

On Phoenix he is your security officer. He stands on the Security tab of every server you run, under Safety, and his face tells you how the server is doing before you read a word. The first time you open the tab, he walks you through it.

He only reads. Nothing he does changes anything in your server: he tells you what to fix and which tab fixes it, and a person decides.

From across the room

Four colours, and grey

Every server gets a status from its last audit. The Security tab shows it round Old Hob, and your server's card on your dashboard glows in it.

All clear
Every rule he could check passes.
Worth a look
Only warnings: nothing urgent, but things that could be tighter, such as a guard switched off.
Stop and fix
At least one serious gap that a raider or a thief would use, such as moderators acting without two-factor, or a bot with Administrator.
Danger
Something critical, now: @everyone can manage your server, its roles or its channels, or a lockdown is running. On your dashboard, a red card pulses.
Grey
Phoenix is not in the server, or it has not been audited yet.

A rule Phoenix could not read just then, because Discord did not answer, says not checked and counts for nothing either way. Nor does a rule your admins deferred for future consideration.

The rounds

When he walks the walls

  1. On the 1st of every month

    Every server Phoenix is in is audited on its own on the 1st (UTC), a few at a time through the day. A server that has not been audited since the 1st, because Phoenix was down or the server joined later in the month, is audited at the next chance.

  2. Whenever you ask, once a day

    Press Run the audit on the Security tab. It takes a few seconds, and you can press it again 24 hours later. A Phoenix owner on the server's admin list can press it as often as they like, one audit at a time; their runs do not use up the server's once a day for its other admins.

  3. At the end of every clean start

    The last step of every Clean start run is an audit of the server as it now is, so you see straight away what the clean-up fixed and what is left. Its status is on Clean start's Last run.

An audit reads your server's settings, roles, channels and bots from Discord, and Phoenix's own guards from its book. It needs no switch: it works before your server goes Live, and whether or not Phoenix's owners have switched Phoenix on.

The watch book

The 23 rules

Each rule has a level: critical turns the status red, serious turns it to Stop, and a warning turns it yellow. In brackets is the same level as a FIPS 199 impact, and under each rule the objectives it protects and its ISO/IEC 27001 controls (see the standards). Every rule that fails is listed under What to do first, the most dangerous at the top, with the tab that fixes it.

Discord's own settings

Only Discord changes these, in your server's settings. Each needs its owner or a manager.

The ruleLevelTo pass
Two-factor for moderator actionsIntegrity and availability · ISO/IEC 27001 A.8.5, A.8.2Serious (Moderate)Server Settings, Safety Setup: turn on Require 2FA for moderator actions. Only the Discord owner can, with their own two-factor on. Then one stolen password cannot ban, kick or change roles.
Verification level Medium or higherIntegrity and availability · ISO/IEC 27001 A.5.16, A.5.15Serious (Moderate) at None, a warning (Low) at LowServer Settings, Safety Setup, Verification Level: Medium (on Discord for five minutes) or higher.
Explicit image filter for every memberIntegrityWarning (Low)Server Settings, Safety Setup, Explicit image filter: Filter messages from all members.
New members notified of @mentions onlyAvailabilityWarning (Low)Server Settings, Overview, Default Notification Settings: Only @mentions. A raid's spam then reaches nobody's phone.

Roles and permissions

The ruleLevelTo pass
@everyone has no powerful permissionConfidentiality, integrity and availability · ISO/IEC 27001 A.5.15, A.5.18, A.8.2Critical (High) for Administrator, Manage Server, Manage Roles, Manage Channels, Manage Webhooks, Ban or Kick; serious (Moderate) for the restServer Settings, Roles, @everyone: turn them off, or take them away on Clean start. The rest are Timeout, Manage Messages, Manage Threads, Manage Expressions and Mention @everyone.
No channel gives @everyone a powerful permissionIntegrity and availability · ISO/IEC 27001 A.5.15, A.5.18Serious (Moderate)Clean start lists each one under Channel permissions: Take out the powerful ones.
Administrator on two roles at mostConfidentiality, integrity and availability · ISO/IEC 27001 A.8.2, A.5.3Warning (Low)Give your team the permissions they use rather than Administrator; keep Administrator to the owners' role. Bots' own roles are not counted here.
No conflicts in your rules, roles and botsIntegrity · ISO/IEC 27001 A.5.18, A.8.9Warning (Low)Open Conflicts: each says what to do.

Bots and apps

The ruleLevelTo pass
No bot but Phoenix has AdministratorConfidentiality, integrity and availability · ISO/IEC 27001 A.8.2, A.5.19Serious (Moderate)A bot with Administrator can do anything, and if its maker is hacked, so is your server. Give each bot only what it needs (Server Settings, Roles, the bot's role). Bots shows each one's permissions.
No new bot can manage the serverIntegrity and availability · ISO/IEC 27001 A.5.19, A.8.2Serious (Moderate)A bot added in the last 14 days with Manage Server or Administrator: open Bots, check who added it and why. Kick it if nobody knows.
Phoenix can read the audit logIntegrity · ISO/IEC 27001 A.8.15Serious (Moderate)Server Settings, Roles, Phoenix: turn on View Audit Log. Recovery, Flagged members and Bots read it.

Phoenix's guards

The ruleLevelTo pass
The captcha gate is onIntegrity and availability · ISO/IEC 27001 A.5.15Warning (Low)Captcha gate: it is on unless you switched it off.
Anti-raid is onIntegrity and availability · ISO/IEC 27001 A.8.16, A.5.26Serious (Moderate)Anti-raid: pick the alerts channel and switch it on.
Recovery is onIntegrity and availability · ISO/IEC 27001 A.8.13, A.5.30Serious (Moderate)Recovery keeps hourly restore points so a takeover can be undone. On unless you switched it off.
The Flagged members list is onIntegrity · ISO/IEC 27001 A.8.16Warning (Low)Flagged members: switch the list on.
Impersonator alerts are onConfidentiality and integrity · ISO/IEC 27001 A.8.16Warning (Low)Impersonator alerts: add your team and switch it on.
Official links and the link checker are onConfidentiality and integrity · ISO/IEC 27001 A.8.23Warning (Low)Official links: list your real sites and switch it on.
A mod log for Phoenix's alertsIntegrity · ISO/IEC 27001 A.8.15, A.6.8Serious (Moderate)Settings: pick a mod log channel only your team can see. Without one, every alert goes nowhere.

Right now

The ruleLevelTo pass
No lockdown runningAvailability · ISO/IEC 27001 A.5.26Critical (High)Anti-raid: see what started it, and end it when the raid is over. It ends on its own at the time set.
Nobody high risk on the Flagged listIntegrity · ISO/IEC 27001 A.5.25Serious (Moderate)Flagged members: clear each one, or mute or ban them.
No impersonator alert waitingConfidentiality and integrity · ISO/IEC 27001 A.5.25Warning (Low)Impersonator alerts: mark each one Not an impersonator, or deal with them in Discord.
Nobody waiting to join the admin listIntegrity · ISO/IEC 27001 A.5.18Warning (Low)Admins: if you do not know why someone was added, cancel it before their 24 hours are up.
No Undo in the last 14 daysIntegrity · ISO/IEC 27001 A.5.26, A.8.16Warning (Low)After a Recovery Undo, watch Who changed what for a while and check who has Manage Roles. It passes again 14 days later.
By the book

The standards

Old Hob's watch book follows two published standards, so you can say how your server is judged, and by what.

NIST FIPS 199

FIPS 199, Standards for Security Categorization of Federal Information and Information Systems, was published by the US National Institute of Standards and Technology (NIST) in February 2004. It rates what a loss could cost against three security objectives, at three levels of potential impact. The audit uses its method:

  • Confidentiality, integrity and availability. Every rule names the objectives it protects: confidentiality (who can see what, and your members' secrets, such as a wallet a fake link asks for), integrity (that roles, messages, links and people are what they claim, and that changes are on record) and availability (that the server stays usable through a raid or a takeover).
  • Low, Moderate and High. A rule's level is the potential impact of the loss it leaves the door open to, as FIPS 199 defines them: a warning is Low (a limited adverse effect), serious is Moderate (a serious adverse effect) and critical is High (a severe or catastrophic adverse effect).
  • Your server's category. Each audit writes the server's category the FIPS 199 way, one impact for each objective: the highest among the rules that failed and protect it, or none open. It is under the status on the Security tab, for example Confidentiality: Low, Integrity: Moderate, Availability: High.
  • The status. The status is the highest of the three, the high water mark that FIPS 200, FIPS 199's companion standard, takes as a system's overall impact level: High is red, Moderate is Stop, Low is yellow, and nothing open is green.

ISO/IEC 27001:2022

ISO/IEC 27001 is the international standard for information security management systems. Its Annex A lists 93 controls. Every rule names the Annex A controls it checks a part of, so a team that keeps an ISO/IEC 27001 record can file each audit under them:

A.5.3 Segregation of duties
Administrator on two roles at most.
A.5.15 Access control
Verification level Medium or higher; @everyone has no powerful permission; No channel gives @everyone a powerful permission; The captcha gate is on.
A.5.16 Identity management
Verification level Medium or higher.
A.5.18 Access rights
@everyone has no powerful permission; No channel gives @everyone a powerful permission; No conflicts in your rules, roles and bots; Nobody waiting to join the admin list.
A.5.19 Information security in supplier relationships
No bot but Phoenix has Administrator; No new bot can manage the server.
A.5.25 Assessment and decision on information security events
Nobody high risk on the Flagged list; No impersonator alert waiting.
A.5.26 Response to information security incidents
Anti-raid is on; No lockdown running; No Undo in the last 14 days.
A.5.30 ICT readiness for business continuity
Recovery is on.
A.6.8 Information security event reporting
A mod log for Phoenix's alerts.
A.8.2 Privileged access rights
Two-factor for moderator actions; @everyone has no powerful permission; Administrator on two roles at most; No bot but Phoenix has Administrator; No new bot can manage the server.
A.8.5 Secure authentication
Two-factor for moderator actions.
A.8.9 Configuration management
No conflicts in your rules, roles and bots.
A.8.13 Information backup
Recovery is on.
A.8.15 Logging
Phoenix can read the audit log; A mod log for Phoenix's alerts.
A.8.16 Monitoring activities
Anti-raid is on; The Flagged members list is on; Impersonator alerts are on; No Undo in the last 14 days.
A.8.23 Web filtering
Official links and the link checker are on.

Two rules, the explicit image filter and new members' notifications, are community safety settings that no Annex A control fits, so they name none. The suite as a whole serves three more: the audit on the 1st of every month is a regular check of the server against set rules (A.5.36 Compliance with policies, rules and standards for information security), the walkthroughs and this guide are awareness and training (A.6.3 Information security awareness, education and training), and When it turns red is a plan for an incident (A.5.24 Information security incident management planning and preparation).

The Security tab

One tab for every safety tool

  • The console. Old Hob, his word on the server, the share of rules that pass in a ring, the status, when the last audit ran and why, the date of the next monthly audit, and a bar for each of the last audits. Run the audit and Walk me through it are underneath.
  • What to do first. Every rule that failed, the most dangerous at the top, each with what it found, what to do, and a button to the tab that fixes it, or In Discord when only Discord can. A warning or serious rule also has Defer.
  • Deferred for future consideration. The rules your admins have seen and chosen to leave for now, with who deferred each, when and why, and The record of past deferrals (below).
  • Your security suite. Five cards, one per group, each in its own colour, with three numbers (for example the bots with Administrator, the restore points kept, the members flagged) and links to its tabs. Open a card to see each of its rules.

Security is for your server's admins. Moderators do not see it.

Seen, not forgotten

Deferred for future consideration

Sometimes a rule fails on purpose: another bot does the captcha, or the Discord owner has chosen to leave a setting as it is. Rather than live with a status that never clears, an admin can defer that rule, so there is a record that it was seen and left for now.

  1. Press Defer on it

    On a warning or a serious rule in What to do first. Give a reason if you like (up to 300 characters), and a current code from your authenticator app. Only the people on the server's admin list can defer, and a critical rule can never be deferred: it is danger now.

  2. It stops counting

    A deferred rule leaves the status, the score, the counts and the FIPS 199 category, and Auto-monitor's post about the audit leaves it out too. It moves to Deferred for future consideration, with who deferred it, when and why, still showing what it found and what to do.

  3. It comes back by itself when things change

    A deferral holds only for the finding as it was. If a later audit finds the rule failing differently (another bot with Administrator, a second impersonator alert, a different level), the deferral ends and the rule counts again. If the rule passes, the deferral ends too.

  4. Or press Un-defer

    Anyone on the admin list can put it back at any time. That needs no code, because it only makes the audit stricter.

The record, under the list, keeps the last 20 deferrals, un-defers and endings with who and when. Each defer and un-defer is also on Phoenix's audit trail.

Sound the alarm

When it turns red

  1. Fix the top of the list first

    What to do first puts the critical rules at the top. If @everyone can manage your server, roles or channels, take those permissions off at once: anyone who joins can use them.

  2. A raid on? Let the lockdown work

    Anti-raid holds roles back from newcomers and can pause invites and DMs. Read what started it on the Anti-raid tab, and end it when the raid is over.

  3. A takeover? Undo it

    Recovery shows who changed what from Discord's audit log and puts your roles and channel permissions back from a restore point, with your authenticator code.

  4. Then run the audit again

    Once things are fixed, press Run the audit to see the status change. It can be run once a day, or any time by a Phoenix owner.

First time here

The walkthroughs

The first time you run Phoenix, four short walkthroughs show you round, each once:

  • Your dashboard: your servers and their glow, wallets, your account and Help.
  • A server's page: the six groups, the tabs, Health, Rules and the Live switch, and Safety.
  • Setting up a server, the first time you open one that is not set up: fresh or bringing in the roles already there, then each step on its tab (the setup bar).
  • Security, with Old Hob: the status, when he walks the walls, what to do first, what is deferred, and the cards.

Skip any of them whenever you like. Phoenix remembers on your account that you have seen them, so they do not come back on another device. Show me the walkthroughs again on your dashboard's Help tab brings all four back, Walk me through it on the setup bar replays the setup one for that server, and Walk me through it on the Security tab replays Old Hob's at any time.

What is kept

The watch log

For each server, Phoenix keeps its last audit (when, why, the status, and what each rule found, by role, channel and bot name, never a member's name), the status and counts of the 12 before it, when Run the audit was last pressed by someone other than a Phoenix owner, and the rules deferred for future consideration with the Discord id and name of the admin who deferred each, when and their reason, and the record of the last 20 deferrals. It goes with the server: deleted 48 hours after Phoenix leaves, or at once on an eject. Who pressed Run the audit is on Phoenix's audit trail. For you, Phoenix keeps which walkthroughs you have seen and when, in your own data download, deleted with your account.