PHOENIX
A phoenix of flame wrapped around a colossal round iron vault door set in a dark cliff, one golden eye watching outward

Chapter four

Security

Phoenix holds the tie between your Discord account and your wallets, so it is built to give away as little as possible: it asks for little, keeps less, seals what it keeps, and makes bots pay at every door.

The first promise

What Phoenix never asks for

Your seed phrase, your private key, or an approval to spend, and it never sends your wallet a transaction to approve. Phoenix proves you hold a wallet with one signed message. If you would rather not connect your wallet, you can instead send a tiny amount from it to itself yourself, or put a code in its OpenSea bio: the coins never leave your wallet, and nothing ever goes to anyone else's address. Anyone asking for more is not Phoenix.

From Discord, Phoenix asks for two things only: who you are, and the list of servers you are in. It never asks to read your messages, join servers for you, or act as you. Linked Roles, if you turn it on, asks Discord for one more thing: to update what Discord shows about your Phoenix connection.

Your data at rest

Sealed on our own server

  • One encrypted file. Everything Phoenix keeps lives in one file on our own server, encrypted with AES-256-GCM under a key made from a secret that lives only in the server's settings. On disk, no name, Discord id or wallet address can be read.
  • Tamper shows. Every save is sealed with a fresh random number, and the seal covers the whole file. If even one byte is changed, or the key is wrong, Phoenix refuses to open it and stops rather than guess.
  • No Discord login token kept. Phoenix reads your name and server list once, then hands the Discord login token straight back to be cancelled. If you turn on Linked Roles, Phoenix keeps that one connection's token, sealed, until you turn it off.
  • No outside services. Phoenix's pages load nothing from anywhere else: no trackers, no analytics, no outside fonts or scripts. Holdings are read from the chains themselves, not from another verification service. The only other service Phoenix's server asks is OpenSea, and only to read a bio when someone proves a wallet that way.
  • Passkeys keep only a public key. A passkey's secret half never leaves your device; Phoenix keeps the public half, which can check a signature but never make one.
  • Short in the history. Wallets appear only shortened in your account's history.
  • Recovery codes kept only as fingerprints. Your authenticator's key is sealed in the file with everything else, and your ten recovery codes are kept only as one-way fingerprints (SHA-256), so not even the file holds them. Phoenix shows them to you once and never again.
Signing in

Sessions that cannot be borrowed

  • Two-factor on every account. Signing in with Discord is only the first step. Phoenix then asks for the six-digit code from your authenticator app (or a passkey you added), every time, for everyone, owners included, with no switch to turn it off. A stolen Discord login alone gets nobody in. Until the code is in, the sign in opens nothing but the code step, and it runs out after ten minutes.
  • A code works once, and guessing is slow. Each code is good for 30 seconds and only once, so a code seen over your shoulder is already spent. After five wrong codes Phoenix makes the next try wait, longer each time, and twenty wrong codes in a day stop that account's codes for up to a day: guessing a six-digit code at that pace would take decades. Restarting Phoenix does not wipe these counts: they are kept, sealed, under names that say neither who nor where from.
  • A new authenticator signs out the rest. Moving two-factor to a new phone needs your current code (or a recovery code), and signs you out on every other device.
  • A cookie scripts cannot read. Your sign in is a long random code in a cookie marked HttpOnly and Secure, tied to this site alone.
  • Pages that keep to themselves. Phoenix's pages run only their own scripts and styles, nothing written into the page, and a page from another site that opens Phoenix gets no handle on its window.
  • It runs out. A sign in lasts at most twelve hours, and ends after two hours of not being used.
  • Every change is checked twice. Anything that changes your account needs a second secret code from the page and must come from Phoenix's own site, so another site cannot act for you while you are signed in.
  • A sign in finishes where it started. It has to come back to the same browser within ten minutes, so nobody can slip you into their account.
  • Discord's calls are proven. Every call from Discord to Phoenix's bot carries Discord's Ed25519 signature, and Phoenix refuses any that is unsigned, badly signed, or more than five minutes old.
Keeping bots out

A price at every door

  1. A puzzle before every link Built

    Before each wallet link, your browser solves a proof of work: it searches for a number that, mixed with a code from our server, gives a hash starting with 18 zero bits. One person waits a moment; a farm linking thousands of wallets pays for every single one. Each puzzle is tied to your sign in and works once.

  2. Messages that work once Built

    The message you sign is written by our server for you alone and is spent after one try or ten minutes, whichever comes first. A copied signature is worthless.

  3. Limits on how fast Built

    Sign ins are limited per place, and puzzles and links per Discord account. Going too fast gets a polite "wait a few minutes".

  4. A picture check and an account age gate Built

    Pressing Verify in a server starts a picture check drawn fresh for every try: five clear letters and digits, each tilted a little, to type, a new picture after each wrong answer, three tries, then a wait. A server can also turn away Discord accounts younger than it likes. A person gets through in seconds; a script that presses buttons does not. A very good picture reader could, which is why the real wall is the wallet proof and your two-factor.

Your control

Yours to take out or wipe

You can unlink a wallet at any time, on your dashboard or with /unlink in Discord. From your dashboard you can download everything Phoenix holds on you, sign out on every device, or delete your Phoenix account, which leaves nothing on you behind, not even your id in Phoenix's history. The member's guide shows where.

Servers get the same: when Phoenix is removed from a server, everything it held for that server is deleted 48 hours later, with a countdown and a download meanwhile, unless Phoenix is added back.

Watching the watchers

Admins on the record

  • Admins need two locks on Discord too. Phoenix's admins and owners must have Discord's own two-factor turned on as well as Phoenix's, or the admin panel stays shut to them.
  • Every admin action is written down. Locking someone out, signing them out, unlinking a wallet, resetting someone's two-factor, adding or removing an admin: each goes on Phoenix's audit trail, and on the person's own history. So do two-factor being turned on, moved, a recovery code used, and new codes made.
  • Checked on every click. Whether someone is an admin or an authorized user is asked again on every request, never remembered. When an owner removes an admin, or an admin removes an authorized user, it counts on their very next click.
  • Each server has its own admin list. Managing a server in Discord is not enough to run Phoenix there: only its Discord owner and the people on its list are let in, read again on every request. Adding someone takes a fresh code and a 24-hour wait that anyone on the list can cancel, and only the Discord owner takes someone else off.
  • A takeover can be undone. Phoenix keeps hourly restore points of each server's roles and channel permissions for 7 days, and reads Discord's audit log to show who changed what. Undo puts them back, but only for someone on the server's admin list, with a fresh code and both switches on, and every Undo goes in the server's mod log and on Phoenix's owners' rollback log.
  • Phoenix lists, a person decides. Flagged members puts members who break a server's rules on a list, from button presses and Discord's audit log, never chat. Phoenix never mutes or bans anyone by itself. A ban takes a fresh code, mute and ban need both switches, nobody on the server's admin list can be muted or banned from there, and each one goes in the server's mod log.
  • Giving out rights takes a fresh code. Adding an admin, making an invite and naming a moderator each ask for the person's current authenticator code at that moment, spent like any other code. A stolen session alone cannot hand anyone rights. Owners are the Discord accounts set on Phoenix's server; no page can make anyone an owner.
  • Invites work once. An invite link is 32 random bytes, works once and runs out after seven days. Phoenix keeps only a fingerprint of it, so even its own data file holds no working link.
  • Only Phoenix can add its bot. Add Phoenix runs Discord's full code grant through Phoenix, and the bot joins a server only when Phoenix trades the code in, for an invited person, in the browser that started it, for the server they picked.
  • Nobody acts on an owner, and only an owner acts on an admin.
  • Owners can eject a server. A server proven to be acting in bad faith can be ejected by an owner, with Discord's two-factor on, WIPE IT typed and a current code. Phoenix leaves it and deletes everything it holds for it at once, then blocks it: it cannot add Phoenix again unless an owner approves an exception, with a reason. Every eject, every try to add a blocked server back and every exception is on a log kept for good.
  • Counts, never names. Phoenix's admins have an Activity page that shows how Phoenix is used, day by day: sign ins, wallets linked, checks, roles given and taken. It holds numbers only, never a name, an id or an address.
The monthly watch

Phoenix audits itself

Old Hob the Sergeant, in his crimson sergeant's coat, pointing

Old Hob the Sergeant, the security officer each server's admins meet on its Security tab, also keeps the watch on Phoenix itself. On the 1st of every month he runs Phoenix's own security audit, and Phoenix's owners can send him round again at any time from the Security tab of their Owners page.

He checks 23 things in five groups: standard checks for a web application, most of them tied to a risk on the OWASP Top 10, the best-known list of web application risks:

  • Who gets in. Few owners and admins, no admin invite link left open, and every site that signs people in with Phoenix sending them back over https.
  • Keys and stored data. The data key is strong and Phoenix's own, the data file on the disk is sealed, no old key is left behind, the sign-in cookie is https only, the data lives on the host's disk, and the rate limits see each visitor.
  • What the world can see. Phoenix asks itself for its pages, its private files and its private API the way a stranger would: the security policy must be enforced, browsers told to use https only, no private file served, no private route answered, and the certificate good for weeks to come.
  • Mail and the domain. Mail forged in Phoenix's name is quarantined or rejected (DMARC), the domain says who may send its mail and who may issue its certificates, and mail to the contact address on the terms and privacy pages arrives.
  • The code it runs on. Node.js still gets security fixes, there are no outside packages to keep patched, and no page loads a script from another site.

Each audit gets one colour, on the same scale as a server's: green all clear, yellow worth a look, Stop for a serious gap, red for a critical one. A check that cannot be read counts for nothing, never as a pass. The owners get every failed check with what to do and where, and a running log that keeps every audit and who reviewed it.

The audit follows three published standards: the OWASP Top 10 (2021) for what to check, NIST FIPS 199 for rating each gap Low, Moderate or High against confidentiality, integrity and availability, and ISO/IEC 27001:2022 Annex A for the controls each check belongs to (more on the standards). Its results are for Phoenix's owners only.

Every six hours Phoenix also reads the open Node.js security feeds and shows its owners every published vulnerability in the Node it runs, with the release that fixes it. A new Node release goes through every one of Phoenix's checks before it can go live, and if the site goes down after one, the old version is put back. Phoenix's owners can have it post a note in one Discord channel just before it restarts for an update and again when it is back, and email them and Phoenix's admins a short summary each time a patch goes live or is rolled back: the versions, the CVE numbers and their severity, never how a flaw works.

Tested

Checked on every change

Phoenix has its own suite of automated checks, run on every change in Phoenix's own repository. Among them: the file on disk shows nothing readable, one changed byte locks it, a sign in cannot be forced from another browser, a Discord sign in alone opens nothing, a code works once and guessing is slowed, an admin without Discord's two-factor is turned away, every change needs its codes, a signature from the wrong wallet is refused, a used message cannot be used again, an admin cannot act on another admin, a chain that does not answer never takes a role away, a spreadsheet can never run a cell of a holder snapshot, a cloned passkey is refused, an invite works once, handing out rights needs a fresh code, a Discord admin who is not on a server's list cannot open its page, a new server admin waits 24 hours, a link made by hand cannot add the bot, an ejected server cannot add Phoenix back, and Phoenix changes no role and posts nothing in a server until both its switches are on.

Staying safe

How to spot a fake

  • It asks for your seed phrase, a private key, or to "connect and approve".
  • Your wallet shows a spending approval, or a transaction you did not start yourself, instead of a plain message. A send to itself goes only to the same address it comes from.
  • The address bar is not Phoenix's. Today Phoenix lives at phoenixcheck.net/phoenix/.
  • The message you are asked to sign names a different site, or does not name your Discord account.
  • Someone sent you a direct message with a link to verify. Phoenix never does: its only direct message is a heads-up some servers turn on before a role goes, and it has no link in it.
  • Someone asks you for your six-digit code or a recovery code. Phoenix's admins never do; you type them only on Phoenix's own sign in page.

If you see any of these, close the page and tell the people who run your server. If your server has an official links card, press Is this link real? on it and paste the link: Phoenix answers only you and says whether it is one of the server's own (more in the member's guide). If someone messaged you saying they are staff, press Is this person staff? on the same card and type their username.