Security & Safety

How mIRCscord protects servers, users, and data from malicious bots and abuse. Every layer is enforced server-side — bots cannot bypass these protections.

Permission System

Only server owners and admins (users with the Administrator permission bit) can:

Regular members cannot modify bot configuration. This is enforced server-side — the API rejects unauthorized requests with 403 Forbidden.

Bot Sandboxing

What bots CAN do:

What bots CANNOT do:

AI Bot Safety

Input Sanitization AUTO-ENFORCED

All user messages are sanitized before being sent to the AI provider. Common prompt injection patterns are filtered:

Output Sanitization AUTO-ENFORCED

Rate Limiting AUTO-ENFORCED

API Key Security

AutoMod Safety

Config Validation

All bot configuration is validated server-side before saving:

FieldLimitValidation
blocked_words500 itemsArray of strings, each max 100 chars
welcome_message1000 charsString with {username} placeholder
system_prompt4000 charsString (AI bots only)
active_channels20 channelsArray of valid UUID strings
block_linksBoolean only
block_capsBoolean only
api_keyMin length, provider prefix validation
providerMust be: openrouter, openai, anthropic, google, mistral, groq

Audit Trail

Every bot action is logged to bot_actions_log with:

Server admins will be able to view the audit log in server settings (coming soon).

Platform-Level Security

These protections apply to the entire platform, including bots:

mIRCscord Developer Portal — Built by gh0stc0de — mircscord.com