Works with the AI Agents you already use
WordPress Config Security Audit
by CashonlyTian
Deploying WordPress with a default `wp-config.php` often leaves debug modes active, weak database credentials exposed, and insecure file permissions that invite compromise.
$7
WordPress Config Security Audit
Example session with this skill installed
Scan the WordPress install at ./my-new-site and generate a report with the brand name 'SecureWP'.
- Read your context and instructions
- Compiled the wordpress config security
- Generated the document
I have completed the security audit for the WordPress project located at ./my-new-site. The scanner evaluated 10 core configuration areas including debug settings, database credentials, and file permissions.
The audit resulted in a Score of 65/100, yielding a Grade: C and a Risk Level: High.
Security Audit Summary
| Category | Score | Status |
|---|---|---|
| Debug Mode | 0/10 | FAILED: WP_DEBUG is set to true |
| Salts & Keys | 10/10 | PASSED: Unique salts found |
| DB Credentials | 0/10 | FAILED: Using 'root' user on public host |
| File Editing | 10/10 | PASSED: File editing disabled |
| Auto Updates | 10/10 | PASSED: Core updates enabled |
| SSL Admin | 0/10 | FAILED: FORCE_SSL_ADMIN not set |
| Uploads Security | 10/10 | PASSED: PHP execution blocked |
| Htaccess | 10/10 | PASSED: Directory listing disabled |
| File Perms | 5/10 | WARNING: wp-config.php is 0666 |
| Site URL Repair | 10/10 | PASSED: HTTPS URLs enforced |
Top 3 Prioritized Fixes
Disable Debugging: Set WP_DEBUG and WP_DEBUG_DISPLAY to false in wp-config.php to prevent path disclosure.
2.
Secure DB Access: Change DB_USER from 'root' to a limited user and update DB_HOST from a public IP to 'localhost' or an internal IP.
3. Enforce SSL: Add define('FORCE_SSL_ADMIN', true); to ensure the login and admin areas are encrypted.
Files Generated:
- Visual Score-card:
scan-2023-11-20.png - Detailed Report:
scan-report.md
Next steps
- Apply the top 3 fixes to your
wp-config.phpfile. - Run
chmod 640 wp-config.phpto fix the file permission warning. - Request a re-scan once the changes are saved to verify your new score.
scan-2023-11-20.png
PDF · document
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
Deploying WordPress with a default wp-config.php often leaves debug modes active, weak database credentials exposed, and insecure file permissions that invite compromise. This skill performs a localized security audit of WordPress configuration files to identify vulnerabilities before they reach production.
What it does
- Config deep-scan checks
wp-config.phpfor active debug logs, weak salts, root database users, and insecure site URLs. - Server hardening audit inspects
.htaccessandwp-content/uploadsto ensure directory listing is disabled and PHP execution is blocked in media folders. - Permission validation verifies that file modes for sensitive files are not world-readable and directories avoid
0777permissions. - Scoring and grading generates a 0-100 security score with a corresponding grade and risk level based on 10 specific security checks.
- Remediation reporting produces a prioritized fix list and a shareable PNG score-card for stakeholders or clients.
How it works
- Provide the path to the local WordPress project directory you wish to scan.
- The skill runs a local Python script to analyze configuration patterns and file system metadata without network access.
- It identifies violations such as active
WP_DEBUG, missingFORCE_SSL_ADMIN, or publicly accessible database hosts. - Review the generated
scan-report.mdfor a breakdown of findings and thescan-YYYY-MM-DD.pngfor a visual summary.
Frameworks & tools
This tool targets WordPress core installations. It utilizes a Python-based scanner to evaluate PHP configuration constants, Apache .htaccess directives, and Unix file permissions.
Why this beats prompting it yourself
Generic prompts often miss the interplay between wp-config.php constants and server-level .htaccess rules. This skill applies a rigid 10-point scoring logic that masks sensitive credentials while ensuring critical flags like DISALLOW_FILE_EDIT are actually enforced.
Use cases
- Audit a new WordPress site generated by an agent or boilerplate before deployment.
- Verify security settings of a
wp-config.phpfile copied from a tutorial or blog. - Provide a professional security score-card to clients as part of a hand-off package.
- Periodically check local dev environments for accidental debug leaks.
Known limitations
Does not audit live URLs, plugins, or database contents. Restricted to local config files and does not perform CVE scanning or secret-leak detection in non-WordPress files.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.
Limited to local file analysis of wp-config.php and .htaccess. Does not scan live sites, database tables, or plugin code for vulnerabilities. Files over 2MB are skipped.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 3 days ago
- Software
Python 3Pillow