PCBot Security Guidelines & Vulnerability Reporting
π‘οΈ Supported Versions
Version
Status
Support Level
3.4.0
β
Current
Full support - security patches & features
3.3.x
β οΈ Legacy
Critical security fixes only
< 3.3.0
β Unsupported
Please upgrade to latest version
Measure
Implementation
Status
No PII Storage
User data processed in-memory only
β
Active
Session Isolation
Each session completely isolated
β
Active
Memory Cleanup
Data cleared on session end
β
Active
No Query Logging
User queries not persisted
β
Active
Source-Only Answers
All responses from Manual directly
β
Active
Security Measure
Implementation
Status
Query Length Limit
Maximum 2000 characters
β
Active
Special Character Filter
Dangerous characters sanitized
β
Active
SQL Injection Prevention
Parameterized queries
β
Active
XSS Prevention
HTML entity encoding
β
Active
Command Injection Block
Shell metacharacter filtering
β
Active
Path Traversal Prevention
Filename validation
β
Active
Protection Type
Coverage
Status
Bribery/Corruption Detection
100% blocked
β
Active
Fund Misuse Detection
100% blocked
β
Active
Sexual Content Filter
25+ patterns
β
Active
Profanity Filter (English)
40+ patterns
β
Active
Profanity Filter (Urdu/Hindi)
50+ patterns
β
Active
Violence/Hate Speech
15+ patterns
β
Active
Off-Scope Query Handling
Polite rejection
β
Active
Endpoint
Protection
Access
/chat
Session validation
Public
/admin/authenticate
Server-side password check
Public (login)
/admin/run-stats
Session-based auth
Admin only
/admin/run-calibration
Session-based auth
Admin only
/admin/groq-status
Rate limited
Public
/admin/groq-toggle
Admin only
Restricted
/feedback/*
Session validated
Public
Authentication & Access Control (v3.4.0)
Feature
Implementation
Status
Server-Side Auth
Password validated via /admin/authenticate
β
Active
Session Management
Flask session cookies with httpOnly
β
Active
Mode Separation
User/Admin modes with different capabilities
β
Active
No Client Secrets
Zero passwords or keys in JavaScript
β
Active
Virtual Env Isolation
All packages in isolated .venv
β
Active
Network Security (v3.4.0)
Feature
Implementation
Status
HTTPS/TLS
Required for production
β
Active
GitHub Pages
HTTPS by default, DDoS protection
β
Active
Netlify
CSP headers, X-Frame-Options, HSTS
β
Ready
Cloudflare Tunnel
Encrypted tunnels, temporary URLs
β
Active
CORS
Whitelist-based origin control
β
Configurable
Rate Limiting
100 requests/minute recommended
π§ Ready
API Authentication
Session-based for admin endpoints
β
Active
Firewall
Block unused ports
π§ Recommended
Groq API Protection (v3.3.2)
Measure
Implementation
API Key Storage
Environment variable only
Toggle Control
Admin-only endpoint
Fallback Logic
Graceful degradation
Response Sanitization
Same filters as local LLM
Layer
Protection
Source Binding
All answers from Manual only
Citation Requirement
Page reference mandatory
Hallucination Prevention
No external knowledge used
Word Limit
100 words max per response
Numeric Validation
Values cross-checked
π¨ Vulnerability Reporting
If you discover a security vulnerability in PDBOT:
DO NOT create a public GitHub issue
Email the developer directly (see contact below)
Include detailed information:
Description of the vulnerability
Steps to reproduce
Potential impact assessment
Suggested fixes (optional)
Developer: M. Hassan Arif Afridi
Email: hassanarifafridi@gmail.com
LinkedIn: Hassan Arif Afridi
GitHub: @athem135-source
Severity
Initial Response
Resolution Target
π΄ Critical
24 hours
48 hours
π High
48 hours
1 week
π‘ Medium
1 week
2 weeks
π’ Low
2 weeks
1 month
π Deployment Security Checklist
β οΈ Security Boundaries
What PDBOT Protects Against
Threat
Protection Level
Prompt Injection
β
High - Strict RAG-only responses
Data Exfiltration
β
High - No external data access
Bribery/Corruption Queries
β
100% - Hard-blocked
Inappropriate Content
β
High - 177+ filter patterns
Session Hijacking
β
Medium - Session isolation
DDoS
π§ Configurable - Rate limiting ready
Limitation
Mitigation
v3.4.0 Status
Admin password in code
Change default password
π§ To-do
Session cookies
Use httpOnly, Secure flags
β
Implemented
Single document source
By design - focused scope
N/A
Virtual env dependency
Auto-created by setup.bat
β
Automated
THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
The developer is not responsible for security breaches due to:
- Improper deployment or configuration
- Failure to implement recommended security measures
- Use in environments beyond intended scope
- Failure to update to latest versions
Users are responsible for:
- Properly configuring security settings
- Keeping the software updated
- Following security best practices
- Complying with applicable regulations
- Implementing network-level protections
Last Updated: January 8, 2026
Version: 3.4.0
Security is a shared responsibility. Please report vulnerabilities responsibly.