We actively maintain and provide security updates for the following versions:
| Version | Supported |
|---|---|
| 2.x.x | β |
| 1.x.x | β |
Please DO NOT report security vulnerabilities through public GitHub issues.
If you discover a security vulnerability in PromptInspectorBot, please report it responsibly:
- Email: Send details to the maintainer via Discord (preferred) or GitHub
- Discord: Join our community server and DM the bot owner
- Discord Server: https://discord.gg/HhBSvM9gBY
- Look for Ktiseos Nyx (Duskfall Crew)
- GitHub: Create a private security advisory
Please include the following information in your report:
- Type of vulnerability (e.g., XSS, command injection, API key exposure)
- Affected component (e.g., specific command, configuration file)
- Steps to reproduce the issue
- Potential impact of the vulnerability
- Suggested fix (if you have one)
- Your contact information for follow-up questions
- Initial Response: Within 48 hours of report
- Status Update: Within 7 days with our assessment
- Fix Timeline: Varies based on severity
- Critical: 24-48 hours
- High: 1 week
- Medium: 2 weeks
- Low: 30 days or next release
We appreciate responsible disclosure! With your permission, we will:
- Credit you in the security advisory and release notes
- Add you to our CONTRIBUTORS file
- Publicly thank you in our Discord community
If you're self-hosting PromptInspectorBot, follow these security guidelines:
- NEVER commit
.envfiles to version control - Use strong, unique API keys for all services
- Rotate API keys regularly (every 90 days recommended)
- Use Railway/Railway secrets manager, not hardcoded values
- Only grant required permissions (see README)
- Enable Server Members Intent only if needed
- Use role-based access control for admin commands
- Regularly audit bot permissions in servers
- Use presigned URLs with short expiration times (default: 1 hour)
- Enable CORS only for your bot's domain
- Set proper bucket policies (private by default)
- Monitor upload activity for abuse
- Configure rate limits in
.envto prevent abuse - Monitor for unusual API usage patterns
- Implement daily upload limits per user/role
- Use the built-in security system to detect spam
Gemini API Key:
- Use API key restrictions (IP allowlists if possible)
- Enable quota limits in Google Cloud Console
- Monitor usage in Google AI Studio
Anthropic API Key:
- Set spending limits in Anthropic Console
- Rotate keys if bot is compromised
- Monitor unusual API patterns
Discord Bot Token:
- Regenerate token immediately if exposed
- Use token permissions, not full admin access
- Enable 2FA on Discord account
- Guild Whitelisting: Set
ALLOWED_GUILD_IDSto restrict server access - DM Whitelisting: Set
DM_ALLOWED_USER_IDSfor authorized DM users - Security System: Enable anti-scam detection (default: ON)
- Trusted Users: Add yourself to
TRUSTED_USER_IDSto bypass security - Admin Alerts: Configure
ADMIN_CHANNEL_IDSfor security notifications
- Review logs regularly for suspicious activity
- Enable Railway/platform logging
- Monitor API usage for unexpected spikes
- Track failed authentication attempts
The bot includes automatic scam detection that may:
- Delete messages containing cryptocurrency wallet scams
- Ban users posting malware disguised as images
- Flag suspicious cross-posting behavior
Important: While helpful, this is NOT a replacement for proper server moderation.
The bot processes:
- Discord User IDs (for rate limiting, whitelists)
- Uploaded Images (temporarily stored in R2, auto-deleted after processing)
- Message Content (for scam detection, not stored permanently)
- Guild Settings (stored in
guild_settings.json)
See PRIVACY.md for full data handling policy.
When a security vulnerability is fixed:
- We will publish a security advisory on GitHub
- We will credit the reporter (with permission)
- We will notify users in our Discord community
- We will update this SECURITY.md with mitigation steps
We will recognize security researchers who responsibly disclose vulnerabilities:
(No vulnerabilities reported yet - be the first!)
- Discord Community: https://discord.gg/HhBSvM9gBY
- GitHub Issues: https://github.com/Ktiseos-Nyx/PromptInspectorBot/issues (for non-security bugs)
- Developer: Ktiseos Nyx (Duskfall Crew) - https://beacons.ai/duskfallcrew
Thank you for helping keep PromptInspectorBot and its users safe! π‘οΈ