Download the PHP package mohamedhekal/laravel-vulnerability-audit without Composer
On this page you can find all versions of the php package mohamedhekal/laravel-vulnerability-audit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mohamedhekal/laravel-vulnerability-audit
More information about mohamedhekal/laravel-vulnerability-audit
Files in mohamedhekal/laravel-vulnerability-audit
Package laravel-vulnerability-audit
Short Description A comprehensive security audit package for Laravel applications that scans for vulnerabilities, weak configurations, and security best practices.
License MIT
Informations about the package laravel-vulnerability-audit
๐ Laravel Vulnerability Audit Package
A comprehensive security audit package for Laravel applications that scans for vulnerabilities, weak configurations, and security best practices. This package helps developers and teams ensure their Laravel projects follow security best practices before deployment.
๐ฏ Features
๐ Password Strength Scanner
- Scans user passwords against known weak password lists
- Supports both hashed and plain text password checking
- Configurable password strength requirements
โ๏ธ Environment Configuration Checker
- Detects if
APP_DEBUG
is enabled in production - Validates
APP_ENV
settings - Checks session driver security
- Verifies HTTPS enforcement
๐งโ๐ป User Role & Permissions Analyzer
- Identifies admin roles with excessive permissions
- Warns about unrestricted access patterns
- Analyzes role hierarchy and privilege escalation risks
๐๏ธ Database Schema Analyzer
- Scans for missing timestamps (
created_at
,updated_at
) - Checks for soft delete support (
deleted_at
) - Validates primary key presence
- Analyzes table indexing and security layers
๐ฆ Composer Package Version Checker
- Detects outdated packages from
composer.lock
- Compares versions with Packagist API
- Alerts for critical security updates
๐งพ File Permissions Scanner
- Checks
.env
,storage
, andlogs
folder permissions - Validates file accessibility and writability
- Identifies potential security vulnerabilities
๐ Additional Security Checks
- CSRF and CORS configuration validation
- Laravel Sanctum/Passport token policies
- Hardcoded secrets detection
- Debug route exposure scanning
๐ฆ Installation
Via Composer
Publish Configuration
๐ Quick Start
Basic Security Scan
Generate Detailed Report
Scheduled Security Audits
๐ Configuration
The configuration file config/vulnerability-audit.php
allows you to customize:
๐ ๏ธ Usage Examples
Command Line Interface
Programmatic Usage
Web Dashboard
Access the security dashboard at /security-audit
(if enabled):
๐ Report Formats
Console Output
HTML Report
Generates a beautiful, interactive HTML report with:
- Color-coded severity levels
- Detailed recommendations
- Actionable security fixes
- Historical audit comparison
PDF Report
Professional PDF reports suitable for:
- Security compliance documentation
- Client security audits
- Team security reviews
๐ง Custom Scanners
Create custom security scanners:
Register in configuration:
๐จ Notifications
Configure notifications for security issues:
๐งช Testing
๐ Security Score Calculation
The package calculates an overall security score based on:
- Critical Issues (40%): Immediate security threats
- High Issues (30%): Significant security risks
- Medium Issues (20%): Moderate security concerns
- Low Issues (10%): Minor security improvements
๐ Scheduled Audits
Add to your Laravel scheduler:
๐ค Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
๐ Changelog
Please see CHANGELOG for more information on what has changed recently.
๐ Security
If you discover any security-related issues, please email [email protected] instead of using the issue tracker.
๐ License
The MIT License (MIT). Please see License File for more information.
๐ Acknowledgments
- Laravel community for the amazing framework
- Security researchers and contributors
- All package users and feedback providers
๐ Support
- Documentation: GitHub Wiki
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Email: [email protected]
Made with โค๏ธ by Mohamed Hamad
All versions of laravel-vulnerability-audit with dependencies
laravel/framework Version ^10.0|^11.0
symfony/console Version ^6.0
guzzlehttp/guzzle Version ^7.0
league/flysystem Version ^3.0
barryvdh/laravel-dompdf Version ^2.0