跳到内容

phpwarden

v1.3.0

phpwarden · 2026年11月23日 上架

Reports installed plugins, themes, WordPress and PHP versions to phpwarden, which ranks vulnerabilities by real-world exploitation.

正在使用
10 以下
评分
暂无
累计下载
100
最近更新
2026年11月24日
需要 WordPress 5.8+已测试到 7.1.5PHP 7.4+

贡献者

phpwarden connects a WordPress site to a phpwarden project.

The plugin reports which components are installed. Your phpwarden dashboard matches them against known vulnerabilities and ranks the results by real-world exploitation: first whether a vulnerability is in the CISA Known Exploited Vulnerabilities (KEV) catalog, then by its EPSS score. You see what to patch first instead of a flat list of CVEs.

What it does

  • Sends an inventory report twice a day, shortly after a plugin or theme is installed, updated, activated, deactivated or deleted, and when you press “Send report now”.
  • Shows the result of the last report on the settings page: time, status, and the number of exposed components and KEV-listed vulnerabilities.
  • Report only: it never makes changes to your site on behalf of the service, and ignores any instruction in the service’s response.

What it is not

This plugin is not a firewall and not a malware scanner. It does not block requests, scan files or clean infections. It runs alongside security plugins such as Wordfence or Patchstack and does not replace them.

Data sent

Each report contains exactly this, and nothing else:

  • The plugin’s own agent version (for example phpwarden-wp/1.3.0).
  • The site address (home_url()).
  • The PHP version and PHP server API (for example fpm-fcgi).
  • The WordPress core version.
  • For every installed plugin: slug (directory name, or for a single-file plugin its file name without .php), main file path relative to the plugins directory, name, version, whether it is active, and the newer version WordPress knows of, if any.
  • For every installed theme: slug (directory name), name, version, whether it is active, and the newer version WordPress knows of, if any.
  • remote_updates: false, a fixed value telling the service that this plugin never accepts actions from it.
  • Only if you also check the separate, optional “Usage names” box: usage, four lists of names (no content) used to mark findings that are likely not reachable on your site. They are: registered shortcodes and blocks that appear in published posts, pages or widgets (up to 2,000 recent published posts are read on your site to find them), registered REST API namespaces, and registered AJAX action names, plus the number of posts read. At most 300 names per list.

The project token is sent in the Authorization header to identify your project. No user accounts, e-mail addresses, post content, visitor data, file contents, database contents or secrets are sent. The plugin loads no external assets and contains no tracking.

Configuration in wp-config.php

define( 'PHPWARDEN_TOKEN', 'your-project-token' );
define( 'PHPWARDEN_API', 'https://app.phpwarden.io' );

Constants take precedence over the settings page and make the corresponding field read-only.

WP-CLI

wp phpwarden activate <token> --consent   # stores the token, records consent, sends a report
wp phpwarden sync                         # sends a report now (only if consent is given)
wp phpwarden status
wp phpwarden disable                      # withdraws consent; nothing more is sent

Multisite

The plugin can be network-activated. It reports once for the whole network, from the network’s main site, listing all installed plugins and themes. A plugin counts as active when it is network-active or active on the main site; plugins active only on other sites of the network are reported as inactive. Settings are on the main site (Settings > phpwarden) and require a network administrator.

External services

This plugin connects to the phpwarden service at https://app.phpwarden.io (or the API base URL you configure). It is required for the plugin to do anything useful: the service matches your inventory against vulnerability data and shows the result in your dashboard.

  • Consent first: nothing is sent until an administrator checks “I agree to send this site’s software inventory to the phpwarden service” on Settings > phpwarden, or runs wp phpwarden activate <token> --consent. The box is unchecked by default. Defining PHPWARDEN_TOKEN in wp-config.php does not give consent on its own. Unchecking the box (or wp phpwarden disable) stops all reports.
  • What is sent and when: the inventory listed under “Data sent” above, together with your project token, twice a day, about a minute after plugin or theme changes, when you press “Send report now”, and when you run wp phpwarden activate or wp phpwarden sync.
  • Nothing is sent without both consent and a project token.
  • WordPress’s own update check: to report which plugins and themes have updates waiting, the plugin reads WordPress’s cached update list. If that list is missing or more than 12 hours old, it first asks WordPress core to refresh it, which is the same request to api.wordpress.org that WordPress makes on its own schedule. This happens only when a report is being sent, so never without consent, and it is skipped when the site has turned off WordPress’s update checks.
  • Service provider: phpwarden. Terms of service, privacy policy.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums