Linux 软件免费装

Simula Security Telemetry for Wordfence

开发者 simulalab
更新时间 2026年6月1日 22:22
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2
版权网址: 版权信息

标签

security monitoring metrics wordfence grafana

下载

2.2.2

详情介绍:

Simula Security Telemetry for Wordfence exports Wordfence security telemetry in two forms: This plugin is intended for WordPress sites that already use Wordfence and Prometheus-based infrastructure. Instead of exposing a public metrics endpoint from WordPress, the plugin writes local files that node_exporter and log-based tooling can consume. By default, the plugin runs a fast collector every 15 minutes and a slow collector hourly using WP-Cron. It supports: Blocked events are currently identified from the Wordfence hits table where: The plugin includes an admin settings screen under Settings > Security Telemetry, where you can:

安装:

  1. Upload the plugin folder to the /wp-content/plugins/ directory, or install it using your preferred deployment process.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. Go to Settings > Security Telemetry.
  4. Set the Prometheus output file path. The default is /var/lib/node_exporter/textfile_collector/wordfence.prom.
  5. Ensure the target directory already exists and is writable by the PHP process.
  6. If incident export is enabled, set the incident log path. The default is /var/log/wordpress-wordfence-incidents.log.
  7. Ensure the incident log directory already exists and is writable by the PHP process.
  8. Ensure node_exporter is configured with the textfile collector and can read the generated .prom file.

升级注意事项:

2.2.2 Fixes incident log event timestamps, adds incident log levels and instance_name dashboard filtering, and renames the plugin storage prefix from wfne to sstfw. The WP-CLI command is now wp simula-security-telemetry. 2.1.0 Adds incident privacy controls for sensitive IP, URL, referer, user-agent, private/internal IP, and retention-note handling. 2.0.0 Adds ops-ready dashboard, alert, WP-CLI, JSON Lines incident, freshness, and posture capabilities while preserving the node_exporter textfile collection model. 1.0.0 Adds configurable metric export coverage and optional blocked-incident log export for Wordfence operators.

常见问题:

Does this plugin expose a public metrics endpoint?

No. It writes metrics to a local file for node_exporter to collect, and it can append blocked incidents to a local log file.

Does this plugin require Wordfence?

Yes. The plugin reads Wordfence data from the WordPress database. If required Wordfence tables or columns are unavailable, the exporter writes failure-state metrics instead of silently doing nothing.

How often are metrics exported?

The plugin schedules fast exports with WP-Cron. The default fast interval is every 15 minutes, and the admin UI also supports every 5 minutes, every 30 minutes, and hourly. Slow posture and scan metrics refresh hourly by default and can be set to hourly, twice daily, or daily. On low-traffic sites, WP-Cron may not run exactly on schedule unless you trigger WordPress cron processing through a system cron job or WP-CLI.

What metrics does the plugin export?

With the default metric prefix of wordpress_wordfence, the plugin can export:

  • wordpress_wordfence_export_success
  • wordpress_wordfence_plugin_info
  • wordpress_wordfence_last_export_timestamp_seconds
  • wordpress_wordfence_enabled
  • wordpress_wordfence_error_info
  • wordpress_wordfence_blocked_events_total
  • wordpress_wordfence_blocked_events_window
  • wordpress_wordfence_blocked_events_by_status_24h
  • wordpress_wordfence_failed_login_attempts_window
  • wordpress_wordfence_rate_limited_events_window
  • wordpress_wordfence_brute_force_events_window
  • wordpress_wordfence_top_attack_sources_24h
  • wordpress_wordfence_locked_out_total
  • wordpress_wordfence_two_factor_enabled
  • wordpress_wordfence_two_factor_protected_users_total
  • wordpress_wordfence_scan_issues_by_severity
  • wordpress_wordfence_scan_findings_total
  • wordpress_wordfence_vulnerability_findings_total
  • wordpress_wordfence_latest_hit_timestamp_seconds
  • wordpress_wordfence_latest_blocked_hit_timestamp_seconds
  • wordpress_wordfence_latest_scan_timestamp_seconds
  • wordpress_wordfence_scan_age_seconds
  • wordpress_wordfence_installed
  • wordpress_wordfence_version_info
  • wordpress_wordfence_firewall_enabled
  • wordpress_wordfence_firewall_optimized
  • wordpress_wordfence_live_traffic_enabled
  • wordpress_wordfence_scan_enabled
  • wordpress_wordfence_license_type
  • wordpress_wordfence_core_update_available
  • wordpress_wordfence_plugin_update_available_total
  • wordpress_wordfence_theme_update_available_total
  • wordpress_wordfence_admin_users_total
  • wordpress_wordfence_admin_users_without_2fa_total
Each metric family can be enabled or disabled independently from the settings screen.

What does the incident log export do?

It appends newly observed blocked Wordfence hits to a local .log or .jsonl path. The default text format preserves the original plain-text log line. The JSON Lines format emits one structured JSON object per blocked event for Loki, ELK, OpenSearch, and similar tooling. The exported incident timestamp is taken from the Wordfence hit row, falling back across known timestamp columns before using export time. The exporter tracks the last processed hit ID, and you can reset the incident cursor from the admin UI or WP-CLI to backfill retained history up to the configured per-run limit. For Loki, configure your log collector to parse the text prefix or the JSON Lines timestamp field if you want Grafana to display the original Wordfence event time instead of the collector ingestion time. Incident privacy controls can keep full IPs, truncate IPv4 to /24 and IPv6 to /64, hash IPs with the site salt, drop IP fields, drop query strings from URL and referer fields, drop referers, drop user agents, skip private/internal source IP ranges, and append an optional retention note to emitted events.

What WP-CLI commands are available?

If WP-CLI is available, the plugin registers:

  • wp simula-security-telemetry export
  • wp simula-security-telemetry export --metrics-only
  • wp simula-security-telemetry export --metrics-only --scope=fast
  • wp simula-security-telemetry export --metrics-only --scope=slow
  • wp simula-security-telemetry export --incidents-only
  • wp simula-security-telemetry reset-cursor
  • wp simula-security-telemetry status

Does the plugin include Grafana and Prometheus assets?

Yes. Import examples/grafana/grafana-dashboard-wordfence-security-overview.json into Grafana and load examples/prometheus/wordfence-alerts.yml into Prometheus or your rule management workflow.

What permissions are required?

The directory that will contain the .prom file must already exist and be writable by the PHP process running WordPress. If incident export is enabled, the incident log directory must also already exist and be writable by PHP. node_exporter must be able to read the resulting .prom file.

更新日志:

2.2.2 2.1.0 2.0.0 1.0.0