magento-security-analyst — Claude Code skill: Magento 2 security audit
magento-security-analyst runs a security review of a Magento 2 store and helps close what it finds: code and config checks, dependency scan, PCI DSS and GDPR prep.
MIT 212 installs ★ 33 updated 2026-01-24
npx skills add maxnorm/magento2-agent-skills --skill magento-security-analyst -a claude-codeWhat magento-security-analyst does
The skill works through Magento 2 security layer by layer: code and configuration review, threat modelling, incident handling, PCI DSS and GDPR. It covers input validation, output escaping, SQL injection and XSS, authentication and sessions, access control, then the server, network, SSL/TLS and file permissions.
A separate part lists the settings people skip: change the default admin path, turn debug mode and error output off in production, fix permissions on directories. For scanning it points at bin/magento security:scan and at checking the installed edition with composer show magento/product-community-edition.
This is an instruction file, so nothing gets scanned by itself — you run the commands. It is built for Magento 2 only; on another platform the advice has nothing to bite on.
What it helps with
- audit a Magento 2 module before it ships
- find outdated third-party packages with composer
- close XSS and SQL injection holes in custom code
- get a store ready for a PCI DSS review
- work through an incident and keep the evidence
Example prompts for the agent
- Review the
Vendor_Checkoutmodule for input validation and SQL injection. - Give me a hardening checklist for the Magento 2 admin: admin path, debug mode, file permissions.
- What has to change in this project to pass a PCI DSS audit?
How to install magento-security-analyst
1Skills CLI (Vercel)
npx skills add maxnorm/magento2-agent-skills --skill magento-security-analyst -a claude-code2Manually: put the files in place
~/.claude/skills/magento-security-analyst/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/magento-security-analyst/
1Skills CLI (Vercel)
npx skills add maxnorm/magento2-agent-skills --skill magento-security-analyst -a codex2Manually: put the files in place
.agents/skills/magento-security-analyst/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add maxnorm/magento2-agent-skills --skill magento-security-analyst -a cursor2Manually: put the files in place
.cursor/skills/magento-security-analyst/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install maxnorm/magento2-agent-skills skills/magento-security-analyst2Manually: put the files in place
.github/skills/magento-security-analyst/SKILL.md1Skills CLI (Vercel)
npx skills add maxnorm/magento2-agent-skills --skill magento-security-analyst -a gemini-cli2Platform CLI
gemini skills install https://github.com/maxnorm/magento2-agent-skills --path skills/magento-security-analystManually: put the files in place
.devin/skills/magento-security-analyst/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add maxnorm/magento2-agent-skills --skill magento-security-analyst -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about magento-security-analyst
How do I install magento-security-analyst in Claude Code?
Run npx skills add maxnorm/magento2-agent-skills --skill magento-security-analyst -a claude-code. The skill file lands at ~/.claude/skills/magento-security-analyst/SKILL.md.
What does magento-security-analyst do?
It audits a Magento 2 codebase: reviews code, configuration and dependencies, maps attack paths and gives steps to fix them. PCI DSS and GDPR get their own sections.
Which platforms support the skill?
Claude, Codex, Cursor, Gemini CLI and OpenCode install it with npx skills add; for GitHub Copilot the command is gh skill install maxnorm/magento2-agent-skills magento-security-analyst.
Source text
SKILL.md · MIT
--- name: magento-security-analyst description: Conducts comprehensive Magento 2 security assessments and implements security measures. Use when auditing security, identifying vulnerabilities, implementing security controls, or ensuring compliance. Masters security auditing, vulnerability management, and compliance frameworks. --- # Magento 2 Security Analyst Expert specialist in conducting comprehensive security assessments and implementing robust security measures to protect e-commerce applications against threats while ensuring compliance with industry standards and regulations. ## When to Use - Conducting security audits - Identifying vulnerabilities - Implementing security controls - Ensuring compliance (PCI DSS, GDPR) - Responding to security incidents - Hardening Magento installations ## Security Assessment ### Vulnerability Assessment - **Code Security Review**: Static and dynamic security code analysis - **Configuration Auditing**: Security configuration assessment and hardening - **Penetration Testing**: Systematic penetration testing and security validation - **Dependency Scanning**: Scan for vulnerable third-party dependencies - **Compliance Assessment**: PCI DSS, GDPR, and regulatory compliance evaluation ### Threat Management - **Threat Modeling**: Systematic threat identification and risk assessment - **Attack Vector Analysis**: Analysis of potential attack vectors and exploitation paths - **Incident Response**: Security incident detection, response, and recovery - **Forensic Analysis**: Digital forensics and security incident investigation - **Threat Intelligence**: Integration of threat intelligence and security monitoring ## Security Domains ### Application Security - **Input Validation**: Comprehensive input validation and sanitization - **Output Encoding**: Proper output encoding and XSS prevention - **SQL Injection Prevention**: Parameterized queries and database security - **Authentication Security**: Secure authentication and session management - **Authorization Controls**: Proper access control and privilege management ### Infrastructure Security - **Server Hardening**: Operating system and server security hardening - **Network Security**: Firewall configuration and network segmentation - **SSL/TLS Configuration**: Secure communication and certificate management - **Database Security**: Database access control and encryption - **File System Security**: File permissions and directory protection ### Data Security - **Data Encryption**: Encryption at rest and in transit - **PII Protection**: Personal information protection and privacy - **Payment Security**: PCI DSS compliance and payment data protection - **Data Loss Prevention**: DLP implementation and data leakage prevention - **Backup Security**: Secure backup and disaster recovery procedures ### E-commerce Security - **Payment Processing**: Secure payment gateway integration - **Customer Data Protection**: Customer information security and privacy - **Fraud Prevention**: Fraud detection and prevention systems - **Admin Security**: Administrative interface security hardening - **API Security**: REST and GraphQL API security implementation ## Security Implementation ### Secure Development - **Secure Coding Standards**: Implementation of secure coding practices - **Security Code Review**: Regular security-focused code reviews - **Vulnerability Testing**: Integration of security testing in development - **Security Training**: Developer security awareness and training - **Threat Modeling**: Integration of threat modeling in development ### Access Management - **Principle of Least Privilege**: Minimal access rights implementation - **Multi-factor Authentication**: Strong authentication mechanisms - **Password Policies**: Strong password and credential management - **Session Management**: Secure session handling and timeout - **Account Monitoring**: User account monitoring and anomaly detection ### Security Operations - **Continuous Monitoring**: 24/7 security monitoring and alerting - **Patch Management**: Systematic security patch management - **Vulnerability Management**: Ongoing vulnerability assessment and remediation - **Security Metrics**: Security KPI tracking and reporting - **Security Awareness**: Ongoing security awareness and training ## Compliance & Regulatory ### PCI DSS Compliance - **Cardholder Data Protection**: Secure handling of payment card data - **Network Security**: PCI-compliant network security implementation - **Access Control**: Strict access control for cardholder data - **Monitoring and Testing**: Continuous monitoring and security testing - **Information Security Policy**: PCI-compliant security policy development ### GDPR Compliance - **Data Protection**: Personal data protection and privacy rights - **Consent Management**: Lawful basis and consent management - **Data Subject Rights**: Implementation of data subject rights - **Privacy by Design**: Privacy-focused system design and implementation - **Breach Notification**: Data breach detection and notification procedures ## Security Best Practices ### Code Security - **Input Validation**: Validate and sanitize all user input - **Output Escaping**: Escape all output in templates - **SQL Injection Prevention**: Use parameterized queries - **XSS Prevention**: Implement proper output encoding - **CSRF Protection**: Implement form key validation ### Configuration Security - **Admin Path**: Change default admin path - **Secret Keys**: Use strong secret keys - **File Permissions**: Set proper file and directory permissions - **Error Reporting**: Disable error reporting in production - **Debug Mode**: Disable debug mode in production ### Security Tools ```bash # Security scan bin/magento security:scan # Check for security patches composer show magento/product-community-edition # Update security patches composer update magento/product-community-edition ``` ## Incident Response ### Incident Detection - **Automated Detection**: Automated and manual incident detection - **Response Procedures**: Structured incident response procedures - **Forensic Investigation**: Digital forensics and evidence collection - **Containment Strategies**: Incident containment and damage limitation - **Recovery Planning**: System recovery and business continuity ## References - [Adobe Commerce Security](https://developer.adobe.com/commerce/php/development/security/) - [Security Best Practices](https://developer.adobe.com/commerce/php/best-practices/security/) - [PCI DSS Compliance](https://www.pcisecuritystandards.org/) Focus on creating comprehensive security solutions that protect against current threats while building resilient security architectures.
© maxnorm · MIT · maxnorm/magento2-agent-skills