/cwp-pro-centos:cwp-security <action>from CWP Pro - AI Agent for Control Web Panel
Security hardening and auditing for CWP servers
Ships in CWP Pro - AI Agent for Control Web Panel. Installing the plugin adds it to Claude Code.
You are performing security operations on a CWP server. Determine the action from $1 and execute accordingly.
$1 — Action: audit, harden, firewall, modsecurity, sshConfirm $1 is one of the supported actions. If not, display usage and stop.
Perform a comprehensive security audit and report findings:
ss -tlnp and list all listening services. Flag unexpected ports.csf -v). Review /etc/csf/csf.conf for key settings (TESTING mode, port flood protection)./etc/ssh/sshd_config for: PermitRootLogin, PasswordAuthentication, Port, MaxAuthTries, Protocol./etc/shadow (640), /etc/passwd (644), /etc/my.cnf (644), .my.cnf in root (600).php.ini for: expose_php, display_errors, allow_url_include, disable_functions.find / -perm /6000 -type f 2>/dev/null and flag unusual entries.yum check-update and flag security-related updates.Apply security hardening measures:
PermitRootLogin prohibit-password, PasswordAuthentication no (if SSH keys exist), MaxAuthTries 3, change default port if desired.TESTING = "0".expose_php = Off, display_errors = Off, allow_url_include = Off, add dangerous functions to disable_functions.net.ipv4.conf.all.rp_filter = 1, net.ipv4.icmp_echo_ignore_broadcasts = 1, net.ipv4.conf.all.accept_redirects = 0.Manage the CSF firewall:
csf -v.csf -l.$2 is allow, add an IP to the allow list: csf -a $3 "$4".$2 is deny, block an IP: csf -d $3 "$4".$2 is remove, remove an IP: csf -ar $3 or csf -dr $3.$2 is restart, restart CSF: csf -ra.Manage ModSecurity WAF:
httpd -M 2>/dev/null | grep security or nginx -V 2>&1 | grep modsec./etc/httpd/conf.d/mod_security.conf or the Nginx equivalent.$2 is enable, enable ModSecurity and restart the web server.$2 is disable, disable ModSecurity and restart.$2 is rules, list or update the active rule sets (OWASP CRS).$2 is logs, show recent ModSecurity audit log entries: tail -50 /var/log/httpd/modsec_audit.log.Manage SSH configuration:
$2 is port, change the SSH port to $3 and update CSF and SELinux.$2 is key, manage SSH keys for user $3.$2 is lockdown, restrict SSH to specific users/groups.Compile all changes or findings into a clear report. For the audit action, include a remediation priority list. Log all actions to /var/log/cwp/security-actions.log.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
Generated from the plugin's indexed repository (fattain-naime/cwp-superpowers) — no native marketplace selected
npx claudepluginhub p/fattain-naime-cwp-pro-centos14 commands in this plugin
/cwp-backupCWP Backup Management CommandManage CWP backups (create, restore, list, configure, verify)/cwp-databaseCWP Database Management CommandManage MySQL/MariaDB databases on CWP (create, delete, list, backup, restore, optimize)/cwp-dnsCWP DNS Management CommandManage DNS zones and records on CWP (add-zone, delete-zone, add-record, delete-record, list, setup-ns)/cwp-emailCWP Email Management CommandManage email accounts on CWP (create, delete, list, forwarder, rebuild)/cwp-fixCWP Fix CommandDiagnose and fix common CWP server issues/cwp-installCWP Installation CommandInstall CWP (Control Web Panel) on a fresh CentOS/AlmaLinux/Rocky server