jvoisin/snuffleupagus
FreeSecurity module for php7 and php8 - Killing bugclasses and virtual-patching the rest!
About jvoisin/snuffleupagus
Snuffleupagus is a security module for PHP 7+ and 8+ designed to drastically raise the cost of attacks against websites by killing entire bug classes and providing a powerful virtual-patching system. It allows administrators to fix specific vulnerabilities and audit suspicious behaviors without modifying PHP code. Key features include no noticeable performance impact, simple virtual-patching rules, and hardening capabilities such as automatic secure and samesite cookies, global strict mode, type-juggling prevention, stream wrapper whitelisting, and TLS certificate validation enforcement. The project has a comprehensive test suite with near 100% coverage, enforced code style, and extensive documentation.
Key Features
Pros & Cons
- No noticeable performance impact, making it suitable for production
- Comprehensive protection against many vulnerability types
- Simple rule syntax for virtual-patching and hardening
- Actively maintained with a strong testing and code-quality culture
- Detailed documentation and example rules available
- Requires installation as a PHP module (compilation or package installation)
- Only supports PHP 7 and 8, not older versions
- Not a standalone application; must be integrated into existing PHP setups