How to Audit WordPress Application Passwords (and Lock Them Down)

How to Audit WordPress Application Passwords (and Lock Them Down)

Application Passwords are one of the quietest ways into a WordPress site. Every user can create them, they work for the REST API and XML-RPC, and they never expire on their own. A plugin you tried two years ago, a contractor’s publishing tool or an old mobile app may still hold one with full administrator rights. This tutorial shows how to audit WordPress Application Passwords in about 15 minutes, revoke the ones nobody needs and lock the feature down, with plain WordPress, WP-CLI and our 007AJ Security Scanner & Firewall Suite.

Disclosure: 007AJ makes the Security Scanner & Firewall Suite. Steps 1 to 5 use only WordPress core and WP-CLI and work on any site.

What Application Passwords are (and why they need an audit)

WordPress added Application Passwords in version 5.6. Each one is a random 24-character password tied to one user account. Apps send it with the username in an HTTP Basic Auth header to the REST API or XML-RPC. A few facts matter for security:

  • They carry the user’s full permissions. An Application Password on an administrator account can do anything an administrator can do through the API: create users, install content, change settings exposed to the API.
  • They cannot log in to wp-admin. They only work for API requests, which is why people forget they exist.
  • They do not expire. A password stays valid until someone revokes it or deletes the user.
  • Two-factor login often does not cover them. An API request cannot answer a 2FA prompt. The popular Two Factor plugin, for example, allows Application Passwords for REST API and XML-RPC by default since version 0.14.0. That is reasonable, but it means a leaked Application Password skips your 2FA.
  • WordPress only stores a hash. Since WordPress 6.8 they are hashed with BLAKE2b. You can never read a password again after it is created, only revoke it.
  • They need HTTPS. WordPress only offers Application Passwords on sites served over HTTPS, or when the environment type is set to local.

Step 1: List every user who has an Application Password

In the dashboard, Application Passwords live at the bottom of each user’s profile (Users → Profile, or Users → All Users → Edit for someone else). Checking user by user is slow, so if you have WP-CLI, start with one query. All Application Passwords are stored in the user meta key _application_passwords:

wp db query "SELECT user_id FROM $(wp db prefix)usermeta WHERE meta_key = '_application_passwords'"

Then list the passwords for each user ID it returns:

wp user application-password list 1 --fields=uuid,name,created,last_used,last_ip

To check every administrator in one go:

for id in $(wp user list --role=administrator --field=ID); do
  echo "User $id"; wp user application-password list $id --fields=uuid,name,created,last_used,last_ip
done

The wp user application-password commands need WP-CLI 2.6.0 or later. On shared hosting without WP-CLI, use the profile screens; the same columns are shown there.

Step 2: Read the columns like an auditor

Each Application Password has a name, a created date, a last used date and a last IP address. Put them in a quick table and ask four questions:

  1. Do I recognise the name? Names are chosen by whoever created the password, so “test” or “app” is a red flag. Good names say who, what and when, for example “Zapier – blog drafts – Nov 2026”.
  2. Was it ever used? An empty last used value means the password has never authenticated a request. If it is months old and unused, revoke it.
  3. When was it last used? WordPress updates the last used date and IP at most once a day per password, so treat the value as “used on or around this day”, not an exact log.
  4. Is the last IP expected? Compare it with your automation service, your office or your own server. An address you cannot explain on an administrator account is a reason to revoke first and investigate after.

Pay most attention to administrator and editor accounts, and to accounts of people who no longer work with you.

Step 3: Revoke what nobody needs

In the profile screen, click Revoke next to a single password, or Revoke all application passwords for that user. With WP-CLI:

# one password
wp user application-password delete 1 6633824d-c1d7-4f79-9dd5-4586f734d69e
# every password of a user
wp user application-password delete 1 --all

Revoking is instant and safe: the app that used the password simply gets a 401 error. If something important breaks, create a new, clearly named password for it. When an account belonged to a former team member, also reset their normal password or delete the account and reassign their content.

Step 4: Give integrations their own low-privilege user

Most integrations do not need an administrator. A tool that publishes blog posts needs the Author or Editor role. Create a dedicated user such as integration-zapier, give it the lowest role that works and create the Application Password there. If the password ever leaks, the damage is limited to what that role can do, and you can see exactly which integration owns which account.

Step 5: Decide whether you need the feature at all

Many brochure sites and small shops use no API integrations. If yours is one of them, turn Application Passwords off completely. In the 007AJ Security Suite, open 007AJ Security → Settings, go to the hardening options and switch on Turn off application passwords. Without a plugin, the same result takes one line in a small must-use plugin or your theme’s functions file:

add_filter( 'wp_is_application_passwords_available', '__return_false' );

If only one integration user needs them, use the per-user filter wp_is_application_passwords_available_for_user instead and return true only for that user. Before you switch the feature off, check what relies on it: the WordPress mobile apps, publishing and automation tools and some deployment or backup services authenticate this way.

Step 6: Watch for password guessing on the API

Attackers try usernames and passwords against XML-RPC and the REST API as well as the login form. The 007AJ Security Suite’s login lockout counts failed logins from the login form, XML-RPC and Application Passwords together, and locks the IP address out after the number of failures you choose, with an optional email alert. Two more settings help:

  • REST request rate limit: returns HTTP 429 when one IP address sends too many REST requests.
  • XML-RPC switch: refuses all xmlrpc.php requests and turns off pingbacks, if nothing you use needs XML-RPC.

The suite’s activity log records logins, failed logins and lockouts, so your next audit starts with evidence instead of guesses. Prefer a free option first? Our free Security Scanner & Firewall plugin also covers login lockout across the login form, XML-RPC and Application Passwords.

A quarterly Application Passwords checklist

  • List all users with Application Passwords (Step 1).
  • Revoke anything unnamed, unused for 90 days or with an unknown last IP.
  • Move integrations to dedicated low-privilege users.
  • Remove accounts of people who left, and reassign their posts.
  • Confirm the feature is off if no integration needs it.
  • Check the security activity log for failed API logins and lockouts.

Choosing the rest of your login protection? Compare the best WordPress login security plugins for 2026. Building an integration and unsure which method to use? Read Application Passwords vs JWT for the WordPress REST API. For the bigger picture, see WordPress firewall vs malware scanner.

Frequently asked questions

Where do I find Application Passwords in WordPress?

At the bottom of each user’s profile screen, under Users → Profile, or Users → All Users → Edit for another user. With WP-CLI, run wp user application-password list followed by the user ID.

Can someone log in to wp-admin with an Application Password?

No. Application Passwords only authenticate REST API and XML-RPC requests. They still carry the user’s full permissions through the API, so an administrator’s Application Password is powerful.

Do Application Passwords bypass two-factor authentication?

Often, yes. API requests cannot answer a 2FA prompt, so many 2FA plugins allow Application Passwords for the REST API and XML-RPC. Treat each one like a key that skips 2FA and revoke the ones you do not need.

Is it safe to turn off Application Passwords?

Yes, if no app or service uses them. Check first: the WordPress mobile apps and many publishing and automation tools rely on them. Turning the feature off makes existing Application Passwords stop working.

How often should I audit Application Passwords?

Every three months, and whenever someone with an account leaves your team or you stop using an integration.

Free ebook: Build It Right: The Practical Guide to WordPress Themes & Plugins. Get your free copy

More free tools: see all our free WordPress plugins or browse the 007AJ shop.