Description
Welcome to the ProActive Security Suite Plugin Wiki
Enhance your WordPress website’s security with the ProActive Security Suite. This powerful plugin offers advanced security features including automatic IP blocking, an advanced rule builder, traffic analysis, and seamless integration with services like Cloudflare, AbuseIPDB, and Whatismybrowser.com. ProActive Security Suite provides proactive defense mechanisms to protect your site from malicious traffic and potential threats before they reach your server.
Table of Contents
- Automatic IP Synchronization
- Manual Synchronization
- Captured Traffic Data
- Advanced Rule Builder
- Rule Details in Blocked IPs
Introduction
Welcome to the ProActive Security Suite plugin! This comprehensive security solution enhances your website’s protection by combining advanced threat detection, automated rule-based actions, and integration with services like Cloudflare and AbuseIPDB. By proactively analyzing traffic and applying custom security rules, ProActive Security Suite stops malicious traffic before it reaches your server, reducing load and enhancing performance.
Features
Free Features
- Automatic IP Synchronization: Effortlessly sync blocked IPs to Cloudflare’s firewall.
- Customizable Settings: Tailor the plugin to your needs with adjustable settings:
- Blocked Hits Threshold
- Block Scope (Domain or Account)
- Block Mode (e.g., Block, Managed Challenge)
- Cron Interval
- Manual Synchronization: Trigger synchronization manually when immediate action is needed.
- AbuseIPDB Integration: Optional integration to fetch detailed information about IPs:
- Country Code
- Usage Type
- ISP Information
- Confidence Score
Premium Features
- Advanced Rule Builder: Create custom security rules based on various criteria such as confidence score, whitelisted status, abusive status, and more. Automate actions like blocking or challenging IPs based on these rules.
- Rule Priorities: Assign priorities to your rules to control the order of evaluation. Higher priority numbers are evaluated first, allowing critical rules to take precedence.
- Automatic Action Application: The plugin automatically applies actions to IPs that match your defined rules immediately after capturing traffic data.
- Rule Details in Blocked IPs: View detailed information about which rules caused IPs to be blocked, including criteria and actions taken.
- Captured Traffic Data: Log and analyze incoming traffic for enhanced security insights.
- Exclude User Roles: Exclude specific WordPress user roles from traffic logging.
- WhatIsMyBrowser.com API Integration: Advanced user agent analysis and detection capabilities.
- Enhanced AbuseIPDB Integration: Automatic updates for all entries with the same IP address.
- Priority Support: Access dedicated support for assistance and troubleshooting.
Note: The premium features require an active premium license. Upgrade to access these advanced functionalities.
Installation
- Download the Plugin: Clone the repository or download the latest release.
- Upload to WordPress: Upload the `proactive-security-suite` directory to `/wp-content/plugins/`.
- Activate the Plugin: In your WordPress dashboard, navigate to Plugins and activate ProActive Security Suite.
Configuration
Cloudflare Settings
- Obtain Cloudflare Credentials:
- Email: Your Cloudflare account email.
- API Key: Your Global API Key or an API Token with necessary permissions.
- Zone ID: Found in your Cloudflare dashboard under the domain’s overview.
- Account ID: Located in your Cloudflare profile settings.
- Configure Plugin Settings:
- Navigate to Settings > ProActive Security Suite.
- Enter your Cloudflare credentials securely.
- Adjust settings like Blocked Hits Threshold, Block Scope, and Block Mode.
AbuseIPDB Integration
- Sign Up for AbuseIPDB: Visit AbuseIPDB and sign up for an API key.
- Enable Integration:
- In the plugin settings, enter your AbuseIPDB API key.
- Enable the AbuseIPDB Lookup option.
WhatIsMyBrowser.com Integration (Premium)
- Obtain API Key: Register at WhatIsMyBrowser.com for an API key.
- Configure Integration:
- Enter the API key in the plugin’s settings under WhatIsMyBrowser API Key.
- Enable the integration features as desired.
Usage
Automatic IP Synchronization
The plugin automatically syncs blocked IPs based on your configured cron interval. IPs exceeding the Blocked Hits Threshold are added to Cloudflare’s firewall or acted upon based on your defined rules.
Manual Synchronization
Navigate to Settings > ProActive Security Suite and click the Run Process button to trigger synchronization and rule evaluation immediately.
Captured Traffic Data (Premium)
Access detailed logs under the Captured Traffic Data tab. Analyze user agents, request methods, and more. Exclude specific user roles from logging in the settings.
Advanced Rule Builder (Premium)
The plugin features a powerful Rule Builder that allows you to create custom security rules based on various criteria. You can define rules using conditions such as:
- Confidence Score: Set thresholds using operators like greater than, less than, equal to, etc.
- Is Whitelisted: Check if an IP is marked as whitelisted in AbuseIPDB.
- Is Abusive: Determine if an IP is associated with abusive behavior.
- Custom Criteria: Add other criteria based on the data captured.
Each rule can be assigned an Action (e.g., Block, Managed Challenge) that will be applied to IPs matching the rule. You can also assign a Priority to control the order in which rules are evaluated.
Rule Details in Blocked IPs (Premium)
The Blocked IPs tab now includes a Rule Details column that displays comprehensive information about the rules that caused IPs to be blocked. This includes:
- Criteria: The specific conditions that were met, such as confidence score thresholds, whitelisted status, and more.
- Action: The action taken by the rule (e.g., Block, Managed Challenge).
This enhancement allows administrators to easily identify which rules are triggering blocks and understand the reasons behind each IP being blocked. It provides greater transparency and aids in fine-tuning security settings.
Advanced Settings
- Blocked Hits Threshold: Define the minimum number of blocked hits before an IP is synchronized or evaluated by rules.
- Block Scope: Choose between domain-specific or account-wide blocking.
- Block Mode: Select the action for Cloudflare to take (e.g., Block, Challenge).
- Cron Interval: Set how frequently the plugin checks for new blocked IPs and evaluates rules.
- Rule Priorities: Assign priorities to your rules to control the order of evaluation. Higher priority numbers are evaluated first.
- User Role Exclusions: Exclude specific WordPress user roles from traffic logging and rule evaluation.
Frequently Asked Questions
How do I obtain my Cloudflare Zone ID and Account ID?
Zone ID: Log into Cloudflare, select your domain, and find the Zone ID on the Overview page.
Account ID: Click on your profile in Cloudflare; the Account ID is listed there.
Can I use an API Token instead of the Global API Key?
Yes, ensure the API Token has the necessary permissions for firewall access.
Is the plugin compatible with IPv6 addresses?
Absolutely, the plugin supports both IPv4 and IPv6 addresses.
How does the plugin handle my API keys?
All API keys are securely stored using WordPress’s options API and are never exposed in plain text.
How do rule priorities work?
Rule priorities determine the order in which your rules are evaluated. Rules with higher priority numbers are evaluated first. If traffic data matches a rule, the corresponding action is applied, and no further rules are evaluated for that IP address.
Can I see which rule blocked an IP?
Yes, with the Rule Details in Blocked IPs feature, you can view the exact rule criteria and action that caused an IP to be blocked. This information is displayed in the Blocked IPs tab under the Rule Details column.
How does the automatic action application work?
When traffic data is captured, the plugin immediately evaluates it against your defined rules. If a rule matches, the specified action is applied to the IP address without any manual intervention.
Support and Contribution
Support: For assistance, please open an issue on our GitHub Issues page or contact us at [email protected].
License
This project is licensed under the GNU General Public License v3.0.
Thank you for using ProActive Security Suite!
External Services
Cloudflare
– Usage: We send visitor IPs (and optionally country/ISP data) to create Firewall rules.
– Data Sent: IP address, associated rule details.
– Cloudflare Terms of Service | Cloudflare Privacy Policy
AbuseIPDB
– Usage: We check IP reputation, fetching country code, ISP, and confidence score.
– Data Sent: IP address.
– AbuseIPDB Terms of Service | Privacy Policy
WhatIsMyBrowser
– Usage: We send user agent strings to detect software (browser), OS, and if it’s abusive.
– Data Sent: User agent strings.
– WhatIsMyBrowser Terms of Service |
Legal
IPData
– Usage: We fetch detailed threat intelligence (Tor, proxy, known attacker, etc.).
– Data Sent: IP address.
– IPData Terms |
Privacy Policy
Screenshots
Reviews
Contributors & Developers
“Proactive Security Suite” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Proactive Security Suite” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.2
Added new functionalities to work with cloudflare including a table and an extra tab
1.2.1
New options on the blocked ips table
1.3
The user now can remove a blocked ip either from the local list or from both the Cloudflare and the plugin blocked list.
1.3.1
Freemius Integration
1.3.2
Minor fixes
1.3.3
AbuseIP Database Integration
1.3.4
Timezone fix
1.3.5
Timezone fix
1.3.6
Added ips blocked from WordFence wfBlockedIPLog too
1.3.7
Various fixes
Added Pro feature – Traffic inspection integration with whatsmybrowser.com API to identify malicious user agents.
1.3.8
Various fixes
1.3.9
Various fixes
1.4.0
Various fixes
1.5.0
Enhanced WhatIsMyBrowser API Integration:
– Dynamic handling of is_abusive
values directly from the API without predefined mappings.
– Extracted and stored specific API response elements: is_abusive
, software
, operating_system
.
– Optimized API usage by making calls only once per unique IP/User Agent combination.
– Improved error handling and logging for API requests.
Admin Interface Enhancements:
– Professional redesign of the “Captured Traffic” table with WordPress admin styling.
– Fixed layout issues with action buttons and ensured proper alignment.
– Integrated DataTables for advanced table features like search, pagination, and sorting.
– Focused data display by showing only relevant API response fields.
Database and Performance Optimizations:
– Updated database schema to include new columns for software
and operating_system
.
– Changed is_abusive
column type to accommodate dynamic values.
– Enhanced data sanitization and security measures.
Code Refactoring and Security Enhancements:
– Improved code structure for better readability and maintenance.
– Ensured adherence to security best practices throughout the codebase.
Bug Fixes and Minor Improvements:
– Resolved button overflow issues in the admin table.
– Enhanced user experience with better messaging and error handling.
1.5.1
Bulk Selection and Deletion in Blocked IPs Tab:
Added a “Select All” checkbox in the Blocked IPs table header, allowing you to select all records across all pages, regardless of how many are displayed per page.
Implemented the ability to perform bulk actions, such as deleting multiple blocked IPs at once, enhancing efficiency in managing large numbers of records.
Improved the positioning and styling of the “Select All” checkbox to prevent overlap with sorting arrows, ensuring better usability.
Enhanced Actions in Captured Traffic Tab:
Introduced a new “Delete All Records” button within the “Actions” column of the Captured Traffic table. This feature enables you to delete all records associated with a specific IP address with a single click.
Adjusted the layout and styling of action buttons to prevent them from overflowing outside of their table columns. Buttons are now stacked vertically and styled consistently for a cleaner and more organized look.
User Interface Improvements:
Modified CSS and table configurations to ensure that all buttons and content fit neatly within their respective columns, enhancing the overall aesthetics and usability of the plugin interface.
Disabled sorting on checkbox columns and adjusted column widths to optimize the display of data and controls within the tables.
1.5.2
New Features:
Exclude User Roles from Captured Traffic Data (Premium Feature)
Description: Administrators can now select one or more WordPress user roles to exclude from traffic logging in the Captured Traffic Data. This feature enhances privacy and control by preventing the logging of traffic data for trusted users or specific roles, such as administrators or editors.
How to Use: Navigate to the plugin’s settings page under the “Exclude Roles from Captured Traffic” section (available for premium users). Select the roles you wish to exclude from logging and save the settings.
Improvements:
AbuseIPDB Data Display Enhancement
Resolved an issue where AbuseIPDB data (Country Code, Usage Type, ISP, Confidence Score) was not displayed on every row for IP addresses appearing multiple times in the Captured Traffic table.
Now, when AbuseIPDB data is fetched for an IP address, all existing entries with that IP in the Captured Traffic table are updated to reflect the latest data.
Code Compliance and Optimization
Ensured all new code follows WordPress coding standards and best practices.
Implemented proper sanitization, validation, and use of WordPress APIs for enhanced security and performance.
Important Notes:
Premium Access Required: The new feature to exclude user roles from traffic logging is available only in the premium version of the plugin. Free users will see a notice indicating that the feature is available upon upgrading.
Action Required: After upgrading to version 1.5.2, premium users should review the new settings:
Go to the plugin settings page.
Under the “Exclude Roles from Captured Traffic” section, select the user roles you wish to exclude.
Save the settings to apply the changes.
No Impact on Existing Settings: Existing configurations and data are not affected by this update. However, reviewing the new settings is recommended to take full advantage of the new features.
Compatibility: This update is fully compatible with WordPress versions up to the latest release as of [Current Date].
Upgrade Instructions:
Backup Your Site: It’s always good practice to back up your WordPress site before performing any updates.
Update the Plugin:
Navigate to your WordPress dashboard.
Go to Plugins > Installed Plugins.
Find “Wordfence to Cloudflare” in the list.
Click on “Update Now” to upgrade to version 1.5.2.
Review New Settings (Premium Users):
After the update, go to Settings > WTC Settings.
Navigate to the “Exclude Roles from Captured Traffic” section.
Select the roles to exclude and save your settings.
1.5.3
Added
Advanced Rule Builder and Evaluation System: Introduced a powerful rule evaluation engine that allows you to create custom security rules based on various criteria such as confidence score, whitelisted status, abusive status, and more. This enables automated decision-making and actions based on incoming traffic data.
Rule Priorities: Implemented a priority system for rules, allowing you to control the order in which rules are evaluated. Higher priority numbers are evaluated first, ensuring critical rules are applied before others.
Automatic Action Application: The plugin now automatically applies actions (e.g., block, challenge) to IP addresses that match your defined rules immediately after capturing traffic data.
Rule Details in Blocked IPs Table: Enhanced the Blocked IPs tab by adding a new column that displays detailed information about the rules that caused each IP address to be blocked, including criteria and actions taken.
Fixed
Database Schema Updates: Resolved issues with missing database columns (block_mode, rule_id, rule_details) by enhancing the table creation and update process. The plugin now correctly updates existing tables to include new columns without errors.
DataTables Initialization Issue: Fixed an issue where the DataTables plugin was being initialized multiple times, causing reinitialization errors. The plugin now ensures that DataTables are initialized correctly without conflicts.
Rule Evaluation Bug: Addressed a bug where rules were not being evaluated after capturing traffic data. The plugin now properly calls the rule evaluation function, ensuring that your rules are applied as expected.
1.5.4
Plugin re-branded to Proactive Security Suite!
1.5.5
This version introduces comprehensive integration with the IPData API, empowering you to incorporate detailed threat intelligence fields into your automatic mitigation rules. You can now combine conditions from IPData’s threat data alongside existing criteria from AbuseIPDB and WhatIsMyBrowser, all within a single, unified rule builder. This update ensures even finer-grained control and more robust security actions, helping you stop malicious traffic faster and more precisely than ever before. If you’ve previously set up rules or API keys, double-check your settings and take advantage of these new fields and conditions to enhance your protection.
1.5.6
New Feature: Added support for operating_system and software fields in the Rule Builder. Users can now create rules based on the operating system and browser software detected by WhatIsMyBrowser API.
Enhancement: Introduced flexible string matching operators (equals, not_equals, contains, not_contains) for operating_system and software fields to allow for more granular rule configurations.
UI Update: Updated the Rule Builder UI to display new dropdown menus and input fields for operating_system and software criteria.
Improvement: Ensured that unknown or unexpected values from the WhatIsMyBrowser API can still be handled using string-based matching.
Maintenance: Minor code refactoring and improved sanitization for input fields in the settings and rule builder sections.
Compatibility: Confirmed compatibility with the latest WordPress and tested against various common browser user agents.
1.5.7
Introducing Traffic Insights, our newest premium feature that provides a single-page overview of unique IP addresses in your captured traffic. Analyze threat intelligence fields from IPData (Tor, Proxy, Known Attacker/Abuser, etc.) alongside the latest OS, browser software, and user agent details from WhatIsMyBrowser. Gain valuable statistics like total unique IPs, top countries, average confidence scores, and more—all from one intuitive dashboard. Upgrade to unlock this powerful tool and enhance your site’s proactive security strategy today!
1.5.8
Code refactoring.
1.5.9
Minor fixes.
1.5.9.6
New feature: Added an export to CSV functionality on the Blocked IPs and Traffic Insights pages.
1.5.9.7
Fix: Fix an issue where a missing file caused fatal error