$features) { if (in_array($feature, (array) $features, true)) { $plan = ucfirst($tier); break; } } } $pro_installed = class_exists('WPMM_Plans') && WPMM_Plans::pro_loaded(); $licensed = class_exists('WPMM_Plans') && WPMM_Plans::is_paid(); if ($pro_installed && !$licensed) { $cta = ['Activate licence', admin_url('admin.php?page=wpmm-dashboard&view=license'), false]; } else { // Licensed but the add-on is not installed: the fix is installing it, not a plan change. $label = !$pro_installed ? ($licensed ? 'Get the Pro add-on' : 'Compare plans') : 'Change plan'; $cta = [$label, class_exists('WPMM_Plans') ? WPMM_Plans::pricing_url() : 'https://silenthreads.com/pricing', true]; } ?>

>
403, 'back_link' => true]); } // Show the informational upgrade card (feature name + description + Upgrade link). if (class_exists('WPMM_Premium_Gate')) { $name = class_exists('WPMM_Plans') ? WPMM_Plans::feature_label($feature) : ucwords(str_replace('_', ' ', $feature)); $desc = self::pro_feature_desc($feature); WPMM_Premium_Gate::render_locked($name, $desc, $feature); } } public static function pro_feature_desc_public($feature) { return self::pro_feature_desc($feature); } protected static function pro_feature_desc($feature) { $d = [ 'waf_rules_manager' => 'Turn individual firewall rules on or off and test them safely before enabling.', 'outbound_monitor' => 'See every outside server your site connects to, and block suspicious ones.', 'security_baseline' => 'Snapshot your secure configuration and get alerted when anything drifts from it.', 'scan_secrets' => 'Find API keys, passwords and private keys accidentally left in your files.', 'scan_media' => 'Detect malware and code hidden inside images and other media uploads.', 'scan_js_skimmer' => 'Detect malicious JavaScript and payment-card skimmers on your pages.', 'vendor_drift' => 'Spot unexpected changes inside premium plugins you installed from vendors.', 'multisite_hub' => 'Manage and scan all your client sites from one dashboard.', 'soar_playbooks' => 'Run automatic response steps the moment an incident is detected.', 'custom_login_url' => 'Move wp-login.php to a private address only you know.', 'login_recaptcha' => 'Add a CAPTCHA to the login form to stop automated attacks.', ]; return $d[$feature] ?? 'This feature is part of the Silent Threads Security Pro add-on.'; } public static function init() { add_action('admin_init', [__CLASS__, 'maybe_redirect_legacy_security_hub']); add_action('admin_menu', [__CLASS__, 'register_menu']); add_action('admin_enqueue_scripts', [__CLASS__, 'enqueue_assets']); add_action('admin_enqueue_scripts', [__CLASS__, 'enqueue_console'], 999); add_action('admin_head', [__CLASS__, 'menu_icon_style']); add_action('admin_post_wpmm_save_settings', [__CLASS__, 'handle_save_settings']); add_action('admin_post_wpmm_download_forensic_bundle', [__CLASS__, 'handle_download_forensic_bundle']); add_action('admin_post_wpmm_regenerate_key', [__CLASS__, 'handle_regenerate_key']); add_action('admin_post_wpmm_save_registration_lockdown', [__CLASS__, 'handle_save_registration_lockdown']); add_action('admin_post_wpmm_toggle_waf_rule', [__CLASS__, 'handle_toggle_waf_rule']); add_action('admin_post_wpmm_toggle_waf_engine', [__CLASS__, 'handle_toggle_waf_engine']); add_action('admin_post_wpmm_save_new_user_approval', [__CLASS__, 'handle_save_new_user_approval']); add_action('admin_post_wpmm_save_registration_guard', [__CLASS__, 'handle_save_registration_guard']); add_action('admin_post_wpmm_save_fingerprint_settings', [__CLASS__, 'handle_save_fingerprint_settings']); add_action('admin_post_wpmm_scan_all_sites', [__CLASS__, 'handle_scan_all_sites']); add_action('wp_ajax_wpmm_scan_step', [__CLASS__, 'handle_scan_step']); add_action('wp_ajax_wpmm_refresh_attack_stream', [__CLASS__, 'handle_refresh_attack_stream']); add_action('admin_post_wpmm_save_playbook', [__CLASS__, 'handle_save_playbook']); add_action('admin_post_wpmm_save_community_blocklist', [__CLASS__, 'handle_save_community_blocklist']); if (class_exists('WPMM_WAF_Sandbox')) add_action('wp_ajax_wpmm_test_waf_rule', ['WPMM_WAF_Sandbox', 'handle_test_rule']); add_action('admin_post_wpmm_delete_playbook', [__CLASS__, 'handle_delete_playbook']); add_action('admin_post_wpmm_stego_scan_now', [__CLASS__, 'handle_stego_scan_now']); add_action('admin_post_wpmm_js_scan_now', [__CLASS__, 'handle_js_scan_now']); add_action('admin_post_wpmm_js_update_status', [__CLASS__, 'handle_js_update_status']); add_action('admin_post_wpmm_add_trusted_ip', [__CLASS__, 'handle_add_trusted_ip']); add_action('admin_post_wpmm_save_country_blocking', [__CLASS__, 'handle_save_country_blocking']); add_action('admin_post_wpmm_save_rate_limits', [__CLASS__, 'handle_save_rate_limits']); add_action('admin_post_wpmm_remove_trusted_ip', [__CLASS__, 'handle_remove_trusted_ip']); add_action('admin_post_wpmm_stego_update_status', [__CLASS__, 'handle_stego_update_status']); add_action('admin_post_wpmm_register_vendor_baseline', [__CLASS__, 'handle_register_vendor_baseline']); add_action('admin_post_wpmm_remove_vendor_baseline', [__CLASS__, 'handle_remove_vendor_baseline']); add_action('admin_post_wpmm_check_vendor_drift', [__CLASS__, 'handle_check_vendor_drift']); } public static function handle_save_community_blocklist() { if (!current_user_can('manage_options')) wp_die('You do not have permission to do this.'); check_admin_referer('wpmm_save_community_blocklist'); if (class_exists('WPMM_Community_Blocklist')) { WPMM_Community_Blocklist::set_enabled(!empty($_POST['enabled'])); if (class_exists('WPMM_Activity_Log')) { WPMM_Activity_Log::log('community_blocklist_setting_changed', 'site', 'Community blocklist ' . (!empty($_POST['enabled']) ? 'enabled' : 'disabled') . ' by an administrator.'); } } wp_safe_redirect(add_query_arg(['view' => 'security-center', 'subtab' => 'overview', 'blocklist_saved' => 1], admin_url('admin.php?page=wpmm-dashboard'))); exit; } public static function handle_save_playbook() { if (class_exists('WPMM_Pro_Admin') && WPMM_Plans::allows('soar_playbooks')) return WPMM_Pro_Admin::handle_save_playbook(); self::pro_unavailable('soar_playbooks', true); } public static function handle_delete_playbook() { if (class_exists('WPMM_Pro_Admin') && WPMM_Plans::allows('soar_playbooks')) return WPMM_Pro_Admin::handle_delete_playbook(); self::pro_unavailable('soar_playbooks', true); } public static function handle_refresh_attack_stream() { if (!current_user_can('manage_options')) wp_send_json_error('Forbidden', 403); check_ajax_referer('wpmm_refresh_attack_stream', 'nonce'); if (!class_exists('WPMM_Attack_Stream')) wp_send_json_error('Not available'); $stream = WPMM_Attack_Stream::get_recent_attacks(15); ob_start(); if (empty($stream)) { echo 'No attack activity recorded yet across the WAF, Firewall, or Honeypot.'; } else { foreach ($stream as $evt) { echo ''; echo '' . esc_html($evt['time']) . ''; echo '' . esc_html($evt['ip'] ?: '—') . ''; echo '' . esc_html($evt['country'] ?: '—') . ''; echo '' . esc_html($evt['attack_type']) . ''; echo '' . esc_html($evt['endpoint'] ?: '—') . ''; echo '' . esc_html(ucfirst($evt['action'])) . ''; echo '' . esc_html($evt['source']) . ''; echo ''; } } $html = ob_get_clean(); wp_send_json_success(['html' => $html, 'count' => count($stream), 'refreshed_at' => current_time('mysql', true)]); } public static function handle_scan_step() { check_ajax_referer('wpmm_scan_step', 'nonce'); if (!current_user_can('manage_options')) wp_send_json_error(['message' => 'Permission denied'], 403); $step = isset($_POST['step']) ? sanitize_key($_POST['step']) : ''; if (!class_exists('WPMM_Plans') || !WPMM_Plans::step_allowed($step)) { wp_send_json_error(['message' => 'Not included in your current plan', 'locked' => true], 403); } switch ($step) { case 'malware': $requested = isset($_POST['profile']) ? sanitize_key($_POST['profile']) : ''; $profile = in_array($requested, ['standard', 'deep'], true) ? $requested : WPMM_Plans::malware_profile_for_full_scan(); if ($profile === 'deep' && !WPMM_Plans::allows('scan_deep')) $profile = 'standard'; $result = WPMM_Scanner::run_scan($profile); wp_send_json_success(['message' => $result['files_scanned'] . ' files scanned, ' . $result['issues_found'] . ' issue(s) found']); break; case 'database': $result = WPMM_DB_Scanner::run_scan('deep'); $total = array_sum($result); wp_send_json_success(['message' => $total . ' issue(s) found across all tables']); break; case 'attack_surface': WPMM_Attack_Surface::run_scan(); $score = WPMM_Attack_Surface::get_score(); wp_send_json_success(['message' => 'Score: ' . $score['score'] . '/100']); break; case 'vulnerabilities': WPMM_Vulnerability_Scanner::run_scan(); $summary = WPMM_Vulnerability_Scanner::get_summary(); wp_send_json_success(['message' => $summary['outdated'] . ' outdated of ' . $summary['total']]); break; case 'persistence': WPMM_Persistence_Scanner::run_scan(); $findings = WPMM_Persistence_Scanner::get_findings('open'); wp_send_json_success(['message' => count($findings) . ' finding(s)']); break; case 'configuration': if (class_exists('WPMM_Configuration_Security')) { WPMM_Configuration_Security::run_scan(); $findings = WPMM_Configuration_Security::get_findings('open'); wp_send_json_success(['message' => count($findings) . ' issue(s) found']); } else { wp_send_json_success(['message' => 'skipped']); } break; case 'secrets': if (class_exists('WPMM_Secret_Scanner')) { WPMM_Secret_Scanner::run_scan(); $findings = WPMM_Secret_Scanner::get_findings('open'); wp_send_json_success(['message' => count($findings) . ' finding(s)']); } else { wp_send_json_success(['message' => 'skipped']); } break; case 'steganography': if (class_exists('WPMM_Steganography_Scanner')) { $result = WPMM_Steganography_Scanner::run_scan(); wp_send_json_success(['message' => $result['scanned'] . ' image(s) checked, ' . $result['flagged'] . ' flagged']); } else { wp_send_json_success(['message' => 'skipped']); } break; case 'js_malware': if (class_exists('WPMM_JS_Scanner')) { $result = WPMM_JS_Scanner::run_scan(); wp_send_json_success(['message' => $result['scanned'] . ' script(s) checked, ' . $result['flagged'] . ' flagged']); } else { wp_send_json_success(['message' => 'skipped']); } break; case 'correlation': if (class_exists('WPMM_Incident')) { $result = WPMM_Incident::run_correlation(); wp_send_json_success(['message' => $result['created'] . ' new incident(s), ' . $result['updated'] . ' updated']); } else { wp_send_json_success(['message' => 'skipped']); } break; default: wp_send_json_error(['message' => 'Unknown scan step']); } } public static function handle_scan_all_sites() { if (class_exists('WPMM_Pro_Admin') && WPMM_Plans::allows('multisite_hub')) return WPMM_Pro_Admin::handle_scan_all_sites(); self::pro_unavailable('multisite_hub', true); } // The menu shows on every admin screen: size the logo icon to WordPress's 20px slot at full colour. public static function menu_icon_style() { // Our own menu item only (the rest of the WordPress menu keeps the user's admin colour scheme): // when it is the open section, Deep Burgundy with a gold edge instead of the scheme's blue. echo '' . "\n"; } public static function register_menu() { add_menu_page( 'Silent Threads Security', 'Silent Threads', 'manage_options', 'wpmm-dashboard', [__CLASS__, 'render_dashboard'], WPMM_PLUGIN_URL . 'assets/brand/menu-icon.png', 80 ); add_submenu_page('wpmm-dashboard', 'Dashboard', 'Dashboard', 'manage_options', 'wpmm-dashboard', [__CLASS__, 'render_dashboard']); add_submenu_page(null, 'This Site\'s Findings', 'This Site\'s Findings', 'manage_options', 'wpmm-findings', function () { self::standalone('render_findings'); }); add_submenu_page(null, 'Settings', 'Settings', 'manage_options', 'wpmm-settings-hub', function () { self::standalone('render_settings_hub'); }); if (class_exists('WPMM_Step_Up_Auth')) add_submenu_page(null, 'Verify Action', 'Verify Action', 'read', 'wpmm-step-up-verify', ['WPMM_Step_Up_Auth', 'render_verify_page']); add_submenu_page('wpmm-dashboard', 'Security Scanners', 'Security Scanners', 'manage_options', 'wpmm-security-hub', function () { self::standalone('render_security_hub'); }); add_submenu_page('wpmm-dashboard', 'Hardening Center', 'Hardening Center', 'manage_options', 'wpmm-hardening', function () { self::standalone('render_hardening'); }); add_submenu_page('wpmm-dashboard', 'Settings', 'Settings', 'manage_options', 'wpmm-settings-redirect', '__return_null'); add_submenu_page(null, 'Investigate Change', 'Investigate Change', 'manage_options', 'wpmm-investigate', function () { self::standalone('render_investigate'); }); add_submenu_page(null, 'IP Detail', 'IP Detail', 'manage_options', 'wpmm-ip-detail', function () { self::standalone('render_ip_detail'); }); add_submenu_page(null, 'Site Detail', 'Site Detail', 'manage_options', 'wpmm-site-detail', function () { self::standalone('render_site_detail'); }); } public static function enqueue_assets($hook) { if (strpos($hook, 'wpmm-') === false) return; $css_path = WPMM_PLUGIN_DIR . 'assets/admin.css'; $mtime = file_exists($css_path) ? filemtime($css_path) : 0; $version = WPMM_VERSION . '.' . $mtime; wp_enqueue_style('wpmm-brand-tokens', WPMM_PLUGIN_URL . 'assets/brand-tokens.css', [], WPMM_VERSION); wp_enqueue_style('wpmm-admin', WPMM_PLUGIN_URL . 'assets/admin.css', ['wpmm-brand-tokens'], $version); $page = sanitize_key(wp_unslash($_GET['page'] ?? '')); if ($page !== 'wpmm-dashboard' && strpos($page, 'wpmm-v2-preview') === false) { wp_enqueue_style('wpmm-v2-design-system', WPMM_PLUGIN_URL . 'assets/v2-design-system.css', [], WPMM_VERSION); wp_enqueue_style('wpmm-v3-shared', WPMM_PLUGIN_URL . 'assets/v3-shared.css', ['wpmm-v2-design-system', 'wpmm-admin'], WPMM_VERSION); wp_enqueue_style('wpmm-v3-components', WPMM_PLUGIN_URL . 'assets/v3-components.css', ['wpmm-v3-shared'], WPMM_VERSION); wp_enqueue_style('wpmm-v3-dark', WPMM_PLUGIN_URL . 'assets/v3-dark-theme.css', ['wpmm-v3-components'], WPMM_VERSION); wp_enqueue_style('wpmm-console', WPMM_PLUGIN_URL . 'assets/console.css', ['wpmm-v3-dark', 'wpmm-brand-tokens'], WPMM_VERSION); } if ($page === 'wpmm-license') wp_enqueue_style('wpmm-license-modal', WPMM_PLUGIN_URL . 'assets/license-modal.css', [], WPMM_VERSION); } /** * The security-console skin (assets/st-console.css): the plugin's one visual layer. Runs last * (priority 999) on the plugin's own screens and depends on every plugin stylesheet already * queued, so it always prints after them. Styling only; no behaviour is attached here except * the "reveal" button for masked secrets, which only changes what is shown on screen. */ public static function enqueue_console($hook) { $page = sanitize_key(wp_unslash($_GET['page'] ?? '')); if (strpos($page, 'wpmm-') !== 0 && strpos((string) $hook, 'wpmm-') === false) return; $deps = array_values(array_filter(wp_styles()->queue, function ($h) { return strpos($h, 'wpmm-') === 0; })); $path = WPMM_PLUGIN_DIR . 'assets/st-console.css'; $ver = WPMM_VERSION . '.' . (file_exists($path) ? filemtime($path) : 0); wp_enqueue_style('wpmm-st-console', WPMM_PLUGIN_URL . 'assets/st-console.css', $deps, $ver); wp_register_script('wpmm-st-console', false, [], $ver, true); wp_enqueue_script('wpmm-st-console'); wp_add_inline_script('wpmm-st-console', "document.addEventListener('click',function(e){var b=e.target.closest&&e.target.closest('[data-stc-reveal]');if(!b)return;var t=document.getElementById(b.getAttribute('data-stc-reveal'));if(!t)return;if(t.tagName==='INPUT'){var show=t.type==='password';t.type=show?'text':'password';b.textContent=show?'Hide':'Show';}else{var on=t.hasAttribute('data-stc-masked');if(on){t.textContent=t.getAttribute('data-stc-value');t.removeAttribute('data-stc-masked');b.textContent='Hide';}else{t.setAttribute('data-stc-masked','1');t.textContent=t.getAttribute('data-stc-mask');b.textContent='Show';}}});"); } public static function standalone($method) { echo '
'; call_user_func([__CLASS__, $method]); echo '
'; } public static function severity_badge($severity) { $map = [ 'critical' => ['Critical', 'wpmm-badge-critical'], 'high' => ['High', 'wpmm-badge-high'], 'medium' => ['Medium', 'wpmm-badge-medium'], 'low' => ['Low', 'wpmm-badge-low'], ]; [$label, $class] = $map[$severity] ?? [esc_html($severity), 'wpmm-badge-low']; return '' . esc_html($label) . ''; } protected static function render_expandable_table($render_callback, $total_rows, $collapsed_rows = 10) { if ($total_rows <= $collapsed_rows) { $render_callback(); return; } static $wpmm_expandable_instance = 0; $wpmm_expandable_instance++; $id = 'wpmm-expandable-' . $wpmm_expandable_instance; ?>
(function() { document.addEventListener('click', function(e) { var btn = e.target.closest('.wpmm-show-more-toggle'); if (!btn) return; var target = document.getElementById(btn.dataset.target); if (!target) return; var expanded = target.classList.toggle('is-expanded'); btn.classList.toggle('is-expanded', expanded); btn.querySelector('.wpmm-toggle-label').textContent = expanded ? 'Show Fewer (' + btn.dataset.collapsed + ')' : 'Show All ' + btn.dataset.count; }); })(); (function() { document.addEventListener('click', function(e) { var btn = e.target.closest('.wpmm2-show-more-toggle'); if (!btn) return; var target = document.getElementById(btn.dataset.target); if (!target) return; var expanded = target.classList.toggle('is-expanded'); btn.classList.toggle('is-expanded', expanded); btn.querySelector('.wpmm-toggle-label').textContent = expanded ? 'Show Fewer (' + btn.dataset.collapsed + ')' : 'Show All ' + btn.dataset.count; }); })();

No findings here. Nothing to worry about.

'; return; } $groups = self::group_findings_by_folder($findings); foreach ($groups as $folder => $items) { $critical_count = count(array_filter($items, function ($i) { return $i['severity'] === 'critical'; })); $open = $critical_count > 0 ? ' open' : ''; ?>
> finding 1 ? 's' : ''; ?> 0): ?> critical
Risk: /100 () Status:
First seen:  |  Last seen:
Trusted - not being re-flagged

This is a WordPress core file - use Core Integrity to verify/repair it instead of quarantine/delete.

Automatic repair isn't available for this finding (it's based on multiple signals rather than one exact snippet) - please review the file manually.

'; if ($groups === null) { echo '
'; foreach ($tabs as $key => $label) { $active = ($key === $current_tab) ? ' active' : ''; $url = esc_url(admin_url('admin.php?page=' . $page_slug . '&tab=' . $key)); echo wp_kses('' . esc_html($label) . '', WPMM_Kses::allowed()); } echo '
'; } else { $current_group_key = null; foreach ($groups as $group_key => $group) { if (array_key_exists($current_tab, $group['tabs'])) { $current_group_key = $group_key; break; } } if ($current_group_key === null) { $current_group_key = array_key_first($groups); } echo '
'; foreach ($groups as $group_key => $group) { $active = ($group_key === $current_group_key) ? ' active' : ''; $first_tab_in_group = array_key_first($group['tabs']); $url = esc_url(admin_url('admin.php?page=' . $page_slug . '&tab=' . $first_tab_in_group)); echo wp_kses('' . esc_html($group['label']) . '', WPMM_Kses::allowed()); } echo '
'; echo '
'; foreach ($groups[$current_group_key]['tabs'] as $key => $label) { $active = ($key === $current_tab) ? ' active' : ''; $url = esc_url(admin_url('admin.php?page=' . $page_slug . '&tab=' . $key)); echo wp_kses('' . esc_html($label) . '', WPMM_Kses::allowed()); } echo '
'; } echo ''; } public static function maybe_redirect_legacy_security_hub() { if (!isset($_GET['page'])) return; if (!current_user_can('manage_options')) return; if ($_GET['page'] === 'wpmm-settings-redirect') { wp_safe_redirect(admin_url('admin.php?page=wpmm-dashboard&view=settings')); exit; } if ($_GET['page'] === 'wpmm-findings') { $extra_params = $_GET; unset($extra_params['page']); $extra_params = array_map('sanitize_text_field', wp_unslash($extra_params)); wp_safe_redirect(add_query_arg(array_merge(['page' => 'wpmm-dashboard', 'view' => 'malware-scanner'], $extra_params), admin_url('admin.php'))); exit; } if ($_GET['page'] === 'wpmm-settings-hub') { $tab = isset($_GET['tab']) ? sanitize_key($_GET['tab']) : 'user-security'; $view_map = ['user-security' => 'login-security', 'activity-log' => 'activity-log', 'backups' => 'backups', 'reports' => 'reports', 'general' => 'settings']; $view = $view_map[$tab] ?? 'settings'; $extra_params = $_GET; unset($extra_params['page'], $extra_params['tab']); $extra_params = array_map('sanitize_text_field', wp_unslash($extra_params)); wp_safe_redirect(add_query_arg(array_merge(['page' => 'wpmm-dashboard', 'view' => $view], $extra_params), admin_url('admin.php'))); exit; } if ($_GET['page'] !== 'wpmm-security-hub') return; $tab = isset($_GET['tab']) ? sanitize_key($_GET['tab']) : 'security-center'; $renamed = ['core-integrity' => 'file-integrity']; $view = $renamed[$tab] ?? $tab; $extra_params = $_GET; unset($extra_params['page'], $extra_params['tab']); $extra_params = array_map('sanitize_text_field', wp_unslash($extra_params)); $target = add_query_arg(array_merge(['page' => 'wpmm-dashboard', 'view' => $view], $extra_params), admin_url('admin.php')); wp_safe_redirect($target); exit; } public static function render_security_hub() { if (!current_user_can('manage_options')) return; wp_safe_redirect(admin_url('admin.php?page=wpmm-dashboard')); exit; } public static function render_security_hub_legacy() { if (!current_user_can('manage_options')) return; $tabs = [ 'security-center' => 'Security Center', 'firewall' => 'Firewall / IP Blocks', 'attack-surface' => 'Attack Surface', 'vulnerabilities' => 'Vulnerabilities', 'persistence' => 'Persistence Scanner', 'database' => 'Database Scanner', 'core-integrity' => 'Core Integrity', 'security-baseline'=> 'Security Baseline', 'configuration' => 'Configuration Security', 'secrets' => 'Secret Scanner', 'steganography' => 'Media File Scanner', 'vendor-drift' => 'Premium Plugin Drift', 'outbound' => 'Outbound Connections', 'hub' => 'Remote Sites (Hub)', ]; $callbacks = [ 'security-center' => 'render_security_center', 'firewall' => 'render_firewall', 'attack-surface' => 'render_attack_surface', 'vulnerabilities' => 'render_vulnerabilities', 'persistence' => 'render_persistence', 'database' => 'render_db_scanner', 'core-integrity' => 'render_core_integrity', 'security-baseline' => 'render_security_baseline', 'configuration' => 'render_configuration', 'secrets' => 'render_secrets', 'steganography' => 'render_steganography', 'vendor-drift' => 'render_vendor_drift', 'outbound' => 'render_outbound', 'hub' => 'render_hub', ]; $tab = isset($_GET['tab']) ? sanitize_key($_GET['tab']) : 'security-center'; if (!isset($tabs[$tab])) $tab = 'security-center'; $groups = [ 'overview' => [ 'label' => 'Overview', 'tabs' => ['security-center' => 'Security Center'], ], 'firewall-network' => [ 'label' => 'Firewall & Network', 'tabs' => ['firewall' => 'Firewall / IP Blocks', 'outbound' => 'Outbound Connections'], ], 'malware-scans' => [ 'label' => 'Malware & File Scans', 'tabs' => [ 'attack-surface' => 'Attack Surface', 'persistence' => 'Persistence Scanner', 'database' => 'Database Scanner', 'core-integrity' => 'Core Integrity', 'steganography' => 'Media File Scanner', 'vendor-drift' => 'Premium Plugin Drift', ], ], 'code-security' => [ 'label' => 'Code & Config Security', 'tabs' => ['vulnerabilities' => 'Vulnerabilities', 'configuration' => 'Configuration Security', 'secrets' => 'Secret Scanner'], ], 'baseline' => [ 'label' => 'Baseline', 'tabs' => ['security-baseline' => 'Security Baseline'], ], 'remote' => [ 'label' => 'Remote Sites', 'tabs' => ['hub' => 'Remote Sites (Hub)'], ], ]; self::render_hub_tabs('wpmm-security-hub', $tabs, $tab, $groups); call_user_func([__CLASS__, $callbacks[$tab]]); } public static function render_security_center() { if (!current_user_can('manage_options')) return; $subtabs = ['overview' => 'Overview', 'incidents' => 'Incidents', 'forensics' => 'Forensics']; $subtab = isset($_GET['subtab']) ? sanitize_key($_GET['subtab']) : 'overview'; if (!isset($subtabs[$subtab])) $subtab = 'overview'; ?>

Emergency Lockdown completed. Check the Activity Log for the full step-by-step result.

Emergency Lockdown If you believe this site is currently compromised, this immediately rotates all authentication keys (signing everyone out), suspends every OTHER administrator account pending your review, blocks new registrations, enables the plugin/theme install lockdown, and takes a database backup - all of this plugin's individual response tools run in the correct order, in one click.
$label): ?>
0, 'critical' => 0]; $persistence_open = 0; $vuln_summary = ['outdated' => 0]; $config_open = 0; $admin_flags = 0; if (class_exists('WPMM_Persistence_Scanner')) $persistence_open = count(WPMM_Persistence_Scanner::get_findings('open')); if (class_exists('WPMM_Vulnerability_Scanner')) $vuln_summary = WPMM_Vulnerability_Scanner::get_summary(); if (class_exists('WPMM_Configuration_Security')) $config_open = count(WPMM_Configuration_Security::get_findings('open')); if (class_exists('WPMM_User_Security')) { foreach (WPMM_User_Security::scan_admin_accounts() as $row) { if (!empty($row['flags'])) $admin_flags++; } } ?> 0]; ?>
Site Risk Score
Active Incidents
Critical Incidents
prefix . 'wpmm_incidents'; $all_open_incidents = class_exists('WPMM_Incident') ? WPMM_Incident::get_incidents(null, 200) : []; $priority_counts = ['critical' => 0, 'high' => 0, 'medium' => 0, 'low' => 0]; $source_ip_counts = []; foreach ($all_open_incidents as $inc) { if (isset($priority_counts[$inc['severity']])) $priority_counts[$inc['severity']]++; $ips = json_decode($inc['source_ips'], true) ?: []; foreach ($ips as $ip) { if (!isset($source_ip_counts[$ip])) $source_ip_counts[$ip] = 0; $source_ip_counts[$ip]++; } } arsort($source_ip_counts); $max_priority = max(1, max($priority_counts)); $trend_labels = []; $trend_by_severity = ['critical' => [], 'high' => [], 'medium' => [], 'low' => []]; for ($i = 6; $i >= 0; $i--) { $day = gmdate('Y-m-d', strtotime("-$i days")); $trend_labels[] = gmdate('M j', strtotime($day)); foreach (array_keys($trend_by_severity) as $sev) { $trend_by_severity[$sev][] = (int) $wpdb->get_var($wpdb->prepare( "SELECT COUNT(*) FROM $incidents_table WHERE DATE(first_seen) = %s AND severity = %s", $day, $sev )); } } ?>

Incident Priority

'#dc2626', 'high' => '#ea580c', 'medium' => '#d97706', 'low' => '#16a34a'] as $sev => $color): ?>

Top Attack Sources

No source IPs recorded in current incidents.

$count): ?>
IPIncidents

Incident Trend (7 days)

(function() { function initIncidentTrendChart() { if (typeof Chart === 'undefined') { setTimeout(initIncidentTrendChart, 100); return; } var el = document.getElementById('wpmm-incident-trend-chart'); if (!el) return; new Chart(el, { type: 'line', data: { labels: , datasets: [ { label: 'Critical', data: , borderColor: '#dc2626', tension: 0.3, pointRadius: 2 }, { label: 'High', data: , borderColor: '#ea580c', tension: 0.3, pointRadius: 2 }, { label: 'Medium', data: , borderColor: '#d97706', tension: 0.3, pointRadius: 2 }, { label: 'Low', data: , borderColor: '#16a34a', tension: 0.3, pointRadius: 2 } ] }, options: { responsive: true, maintainAspectRatio: false, plugins: { legend: { position: 'bottom', labels: { font: { size: 10 }, boxWidth: 10 } } }, scales: { y: { beginAtZero: true, ticks: { precision: 0, font: { size: 10 } } }, x: { ticks: { font: { size: 10 } } } } } }); } initIncidentTrendChart(); })();

Real-Time Attack Stream Live - refreshes every 10s

No attack activity recorded yet across the WAF, Firewall, or Honeypot.

>
TimeIPCountryAttack TypeEndpointActionSource
(function() { var body = document.getElementById('wpmm-attack-stream-body'); var table = document.getElementById('wpmm-attack-stream-table'); var empty = document.getElementById('wpmm-stream-empty'); if (!body) return; function refresh() { var xhr = new XMLHttpRequest(); xhr.open('POST', ajaxurl, true); xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); xhr.onload = function() { if (xhr.status !== 200) return; try { var resp = JSON.parse(xhr.responseText); if (resp.success && resp.data && typeof resp.data.html === 'string') { body.innerHTML = resp.data.html; if (resp.data.count > 0) { if (table) table.style.display = 'table'; if (empty) empty.style.display = 'none'; } } } catch (e) {} }; xhr.send('action=wpmm_refresh_attack_stream&nonce='); } setInterval(function(){ if (document.visibilityState === 'visible') refresh(); }, 30000); })();

Top Threats

Top Attacking IPs

None recorded.

$wpmm_count): ?>
Top Attack Types

None recorded.

$wpmm_count): ?>
Top Countries by Attacks

None recorded.

$wpmm_count): ?>
Top Targeted Endpoints

None recorded.

$wpmm_count): ?>

Recent Incidents

No incidents recorded yet.

IncidentSeverityStatusDate
View Incident →
Persistence Findings
Outdated Components
Configuration Issues
Flagged Admin Accounts

Correlation complete - new incident(s) created from existing evidence.

Setting saved.

Security Control Tamper Watchdog - watches this plugin's own critical protections (WAF, 2FA, containment, and others) in real time and immediately logs and alerts if one is ever turned off unexpectedly. Turning a protection ON is never flagged - only OFF transitions are.

No security controls have been disabled - nothing to review.

ControlDisabled ByWhen
UTC

WP-CLI Persistence Guard - this plugin's own WAF and rate-limiting only ever see HTTP requests; an attacker with shell access (via a webshell, compromised SSH key, etc.) could bypass them entirely using WP-CLI. This surfaces privileged changes (new users, role changes, plugin/theme changes, cron modifications) made specifically through WP-CLI, distinct from the same changes made via a normal web request.

No privileged changes made via WP-CLI recorded yet.

CategoryDescriptionWhen
UTC

Automated Self-Audit - scans this plugin's own installed code weekly for the same vulnerability classes checked during development (admin-post handlers missing capability/nonce checks, unescaped output of user input). This never modifies or blocks anything - it exists to catch a genuine future regression automatically.

Self-audit has not run yet - it will run automatically within the next 24 hours, or check back after the weekly schedule.

Last run: UTC - no issues found.

Last run: UTC

SeverityCategoryDetailsFile

Live CVE Correlation - checks every active plugin and theme's genuine installed version against the free, community WPVulnerability.net database for a specific, matching, named CVE - not just "an update is available". This is deliberately distinct from the outdated-software check elsewhere: a plugin can be fully up to date and still have zero CVE matches here, or be one version behind and have a serious one.

CVE correlation has not run yet - it will run automatically within the next few hours.

Last checked: UTC - no installed component's exact version matched a known CVE.

Last checked: UTC

SeverityComponentInstalledCVEDescription
()

Retention policy saved.

Data Retention - keeps this plugin's own raw event-log tables (firewall events, login attempts, file-integrity events, honeypot hits, WAF events, and similar) from growing without bound, by removing entries older than the configured period. This deliberately never touches findings, incidents, baselines, or the immutable Activity Log - only raw, high-volume event history that has no ongoing evidentiary value once its window passes.

Containment policy saved.

Automatic Attack Containment - a stronger response than IP-blocking alone, for High and Critical incidents specifically: revoking involved users' sessions, triggering a full scan, and - at Critical severity only - suspending involved accounts outright and running a core-integrity scan. Deliberately opt-in and off by default: this takes real, disruptive action (logging out a user, suspending a login) automatically, so a site owner should decide to enable it rather than have it silently active.

Enable automatic attack containment High: block IPs + revoke sessions + full scan. Critical: also suspend involved accounts + core-integrity scan + immediate notification.

Recommendations below are based only on findings this plugin has actually detected on this site.

Security Recommendations

0) $recs[] = ['high', $vuln_summary['outdated'] . ' outdated component(s) - update from the Vulnerabilities tab.']; if ($persistence_open > 0) $recs[] = ['critical', $persistence_open . ' unreviewed persistence finding(s) - review on the Persistence Scanner tab.']; if ($config_open > 0) $recs[] = ['medium', $config_open . ' configuration issue(s) - review on the Configuration Security tab.']; if ($admin_flags > 0) $recs[] = ['medium', "$admin_flags administrator account(s) flagged for review - see User Security."]; if (empty($recs)) : ?>

No open recommendations right now.

Emergency Lockdown

Emergency Lockdown activated.

Lockdown rolled back - settings restored.

LOCKDOWN ACTIVE

Emergency Lockdown is currently active on this site. All changes are reversible.

For when this site is actively under attack or suspected compromised. This is a manual, deliberate action - nothing here happens automatically. Every change is reversible with one click.

Exactly what will change:

$item): ?>

Last checked: . Cross-site checks only work for sites monitored in agent mode (this plugin installed on them too).

IndicatorTypeStatusThreat ScoreAffected SitesEventsFirst SeenLast Seen
No threat indicators recorded yet.
Confirmed' : '' . esc_html(ucfirst($ind['status'])) . ''; ?> = 2 ? ' ⚠' : ''; ?>
Open All Investigating Contained Resolved

Showing only open incidents - marking one Investigating, Contained, Resolved, or a False Positive moves it out of this view. Use the "All" tab to see everything.

No incidents.

Risk /100 · Confidence: · Status:
Signals:
Source IP(s):
First seen: | Last seen: UTC
Investigate →
Incident not found.

'; return; } $evidence = WPMM_Incident::get_evidence($incident_id); $attack_path = WPMM_Incident::get_attack_path($incident_id); $timeline = WPMM_Incident::get_incident_timeline($incident_id); $snapshots = WPMM_Incident::get_snapshots($incident_id); ?>

← Back to Incidents

Action completed and logged to the Activity Log.

Incident report emailed.

Download Forensic Evidence Bundle (.json)
Confidence:
Risk Score
Status
First Seen
Last Seen

Attack Kill Chain

Which stages of a genuine attack progression this incident's own signals have been observed in - mapped from this plugin's existing detections, not a separate detection system.

Attack Timeline

— ()

Evidence

Source IP(s)
Files Mentioned
Users Mentioned
Domains Mentioned

Evidence above is extracted only from this incident's own recorded timeline - nothing here is inferred beyond what those events actually mention.

Attack Path

Not enough distinct steps to chart a path.

$step): ?>

→

Actions

Snapshots for This Incident

SeverityCreated
UTC

Status

File-level forensics (before/after diffs for a specific change) live on the Security Baseline tab. This page covers point-in-time security-state snapshots instead - useful for preserving evidence before you clean up a compromised site.

Snapshots

No snapshots yet.

IncidentSeverityCreated
UTC View

Snapshot # Detail

This snapshot is a read-only historical record - it does not change as your site's live state changes.

'User Security', 'activity-log' => 'Activity Log', 'backups' => 'Backups', 'reports' => 'Reports', 'general' => 'Settings', ]; $callbacks = [ 'user-security' => 'render_user_security', 'activity-log' => 'render_activity_log', 'backups' => 'render_backups', 'reports' => 'render_reports', 'general' => 'render_settings_all', ]; $tab = isset($_GET['tab']) ? sanitize_key($_GET['tab']) : 'user-security'; if (!isset($tabs[$tab])) $tab = 'user-security'; self::render_hub_tabs('wpmm-settings-hub', $tabs, $tab); call_user_func([__CLASS__, $callbacks[$tab]]); } public static function render_multisite_overview() { if (class_exists('WPMM_Pro_Admin') && WPMM_Plans::allows('multisite_hub')) return WPMM_Pro_Admin::render_multisite_overview(); self::pro_unavailable('multisite_hub', false); } public static function render_dashboard() { if (class_exists('WPMM_V2_Dashboard')) { WPMM_V2_Dashboard::render(); } } public static function render_dashboard_legacy() { if (!current_user_can('manage_options')) return; $summary = WPMM_Scanner::get_summary(); ?>
0, 'on' => 0, 'total' => 0]; ?>

This Website ()

Active Issues
Critical Issues
Last Scan
View Findings
Scanning your website 0 /
Preparing scan...
(function() { var steps = [ { key: 'malware', label: 'Malware Scan', icon: 'bug' }, { key: 'js_malware', label: 'JS & Skimmer', icon: 'terminal' }, { key: 'database', label: 'Database Scan', icon: 'database' }, { key: 'attack_surface', label: 'Attack Surface', icon: 'radar' }, { key: 'vulnerabilities', label: 'Vulnerabilities', icon: 'alert-triangle' }, { key: 'persistence', label: 'Persistence', icon: 'folder-lock' }, { key: 'configuration', label: 'Configuration', icon: 'settings' }, { key: 'secrets', label: 'Secret Scanner', icon: 'key-round' }, { key: 'steganography', label: 'Media Files', icon: 'files' }, { key: 'correlation', label: 'Security Intelligence', icon: 'activity' } ]; var iconSvg = { 'bug': '', 'terminal': '', 'database': '', 'radar': '', 'alert-triangle': '', 'folder-lock': '', 'settings': '', 'key-round': '', 'files': '', 'activity': '' }; var checkSvg = ''; var xSvg = ''; var btn = document.getElementById('wpmm-scan-all-btn'); var progressWrap = document.getElementById('wpmm-scan-progress'); var circlesRow = document.getElementById('wpmm-scan-circles'); var currentLabel = document.getElementById('wpmm-scan-current-label'); var countLabel = document.getElementById('wpmm-scan-count'); btn.addEventListener('click', function() { btn.disabled = true; btn.textContent = 'Scanning...'; progressWrap.style.display = 'block'; circlesRow.innerHTML = ''; countLabel.textContent = '0 / ' + steps.length; steps.forEach(function(s) { var circle = document.createElement('div'); circle.className = 'wpmm-scan-circle'; circle.id = 'wpmm-circle-' + s.key; circle.title = s.label; circle.innerHTML = '
' + iconSvg[s.icon] + '
' + '
' + '
' + s.label + '
'; circlesRow.appendChild(circle); }); function runStep(i) { if (i >= steps.length) { currentLabel.textContent = 'Scan complete - reloading...'; btn.textContent = 'Scan Complete'; setTimeout(function() { window.location.reload(); }, 900); return; } var s = steps[i]; var circle = document.getElementById('wpmm-circle-' + s.key); circle.className = 'wpmm-scan-circle is-running'; currentLabel.textContent = 'Running: ' + s.label + '...'; countLabel.textContent = i + ' / ' + steps.length; var body = new URLSearchParams(); body.append('action', 'wpmm_scan_step'); body.append('step', s.key); body.append('nonce', ''); fetch(ajaxurl, { method: 'POST', credentials: 'same-origin', body: body }) .then(function(r) { return r.json(); }) .then(function(data) { var ok = data && data.success; var msg = ok ? data.data.message : 'Failed'; circle.className = ok ? 'wpmm-scan-circle is-success' : 'wpmm-scan-circle is-error'; circle.querySelector('.wpmm-scan-circle-badge').innerHTML = ok ? checkSvg : xSvg; circle.title = s.label + ' - ' + msg; countLabel.textContent = (i + 1) + ' / ' + steps.length; runStep(i + 1); }) .catch(function() { circle.className = 'wpmm-scan-circle is-error'; circle.querySelector('.wpmm-scan-circle-badge').innerHTML = xSvg; circle.title = s.label + ' - request failed'; runStep(i + 1); }); } runStep(0); }); })();

Attacks Blocked (Last 30 Days)

Firewall Summary

'Today', 'week' => 'This Week', 'month' => 'This Month'] as $key => $label): $row = $fw_summary[$key]; ?>
Complex AttacksBrute ForceXML-RPC AbuseWAF BlocksRate LimitedTotal

Findings Over Time (Last 30 Days)

User Security

['ID']]) as $u) { $tokens = get_user_meta($u->ID, 'session_tokens', true); $active_sessions += is_array($tokens) ? count($tokens) : 0; } ?>
Administrator Accounts
Flagged for Review
Active Sessions

Manage User Security →

Recently Blocked IPs

No IPs currently blocked.

IP AddressCountryReasonSince

View all & manage firewall →

This Site At a Glance

get_var("SELECT COUNT(*) FROM {$wpdb->prefix}wpmm_quarantine WHERE status = 'quarantined'"); $total_blocked_ips = count(WPMM_Firewall::get_blocked_ips()); $open_incidents = class_exists('WPMM_Incident') ? count(WPMM_Incident::get_incidents('open', 100)) : 0; ?>
Malware Findings
Open Incidents
IPs Blocked
Files Quarantined
%
Hardening Score
prefix . WPMM_TABLE_FINDINGS; $rows = $wpdb->get_results($wpdb->prepare( "SELECT DATE(first_seen) AS d, COUNT(*) AS c FROM $table WHERE first_seen >= DATE_SUB(CURDATE(), INTERVAL %d DAY) GROUP BY d ORDER BY d", $days ), ARRAY_A); $by_day = []; foreach ($rows as $r) { $by_day[$r['d']] = (int) $r['c']; } $series = []; for ($i = $days - 1; $i >= 0; $i--) { $day = gmdate('Y-m-d', strtotime("-$i days")); $series[$day] = $by_day[$day] ?? 0; } return $series; } public static function render_findings() { if (!current_user_can('manage_options')) return; $statusFilter = isset($_GET['status']) ? sanitize_text_field(wp_unslash($_GET['status'])) : 'new'; $findings = WPMM_Scanner::get_findings($statusFilter === 'all' ? null : $statusFilter); ?>

File backed up and removed. You can restore it from Quarantine & Backups if needed.

Marked as trusted - this exact file+signature+content combination won't be re-flagged until the trust period expires (or the file changes).

File permanently deleted (no backup was kept).

file(s) quarantined and removed. skipped (protected core files or already gone).

file(s) repaired. skipped (no safely-removable match recorded).

Greyed-out items aren't implemented in this plugin yet - shown here for transparency about what is and isn't actually being checked.

New All Reviewed Ignored Resolved Trusted

Showing only unreviewed findings - once you mark something Reviewed, Ignored, Resolved, or Trusted, it moves out of this view. Use the "All" tab to see everything.

No findings here. Nothing to worry about.

Baseline created/updated for files.

How this works: checks run automatically every 15 minutes for uploads, themes, and plugins (the priority areas requested). This isn't truly instant - PHP has no OS-level file-watch API on typical hosting - but 15 minutes is far tighter than the weekly full malware scan. Changes made through WordPress itself (an update, activating a plugin, saving a theme file) are automatically marked "expected" and shown separately from unexplained changes.

Baseline Status
Baseline Created
Last Check

Detected Changes

All Unattributed (needs review) Expected (via WordPress) Reviewed

No file changes detected.

'New File', 'modified' => 'Modified', 'deleted' => 'Deleted', 'permission_changed' => 'Permission Changed']; $type_badge = $e['status'] === 'unattributed' ? 'wpmm-badge-critical' : ($e['status'] === 'expected' ? 'wpmm-badge-ok' : 'wpmm-badge-low'); ?>
Status:
Attributed to:
Permissions changed: →
Diff (up to 60 lines each side):
- 
+ 
Detected: UTC
Investigate

Fixed successfully.

Last Scan

Checks wp_options, wp_posts, wp_postmeta, wp_usermeta, and wp_users (display name / website URL fields), plus flags any new administrator account.

New Reviewed Ignored Resolved

No database findings.

Status:
. (, row )
First seen: | Last seen:

This value is PHP-serialized - editing it directly here risks corrupting the record, so no automatic fix is offered. Please review . manually.

Write Activity (Behavioral Anomaly Detection)

Tracks how often each core table is written to, and compares each hour against that table's own historical average for that hour - flags a genuine spike (20x+ normal, with at least 25 writes) rather than just static content. Runs via WordPress's own query hook, so it needs no special server access.

No write activity recorded yet in the last 24 hours.

TableDateHourWrites
:00

Sensitive Database Write Monitoring

Watches security-critical database writes directly - not through any WAF request-level rule, since a direct database write (e.g. from a webshell) never involves an HTTP request to inspect. Currently covers: the active_plugins option (catches a plugin silently activated by manipulating the database directly, bypassing the normal admin screen entirely) and new Application Password creation (a standing credential an attacker with brief access might create to persist).

No sensitive database writes recorded yet.

'wpmm-badge-critical', 'high_risk' => 'wpmm-badge-high', 'suspicious' => 'wpmm-badge-high', 'legitimate' => 'wpmm-badge-ok'][$e['classification']] ?? 'wpmm-badge-offline'; ?>
CategoryClassificationDetailsWhen
UTC

Fixed successfully.

= 80 ? '#16a34a' : ($score['score'] >= 50 ? '#d97706' : '#dc2626')); ?>
Critical
High
Medium
Low
Open Findings by Severity

SEO Cloaking Check

Fetches your homepage twice - once as an ordinary visitor, once as Googlebot - and compares them. A large difference can mean the site is showing search engines different content than real visitors (a technique used to inject SEO spam without visitors noticing).

Could not complete the check.

Possible Cloaking
The page shown to Googlebot is only % similar to what an ordinary visitor sees - review the homepage source for hidden content or user-agent-conditional code.

No cloaking detected - content shown to Googlebot and ordinary visitors is % similar.

Findings ()

No open attack surface findings.

Evidence:
Recommendation:

What this checks: whether core/plugins/themes are up to date, using WordPress's own official update-check data. This is not a CVE database - matching against a specific named vulnerability requires a paid third-party API (WPScan/Patchstack), which isn't configured here. Staying up to date is still the single most effective thing you can do, since most real-world compromises exploit already-patched, publicly known bugs in outdated software.

Components Checked
Outdated
Last Checked
ComponentTypeInstalledLatestStatus
No data yet - run a check.
Outdated' : 'Current'; ?>
Open Findings
Tracked MU-Plugins/Drop-ins
Last Scan

Findings

No persistence mechanisms found.

· Confidence:
Recommendation:

Tracked MU-Plugins & Drop-ins

FileFirst SeenLast Modified
None found on this site.

Applied:

Plugin/theme installation temporarily allowed - it will turn back off automatically when the window ends.

Installation lockdown re-enabled.

= 80 ? '#16a34a' : ($score['percent'] >= 50 ? '#d97706' : '#dc2626')); ?>

This site does not appear to be using HTTPS. "Secure Admin Cookies" and "Force HTTPS" cannot be safely auto-enabled until HTTPS is working - enabling them without a valid SSL certificate could lock you out of wp-admin. Set up HTTPS first, then return here.

$meta): ?>
Security CheckDescriptionStatus
ON OFF
Temporarily allowed until

Automatically turns back off on its own when the window ends - no need to remember to re-enable it.

Requires HTTPS first ✓ Enabled

Public Self-Registration

If this site never expects a random visitor to create their own account (most business/brochure sites, and even most WooCommerce stores where checkout doesn't require a real account), disabling this entirely removes an entire class of attack surface - there's simply no registration form left for a bot or attacker to abuse.



Manual Steps (for Nginx, or if a fix above couldn't write to disk)

Protect wp-config.php (Nginx):

location ~* wp-config\.php { deny all; }

Disable directory listing (Nginx):

autoindex off;

Admin security report emailed.

Block Suspicious Auto-Generated Usernames

Saved.

Prevents a NEW account from ever being created (not just detecting it afterward) when its username matches a known auto-generated/malware pattern - a generic prefix (wp, admin, support, backup, user, service...) directly followed by a short, meaningless run of random-looking characters. This is exactly the kind of username real attack tools generate when creating a rogue account, and something a genuine human choosing their own username essentially never produces. Applies only to brand-new accounts - never affects existing users.



Strong Password Policy

Saved.

WordPress's built-in password-strength meter is only a visual suggestion - it never actually stops a weak password from being saved. Turning this on for a role requires at least 12 characters, a mix of character types, and checks the password against HaveIBeenPwned's database of known-breached passwords - only the first 5 characters of a secure hash are ever sent for that check, never the password itself.

get_names() as $role_key => $role_label): ?>

Administrator Accounts ()

ID); $risk_badge = ['low' => 'wpmm-badge-ok', 'medium' => 'wpmm-badge-medium', 'high' => 'wpmm-badge-critical'][$risk['level']]; ?>
UsernameEmailRegisteredLast LoginRiskFlags
user_login); ?> user_email); ?> user_registered); ?>
OK

Security Events

No account security events recorded.

UTC
-

Active Sessions

No active sessions found.

UserActive Sessions

Recent Login Activity

No login activity recorded yet.

UserIPCountryBrowserOSStatusTime
Success' : 'Failed'; ?>

Rotate Authentication Keys

Key rotation was NOT performed:

Post-incident hygiene: invalidate every active session, instantly Rotates WordPress's own authentication salts in wp-config.php. This immediately signs EVERYONE out of the site - every browser, every device, every user, including you right now - regardless of whether an attacker's specific session was ever identified. A safety backup of wp-config.php is taken automatically before any change, and is restored automatically if anything goes wrong.

Last rotation:

Notifications

Settings saved.

Test alert accepted by this site's mail system. WordPress cannot confirm that it reached the inbox, so check your inbox (and spam folder).

The test alert could not be sent. This site's mail system refused it, so the server's outgoing mail may not be set up. ' . esc_html($wpmm_fail['reason']) . '. ' . esc_html(WPMM_Email_Diagnostics::explain($wpmm_fail['reason'])); } ?> Check email delivery.

Events that trigger an alert: malware detected, new PHP file created, core file modified, admin user created, brute-force attack, firewall block spike, plugin/theme file modified, security score dropped.

Minimum Severity
Email
Slack
Microsoft Teams
Discord
Custom Webhook

Receives a JSON POST: {event, label, message, severity, site_url, timestamp} - build any future integration against this.

Email Digest

Digest settings saved.

Instead of sending one email per event (which can arrive far too frequently to be useful), batch every event into a single, table-formatted summary email sent at a regular interval - similar to how Wordfence's own security digest works. Events are grouped into clear sections (Blocked IPs & Firewall, Accounts & Logins, Malware & Scan Findings, Other) with severity, description, and time for each. No digest is ever sent for an interval with zero events - this only reduces email volume, it never adds an empty one.

A weekly security digest collects every attack, file and scan event from the week into one email.

unique event(s) queued for the next digest. Repeats of the same event are counted, not listed again.

Digest sent - or nothing was queued, in which case nothing was sent.

0): ?>

Backup created.

Database restored. A snapshot of the previous database was automatically saved first.

Database backups can be restored with one click (a safety snapshot of the current database is always taken first). File backups are downloadable but must be restored manually - automatically overwriting a live site's files is one of the easiest ways to make a bad situation worse, so that step is intentionally left in your hands.

LabelTypeSizeCreated
No backups yet.
UTC Download

Backups older than the 10 most recent (per type) are removed automatically once a day.

Quarantined Files

Individual malware files that were removed from the site by the scanner - each one is backed up here and can be restored.

No quarantined files.

Original PathStatusBacked Up At
'Quarantined (file removed from site)', 'restored' => 'Restored', 'erased' => 'Backup erased']; echo esc_html($status_labels[$q['status']] ?? $q['status']); ?> UTC
—

Report generated.

Settings saved.

Reports are generated automatically every week, or on demand below. Each is a self-contained HTML page - open it and use your browser's "Print → Save as PDF" to get a PDF to send a client.

Email the weekly report automatically Sent to the address configured under Settings › Notifications
Email a daily security digest A shorter, more frequent summary than the weekly report - covers the last 24 hours, with a plain-language executive summary built entirely from this site's own real telemetry.

WAF attack report emailed.

TitlePeriodGenerated
No reports yet.
→ UTC View / Print
Open Findings
Last Scan

Findings

No configuration issues found.

Recommendation:

Zero-Trust File-Write Protection

Setting saved.

Tier 1 (always on): wraps WordPress's own file-write API (used by core/plugin/theme installers and well-behaved plugins) - blocks writes to wp-config.php, the root .htaccess, or any .php file inside uploads/ unless it's part of a genuine WordPress update.

Tier 2 (advanced, opt-in): also intercepts raw PHP file-write calls (fwrite/file_put_contents) that bypass WordPress's own API entirely - this catches more, including most real-world malware, but is a more invasive technique. Test thoroughly after enabling before relying on it.

Recently Blocked Writes

No suspicious file writes blocked yet.

PathReasonSourceWhen
Findings Fuzzy Hash Signatures

How this works: unlike an exact-hash match (which only catches a byte-for-byte identical file), a fuzzy hash still recognizes a modified copy of a known malicious file - renamed variables, added comments/whitespace, minor edits - as "80% similar to WSO Shell", for example. It won't catch a file that's been heavily rewritten from scratch (that's what the signature/entropy/behavioral checks elsewhere in this plugin are for) - this is one extra layer, not a replacement for the others.

Signature added.

Step 1: Compute a Fuzzy Hash

Paste the content of a file you've confirmed is malicious (e.g. from Quarantine, or a sample you're investigating) to get its fuzzy hash.

Computed hash:

Copy this into the form below to save it as a known-family signature.

Step 2: Add a Signature

Family name
Fuzzy hash
Match threshold % (higher = stricter, fewer false positives; lower = catches more variants but riskier)
Notes

Known Signatures ()

This list is stored locally and can be extended at any time without a plugin update - just add entries here (or share/import a list from your own research).

No signatures added yet. Fuzzy-hash matching is skipped entirely until at least one is added.

$sig): ?>
FamilyThresholdNotesAdded
%
get_error_message()))); } else { wp_safe_redirect(admin_url('admin.php?page=wpmm-security-hub&tab=firewall&trusted_added=1')); } exit; } public static function handle_remove_trusted_ip() { if (!current_user_can('manage_options')) wp_die('You do not have permission to do this.'); check_admin_referer('wpmm_remove_trusted_ip'); WPMM_Firewall::remove_trusted_ip(sanitize_text_field(wp_unslash($_POST['entry'] ?? ''))); wp_safe_redirect(admin_url('admin.php?page=wpmm-security-hub&tab=firewall')); exit; } public static function handle_save_country_blocking() { if (!current_user_can('manage_options')) wp_die('You do not have permission to do this.'); check_admin_referer('wpmm_save_country_blocking'); $mode = (isset($_POST['mode']) && $_POST['mode'] === 'allowlist') ? 'allowlist' : 'blocklist'; $countries = isset($_POST['countries']) ? sanitize_text_field(wp_unslash($_POST['countries'])) : ''; $codes = array_filter(array_map(function ($c) { return strtoupper(trim($c)); }, explode(',', $countries))); $codes = array_values(array_unique($codes)); update_option(WPMM_Firewall::OPTION_COUNTRY_BLOCK_MODE, $mode); update_option(WPMM_Firewall::OPTION_BLOCKED_COUNTRIES, $codes); if (class_exists('WPMM_Activity_Log')) { WPMM_Activity_Log::log('country_blocking_updated', 'site', "Country $mode set to: " . (empty($codes) ? 'none (disabled)' : implode(', ', $codes))); } wp_safe_redirect(admin_url('admin.php?page=wpmm-security-hub&tab=firewall&country_saved=1')); exit; } public static function handle_save_rate_limits() { if (!current_user_can('manage_options')) wp_die('You do not have permission to do this.'); check_admin_referer('wpmm_save_rate_limits'); $limits = []; foreach (['login', 'comments', 'rest_api', 'xmlrpc'] as $key) { $limits[$key] = [ 'limit' => sanitize_text_field(wp_unslash($_POST['limit_' . $key] ?? '')), 'window' => sanitize_text_field(wp_unslash($_POST['window_' . $key] ?? '')), ]; } WPMM_Firewall::save_rate_limits($limits); wp_safe_redirect(admin_url('admin.php?page=wpmm-security-hub&tab=firewall&rate_limits_saved=1')); exit; } public static function handle_stego_update_status() { if (class_exists('WPMM_Pro_Admin') && WPMM_Plans::allows('scan_media')) return WPMM_Pro_Admin::handle_stego_update_status(); self::pro_unavailable('scan_media', true); } public static function handle_register_vendor_baseline() { if (class_exists('WPMM_Pro_Admin') && WPMM_Plans::allows('vendor_drift')) return WPMM_Pro_Admin::handle_register_vendor_baseline(); self::pro_unavailable('vendor_drift', true); } public static function handle_remove_vendor_baseline() { if (class_exists('WPMM_Pro_Admin') && WPMM_Plans::allows('vendor_drift')) return WPMM_Pro_Admin::handle_remove_vendor_baseline(); self::pro_unavailable('vendor_drift', true); } public static function handle_check_vendor_drift() { if (class_exists('WPMM_Pro_Admin') && WPMM_Plans::allows('vendor_drift')) return WPMM_Pro_Admin::handle_check_vendor_drift(); self::pro_unavailable('vendor_drift', true); } public static function render_hub() { if (class_exists('WPMM_Pro_Admin') && WPMM_Plans::allows('multisite_hub')) return WPMM_Pro_Admin::render_hub(); self::pro_unavailable('multisite_hub', false); } public static function render_outbound() { if (class_exists('WPMM_Pro_Admin') && WPMM_Plans::allows('outbound_monitor')) return WPMM_Pro_Admin::render_outbound(); self::pro_unavailable('outbound_monitor', false); } public static function render_investigate() { if (!current_user_can('manage_options')) return; $id = isset($_GET['id']) ? (int) $_GET['id'] : 0; $event = WPMM_File_Integrity::get_event($id); if (!$event) { echo '

Event not found.

'; return; } $context = WPMM_File_Integrity::get_related_context($event['file_path'], $event['detected_at']); ?>
Change Type
Status
UTC
Detected

Hashes

Original Hash
Current Hash
File Size

Before / After

Before:

After:

Diff Summary

- 
+ 

Related Malware Finding

No related malware scanner finding for this file.

Nearby Activity (±10 minutes)

Logins: none.

Firewall events: none.

'', 'country_code' => '', 'asn' => '']; ?>
Country
ASN / Org
Recorded Events
← Back to Firewall

Event History

No events recorded for this IP.

UTC

General

This plugin protects the WordPress site it's installed on. There are no other sites to configure here.

Setup Wizard

Re-run the guided setup at any time - your existing settings won't be reset, and any step you'd already finished is shown as already complete.

Re-run Setup Wizard
Notifications Two-Factor Auth Login URL Remote Access General
$c, 'country_code' => $row['country_code'], 'count' => 0]; $by_country[$c]['count'] += (int) $row['block_count']; } usort($by_country, function ($a, $b) { return $b['count'] <=> $a['count']; }); $trusted_ips = WPMM_Firewall::get_trusted_ips(); $login_filter = isset($_GET['login_filter']) && $_GET['login_filter'] === 'failed' ? 'failed' : 'success'; $recent_logins = array_filter( class_exists('WPMM_User_Security') ? WPMM_User_Security::get_login_activity(100) : [], function ($l) use ($login_filter) { return $l['status'] === $login_filter; } ); $recent_logins = array_slice($recent_logins, 0, 8); ?>
Overview Top IPs Server Hardening Block IP Honeypot Rate Limiting Country Blocking Trusted IPs IP Reputation Blocked IPs () WAF Engine Honeytoken
✓
Firewall Active

Protecting this site against SQLi, XSS, LFI, webshells, and known attack patterns.

ON
Web Application Firewall
Failed Logins Before Lockout
ON
Fake Crawler Blocking
Trusted IPs Configured

Top IPs Blocked

No attack attempts recorded in this time range.

IP AddressCountryASN / OrgAttemptsThreat ScoreFirst SeenLast Seen
View

"Local/Private" and a blank ASN/Org mean the IP is in a private/internal range (like 10.x.x.x) - these have no public country or ASN data. If most or all attacking IPs show as Local/Private on a live site, it usually means the site is behind a reverse proxy/CDN - this plugin already checks common forwarding headers (X-Forwarded-For, CF-Connecting-IP) to find the real visitor IP in that case.

Top Countries by Attacks

No attacks recorded in this time range.

$c): ?>
CountryBlock Count
Details ▾
document.querySelectorAll('.wpmm-country-row').forEach(function (row) { row.addEventListener('click', function () { var target = document.getElementById(row.getAttribute('data-country-toggle')); if (target) target.style.display = getComputedStyle(target).display === 'none' ? 'table-row' : 'none'; }); }); (function() { function initCountryChart() { if (typeof Chart === 'undefined') { setTimeout(initCountryChart, 100); return; } var el = document.getElementById('wpmm-country-chart'); if (!el) return; new Chart(el, { type: 'bar', data: { labels: , datasets: [{ label: 'Blocked Attempts', data: , backgroundColor: '#B58A45', borderRadius: 4 }] }, options: { responsive: true, maintainAspectRatio: false, indexAxis: 'y', plugins: { legend: { display: false } }, scales: { x: { beginAtZero: true, ticks: { precision: 0 } } } } }); } initCountryChart(); })();

Recent Login Attempts

No logins recorded yet.

UsernameIPWhen

Recommended Server-Level Hardening (do this too)

Add this to your site's configuration to stop any PHP file in the uploads folder from ever executing, even if one gets planted there in the future. This works at a layer this plugin cannot reach on its own.

If you use Apache - add to wp-content/uploads/.htaccess:

<FilesMatch "\.(php|phtml|phar)$">
    Require all denied
</FilesMatch>

If you use Nginx - add inside your server block:

location ~* /wp-content/uploads/.*\.(php|phtml|phar)$ {
    deny all;
}

Block an IP Manually

Honeypot / Deception Layer

Honeypot bait paths regenerated.

This plugin watches for requests to a rotating set of fake "bait" file paths and AJAX actions that no legitimate visitor has any reason to request (e.g. .env, wp-config.php.bak, common webshell filenames). Any hit is treated as 100% confirmed malicious and the IP is instantly blocked - no scoring, no review needed, since nothing legitimate would ever trigger this.

Last rotated: UTC. Currently watching bait path(s) and bait AJAX action(s), rotated weekly so they can't be permanently fingerprinted.

Recent Honeypot Hits

No honeypot hits recorded - no confirmed attackers caught yet.

IP AddressTypeTargetWhen

Rate Limiting

Saved.

How many requests an IP can make to these commonly-abused endpoints before it's temporarily blocked. Defaults work for most sites - raise a limit if this site has heavy legitimate traffic on it (e.g. a very active comments section).

'Login attempts (wp-login.php)', 'comments' => 'Comment submissions', 'rest_api' => 'REST API requests', 'xmlrpc' => 'XML-RPC requests', 'admin_ajax' => 'AJAX requests (admin-ajax.php)']; ?> $label): ?>
EndpointMax RequestsPer (seconds)

Country Blocking

Saved.

Block (or, in allowlist mode, only permit) frontend traffic from specific countries. This never affects a logged-in user, even browsing the front end from abroad, so the site owner can never be geography-locked-out of their own site.

  

Use standard 2-letter country codes (US, GB, IN, CN, RU, etc.), separated by commas. Leave empty to disable.

Trusted IPs

A source here bypasses every firewall check entirely - never rate-limited, never WAF-scored, never auto-blocked. Use this for your own known office/home IP, or trusted services like uptime monitors (UptimeRobot) or site-management tools (ManageWP, MainWP) that make frequent, repetitive requests that could otherwise look like automated abuse.

Added to the trust list.

$meta): ?>
IP / RangeLabelAdded

External IP Reputation

Saved.

Reliable IP-reputation services (AbuseIPDB, IPQualityScore, and similar) require a paid API subscription to use at any real production volume, so this plugin doesn't ship a specific commercial integration built-in - embedding one vendor's key/logic directly would force every site onto that one vendor's pricing. This toggle instead enables a documented integration point: if you already have (or later obtain) a subscription to a reputation service, wire it in via the wpmm_ip_reputation_lookup filter, and its score becomes one additional signal in the existing WAF confidence scoring - never an independent block/allow decision on its own. With no provider connected, this stays a complete no-op.

false, 'has_provider' => false]; ?>
Enable external IP reputation scoring Requires a provider connected via the wpmm_ip_reputation_lookup filter - currently a provider is connected' : 'no provider is connected'; ?>.

Currently Blocked IPs ()

No IPs are currently blocked.

0]; ?>
IP AddressCountryRisk ScoreCategoryReasonBlocked ByBlocked At
UTC

Advanced WAF Rule Engine (356 Rules)

A 356-rule application-layer detection matrix covering SQL injection, XSS, LFI/RFI, RCE, obfuscation/decode-chains, SSRF, object injection, XXE, file-upload attacks, authorization/CSRF, authentication abuse, and WordPress/plugin-specific exploit patterns - all context-aware and confidence-scored rather than keyword-blacklist based, so an innocent word like "select" or "eval" in normal text is never treated as an attack on its own.

Rules Registered
Rules Implemented

Recent WAF Events

RuleRouteActionConfidenceTime (UTC)
%

No WAF events recorded yet.

Honeytoken Bait Files

Bait files planted.

Bait files removed.

Plants a handful of fake, realistic-looking "leaked" files (a backup wp-config.php, a database dump, an API-keys file) that no legitimate visitor, admin, or plugin has any reason to ever request. If any one of them is EVER accessed, the requesting IP is automatically blocked and a critical alert is sent immediately - catching an attacker while they're still searching your filesystem, before they ever reach whatever their real target was. This is the one detector in this plugin confident enough to auto-block without human review, precisely because there is no legitimate way to trigger it by accident.

Status: Active - bait file(s) planted:

Trigger History

FileIP AddressTime

Database Honeytoken

Database honeytoken account created.

Database honeytoken account removed.

A different tripwire from the file-based bait above: this plants a fake, unused Administrator account directly in the database. Nothing in wp-admin ever links to it, no email is ever sent about it, and no legitimate process has any reason to ever attempt logging into it - the only way anyone could learn this specific username exists at all is by reading the wp_users table directly (a SQL injection, a leaked database export, or a compromised database credential). Any login attempt against it, successful or not, is a strong signal of database-level compromise. The account itself has zero real privileges even if somehow logged into.

Status: Active - account: user_login : 'unknown'); ?>

Every file this plugin removes or repairs is backed up here first. Nothing is ever permanently gone unless you choose "Erase Backup".

No backups yet.

Original PathStatusBacked Up At
'Quarantined (file removed from site)', 'restored' => 'Restored', 'erased' => 'Backup erased']; echo esc_html($status_labels[$q['status']] ?? $q['status']); ?> UTC
—

Compares your WordPress core files against the official checksums published by WordPress.org for your exact version. This is a much more reliable way to catch tampering in core files than pattern scanning, and "Repair" replaces a file with the genuine official copy rather than guessing.

Check Core Integrity Now

File integrity report emailed.

Checked core files for WordPress .

Modified Files ()

No modified core files found. Your WordPress core matches the official release.

File

Missing Core Files ()

These files are part of the official WordPress release but were not found on this site. This is often normal - many sites remove unused default themes (Twenty Twenty-Three/Four/Five) or their font files, and that alone is not a sign of compromise. Focus mainly on the "Modified Files" list above; treat this list as lower-priority unless you see files you don't recognize removing on purpose.

File

Plugin Integrity Check

Extends the same official-checksum comparison to WordPress.org-hosted plugins - finds files that were planted in a plugin folder (never part of the official package) or files that were modified from the official release. Only works for plugins actually hosted on WordPress.org; premium/custom plugins have no public checksum registry to compare against and are skipped.

Checked WordPress.org-hosted plugin(s) ( skipped - not on WordPress.org or version not archived).

Extra/Planted Files
These files exist inside a plugin folder but were never part of the official WordPress.org package - a strong sign something was planted here:
Modified Files
These files don't match the official WordPress.org release for the installed version:

All checked plugins match their official WordPress.org release exactly.

Runtime Function-Call Protection

What this can and can't do: eval() is a PHP language construct, not a function - nothing (including this plugin) can disable or intercept it directly without a custom PHP build. What works: real functions like system/exec/shell_exec CAN be disabled server-side via disable_functions in php.ini (VPS/self-managed hosting only - shared hosting users typically can't edit php.ini and should ask their host). Once disabled, this plugin catches and instantly blocks any attempt to call them - a confirmed exploitation signal, not a guess.

Current status: Some dangerous functions are disabled - this protection is active.' : 'No dangerous functions currently disabled - add the snippet below to activate this protection.'; ?>

Recommended disable_functions value for your php.ini (includes anything already disabled, so pasting this won't accidentally re-enable something else):

disable_functions = 

Confirmed Exploitation Attempts (Disabled-Function Calls)

No disabled-function-call attempts recorded.

FunctionIPRequestWhen
()

Per-Plugin Dangerous-Function Baseline

Learned automatically during scans - if an existing, already-known plugin's files suddenly start calling a dangerous function they never used before, it's flagged as a possible sign of tampering (shown as a regular finding on this site's Findings page).

No baseline established yet - run a scan first.

PluginKnown FunctionsBaseline Established
none' : esc_html(implode(', ', $b['functions'])); ?>
Tamper-Evident Log Chain Every log entry's hash incorporates the previous entry's hash - if any row is ever directly edited or deleted at the database level, the chain breaks at that exact point and becomes provably detectable. Click "Verify Integrity" to check the entire chain now. Verified: all hashed entries are intact. Tampering detected - the chain breaks at log entry #. Everything before that entry verified correctly; that entry (or something after it, chained from it) does not match what it was originally recorded with.
Verify Integrity

A full history of every security action taken by this plugin - IP blocks, file quarantines/restores/deletions, repairs, and core file restores.

No activity recorded.

WhenActionCountryTargetByDetails
UTC

Two-Factor Authentication

Settings saved.

Require a second verification step to log in An emailed one-time code, in addition to the password

Who needs it


Backup Codes

Each user manages their own backup codes from their profile page: Your Profile. As an administrator, you can also generate new ones for another user from their user edit page.

Emails are sent using wp_mail(), so they will go out through whatever mail/SMTP setup this site already has (e.g. an SMTP plugin, if one is active). If codes aren't arriving, check that mail sending is working on this site first.


403, 'back_link' => true]); } public static function handle_save_settings() { if (!current_user_can('manage_options')) wp_die('You do not have permission to do this.'); check_admin_referer('wpmm_save_settings'); $source = isset($_POST['sites_source']) && $_POST['sites_source'] === 'api' ? 'api' : 'manual'; $api_url = isset($_POST['sites_api_url']) ? esc_url_raw(wp_unslash($_POST['sites_api_url'])) : ''; $api_auth = isset($_POST['sites_api_auth']) ? sanitize_text_field(wp_unslash($_POST['sites_api_auth'])) : ''; if (class_exists('WPMM_Remote_Sites') && WPMM_Plans::allows('multisite_hub')) { update_option(WPMM_Remote_Sites::OPTION_SOURCE, $source); update_option(WPMM_Remote_Sites::OPTION_API_URL, $api_url); update_option(WPMM_Remote_Sites::OPTION_API_KEY, $api_auth); } // Opt-in country lookups (sends IP addresses to our service). OFF unless ticked. if (class_exists('WPMM_GeoIP')) { update_option(WPMM_GeoIP::OPTION_ENABLED, isset($_POST['wpmm_geoip_enabled']) ? 1 : 0); } // Return to the screen the form was on (the old target, page=wpmm-settings, is not a registered page). wp_safe_redirect(add_query_arg('geo_saved', '1', self::settings_return_url()) . '#wpmm-privacy'); exit; } /** Where to send the user after a settings form posted from a Silent Threads screen. */ private static function settings_return_url() { $back = wp_get_referer(); if (!$back || strpos($back, 'page=wpmm') === false) { $back = admin_url('admin.php?page=wpmm-dashboard&view=settings'); } return remove_query_arg(['geo_saved', 'saved', 'regenerated'], $back); } public static function handle_regenerate_key() { if (!current_user_can('manage_options')) wp_die('You do not have permission to do this.'); check_admin_referer('wpmm_regenerate_key'); update_option('wpmm_api_key', wp_generate_password(40, false, false)); wp_safe_redirect(add_query_arg('regenerated', '1', self::settings_return_url())); exit; } public static function handle_save_registration_lockdown() { if (!current_user_can('manage_options')) wp_die('You do not have permission to do this.'); check_admin_referer('wpmm_save_registration_lockdown'); update_option('wpmm_disable_public_registration', isset($_POST['disable_registration']) ? '1' : '0'); if (class_exists('WPMM_Activity_Log')) { WPMM_Activity_Log::log('registration_lockdown_changed', 'site', 'Public self-registration disable-toggle set to ' . (isset($_POST['disable_registration']) ? 'ON' : 'OFF') . '.'); } wp_safe_redirect(admin_url('admin.php?page=wpmm-dashboard&view=hardening&fixed=lockdown_new_registrations')); exit; } public static function render_waf_rules() { if (class_exists('WPMM_Pro_Admin') && WPMM_Plans::allows('waf_rules_manager')) return WPMM_Pro_Admin::render_waf_rules(); self::pro_unavailable('waf_rules_manager', false); } public static function handle_toggle_waf_rule() { if (class_exists('WPMM_Pro_Admin') && WPMM_Plans::allows('waf_rules_manager')) return WPMM_Pro_Admin::handle_toggle_waf_rule(); self::pro_unavailable('waf_rules_manager', true); } public static function handle_toggle_waf_engine() { if (!current_user_can('manage_options')) wp_die('You do not have permission to do this.'); check_admin_referer('wpmm_toggle_waf_engine'); $enable = !empty($_POST['enable']); if (!$enable && class_exists('WPMM_Step_Up_Auth')) { WPMM_Step_Up_Auth::guard('wpmm_toggle_waf_engine'); } update_option('wpmm_waf_engine_enabled', $enable); if (class_exists('WPMM_Activity_Log')) { WPMM_Activity_Log::log('waf_engine_toggled', 'site', 'The WAF engine was ' . ($enable ? 'enabled' : 'disabled') . '.'); } wp_safe_redirect(admin_url('admin.php?page=wpmm-dashboard&view=waf-rules&toggled=1')); exit; } public static function handle_save_new_user_approval() { // Provided by the Silent Threads Security Pro add-on. if (class_exists('WPMM_Pro_Admin') && WPMM_Plans::allows('new_user_approval')) return WPMM_Pro_Admin::handle_save_new_user_approval(); wp_die(esc_html__('This feature needs the Silent Threads Security Pro add-on and a plan that includes it.', 'silent-threads-security'), '', ['response' => 403, 'back_link' => true]); } public static function handle_save_registration_guard() { if (class_exists('WPMM_Pro_Admin') && WPMM_Plans::allows('registration_guard')) return WPMM_Pro_Admin::handle_save_registration_guard(); self::pro_unavailable('registration_guard', true); } public static function handle_save_fingerprint_settings() { if (class_exists('WPMM_Pro_Admin') && WPMM_Plans::allows('session_fingerprinting')) return WPMM_Pro_Admin::handle_save_fingerprint_settings(); self::pro_unavailable('session_fingerprinting', true); } }