Handle security settings and checks with the AI Agent for WordPress
-
- What this tutorial covers
- Before you start
- Audit user accounts and spot unknown admin accounts
- Check WordPress plugins for vulnerabilities and security risks with AI
- Review security-related WordPress settings
- Clean spam comments at scale
- How the AI Agent for WordPress complements other security tools
- What the AI Agent for WordPress cannot do for security
- Frequently asked questions
Use the AI Agent for WordPress in SiteGround AI Studio to audit users, check plugins for known vulnerabilities, review settings, and clear spam through plain-English chat in under 10 minutes per site.
The AI Agent for WordPress turns repetitive WordPress security hygiene into single chat prompts. From one conversation, you can list every user account and flag unfamiliar admins, cross-reference installed plugins against publicly known vulnerability data, audit security-related WordPress settings, and bulk-clean spam comments. It does not scan files for malware or configure a firewall. Those jobs stay with a dedicated server-side tool like SiteGround Site Scanner.
What this tutorial covers
- Auditing user accounts and spotting admin accounts you didn’t create, across one or many connected sites
- Checking installed plugins against known WordPress vulnerability data and abandonment signals
- Reviewing security-related WordPress settings (registration, default role, file editing, comment moderation) in chat
- Cleaning spam comments at scale, with verification before and after
- How the agent complements Wordfence, SiteGround Site Scanner, and SiteGround Security Optimizer, and the security tasks it explicitly cannot handle
Before you start
The AI Agent for WordPress is an on-demand operational assistant. It runs when you prompt it, executes the task against your connected WordPress site, and returns a summary. It does not run in the background, scan files, or block traffic in real time. Treat it as the tool that handles your monthly audit and cleanup work, not as a replacement for the SiteGround Site Scanner, or SiteGround Security Optimizer. The section How the AI Agent for WordPress complements other security tools, later in this tutorial, maps the exact division of labor.
Prerequisites:
- Access to AI Studio by SiteGround. If you are not a SiteGround customer yet, you can get this through our AI WordPress Agent page.
- A WordPress site connected to AI Studio through the AI Agent by SiteGround plugin
- Power Mode enabled if you want the agent to execute changes (delete users, remove plugins, change settings) rather than only report on them. See Permissions, Power Mode, and safety controls for how to enable it and what it covers.
The workflows below follow the same pattern. Audit first with a read-only prompt, decide what needs action, then turn Power Mode on for the cleanup.
Audit user accounts and spot unknown admin accounts
Unfamiliar Administrator accounts are one of the loudest signals of a compromised WordPress site. Attackers commonly create a backdoor admin user after a successful exploit, often with an email on a domain that doesn’t match yours and a registration date that lines up with the breach. Manual auditing through Users → All Users is fine for one site. If you manage 5 or 50, the agent does it in a single prompt.
Read-only audits do not require Power Mode. Ask the agent to list, group, and compare. It will return tables you can scan in seconds.
Example prompts for auditing WordPress user accounts with AI
List every user with the Administrator role across all my connected WordPress sites. Show username, email, registration date, last login, and which site they’re on.
Show me all users created in the last 30 days. Flag any with the Administrator or Editor role, and any whose email domain doesn’t match my main site domain.
Compare user roles across my three connected sites. Are there accounts with Administrator on one site that should be Subscriber, or vice versa?
What to do if you find an unfamiliar admin
Don’t delete first. Confirm with anyone who has legitimate admin access (clients, contractors, agency partners) that the account isn’t theirs. If it isn’t, demote the account to Subscriber to preserve an audit trail, force a password reset, change the registered email to one you control, and only then delete. Before deletion, run a malware scan with SiteGround Site Scanner or another scanning tool. The rogue admin is usually a symptom, not the root cause.
Check WordPress plugins for vulnerabilities and security risks with AI
Plugins follow the same audit-first pattern. The agent can list every plugin on a connected site, surface plugins flagged in publicly known vulnerability data, and call out plugins that have not received an update in over a year or have been closed in the WordPress.org repository. This is an on-demand snapshot, not continuous monitoring. For real-time alerts the moment a new vulnerability lands, you still want a vulnerability scanner running in the background.
Three categories of plugin risk are worth checking on a regular cadence:
- Plugins with known CVEs or vulnerability advisories in databases like WPScan or Patchstack. A patch may exist that your installation hasn’t applied yet.
- Plugins closed in the WordPress.org plugin directory. The directory closes plugins for guideline violations, and security issues are a common reason. Closed plugins stop receiving updates.
- Plugins not updated in 12+ months. Abandonment is a quiet risk. No patches will arrive when a vulnerability is disclosed.
Example prompts for plugin vulnerability checks
List all installed plugins on this site. For each, show: version, last update date, whether it’s active or deactivated, and whether the developer is still publishing updates.
Check my installed plugins against publicly known WordPress vulnerability data. Flag any with known CVEs and tell me which version patches each issue.
Find plugins on this site that haven’t been updated in over 12 months, plus any that are currently closed in the WordPress.org plugin repository.
Spotting deactivated and abandoned plugins
A deactivated plugin still has its files sitting in /wp-content/plugins/. If a vulnerability exists in those files, attackers can sometimes reach them directly through the URL. Deactivation alone does not protect you. Ask the agent to list deactivated plugins, decide which you genuinely need, and use Power Mode to delete the rest. The same applies to inactive themes. Only the active theme and one default fallback need to stay installed.
Review security-related WordPress settings
The agent can audit specific WordPress settings that affect your security posture and report current values without you opening the dashboard. The four worth checking on every site are open registration, default new-user role, comment moderation rules, and file editing in wp-admin.
Why these four? Open registration with a default role of Editor or Administrator is a setup mistake that lets anyone create privileged accounts. Loose comment moderation invites spam and link injection. File editing inside wp-admin lets a compromised admin account modify theme and plugin files directly through the browser. Disabling it via DISALLOW_FILE_EDIT in wp-config.php is a 30-second hardening step that closes a common attack path.
Example prompts for security settings review
Audit security-related WordPress settings on all my connected sites. For each site, show: anyone-can-register status, default new-user role, comment moderation rules, and current WordPress and PHP versions.
Is open registration enabled on any of my connected sites? If so, what’s the default role for new accounts, and how many users have signed up in the last 90 days?
Standardize discussion settings across all my sites: require manual approval for first-time commenters, hold comments with 2 or more links for moderation, and disable trackbacks.
With Power Mode, the agent can change registration status, default role, discussion settings, WordPress core, and most settings exposed in Settings screens. It cannot change wp-config.php constants like DISALLOW_FILE_EDIT, server-level configurations, or .htaccess rules directly. For those, the agent gives you the exact lines to add and the file to add them in. You (or SiteGround support) handle the change.
Clean spam comments at scale
Spam comments are not only an annoyance. They bloat your wp_comments table, drag down query performance, occasionally smuggle malicious links past Akismet, and create indexable junk that hurts SEO. The agent can count, sample, filter, and bulk-delete spam through chat, which means no clicking through 20-comment pages in the dashboard.
Akismet, built into most WordPress installations, catches most spam, but it does not auto-delete. Flagged comments accumulate in the spam queue indefinitely unless you act. The agent fills exactly that gap.
Example prompts to clean spam comments in WordPress with AI
How many comments are currently flagged as spam on this site, and how old is the oldest one?
Show me 5 sample spam comments from the last 30 days. I want to verify they aren’t false positives before I delete the queue.
Delete all comments marked as spam that are older than 30 days. Then tell me how many remain.
Find pending or approved comments that contain links to non-HTTPS URLs or to known link-farm domains. Show them to me before deleting anything.
Verification step: after a bulk delete, ask the agent How many spam comments remain on this site? The number should drop to zero, or close to it. Re-check the spam queue a week later to confirm no false positives slipped through. If a legitimate commenter says their comment never appeared, you can ask the agent to search trashed comments by email or IP and restore the right one.
How the AI Agent for WordPress complements other security tools
With the four core workflows covered, here is where the agent sits in your broader security stack. The agent and a security plugin like the SiteGround Security Optimizer are not competitors. Plugins run continuously on every request to your site. The AI Agent for WordPress runs on demand when you prompt it. Each handles jobs the other cannot do efficiently, and running both is the standard setup.
The practical division: a security plugin and solid server security handle the things that need to happen every second, like request filtering, malware scanning, and login monitoring. The agent handles the things that need to happen regularly in WordPress, like auditing access, reviewing settings, and clearing backlog. Do not ask either to do the other’s job.
What the AI Agent for WordPress cannot do for security
Honest scope matters. Below is what the agent does not handle, and the SiteGround or third-party tool that covers each gap.
No malware scanning
The agent does not scan files. It cannot tell you whether wp-config.php has been altered, whether a file in /wp-content/uploads/ contains injected PHP, or whether your theme has had backdoor code added. For continuous file integrity monitoring and malware detection, use SiteGround Site Scanner (the Premium tier includes automated malware removal) or other scanner tools.
No firewall or WAF configuration
The agent has no firewall to configure. It cannot block IP addresses, set rate limits, configure country-level blocking, or write WAF rules. If you need request-level protection, rely on SiteGround’s server-level firewall on your hosting account and the additional server-level security tools in Site Tools.
No real-time threat detection or login protection
The agent does not watch live traffic, enforce 2FA, or limit login attempts. Those require a security plugin running on every request. SiteGround Security Optimizer covers the basics for free, available for all WordPress sites.
No incident response or forensic recovery
If your site has been compromised, the agent can help with some of the cleanup: auditing users, listing suspicious plugins, clearing comment queues. The actual forensic work, like reversing infections, restoring from clean backups, and identifying how the attacker got in, needs a security professional. Do not ask the agent to triage a live incident.
You now have a repeatable monthly security check that runs through a single chat. Pair the AI Agent for WordPress with SiteGround Security Optimizer for hardening and SiteGround Site Scanner for continuous malware monitoring. Together, they cover the full WordPress security workflow, from real-time protection to monthly hygiene.
Frequently asked questions
Can the AI Agent for WordPress replace other security plugins?
No. The AI Agent for WordPress complements security plugins, it does not replace them. The agent has no firewall, no malware scanner, no brute-force protection, and no real-time monitoring. Keep security tools like the SiteGround Site Scanner, and SiteGround Security Optimizer running for continuous protection, and use the agent for on-demand audits and cleanup.
Does the AI Agent for WordPress scan my site for malware?
No. The agent has no file-level scanning capability. It can list users, plugins, themes, settings, and comments, but it cannot inspect file contents for injected code, modified core files, or backdoors. For malware scanning, use SiteGround Site Scanner (continuous monitoring with automated removal in the Premium tier).
How do I check WordPress plugins for vulnerabilities using AI?
Ask the agent something like “Check my installed plugins against publicly known WordPress vulnerability data and flag any matches.” The agent will list your plugins with versions and report which have known issues. This is an on-demand check at the moment of the prompt, not continuous monitoring. Pair it with a vulnerability scanner for real-time alerts when new vulnerabilities are disclosed.
Do I need Power Mode to audit users or check plugins?
No. Read-only operations (listing users, listing plugins, reviewing settings, counting spam comments) work without Power Mode. Power Mode is required only when you want the agent to change something: delete users, remove plugins, modify settings, or bulk-delete comments. Run audits first, decide what to act on, then enable Power Mode for the cleanup.