К основному содержанию
скилл CX Codex

magento-security-analyst — скилл для Claude Code: аудит Magento 2

Скилл magento-security-analyst разбирает безопасность магазина на Magento 2 по слоям и подсказывает, что закрыть: код, конфигурацию, зависимости, подготовку к PCI DSS и GDPR.

MIT 212 установок ★ 33 обновлён 2026-01-24

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add maxnorm/magento2-agent-skills --skill magento-security-analyst -a claude-code
Открыть на GitHub

Что делает magento-security-analyst

Скилл идёт по безопасности Magento 2 слоями: проверка кода и конфигурации, моделирование угроз, разбор инцидентов, требования PCI DSS и GDPR. Внутри — валидация ввода, экранирование вывода, защита от SQL-инъекций и XSS, аутентификация, сессии и права доступа, а дальше сервер, сеть, SSL/TLS и права на файлы.

Отдельный блок — настройки, которые чаще всего забывают: сменить стандартный админ-путь, выключить debug и вывод ошибок в продакшене, выставить нормальные права на каталоги. Для проверки приводятся команды bin/magento security:scan и composer show magento/product-community-edition.

Скилл — это файл инструкций, сканер он не запускает: команды из раздела про инструменты выполняешь ты сам. И рассчитан он только на Magento 2, на другой платформе проверять нечего.

Какие задачи решает

  • провести аудит кода и конфигурации Magento 2 перед релизом
  • найти устаревшие сторонние пакеты через composer
  • закрыть XSS и SQL-инъекции в кастомном модуле
  • подготовить магазин к проверке PCI DSS
  • разобрать инцидент и сохранить доказательства

Примеры запросов агенту

  • Проверь безопасность модуля Vendor_Checkout: валидация ввода, экранирование вывода, SQL-инъекции.
  • Составь чек-лист харденинга админки Magento 2 — админ-путь, debug-режим, права на файлы.
  • Что поправить в проекте, чтобы пройти аудит PCI DSS?

Как установить magento-security-analyst

1Через Skills CLI (Vercel)

npx skills add maxnorm/magento2-agent-skills --skill magento-security-analyst -a claude-code

2Вручную: положить файлы

~/.claude/skills/magento-security-analyst/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/magento-security-analyst/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о magento-security-analyst

Как установить magento-security-analyst в Claude Code?

Выполни npx skills add maxnorm/magento2-agent-skills --skill magento-security-analyst -a claude-code. Файл скилла появится по пути ~/.claude/skills/magento-security-analyst/SKILL.md.

Что делает magento-security-analyst?

Проводит аудит безопасности Magento 2: смотрит код, конфигурацию и зависимости, описывает векторы атаки и даёт шаги по устранению. Отдельно разбирает PCI DSS и GDPR.

На каких платформах работает скилл?

В Claude, Codex, Cursor, Gemini CLI и OpenCode он ставится через npx skills add, в GitHub Copilot — командой gh skill install maxnorm/magento2-agent-skills magento-security-analyst.

Исходный текст

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

Похожие скиллы

Все скиллы по теме «Безопасность» →
symfony-security-auditor reason-machines Скилл symfony-security-auditor ищет логические уязвимости и сбои контроля доступа в проектах на Symfony. Запускает двух агентов для взаимной проверки находок перед выдачей отчёта. CX Codex +1 239установок security-audit Netresearch DTT GmbH Скилл security-audit проводит аудит безопасности по OWASP Top 10, CWE Top 25 и CVSS: PHP/TYPO3, API, фронтенд, Terraform, Kubernetes, Docker и AWS. Пригодится перед релизом. CX Codex +1 944установок laravel-owasp-security AsyrafHussin Скилл laravel-owasp-security проверяет код Laravel 13 и React/Inertia.js на уязвимости OWASP Top 10 или служит инструкцией при разработке авторизации, платежей и API. CX Codex +1 1 100установок drupal-security madsnorgaard Скилл drupal-security для ИИ-кодинга, который подсказывает безопасные приёмы Drupal: параметризованные запросы, экранирование вывода, проверка прав. Включается сам, когда вы пишете формы, контроллеры или работаете с вводом пользователя. CX Codex +1 933установок wordpress-security-validation bobmatnyc Скилл wordpress-security-validation для Claude Code: санитизация ввода, валидация логики и экранирование вывода при разработке плагинов и тем WordPress. Закрывает XSS, CSRF и SQL-инъекции в формах, AJAX и пользовательском выводе. CX Codex +1 629установок api-platform-security dev-toolings Скилл api-platform-security настраивает правила доступа в Symfony API Platform через выражения security, воутеры и хуки жизненного цикла операций. CX Codex +1 ★ 234звёзд репо

Из того же набора30

Весь набор →
magento-xml-specialist Скилл magento-xml-specialist для ИИ-агента, который пишет и проверяет XML-конфигурации Magento 2: layout, di.xml, system.xml, module.xml и db_schema.xml. CX Codex +1 394установок magento-issue-debugger Скилл magento-issue-debugger для Claude Code разбирает сбои Magento 2: воспроизводит проблему, собирает логи и помогает найти корневую причину. CX Codex +1 274установок magento-php-specialist Скилл magento-php-specialist для разработки под Magento 2 на PHP. Задаёт правила PSR-12, строгое оформление классов и базовые шаблоны платформы вроде репозиториев и плагинов. CX Codex +1 263установок magento-api-developer Скилл magento-api-developer помогает агенту проектировать и писать API для Magento 2: сервисные контракты, DTO, REST-контроллеры, GraphQL-резолверы и тесты. CX Codex +1 259установок magento-model-developer Скилл magento-model-developer помогает проектировать слой данных в Magento 2: строить модели, декларативные схемы db_schema.xml, репозитории и коллекции под EAV или плоские таблицы. CX Codex +1 210установок magento-feature-developer Скилл magento-feature-developer помогает проектировать и внедрять бизнес-функции для Magento 2: от сервисных контрактов и интеграций до тестов. Пригодится при создании модулей и расширении существующей функциональности. CX Codex +1 207установок magento-ui-component-developer Скилл magento-ui-component-developer для Claude Code создаёт сложные компоненты Magento UI Component: админские таблицы, формы, модальные окна и интерфейсы на данных. CX Codex +1 200установок magento-catalog-specialist Скилл magento-catalog-specialist помогает анализировать структуру каталога Magento 2, проверять состояние индексов, остатки на складах и атрибуты товаров. CX Codex +1 200установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой