magento2-security-scan

Solid

Scans Magento 2 code for security vulnerabilities and compliance issues. Use when: - "Security audit", "find vulnerabilities", "check for XSS" - "CSRF protection check", "validate form security" - "Dependency audit", "check for outdated packages" - "PCI compliance check", "security review before deploy" DEPENDENT on magento2-dev-core for security patterns.

AI & Automation 2 stars 2 forks Updated 4 days ago MIT

Install

View on GitHub

Quality Score: 81/100

Stars 20%
16
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Magento 2 Security Scanner This skill performs security scanning for vulnerabilities, misconfigurations, and compliance issues. ## Related Skills **REQUIRED BACKGROUND:** Load `magento2-dev-core` first — this skill scans for violations of the security patterns it defines (escaping, discouraged functions, ObjectManager misuse), and its patterns are what you fix findings with. Part of the QA trio with `magento2-linter` (style/static analysis) and `magento2-performance-audit` (runtime/infrastructure). Re-check API/resolver-specific findings against `magento2-backend-dev`. ## Vulnerability Categories ### 1. Injection Vulnerabilities | Type | Pattern | Severity | |------|---------|----------| | SQL Injection | Direct SQL with user input | Critical | | XSS (Reflected) | Unescaped user input in output | High | | XSS (Stored) | Unescaped database content | Critical | | Command Injection | System command execution with user input | Critical | ### 2. Authentication & Authorization | Check | Command | |-------|---------| | Admin path changed | Check env.php for custom admin path | | 2FA enabled | Check admin/twofactor module | | Password hashing | Verify EncryptorInterface usage | | Session security | Check cookie configuration | ### 3. Data Exposure ```bash # Check for exposed sensitive files curl -I https://store.test/app/etc/env.php curl -I https://store.test/var/log/system.log curl -I https://store.test/.git/config # Expected: All should return 403 or 404 ``` ### 4. C...

Details

Author
ddtcorex
Repository
ddtcorex/dev-skills-hub
Created
2 months ago
Last Updated
4 days ago
Language
Shell
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category