WP options
The list below are all WordPress related options that are being registered by Patchstack in its WordPress plugin.
Also refer to the section on this page on how to disable all features of Patchstack except the firewall engine.
Patchstack WordPress Options
Patchstack WordPress Options For Internal Use
These internal use options are generally not be touched by the user and are either auto-computed, dynamically fetched from the Patchstack API or deprecated.
| Option Name | Value Type | Default | Description |
|---|---|---|---|
| hits_last_30 | array | [] | Array of hits of past 30 days |
| hits_all_time | int | 0 | All time hits counter |
| non_vpatches_present | int | 0 | Number of non-vPatches running on the site |
| vpatches_present | int | 0 | Number of vPatches running on the site |
| fixes_present | int | 0 | Number of vulns which have a fix available through an update |
| vulns_present | int | 0 | Number of vulnerabilities present |
| auto_update | array | [] | Deprecated. Auto update settings from before Patchstack retired automatic updates. The site’s Packages tab in Patchstack App can only turn them off |
| db_version | float | Database migration version | |
| firewall_rules_v3 | string | [] | vPatches JSON |
| firewall_rules_v3_ap | string | [] | vPatches Auto-Prepend JSON |
| whitelist_rules_v3 | string | [] | Whitelist vPatches JSON |
| firewall_rules | string | [] | Legacy vPatches JSON |
| whitelist_rules | string | [] | Legacy Whitelist vPatches JSON |
| whitelist_keys_rules | string | [] | Legacy Whitelist Payload Keys JSON |
| firewall_ap_error | string | Error of auto-prepend activation failure | |
| ip_header_computed | boolean | 0 | Indiciation if we computed the proxy IP header |
| ip_header_force_compute | boolean | 0 | Whether or not to force a new IP header compution |
| firewall_custom_rules | string | Custom .htaccess rules to inject | |
| firewall_custom_rules_loc | string | ’bottom’ or ‘top’ | Location of where to inject the .htaccess rules |
| login_whitelist | array | [] | Array of temporarily whitelisted IP’s to access login page |
| rename_wp_login_whitelist | array | [] | Array of temporarily whitelisted IP’s to access login page |
| environment_hash | string | Computed hash of web-server values | |
| software_data_hash | string | Hash of software data | |
| software_upload_attempted | boolean | 0 | Whether or not we attempted a software sync yet |
| license_expiry | int | Timestamp of license expiration | |
| license_activated | int | Whether or not the subscription is active | |
| clientid | int | Integer of the client identifier (part of API key) | |
| secretkey | string | String of the client secret (part of API key) | |
| secretkey_nonce | string | Nonce used for encrypting the API key | |
| license_free | boolean | 0 | Whether or not the subscription is a free user or not |
| api_token | array | [] | The bearer token and its expiration |
| subscription_class | integer | 0 | The class code of the subscription |
| last_license_check | integer | 0 | The last time we checked the subscription of the site |
| whitelist | string | Legacy whitelist rules | |
| show_settings | boolean | 0 | Unused |
| firewall_log_lastid | int | 0 | Last identifier of sync, temporary value |
| eventlog_lastid | int | 0 | Last identifier of sync, temporary value |
| ott_action | string | Hash used for a one-time-token action | |
| managed | boolean | 0 | Whether or not this site is third-party managed |
| managed_text | string | Text to show on Patchstack settings page if it is third-party managed | |
| latest_vulnerable | array | [] | Array of vulnerability identifiers to determine if we need to sync firewall rules |
| site_id | int | 0 | Site identifier of the site on Patchstack SaaS |
| activation_secret | string | Activation secret used for instant site activation | |
| activation_time | int | Time for when activation secret through instant site activation is invalid | |
| firewall_ap_enabled | boolean | 0 | Whether or not auto prepend functionality is enabled |
| firewall_log_processing | boolean | 0 | Whether or not firewall logs are currently being synced |
| firewall_log_ap_processing | boolean | 0 | Whether or not auto prepend firewall logs are currently being synced |
| eventlog_log_processing | boolean | 0 | Whether or not activity logs are currently being synced |
| cron_offset | array | [] | Array of Patchstack crons and their unique offets |
| basic_firewall_roles | array | [ ‘administrator’, ‘editor’, ‘author’, ‘contributor’ ] | Default whitelisted roles for legacy vPatch rules |
Minimal Mode
Section titled “Minimal Mode”In order to run the Patchstack WordPress plugin in a minimal mode with minimal interference with other code and plugins, you can refer to the list below and which options we recommend you to change. It is recommended to apply these options before activating Patchstack, as some triggers may occur during Patchstack plugin activation.
This will set Patchstack to strictly run its firewall engine without any additional hardening features.
These options can also be set with the WP-CLI commands below:
wp option update patchstack_disable_htaccess 1wp option update patchstack_basicscanblock 0wp option update patchstack_prevent_default_file_access 0wp option update patchstack_index_views 0wp option update patchstack_block_debug_log_access 0wp option update patchstack_pluginedit 0wp option update patchstack_userenum 0wp option update patchstack_hidewpversion 0wp option update patchstack_application_passwords_disabled 0wp option update patchstack_xmlrpc_is_disabled 0wp option update patchstack_add_security_headers 0wp option update patchstack_activity_log_is_enabled 0wp option update patchstack_activity_log_failed_logins 0It is also possible to apply these settings through a default site policy on the Patchstack App. An example of this policy is shown below.
Read more about default site policies here.
{ "patchstack_disable_htaccess": 1, "patchstack_basicscanblock": 0, "patchstack_prevent_default_file_access": 0, "patchstack_index_views": 0, "patchstack_block_debug_log_access": 0, "patchstack_pluginedit": 0, "patchstack_userenum": 0, "patchstack_hidewpversion": 0, "patchstack_application_passwords_disabled": 0, "patchstack_xmlrpc_is_disabled": 0, "patchstack_add_security_headers": 0, "patchstack_activity_log_is_enabled": 0, "patchstack_activity_log_failed_logins": 0}