Thank you for your interest in contributing! Security is a community effort, and we welcome contributions from security researchers, developers, and AI safety advocates.
Found a new attack pattern that evades detection?
- Check existing patterns in
skills/security/patterns.json - Create an issue with:
- Attack description
- Example payload
- Expected vs actual behavior
- Impact assessment
Add new security patterns:
- Fork the repository
- Add pattern to
skills/security/patterns.json - Test the pattern with both malicious and benign inputs
- Update documentation if needed
- Submit PR with clear description
Help make security more accessible:
- Fix typos or unclear instructions
- Add usage examples
- Translate documentation
- Create video tutorials or blog posts
- Test on different platforms
- Performance benchmarking
- Edge case discovery
- Integration testing with various Clawdbot setups
- Additional threat detection categories
- New integration methods
- Performance improvements
- Monitoring enhancements
# Required tools
git, bash, jq, node/npm
# Clawdbot installation
# See: https://docs.clawd.bot/install# Clone repository
git clone https://github.com/gtrusler/clawdbot-security-suite.git
cd clawdbot-security-suite
# Install development dependencies
npm install
# Install security skill locally
cp -r skills/security ~/.clawdbot/skills/
# Test installation
~/.clawdbot/skills/security/security helpSecurity patterns are organized by threat type:
{
"command_injection": ["pattern1", "pattern2"],
"ssrf": ["pattern1", "pattern2"],
"path_traversal": ["pattern1", "pattern2"],
"prompt_injection": ["pattern1", "pattern2"],
"api_keys": ["pattern1", "pattern2"],
"sensitive_files": ["pattern1", "pattern2"],
"data_exfiltration": ["pattern1", "pattern2"]
}Good patterns:
- ✅ Specific enough to avoid false positives
- ✅ General enough to catch variations
- ✅ Based on real attack examples
- ✅ Tested with both malicious and benign inputs
Avoid:
- ❌ Overly broad patterns (high false positive rate)
- ❌ Patterns that break legitimate use cases
- ❌ Untested regex (can cause performance issues)
Test new patterns thoroughly:
# Test malicious input (should detect)
~/.clawdbot/skills/security/security validate-command "your_malicious_example"
# Test benign input (should allow)
~/.clawdbot/skills/security/security validate-command "your_benign_example"
# Performance test
time ~/.clawdbot/skills/security/security validate-command "test_command"- Use
set -euo pipefail - Quote variables:
"$variable" - Use descriptive function names
- Add comments for complex logic
- Proper indentation (2 spaces)
- Validate JSON syntax:
jq . file.json - Sort arrays alphabetically when possible
- Use clear, concise language
- Include examples
- Follow existing format/style
- Test all example commands
- Fork & clone the repository
- Create feature branch:
git checkout -b feature/add-php-injection-patterns - Make changes following contribution guidelines
- Test thoroughly - see testing section above
- Update documentation if needed
- Commit with clear message:
Add PHP injection detection patterns - Add 5 new patterns for PHP code injection - Cover eval(), system(), exec() variations - Include base64 and hex encoding bypasses - Tested with WordPress and Laravel examples - Push branch and create pull request
- Address review feedback
- All tests pass
- No false positives on common legitimate commands
- Documentation updated
- Performance impact minimal (<5ms additional overhead)
- Follows existing code style
- Test in isolated environment - Don't test on production systems
- Validate all inputs - Security tools are high-value targets
- Follow least privilege - Don't require unnecessary permissions
- Document security implications - Help users understand trade-offs
All security-related changes undergo additional review:
- Pattern effectiveness - Does it catch the intended threats?
- Bypass potential - Are there obvious evasion techniques?
- Performance impact - Does it slow down validation significantly?
- False positive rate - Will it block legitimate operations?
- GitHub Discussions - General questions and ideas
- GitHub Issues - Bug reports and feature requests
- @LexpertAI - Security updates and community discussion
Be respectful and constructive:
- Focus on the security merit of contributions
- Assume good intentions
- Help newcomers learn
- Keep discussions technical and factual
Contributors are recognized in:
- Release notes
CONTRIBUTORS.mdfile- Security advisories (for vulnerability reports)
- Social media acknowledgments
- Major (1.0.0): Breaking changes, major new features
- Minor (1.1.0): New patterns, features, backwards-compatible
- Patch (1.0.1): Bug fixes, pattern updates
- All tests pass
- Documentation updated
- CHANGELOG.md updated
- Version bumped in package.json
- Git tag created
- GitHub release published
- ClawdHub package updated
- Community notification via @LexpertAI
Technical questions: GitHub Discussions
Security concerns: gt@lexpertai.com
General updates: @LexpertAI
Thank you for helping secure the AI agent ecosystem! 🔒