# WordPress application passwords: find, limit and revoke them

WordPress application passwords sign tools in without a second factor. How to find unused ones, revoke an application password, and limit the rest.

By BetterShield Team, Oct 11, 2026. Updated Nov 8, 2026 by Nazmul Hasan Rupok.

WordPress application passwords are how many tools sign in to a site: a publishing app, a deploy script, a connector for an AI assistant. Each one is a separate password for one tool, and WordPress gives it no expiry. On a site that has been running a while, they pile up.

Nothing in WordPress lists them across accounts, so a forgotten one can sit there for years. This guide explains what they are, how BetterShield finds the unused ones, how to revoke an application password, and the controls for the ones you keep.

## Quick summary

- An application password belongs to one account and signs in over the REST API or XML-RPC. In BetterShield’s words, it "signs in without the second factor, by design."
- The audit flags **Some app passwords haven’t been used for months**: unused for 90 days, counted from creation if never used. It is **Low**.
- **BetterShield › Agents › Agent surface** lists every account’s application passwords in one place, with when each was last used.
- You can hold one to certain REST routes or a network, retire unused ones automatically, or refuse them for site managers.
- BetterShield’s own AI assistant connection does not use application passwords. It has its own credential.

## What WordPress application passwords are

An application password is a long generated password you create under your profile, named for the tool that will use it. WordPress shows it once and keeps only a hash of it. The tool then signs in with your username and that password, and gets the API permissions of that account, subject to the endpoint and any additional restrictions.

Three things make them different from your main password:

- **They skip the second factor.** Two-factor sign-in applies to people at the sign-in page. A request signed in with an application password goes straight through, which is what keeps integrations working.
- **They do not expire.** One made for a tool you stopped using still works.
- **They are per tool.** Each can be revoked on its own without changing your main password.

WordPress also requires HTTPS for them on most sites. If they are unavailable, BetterShield’s fix for them says so.

## How assistants and tools sign in with them

The audit puts it simply: "Application passwords are how connected tools and AI agents sign in." Many connectors for AI assistants, and many publishing and deployment tools, call the WordPress REST API with one.

BetterShield’s own MCP server is the exception. An assistant connected under **BetterShield › Agents › Connect** uses its own **Connection credential**, shown once, or signs in through the browser and appears under **Connected apps**. **Rotate** replaces that credential, **Disconnect** and **Revoke** end access, and none of it is an application password. See [Connect an AI assistant](/docs/connect-an-ai-assistant/).

## The audit check for unused application passwords

**Some app passwords haven’t been used for months** sits in the **Sign-in & accounts** area at **Low** severity and takes 1 point from site health while open. It counts a password as stale once nothing has used it for 90 days, and one that was never used counts from the day it was made.

The finding treats ninety days without use as a reason to review the credential. That is a useful threshold, not proof that a quarterly or seasonal integration has no purpose. Its **Before you act** is honest about the risk of cleaning up: "any integration secretly relying on one."

The finding carries counts only: how many accounts and passwords. Its link, **Open the agent surface**, shows which ones. All the checks are on the [checklist](/checklist/).

## See every application password on one screen

**BetterShield › Agents › Agent surface** has an **Application passwords** section. Each account that holds one is listed with its role, how many it has, and a **stale** chip once one has gone 90 days unused. Under each account, every password shows its name and "created … · last used …", or "created … · never used".

This is the list to read before you revoke anything. A password named for a tool you no longer run is an easy decision. One you do not recognize is worth asking about first.

## How to revoke an application password

Revoking is done in WordPress itself:

1. Open **Users › Profile**, or the account’s edit screen if you manage other users.
2. Scroll to **Application Passwords**.
3. Press **Revoke** beside the one to remove. **Revoke all application passwords** clears every one on that account.

From the terminal, `wp user application-password list <user>` lists an account’s passwords with their IDs, and `wp user application-password delete <user> <uuid>` revokes one.

A revoked application password cannot be brought back, because WordPress never stored the password itself. Whatever used it will need a new one. The activity log records each revocation as "Application password revoked", with its name.

## Retire unused application passwords automatically

On **Agents › Agent surface**, **Delete unused application passwords** removes them on a daily sweep once they pass **Unused for (days)**. It is off by default, the number defaults to 180, and the lowest you can set is 30.

The screen says what this means: "This is the one thing here that cannot be undone." Each retirement is logged with the password’s name, so whoever owned it knows which to make again. The sweep never removes the credential the request is running on, or BetterShield’s decoy.

## Limit the application passwords you keep

Each password on **Agents › Agent surface** has **Limit…**:

- **REST routes it may use**: route prefixes, such as `/wp/v2/posts`. Empty means every route.
- **Network it may be used from**: an address or a range, such as 203.0.113.0/24. Empty means anywhere.

Press **Save limit**. Until then the line reads **Reaches everything its account can, from anywhere**. A request outside the limit is refused and logged as "Application password refused outside its limit". **Remove limit** takes it off, and an **Undo** is offered right after each change.

## Block app passwords for site managers

If your administrators never need them, **App password block** under **Signing in** on **BetterShield › Protection › Login & Access** turns them away. **Who this applies to** has two choices: **Accounts that can manage this site** (preselected) or **Every account**.

Nothing is deleted. The passwords stay on their accounts, are refused while the fix is on, and work again when you turn it off. The fix also hides the profile section that issues them, for the accounts it covers.

Before applying, **Preview the change** says how many site managers hold one, and reads your activity log: "Something used this on 5 separate hours in the last 30 days, most recently 2 hours ago." **Monitor first** can count real application password sign-ins for an hour, a day or a week before you enforce. Details are in the [Refuse app passwords](/docs/refuse-application-passwords/) guide.

## What else BetterShield does around them

- **Activity log.** Each password created, revoked or used appears in the log. Use is recorded at most once an hour per password, so a busy connector does not flood it. See [Activity log](/docs/activity-log/).
- **Alerts.** A new application password on an administrator or editor account is rated **High** and emailed as it happens.
- **Sign-in limits.** Wrong application passwords count toward the attempt limit on [Login & Access](/docs/login-and-access/).
- **Two-factor.** An account with two-factor cannot use its main password over XML-RPC; it needs an application password instead.
- **No weakening by token.** Undoing a fix, loosening login protection, ending sessions or turning off someone’s two-factor is refused with "This can only be changed from a signed-in browser session, not through an application password."
- **Decoy.** **Keep a decoy credential on my account** adds an application password nobody is given. Any use is refused, logged as **Critical** and alerted.

## Replace a credential without guessing what it serves

Before revoking an unfamiliar credential, record its account, label, creation date, last-use date, integration owner and scheduled job. Keep the secret out of that record. A rarely used quarterly export may look stale during a ninety-day window, so ask the owner before treating age as proof of abandonment.

For a legitimate integration, rotate in this order:

1. Create a replacement under an account with only the required capabilities.
2. Put it in the integration's secret store, not in a public script or shell history.
3. Test the real operation, including related routes such as media uploads or category lookups.
4. Revoke the old credential and confirm the integration still works.
5. Verify that a request needing authentication fails with the old credential. A public endpoint returning 200 does not prove the old password is accepted.

**Worked example (fictional):** a publishing service needs to create draft posts and upload images. Restricting it to `/wp/v2/posts` alone breaks uploads. Allow the necessary routes only after identifying them, and use a suitably limited account. The route prefix does not make calls read-only: permissions and the requested operation still matter.

If the credential may already be in someone else's hands, revoke it promptly and accept the planned interruption while issuing a replacement. During routine maintenance, the staged replacement avoids an unnecessary outage.

## Common mistakes

- **Revoking everything at once.** Read the list first. A tool that mattered stops working, and its password cannot be restored.
- **Treating "never used" as safe to keep.** A password made and never used is the most common kind of forgotten one, and the audit counts it from creation.
- **Turning off two-factor to fix a tool.** The tool needs an application password, not a weaker sign-in.
- **Refusing them for every account without checking.** A store or membership integration may sign in as an ordinary account. Start with **Accounts that can manage this site**.

## Frequently asked questions

### Do application passwords bypass two-factor authentication?

Yes, by design. Two-factor applies to people signing in at the sign-in page. Turning on two-factor in BetterShield leaves your existing application passwords working.

### How do I revoke an application password in WordPress?

Open the account under **Users**, scroll to **Application Passwords** and press **Revoke** beside it. Or run `wp user application-password delete <user> <uuid>`. A revoked one cannot be restored.

### Does BetterShield delete application passwords on its own?

Not unless you choose it. **Delete unused application passwords**, off by default, removes unused ones daily. An incident’s response plan can revoke an account’s recent application passwords when you tick that action and confirm. Review the selected incident actions separately from routine credential retirement. **App password block** never deletes any.

### Can I see which application passwords are still in use?

Yes. **Agents › Agent surface** shows when each was last used, and the activity log records "Application password used" at most once an hour for each one.

## Conclusion

WordPress application passwords are useful, and they last until someone removes them. Look through **Agents › Agent surface**, revoke what nothing uses, limit what you keep, and let the audit tell you when another one goes quiet.

BetterShield is free on [WordPress.org](https://wordpress.org/plugins/bettershield/). For assistants, read [WordPress MCP: connecting an AI assistant to your site safely](/blog/ai-assistant-wordpress-security/).
