Thank you for your interest in contributing to MalPromptSentinel (MPS)!
MPS uses a contact-first contribution model.
Before making any changes or submitting contributions, please contact the maintainer:
Email: StrategicPromptArchitect@gmail.com
Subject Line: MPS Contribution - [Brief Description]
Include:
- What you want to change or add
- Why it would improve MPS
- Your relevant experience
- Proposed approach
- Coordination - Avoid duplicate work
- Architecture - Ensure changes fit the design
- Quality - Discuss approach before implementation
- Focus - Keep MPS aligned with its goals
- New injection patterns - Real-world attack patterns you've encountered
- False positive fixes - Benign content incorrectly flagged
- Bug fixes - Issues in scanning logic
- Performance improvements - Faster scanning, lower memory
- Documentation improvements - Clearer explanations, examples
- Test cases - New baseline, evasion, or benign tests
- Integration examples - How you're using MPS
- Architecture changes - Major refactoring
- New features - Additional capabilities
- Dependency additions - External libraries
If your contribution is approved:
- Follow PEP 8 style guide
- Use meaningful variable names
- Comment complex regex patterns
- Include docstrings for functions
- Add to
mps_patterns.py(not scanner files) - Include comment explaining what pattern catches
- Test against both attack and benign content
- Document false positive potential
# In SHARED_PATTERNS dictionary:
'new_category': [
# Catches: "malicious phrase here"
# False positives: May match in security documentation
r'\bmalicious\s+phrase\s+here\b',
],All contributions must:
-
Pass existing tests
python -B run_tests.py
-
Not decrease benign accuracy (currently 93.3%)
-
Include test cases for new patterns
-
Document expected impact on detection rates
- Review - I'll review your proposal (typically within 1 week)
- Discussion - We'll discuss approach if needed
- Approval - You'll get go-ahead to implement
- Submission - Send completed code via email
- Integration - I'll review, test, and integrate
- Credit - You'll be acknowledged in CHANGELOG
- Be respectful and professional
- Focus on technical merit
- Accept feedback gracefully
- Give credit where due
Email: StrategicPromptArchitect@gmail.com
Website: https://StrategicPromptArchitect.ca
By contributing, you agree that your contributions will be licensed under the MIT License.
Thank you for helping improve AI security!