=== Guard by MPTY ===
Contributors: mptyprojects
Tags: security, malware, two-factor, integrity, hardening
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 0.52.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

WordPress malware scanning, protection and recovery with clear, actionable results.

== Description ==

Guard by MPTY helps WordPress administrators find security problems, protect important WordPress entry points and recover safely after an incident.

It checks WordPress files, plugins, themes, the database, administrator accounts, suspicious content, persistence and exposed sensitive files. It also provides login protection, 2FA, scheduled scans and reversible quarantine.

The interface prioritizes issues that need action. High-confidence threats appear first, uncertain evidence is clearly marked for review, and destructive actions are kept reversible where possible.

Free checks WordPress.org components against official integrity data where available and scans premium and custom components for suspicious behavior. Guard Pro adds optional comparison with an exact, known-clean vendor ZIP.

Free includes basic database and persistence checks. Guard Pro adds deeper database investigation and quarantine of eligible records, with a backup saved before removal. Existing quarantined records remain available for recovery if Pro expires.

Free includes manual and weekly automatic scans. Guard Pro adds daily and other configurable schedules. Security alerts avoid repeatedly emailing unchanged High or Critical findings.

Authenticator app two-factor authentication (TOTP) can be enabled per user and works with Google Authenticator, Microsoft Authenticator, 1Password, Bitwarden, Authy, Apple Passwords and other RFC 6238-compatible apps. Setup and code verification happen locally; Guard by MPTY does not use a hosted 2FA service.

Guard by MPTY operates inside WordPress. It cannot certify hosting-panel accounts, SSH/SFTP credentials, server processes, sibling sites or databases that the WordPress database user cannot access.

== Installation ==

1. Upload and activate Guard by MPTY.
2. Open Guard by MPTY in WordPress admin.
3. Run the first security scan.
4. Review findings before taking remediation actions.
5. Configure Protection and email notifications as needed.

== Privacy and data ==

Guard by MPTY stores security settings, scan results, security history, quarantine evidence, persistence-watch state and per-user 2FA data locally in WordPress. Security history can include request IP addresses when they are relevant to a security event. Guard does not send this data to MPTY Projects.

New file quarantine, trusted-package ZIPs/manifests and repair staging require writable storage outside the verified web document root. If Guard cannot establish that placement, it refuses new sensitive writes; local scanning and existing recovery remain available. CLI operations that create private files must supply the verified web document root. Existing evidence is not automatically moved or deleted. Legacy wp-content/mpty-guard-quarantine material still requires host-level HTTP access denial; directory index blocking alone does not protect individual files. Ask your host to verify that legacy files cannot be retrieved anonymously. Reports and support exports are administrator-authorized downloads and may contain sensitive site information; keep downloaded copies private.

TOTP authenticator secrets are encrypted at rest when Guard can create its protected private key storage outside the public WordPress root. Recovery codes are stored only as password-style hashes; the one-time display copy is encrypted and deleted after it is read.

= Integrity requests and same-site checks =

Manual and scheduled scans request official integrity data from WordPress.org when the relevant checks run. Plugin and theme requests use https://downloads.wordpress.org/plugin-checksums/ and https://downloads.wordpress.org/theme-checksums/ with the component slug and version and a Guard/version user agent. No file contents or findings are sent. Core checks use WordPress get_core_checksums() at https://api.wordpress.org/core/checksums/1.0/ with WordPress version and locale; WordPress's default HTTP user agent also includes the site URL. Receiving servers can observe connection information such as the server IP. See https://wordpress.org/about/privacy/ for WordPress.org's privacy policy.

Automatic local scans default to enabled and can be turned off in Protection. Guard retrieves remote WordPress.org checksums only after an administrator enables "Allow official checksum requests to WordPress.org" in Protection and saves settings. Authorization starts off on fresh and existing installations; activation, upgrading, a paid license or starting a scan does not grant it. The choice persists across Free/Direct replacement and can be withdrawn in Protection. Previously cached checksum data may still be used locally, without a new request. Replacing or reinstalling plugin files preserves the choice. Deleting the plugin through WordPress runs the existing uninstall cleanup and removes settings; a subsequent fresh installation requires authorization again.

Checksum authorization is MPTY's conservative product decision, not a claim that WordPress.org universally requires a separate checksum checkbox. Local database threat detection, behavioral file scanning, essential alerts, protection and existing recovery remain available without it. Unavailable plugin/theme manifests fall back to local behavioral checks. Online coverage is shown as unavailable/not checked, not clean, and unchecked historical findings remain unresolved. Same-site exposure checks and unrelated WordPress network operations are not controlled by this setting.

WordPress controls core-checksum transport. Older supported versions, including WordPress 6.2, can use HTTP instead of HTTPS when TLS is unavailable or an HTTPS request fails. Guard does not change that WordPress fallback behavior.

When exposure scanning is enabled, Guard requests candidate file URLs on this site's own host using HEAD, with a GET fallback for servers rejecting HEAD. The fallback requests one byte and limits the response to one byte through WordPress's HTTP transport, even if the server ignores Range. Redirects are not followed, response content is not inspected or stored, and failures remain unknown. The site or its hosting/CDN provider can log the requested path and connection details. These requests do not upload files to MPTY.

= Email, local retention and sharing =

Essential email alerts default to enabled. Free sends High and Critical threat, access and recovery alerts to the WordPress Administration Email Address; change that address in WordPress General Settings or turn alerts off in Guard Protection. Direct with advanced reporting access can use saved custom recipients, severity and event preferences. Expired or invalid access returns to the Free recipient policy without deleting saved preferences.

Email uses WordPress wp_mail() and the site's configured mail provider. Messages can include the site name/URL, event summary, IP address, WordPress user ID and bounded event details. Your mail provider and recipients receive that information. Test email is administrator-initiated. WordPress accepting a message does not prove inbox delivery; failed or skipped sends are not recorded as successful delivery.

Security History retains the newest 200 events. Findings, investigation evidence, trusted-package references, quarantine material and recovery records remain local according to their workflow, not the event-history limit. Deactivation preserves data. Uninstall defaults to retaining forensic data; the explicit delete-all policy attempts verified cleanup and reports items requiring manual cleanup. Review retained files and records before disposal.

Guard-marked spam comments are deleted after 30 days only if they are still spam. Restore a comment before then using WordPress's Not spam action.

Support diagnostics are locally generated and redacted. Direct security-review JSON reports can contain site identity and finding evidence and are not redacted support bundles. Neither is uploaded automatically; review any download before sharing. Authenticator QR rendering is local and sends no secret to a QR service.

= Distribution-specific requests =

The WordPress.org Free package has no MPTY license client, custom updater or commercial-code installer. WordPress manages its normal directory updates.

The separately distributed Direct package contacts https://mptyprojects.com/api/guard/v1/licenses/activate after an administrator submits a license key, then /api/guard/v1/licenses/refresh for manual or scheduled refresh. Requests include organization UUID, product identifier and Guard version; activation includes the entered key and refresh uses an activation credential. The original license key is not stored. HTTPS is verified and redirects are disabled. Invalid/expired access falls back to Free; previously active access has only the existing bounded outage grace, never indefinite access.

Direct also contacts https://mptyprojects.com/api/guard/v1/updates/ for enrollment, update checks and signed packages. Requests contain an installation UUID, product/channel and Guard/WordPress/PHP versions, with an existing credential or newly generated update-only credential. Updates remain available independently of Pro status. Failed authorization, signature or package verification blocks installation, not local protection or recovery. These MPTY requests use generic product/version user agents, not the site URL or administrator email. MPTY and its hosting provider can observe connection IPs. No findings, file/database contents or authentication/recovery secrets are sent. Direct credentials and update state are stored locally; service-side operational retention must be reviewed with the Direct provider.

Guard includes readable PHP, JavaScript and CSS. GPL version 2 is included in LICENSE.txt; Guard is licensed under GPL version 2 or later. Third-party notices are under assets/vendor/.

== Screenshots ==

1. Review recommended and optional protections available in Guard Free. This summarizes settings, not proof that a site is clean.
2. Review a newly added administrator account and confirm that its access is expected.
3. Set up authenticator-app 2FA and review administrator coverage. This example truthfully shows that 2FA has not yet been enabled.

== Frequently Asked Questions ==

= Does Guard by MPTY automatically delete suspicious files? =

No. Live files are quarantined first so remediation remains reversible.

= Does Guard by MPTY scan the database? =

Yes. Free includes basic database and persistence checks; Guard Pro adds deeper investigation and database quarantine.

= Do I need clean ZIP files for every premium plugin or theme? =

No. Free scans premium and custom components for suspicious behavior without a ZIP. Guard Pro's clean-package comparison is optional, for checking a specific component against its known-clean copy.

= Which authenticator apps work with Guard by MPTY 2FA? =

Any standard TOTP/RFC 6238 authenticator app should work, including Google Authenticator, Microsoft Authenticator, 1Password, Bitwarden, Authy and Apple Passwords.

== Changelog ==

= 0.52.1 =
* Refreshes the Guard admin header and keeps WordPress notices below the navigation.
* No changes to scanning, findings, recovery, settings, entitlements or signed-update behavior.

= 0.52.0 =
* Separates premium monitoring, investigation, trusted-package comparison, repair and reporting implementations into the Direct distribution. Free retains local threat detection, essential alerts, historical evidence and existing recovery.
* Requires administrator authorization before Guard retrieves official WordPress.org checksums; local protection remains available without authorization.
* Preserves unchecked findings and incomplete coverage, strengthens repair backups and rollback verification, and accurately displays completed core database checks.
* Refines protection, monitoring, notifications and license-status presentation, and updates distribution licenses and privacy disclosures.
* Uses signed, independently verified Direct updates while keeping the WordPress.org update channel separate.

== Third-party libraries ==

Guard by MPTY bundles QR Code Generator for JavaScript by Kazuhiko Arase (MIT License) for local authenticator enrollment QR rendering. The license is included under assets/vendor/.

The readable QR module bodies match vendor/QRCode in qrcode-terminal revision 90f66cf5c6b10bcb4358df96a9580f9eb383307b after local CommonJS require-name adaptation. Source: https://github.com/gtanner/qrcode-terminal/tree/90f66cf5c6b10bcb4358df96a9580f9eb383307b/vendor/QRCode . The terminal application is not included. This identifies a verified matching revision, not an assertion about the original import date. Guard wraps these modules in its local browser loader; no remote script is loaded.
