Midnay Security Central

Overview

Midnay Security Central is an all-in-one security plugin for WordPress. It protects your site from one central dashboard using independent security modules, a firewall, a malware and vulnerability scanner, multi-factor authentication, login protection, security headers, and more. Every feature is free: there is no premium tier and nothing is locked behind an upsell.

You don’t need to be a security expert to use it. Each module can be switched on independently, comes with safe defaults, and explains what it does in plain language. Settings that need extra care are clearly marked with a “Careful” badge in the interface.

What’s in the box

ModuleWhat it protects you from
Login Protection
Brute-force password guessing: automatic IP lockouts after repeated failed logins.

Multi-Factor Auth (MFA)

Stolen passwords: a second verification step via authenticator app, email code, or passkey.

User Sessions

Hijacked or forgotten logins: see and end every active session on your site.

WAF Lite

Malicious requests: blocks SQL injection, XSS, path traversal, and bad bots before they reach WordPress.
Security HeadersBrowser-level attacks: clickjacking, MIME sniffing, and information leakage.
REST API SecurityData exposure: stops username harvesting and locks down the WordPress API and XML-RPC.

Activity Log
The unknown: a full audit trail of logins, changes, and security events.

File & Directory
Tampering: file-change detection plus one-click fixes for risky file settings.
Security Scanner
Misconfiguration: a 41-point audit with an A–F grade and prioritized recommendations.
Password Security
Weak passwords: minimum strength rules and breached-password checks (Have I Been Pwned).


Tip: You don’t have to enable everything at once. Start with Login Protection, Security Headers, and the Scanner, then add more modules as you get comfortable.

Installation & Activation

Requirements

  • WordPress 6.5 or newer
  • PHP 8.1 or newer

Installing the plugin

  • In your WordPress admin, go to Plugins → Add New Plugin.
  • Click Upload Plugin and choose the midnay-security-central.zip file.
  • Click Install Now, then Activate.
install

After activation you’ll find a new “Security Central” item in the left-hand admin menu, with a shield icon. All plugin pages live under this menu.

dashboard

Tip: Activating the plugin does not change your site’s behavior by itself. All protection modules start switched off , you choose what to enable.

Open Security Central → Dashboard for a bird’s-eye view of your site’s security. The plugin’s pages are organized under a top navigation bar: Dashboard, Auth & Access, Firewall, Monitoring, Debug, and Config.

midnay-center

Reading the dashboard

  • Security Score & Grade, an overall A–F rating based on your latest scan, with per-area bars for Headers, MFA, Sessions, and REST API.
  • Stat bar, at-a-glance counts: active modules, active sessions, login lockouts, and WAF blocks in the last 24 hours.
  • Site Security Overview, quick pass/fail checks for the most important items (WP_DEBUG, user enumeration, XML-RPC, HSTS, CSP, MFA enrollment).
  • Open Issues, items that need your attention, with a link to details.
  • Modules panel, switch each security module on or off with a toggle, and jump to its settings with the arrow.
  • Recent Activity, the latest security events, color-coded by severity, pulled from the Activity Log.

First-time setup in five minutes

Configure the security settings in minutes.

  • On the Dashboard, toggle on Login Protection; the defaults (5 attempts, 30-minute lockout) suit most sites.
  • Toggle on Security Headers, then open the module and enable X-Frame-Options, X-Content-Type-Options, and Referrer-Policy. These are safe on virtually every site.
  • Toggle on Security Scanner and click Run Full Scan in the top-right corner of the dashboard.
  • Review the results and work through the failed checks, each one tells you exactly what to do (see Section 5).
  • When you’re ready, enable Multi-Factor Auth for administrators (see the walkthrough in Section 5.2).

Tip: Your security score updates every time a scan runs. Don’t worry if you start with a low grade, a fresh WordPress install typically scores poorly until headers and hardening are enabled.

Modules

Login Protection

Login Protection stops brute-force attacks, the endless streams of automated password guesses every WordPress site receives. After a configurable number of failed attempts from one IP address, that address is locked out for a period you choose.

login-protection
  • Lockout Settings. Set the maximum failed attempts (default 5), the time window in which failures are counted (default 10 minutes), and the lockout duration (default 30 minutes).
  • Notifications. Optionally email the site admin whenever an IP is locked out.
  • IP Whitelist. Addresses listed here are never locked out, add your own office or home IP to avoid locking yourself out.
  • CAPTCHA. Add a Cloudflare Turnstile or Google reCAPTCHA challenge to the login, registration, and password-reset forms. You’ll need free API keys from the provider you choose.
  • Password Security. Enforce a minimum password strength and check new passwords against the Have I Been Pwned breach database.

Multi-Factor Authentication (MFA)

MFA adds a second verification step to WordPress logins, so a stolen password alone is not enough to get in. Midnay Security Central supports three methods: one-time codes by email, authenticator apps (Google Authenticator, Microsoft Authenticator, Authy, 1Password, and similar TOTP apps), and biometric passkeys (Face ID, Touch ID, Windows Hello).

  • Authentication Methods. Choose which methods users may use. You can enable several and let each user pick.
  • Enforce MFA for Roles. Require MFA for specific roles, administrators at minimum is strongly recommended.
  • Trusted Devices. Let users skip MFA on devices they’ve already verified, for a number of days you choose.
  • Grace Periods. Give newly-affected users a few days to enroll before MFA becomes mandatory for them.

Important: Read the “Read before enforcing MFA on admin accounts” notice on this page before switching enforcement on, and keep your backup codes somewhere safe.

User Sessions

Every time someone logs in to your site, WordPress creates a session. This module shows all of them, who is logged in, from which IP address, browser, and device, and lets you end any session instantly.

user-session
  • Idle timeout. Automatically log out sessions after a period of inactivity (default 30 minutes).
  • Max concurrent sessions. Limit how many simultaneous logins each user may have.
  • Session locks. Optionally invalidate a session if its IP address or browser changes mid-session, a sign of cookie theft. These are marked “Careful” because they can log out legitimate users on mobile networks.
  • Session Actions. Destroy an individual session or log out all users at once (handy after a suspected compromise).

WAF Lite (Web Application Firewall)

The WAF inspects every incoming request before WordPress processes it, and blocks the ones that match known attack patterns. It runs in one of two response modes: log only (monitor mode, good for testing) or block request (returns a 403 error to the attacker).

waf-lite
  • Detection Rules. Toggle individual protections: bad bots, empty user agents, SQL injection, XSS, and path traversal patterns.
  • IP Lists. Permanently block specific IP addresses, or allowlist addresses that must never be blocked.
  • Geo Blocking. Block or redirect visitors from specific countries, with an IP allowlist for exceptions.
  • Rate Limiting. Cap the number of requests per minute from a single IP.

Blocked requests appear in the firewall log, so you can see exactly what was stopped and why:

waf-back

Security Headers

Security headers are instructions your site sends to every visitor’s browser, things like “don’t allow this site to be embedded in a frame” or “only ever load this site over HTTPS”. They’re one of the cheapest security wins available, and most sites don’t set them.

security-header
  • X-Frame-Options prevents clickjacking by controlling whether your site can be framed. Safe for almost all sites.
  • X-Content-Type-Options stops browsers from MIME-sniffing files into executable types. Safe everywhere.
  • Referrer-Policy limits how much URL information leaks to other sites. Safe everywhere.
  • Strict-Transport-Security (HSTS) forces HTTPS. Enable once you’re sure your whole site works over HTTPS.
  • Content Security Policy (CSP) is the most powerful header, marked High Risk because a strict policy can break themes and plugins. Use the provided permissive default and tighten gradually.
  • Version hiding removes the X-Powered-By header and hides your WordPress version from the generator tag, feeds, asset URLs, and the REST API index.

REST API Security

The WordPress REST API powers the block editor and many plugins, but out of the box it also lets anyone list your usernames, a gift for password-guessing bots. This module locks that down without breaking legitimate use.

rest-api-security
  • User Enumeration Protection. Blocks unauthenticated access to the /wp/v2/users endpoint and, optionally, author archive pages.
  • XML-RPC Protection. Disables the legacy XML-RPC interface, a common brute-force vector. Check first that nothing you use (such as the classic Jetpack connection or some mobile apps) still needs it.
  • Rate Limiting. Caps API requests per minute and per hour.
  • Endpoint Rules. Fine-grained allow/deny rules for individual REST endpoints, including a “require authentication” mode with a whitelist.

Activity Log

The Activity Log records security-relevant events across your site in real time: logins and logouts, failed attempts, profile and content changes, plugin installs, settings changes, and events from the other Security Central modules.

activity-log
activity-log-back
  • Filters. Narrow the log by severity, category, user, role, IP address, date range, or free-text search.
  • Export. Download the filtered log as CSV or HTML for record-keeping or further analysis.
  • Email alerts. Have high-severity events emailed to you as they happen.
  • Retention. Events are kept for 90 days by default; adjust this in Settings.

A compact version of the log also appears as a “Security Activity” widget on the main WordPress dashboard:

security-activity

File & Directory Security

This module watches your WordPress files for unexpected changes and fixes risky file-system settings. It has two tabs: Monitor and Hardening.

file-monitor-hardening
  • Snapshots. Create a baseline snapshot of your core WordPress files, then check against it at any time or automatically every day. Added, changed, or deleted files are reported.
file-monitor-headeing
  • Hardening fixes. One-click protections: disable directory indexing (so visitors can’t browse your folders), restrict which file types can be uploaded, block PHP execution in the uploads folder, and disable the in-dashboard file editor.

Security Scanner

The scanner runs a comprehensive audit of your site, 41 checks covering HTTP headers, WordPress configuration, file permissions, outdated plugins and themes, and known vulnerabilities (via the WPVulnerability.com database). Results are graded A–F.

security-scanner
last-scan
  • Automated scanning. Enable the daily scan and pick a quiet time (default 2:00 AM).
  • Results. Each check shows Pass, Fail, Warning, or Info, with a plain-English explanation of what to do. Use the filter chips to see only failures.
  • History & export. Past scans are kept so you can track your progress; any scan can be exported.

Privacy

The Privacy page documents exactly what data the plugin stores (security logs, login attempts, session records), where it lives, whether it contains personal data such as IP addresses, and why it’s needed. Useful for GDPR compliance and privacy policies.

privancy-compliance

Settings

Plugin-wide options live under Config → Settings: the alert email address for notifications, activity-log retention, and whether to remove all plugin data when the plugin is uninstalled (off by default, so you can’t lose your logs by accident).

settings

Diagnostics & Debug

Two pages for troubleshooting. Diagnostics shows a read-only health report: plugin and WordPress versions, PHP version, key security constants, active modules, and whether the plugin’s database tables exist.

diagnostics

Debug lets you toggle the WP_DEBUG family of constants (it edits wp-config.php for you) and view, filter, export, or clear the debug log useful when a support engineer asks for details.

debug

How-To Workflows

Set up your site’s baseline protection

  • Go to Security Central → Dashboard.
  • In the Modules panel, toggle on Login Protection, Security Headers, WAF Lite, and Activity Log.
  • Open Security Headers and enable X-Frame-Options, X-Content-Type-Options, and Referrer-Policy. Click Save.
  • Open WAF Lite, set Response Mode to Log only for the first week, and enable all five detection rules.
  • After a week, review Firewall → WAF Lite’s log. If nothing legitimate was flagged, switch Response Mode to Block request.

Tip: Running the WAF in log-only mode first means a misfiring rule can never lock real visitors out while you’re still tuning.

Set up two-factor authentication

This walkthrough enables MFA site-wide, enrolls an authenticator app, and shows what login looks like afterwards.

Step 1: Enable MFA

  • Go to Auth & Access → MFA and toggle Enable Multi-Factor Authentication.
  • Under Authentication Methods, enable Authenticator App (TOTP) and, as a fallback, Email OTP.
  • Under Enforce MFA for Roles, tick Administrator. Save.

Step 2: Enroll your authenticator app

  • Go to Users → Profile and scroll to the Security Central Two-Factor Authentication section.
  • Scan the QR code with your authenticator app (or type the secret key manually).
  • Enter the 6-digit code the app shows, and click Verify & Enable.
  • Download your backup codes and store them somewhere safe, they’re your way in if you lose your phone.
qr-code

Step 3: Log in with 2FA

From now on, after entering a correct username and password, you’ll see a verification screen. Pick Auth App, enter the current 6-digit code from your phone, and click Verify.

verify

Tip: Enrolled users can also mark a device as trusted so they only need the code once every 30 days (configurable).

Stop a brute-force attack

Here’s what Login Protection looks like in action, and how to manage lockouts.

What the attacker sees

After each failed attempt, WordPress shows the normal error. Once the limit is reached (5 attempts by default), the IP is locked out and further attempts are refused:

login

What you see

  • Go to Auth & Access → Login Protection. Locked-out IPs and recent failed attempts are listed on this page.
  • To release a legitimate user early, click Unlock next to their IP.
  • Check Monitoring → Activity for the full history of failed logins, including the usernames that were tried.
login-protection-last

Tip: Add your own IP to the whitelist on this page so you can never lock yourself out while testing.

Run a security scan and fix what it finds

  • Go to Monitoring → Scanner (or click Run Full Scan on the Dashboard).
  • Click Run New Scan. The scan takes 10–30 seconds; progress is shown live.
securty
  • When it finishes, review the score card and click the Fail filter chip to see what needs fixing.
  • Work down the list. Most failures are fixed inside Security Central itself, for example, header failures are fixed on the Security Headers page, and “PHP execution in uploads” is a one-click fix on File & Directory → Hardening.
  • Re-run the scan and watch your grade improve. Then enable Run daily automated scan so it keeps itself up to date.

Check your files for tampering

  • Go to Monitoring → Files and make sure the module is enabled.
  • Click Create Snapshot to record the current state of your WordPress core files.
  • Any time you like, click Check for Changes. Added, modified, or deleted files are listed with their paths.
  • Leave the daily automatic check enabled so changes are caught overnight.
file-monitor

Tip: A WordPress update will legitimately change core files, create a fresh snapshot after every update so the monitor has the right baseline.

Review activity and export a report

  • Go to Monitoring → Activity.
  • Use the filter bar to narrow things down for example, Severity: High to see only serious events, or a specific username.
  • Click Export CSV to download the filtered events as a spreadsheet, or Export HTML for a shareable report.

See who’s logged in, and log them out

  • Go to Auth & Access → Sessions. The Active Sessions table shows every login, with user, IP address, device, and last-active time.
  • To end one session, click its Terminate action.
  • To end everything at once (for example after changing a compromised password), use the bulk logout action under Session Actions.

Lock down the REST API

  • Go to Firewall → REST API and enable the module.
  • Turn on Block user enumeration via REST API.
  • If nothing on your site uses XML-RPC, turn on Disable XML-RPC as well.

You can verify it worked: opening /wp-json/wp/v2/users on your site while logged out now returns an error instead of your user list.

note

Troubleshooting

FAQ

I locked myself out of my own site. What now?

I lost my phone and can’t pass MFA.

The WAF is blocking something legitimate.

A security header broke my site’s layout or a plugin.

Why did my security score drop?

Does the plugin slow my site down?

The file monitor reports hundreds of changed files.

Which settings are risky? What does the “Careful” badge mean?

Where is the plugin’s data stored, and is it GDPR-relevant?

Getting help

Found a Vulnerability?

Report it to our security team

If you’ve discovered a security issue in Midnay Security Central, email us directly and we’ll respond as quickly as possible.

Back to Top