A powerful integration of WordFence CLI with HestiaCP, providing advanced WordPress security scanning capabilities while using HestiaCP.
- 🔍 Malware Scanning: Detect malicious code and suspicious files in WordPress installations
- 🚨 Vulnerability Scanning: Identify security vulnerabilities in WordPress core, themes, and plugins
- 💾 Database Scanning: Scan WordPress databases for malicious content and suspicious patterns
- 🔧 File Remediation: Automatically repair known malicious files
- 📂 Custom Path Scanning: Scan any directory for malware and vulnerabilities
- ⚡ High-Performance Scanning: Utilizes Vectorscan engine for faster and more accurate results
- 📊 CSV Output: All scans save results to CSV files for easy analysis and reporting
- 🔐 Detailed Database Information: View database connection details before scanning
- HestiaCP Control Panel
- Docker
- Debian-based system (Debian 10 or newer)
- Root or sudo access
- Active internet connection
- Download the installation script:
wget https://raw.githubusercontent.com/isscbta/hestiacp-wordfence-cli/refs/heads/main/wf-cli-install.sh- Make the script executable:
chmod +x wf-cli-install.sh- Run the installation script with sudo:
sudo ./wf-cli-install.shThe script will:
- Check system requirements
- Install Docker if not present
- Pull the WordFence CLI Docker image
- Configure WordFence CLI
- Install all necessary command-line tools
- The installation requires root privileges
- The script will automatically install Docker if not present
- The initial configuration process is interactive
- All scan results are saved in CSV format
- The script will create necessary directories in
/usr/local/hestia/
v-wf-malware-scan domain.comResults are saved to: public_html/wordfence-cli-scan.csv
v-wf-malware-hyperscan domain.comResults are saved to: public_html/wordfence-cli-scan.csv
v-wf-vulnerability-scan domain.comv-wf-db-scan domain.comResults are saved to: public_html/wordfence-cli-db-scan.csv
The database scan will display:
- Database connection details before scanning
- Scan results in the terminal
- Complete results in the CSV file
v-wf-remediate domain.comv-wf-scan-path /path/to/scanAll commands support additional WordFence CLI parameters. For example:
v-wf-malware-scan domain.com --progress --bannerCommon options:
--progress: Show progress during scan--banner: Display WordFence banner--output-format: Specify output format (csv, json, text)--output-path: Specify output file path
The v-wf-scan-path command can be integrated into automated workflows:
- Scheduled Scanning: Set up cron jobs to run scans at specific times (e.g., daily at 2 AM)
- Email Reporting: Configure automated email delivery of scan results using:
- System mail command
- Email services (SendGrid, Mailgun, etc.)
- SMTP integration
- Custom Paths: Schedule different scans for different directories:
- Daily scans of critical paths
- Weekly full system scans
- Custom intervals for specific directories
/usr/local/hestia/
├── bin/
│ ├── v-wf-malware-scan
│ ├── v-wf-malware-hyperscan
│ ├── v-wf-vulnerability-scan
│ ├── v-wf-remediate
│ ├── v-wf-db-scan
│ └── v-wf-scan-path
├── wordfence-cli/
└── wfcli-conf/
└── wordfence-cli.ini
The WordFence CLI configuration is stored in /usr/local/hestia/wfcli-conf/wordfence-cli.ini. You can modify this file to adjust scanning parameters and behavior.
-
🐳 Docker not found
- Ensure Docker is installed and running
- Run
systemctl status dockerto check Docker service status
-
🔒 Permission denied
- Ensure you have root or sudo privileges
- Check file permissions in
/usr/local/hestia/bin/
-
⚙️ Configuration issues
- Verify the configuration file exists at
/usr/local/hestia/wfcli-conf/wordfence-cli.ini - Run the installation script again to reconfigure
- Verify the configuration file exists at
-
📊 Scan results not appearing
- Check if the CSV files are created in the domain's public_html directory
- Verify file permissions and ownership
- Ensure the domain user has write permissions to the public_html directory
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
- WordFence for their excellent CLI tool
- HestiaCP for the control panel
- Vectorscan for the high-performance scanning engine
For support, please:
- Open an issue on GitHub
- Initial release
- Integration with HestiaCP
- Support for all WordFence CLI features
- High-performance scanning with Vectorscan
- CSV output for all scan types and automatic cleanup of empty result files
- Detailed database connection information display
- Improved scan result handling and file management
