Draupnir moderation bot and policy lists

Draupnir is a moderation bot for Matrix rooms that applies shared policy lists and bans across rooms, and it is worth running only when manual moderation no longer keeps up. This page explains the decision, the setup, and the limits to confirm.

On this page

When a Draupnir moderation bot is worth running on your Matrix server

Run Draupnir when manual moderation no longer keeps up with the abuse you see. If you operate a Matrix homeserver or lead a community with spam, abusive users or the same bad actors showing up across many rooms, moderators end up repeating identical ban and redaction steps in each room. Draupnir is a moderation bot for Matrix. It applies policy lists, which are shared lists of users, rooms and servers that moderators have flagged, and it can manage bans and protections across the rooms it is joined to. The question for your team is whether that repetition, and the risk of missed rooms, costs more time than running and maintaining a bot. Confirm the current feature set, supported room versions and configuration format in the Draupnir documentation before you plan around them, because these details change between releases.

Before you decide, inventory where the problem sits. Count how many rooms your moderators touch each week, how many bans are repeated across rooms, and whether abuse comes from a small set of accounts or servers that a shared list could cover. A bot is less useful when abuse is mostly one-off harassment that needs human judgment about context, or when your rooms are few and low volume. Also check your homeserver first. Synapse's own admin tools, such as the event reports and room admin APIs, handle many single-room tasks, so a bot should add coverage you cannot get otherwise. Decide who owns policy list subscriptions, since a list you trust is a moderation decision made on your behalf.

Draupnir configuration options and when each fits

Draupnir can subscribe to shared policy lists, which are collections of ban rules maintained by other communities or operators. A subscription lets a moderation team inherit decisions made elsewhere about spam sources, abusive accounts or banned rooms, which saves review effort on known problems. The cost is trust. You accept another party's judgment about who is banned, and a list built for a different community may catch accounts or rooms you would have allowed.

  • Fits: rooms that receive heavy spam or harassment from well-known sources and have too few moderators to triage it by hand.
  • Trade-off: list quality varies, and a false positive lands on your users without anyone reviewing it first.
  • Control: review who maintains each list, how often it updates and whether you can override an entry locally.
  • Staging: consider starting with a single list in a test room before applying it across your spaces.
  • Exit: confirm how removing a subscription affects bans that were already applied.

Before subscribing, check the current list options, their update behavior and the override controls in the Draupnir documentation, since these details change between releases.

Setting up Draupnir with policy lists and protections

This sequence takes Draupnir from a dedicated moderator account to a bot that enforces chosen policy lists and protections across your rooms. Each step ends with a check so you know the bot can act before it touches production rooms.

  1. Create a dedicated moderator account

    Register a separate account on your homeserver for the bot, with a name that makes its role obvious to members and auditors, such as a moderation bot user. Keep it out of the human admin group and store its credentials in your secrets manager, not in shared notes. Confirm the account can log in with its own credentials and that it is not shared with any person. Done means the account exists, has a documented owner, and its login is recorded in your access inventory.

  2. Grant room permissions to the bot

    Decide which rooms the bot will moderate first, then invite the moderator account into each one and give it a power level that allows it to ban, redact and change the relevant state. Grant the minimum permissions the protections need, and avoid giving it admin rights on rooms it only watches. Check the room settings in a client to confirm the bot shows the expected power level. Done means the bot appears as a member with the agreed permissions in every room in scope.

  3. Deploy the bot in your infrastructure

    Install Draupnir on a host or container platform you control, connect it to your homeserver with the moderator account, and store its configuration and database alongside your other Matrix services. Confirm the bot's outbound network path to the homeserver and to the policy list sources, and keep its management interface off public networks. Follow the project's current installation documentation for versions and prerequisites. Done means the bot starts, logs in and joins its management room without errors.

  4. Subscribe to policy lists and enable protections

    Add the policy lists your organization has agreed to trust, and review each list's owner, scope and update behavior before subscribing. Enable only the protections that match your risk and turn on logging for each one so every automated action is traceable. Record the chosen lists and settings in your change log, because they determine what the bot will ban. Confirm the bot reports the subscribed lists and active protections in its management room. Done means the configuration matches the approved list.

  5. Test enforcement in a sandbox room

    Create a sandbox room with test accounts, invite the moderator account, and run the protections against known test cases, including a user from a listed server and a test ban issued through the bot. Confirm the bot can see messages, act on them and that the ban takes effect for the test user across the sandbox. Check that the ban appears in the bot's log and that the member is removed. Done means each test produces the expected action and nothing affects real rooms.

  6. Verify ban propagation before wider rollout

    Where the bot is set to share bans across several rooms, add a second sandbox room and confirm a ban issued in the first room reaches the second as configured. Also confirm that unbanning or removing a list entry behaves the way your policy expects, since reversals are easy to get wrong. Record any gaps, such as rooms the bot cannot act in, and fix them before continuing. Done means propagation, reversal and failure cases match your written expectations.

  7. Roll out across production rooms

    Extend the bot's room membership and permissions to production rooms in stages, starting with the lowest-traffic rooms and watching the bot's logs after each stage. Keep a documented way to disable protections or remove the bot quickly if it causes unexpected removals. Confirm with room owners that they know what the bot does and how to report a false positive. Done means each room in scope is covered, the logs show expected actions, and owners have a contact for issues.

How Draupnir sits between policy lists, rooms and your homeserver

The diagram starts with the policy list sources that the operator chooses to subscribe to. Draupnir runs under its own bot account on your homeserver, reads its configuration, and acts on rooms it has been invited into and given moderator rights in. Its actions reach the rooms only through the homeserver, so the bot account's permissions and the homeserver's admin settings set the real limits. Check which lists are subscribed, which rooms the bot can act in, and who can change its credentials.

Policy lists feed the bot, which acts on rooms through the homeserver.

Security risks of running a moderation bot with broad room permissions

A moderation bot that can ban, redact and change room settings across many rooms becomes one of the most sensitive accounts on your homeserver. The cards below cover the risks that follow from that power and the control to apply to each, so the bot's reach stays matched to what your moderators have agreed to.

Over-trusting external policy lists

Draupnir acts on the policy lists you subscribe to, so a list maintained by someone else can ban users in your rooms without a local decision. Review each list's owner, scope and update history before subscribing, and keep the number of subscriptions small. Decide in advance whether a list entry triggers an automatic ban or only a report for a human moderator to review.

Bot account holding broad permissions

The bot account needs power levels high enough to ban, redact and change room state in every protected room. Any compromise of that account lets an attacker do the same across all of them. Grant the bot only the power level each room needs, use a dedicated account rather than a moderator's personal login, and review its room memberships on a fixed schedule.

False positives banning legitimate users

A pattern that matches spam can also match a real member's message, a shared link or a common display name. A wrong ban in a large room can remove people who have no way to see why. Test each enabled protection against recent room history in a staging room, record how many matches a human would have reversed, and confirm that a moderator can quickly lift a ban.

Bot credential handling and rotation

The bot's access token and password live in configuration on the host that runs it. A token copied into a chat, a backup or a container image gives the same reach as the account itself. Store the credential in a secrets manager or a file readable only by the service user, rotate it on a set schedule and after any staff change, and revoke the old device so a leaked token stops working.

Encrypted rooms the bot cannot read

In an end-to-end encrypted room, a bot without the right keys sees only ciphertext, so content-based protections do not apply there. Some rooms may appear protected while messages pass unchecked. Confirm which rooms are encrypted, decide whether the bot joins them with keys and how those keys are held, and document that moderators in encrypted rooms rely on reports rather than automatic scanning.

Audit logging of bot actions

A bot that bans or redacts without a record makes it hard to explain a removal or prove who made it. Keep the bot's actions in a log you control, with the rule or list entry that triggered each action, the room, and the time. Review that log regularly, and test that you can reconstruct a single ban from it during an appeal or an incident review.

Questions buyers ask before deploying Draupnir

Should we run Draupnir or rely on manual moderation?

Run Draupnir when rooms receive enough unwanted invites, spam or known abusive accounts that moderators spend recurring time on the same bans, and when you want shared policy lists applied consistently across rooms. Manual moderation remains workable for small, closed rooms with few members and clear admin ownership. A bot does not replace moderator judgment: it applies lists and rules you choose, and every list you subscribe to becomes a set of decisions your team has accepted. Decide first who owns those decisions and how a wrong ban gets reversed.

What skills does the team need to run Draupnir well?

The team needs working Matrix administration skills, meaning comfort with room power levels, ban and kick events, the bot's own account and its permissions in each room, and how the homeserver applies those events. Someone must also design the room permission model so the bot can act where it is needed and nowhere else. List selection is a governance task: each policy list reflects someone's judgment about what counts as abuse, so assign an owner who can review what a list will ban before it goes live.

Can our own team deploy Draupnir without outside help?

Yes, if your team already operates a Synapse homeserver, understands room administration and can test changes in a non-production room. The work is bounded: deploy the bot, grant it the right permissions, subscribe to chosen lists, enable protections and document the procedure. External help is most useful where the team lacks Matrix operations experience, where rooms are encrypted and need a tested approach to moderation, or where a written review of permissions and list choices is required before approval. Confirm the bot's current setup steps against its own documentation for the version you plan to run.

What drives the effort of a Draupnir deployment?

The main drivers are the number of rooms the bot must protect, the number of policy lists you subscribe to, and whether those rooms use end-to-end encryption. More rooms multiply permission grants and room-by-room checks. Each added list increases the chance of false positives and the time needed to review its effect. Encrypted rooms require the bot to handle keys and verification in a way your team must test, which adds work. Scope also changes with whether you protect only your server's rooms or also serve rooms across other homeservers. Ask the provider to list each of these inputs in the quote.

How long should a pilot take to validate Draupnir?

A pilot should run long enough to see the bot act on real traffic in a limited set of rooms, review every ban and protection it triggers, and confirm that reversing a wrong action works. The duration depends on how often your rooms receive the kind of activity the lists target, so no fixed period is safe to assume. Define success criteria before starting, such as how many false positives moderators will accept and who signs off. Agree the pilot length and exit criteria in the written scope rather than leaving them open-ended.

What should we ask for in a written scope?

Ask for a named list of rooms and spaces in scope, the protections and policy lists to be enabled, and the owner of each list decision. Require a permission matrix showing which accounts the bot uses and what each may do. The scope should state how encrypted rooms are handled, how bans are logged and reviewed, how an erroneous ban is reversed, and what the handover covers for documentation and training. Also ask what happens after go-live, including list updates, bot upgrades and any retainer for ongoing support. Confirm the deliverables and acceptance tests in writing before work begins.

Does a moderation bot change our compliance position for chat data?

A moderation bot changes what your organization records and acts on, so it should appear in your data handling documentation. Bans and actions create events on the server, and the bot's account, logs and list sources become part of the processing picture your compliance team reviews. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports or certifications. Confirm with your compliance and legal teams which logs must be kept, how long they are retained and whether the list sources you choose are acceptable under your policies.

Running Draupnir day to day after launch

The first ongoing task after launch is a regular review of what Draupnir has actually done, because a moderation bot acts on other people's content and its bans spread to every room it manages. Set a fixed review cadence with named owners for three things: the ban and redaction activity the bot has recorded, the appeals users have raised about it, and the subscribed policy lists themselves. For each list, confirm who chose it, why it was trusted, and whether its maintainers still publish updates. A list that no one reviews can quietly accumulate entries that no longer match your community's rules. Record the review outcome so that the next reviewer can see what changed and why. The exact fields and commands Draupnir exposes for listing bans and managing subscriptions should be confirmed against the version you deploy, not taken from memory.

Watch for false positives as a standing item, not an occasional complaint. A legitimate user caught by a broad ban, or a room where an automated action removed a useful message, is the signal that a protection is set too aggressively or a list is too coarse. Route these cases into the same review queue you use for abuse reports, so that a person reads the reported event in context before anything is reversed or retained. Where a user is suspended or their account needs wider action, that decision stays with your administrators and follows the procedures in the sibling topics on abuse reports and spam accounts. Draupnir handles room-level enforcement; it does not replace human judgment about a person. Keep a written record of each reversal so that repeated false positives from the same list become visible.

Keep the bot aligned with your homeserver. Synapse upgrades change the admin and event behavior the bot depends on, and the Synapse upgrade notes warn that rollback can be difficult because of database schema changes, so plan the bot upgrade in the same change window and test it against a non-production copy first. Document your moderation policy in writing: what the bot is allowed to ban, which lists are enabled per room, who may add a list, how appeals are handled and how long records are kept. This document is what an auditor or a community member will ask for, and it is what lets a new administrator take over without guessing. Review it whenever you change lists, change the Synapse version or change your community rules.

How DeployOpen scopes and delivers Matrix moderation bot work

DeployOpen plans and implements Draupnir moderation bot and policy list setups inside infrastructure the client controls, starting from a written scope. Work covers the bot's deployment, the protections and list subscriptions chosen for each room and the server, and the handover of procedures your moderators and administrators will run.

How we scope

  • Confirm which rooms, spaces and communities the bot will protect and who owns each one.
  • Decide which policy lists to subscribe to, and who approves adding or changing a list.
  • Agree in writing whether the bot runs on your homeserver, and what it is allowed to do.

How we build

  • Deploy Draupnir in your infrastructure with its account, access tokens and configuration kept under your control.
  • Enable only the protections the agreed scope needs, and test each one in a staging room first.
  • Verify ban propagation across protected rooms and confirm that the bot's permissions match the written design.

How we hand over

  • Document the list subscriptions, protections, room coverage and the reasons each decision was made.
  • Provide runbooks for adding a list, reviewing a ban, reversing a mistaken ban and rotating credentials.
  • Walk your moderators and administrators through the procedures and the bot's audit trail before close.

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • Ongoing support, upgrades and list reviews are available as a retainer after handover.
  • Ask for a quote built from your written scope, covering one-time build work and any recurring support.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.