> Every playbook: https://protuno.com/playbooks.md · Site map for AI agents: https://protuno.com/llms.txt

# WP Hardening

Applies only the changes it rates low risk, one at a time. Risky or manual items are left for you, named specifically.

- Agent: Rook (Security)
- Steps: 5
- Changes the site: yes, in step 3
- Backup: Saves a backup or snapshot in step 2 (Hardening Backup Gate And Plan), before step 3 changes the site.
- Connector: No connector needed
- You get: A written Markdown report of the hardening changes applied, plus the risky or manual recommendations left for you.
- Looks at: Quick signs of compromise, such as PHP files in uploads; Hardening settings such as security headers, directory listing and PHP in uploads; Server and WordPress configuration
- Page: https://protuno.com/playbooks/wp-hardening
- Ask: "Rook, run WP Hardening on my site."

## Steps

1. **Hardening Gateway And Clean State Gate**: Checks Protuno can reach your site and looks for obvious signs of compromise, and stops if it finds any. It also checks the server type, HTTPS and Jetpack, which decide which changes can be applied.
2. **Hardening Backup Gate And Plan**: Reminds you to take your own full off site backup, snapshots the settings it will change and plans the changes.
3. **Apply Safe Hardening**: Applies only the safe changes one at a time, checks the site after each, and undoes a change if the site stops responding. On nginx the .htaccess changes are left as manual. `changes the site`
4. **Risky And Manual Recommendations**: Describes the riskier or manual changes for you to review. It applies none of them.
5. **Hardening Report**: Writes the report of what was applied, what needs your approval and what is left.

## Good to know

- Runs when you ask for it in your AI app. On Pro and Agency you can also put it on a routine.
- Needs no connector.
- It changes your site in the apply step (step 3 of 5), editing wp-config.php and .htaccess files. Step 2 also saves a snapshot file in your uploads folder.
- Stops if it sees obvious signs of compromise. Run a malware scan first.
- Protuno does not make your backup; you are reminded to take a full off site one.
- Risky changes are described, not applied.
- Some changes are one way: new login keys sign every user out and the readme file is removed. Take your own backup first.
- When it runs depends on the agent's mode: after you press Approve in Protuno in Approval mode, or on its own in Auto mode.
- The app's Roll back button does not cover this playbook. Take your own backup first.

## How to run it
In an AI app connected to Protuno: `ask_agent` with the site and "WP Hardening", then `propose_agent_plan`. In Approval mode, ask the user to press Approve in Protuno; in Auto mode the run starts when you propose it.
