security
Skill4 starsChanged 57 days agoMITView on GitHub
Site-wide and per-module security audit for Magento 2. Use for a security review, pre-release security check, dependency CVE or secret-leakage audit, or Marketplace EQP scan. Produces severity-ranked findings (Markdown, JSON, SARIF) from a live composer audit, Adobe patch-state verdicts, secret scanning, EQP static rules, and cross-module patterns. Cross-module, dependency-level, repo-wide depth; for per-module security findings within a general quality review use magento2-tools:review.
- Reads credentials
78 other projects use a version of this.
Adopted by
Most recently taken up by
- AllThingsSmitty/proven-skillstheir own version, first seen Oct 6, 2026
- MarvelCollin/agent-skillstheir own version, first seen Oct 5, 2026
- flavien-ia/hypervibe-harnesstheir own version, first seen Oct 4, 2026
- AIBiz-Automatyzacje/claude-code-startertheir own version, first seen Oct 4, 2026
- lgzarturo/codeconductortheir own version, first seen Sep 30, 2026
- AsiaOstrich/universal-dev-standardstheir own version, first seen Sep 30, 2026
Used with
Projects with it also use cost-reducer, trigger-dev and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
daianepepes-labSkillcost-reducer
Analyze and reduce costs across cloud infrastructure, code, and services. Use when asked to cut costs, optimize spending, reduce bills, or improve cost efficiency.
Also in 5 projects that use this
xfstudioSkilltrigger-dev
Trigger.dev expert for background jobs, AI workflows, and reliable async execution with excellent developer experience and TypeScript-first design. Use when: trigger.dev, trigger dev, background task, ai background job, long running task.
Also in 4 projects that use this
ffsshhttiikkSkillscalability
Core foundational concepts and principles for Scalability
Also in 4 projects that use this
daianepepes-labSkillself-healing
Detect, diagnose, and automatically fix recurring errors, memory issues, and system degradation. Use when a system has recurring failures, memory leaks, performance degradation, or needs automatic recovery mechanisms.
Also in 5 projects that use this
xfstudioSkillcustomer-support
Elite AI-powered customer support specialist mastering
Also in 4 projects that use this
ffsshhttiikkSkillcicd
Continuous integration and delivery pipelines
Also in 4 projects that use this
- +1 more from daianepepes-lab
Other versions78 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 78
- parcadei/Continuous-Claude-v3★ 3.9ksame name
- BankrBot/skills★ 1.2ksame name
- rshankras/claude-code-apple-skills★ 777same name
- alinaqi/maggy★ 707same name
- boshu2/agentops★ 447same name
- notque/vexjoy-agent★ 424same name
- nth5693/gemini-kit★ 373same name
- telagod/code-abyss★ 242same name
- garagon/nanostack★ 207same name
- TheBeardedBearSAS/claude-craft★ 106same name
68 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository35 other files it gives its agents.
- a11y-auditSkill
- admin-formSkill
- admin-listingSkill
- auditSkill
- breeze-adaptSkill
- breeze-compatSkill
- breeze-themeSkill
- cli-commandSkill
- contextSkill
- data-migrationSkill
- debugSkill
- deploySkill
- docsSkill
- eav-attributeSkill
- extension-pointSkill
- featureSkill
- fixSkill
- frontendSkill
- graphqlSkill
- i18nSkill
- indexerSkill
- lintSkill
- marketplaceSkill
- message-queueSkill
- module-createSkill
- perf-auditSkill
- releaseSkill
- remediateSkill
- reviewSkill
- system-configSkill
- test-generateSkill
- triageSkill
- upgradeSkill
- webapiSkill
- widgetSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 0 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 56 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 52
Default: all custom modules under {vendor_lower}/.
- Very specific: line 123
Run the Magento coding standard — the publicly runnable part of the Marketplace Extension Quality Program (there is no m2-coding-standard / …
- Very specific: line 129
If phpcs / the Magento2 standard is not installed, skip this phase and report it (do not silently pass).
- Very specific: line 226
Default: auto — agents when the plugin's context-budget hook reports this conversation above its threshold, inline otherwise.
- Very specific: line 236
Use the shared five-point scale (context/references/severity.md) with the security-specific anchors and the PCI / GDPR severity bumps in …
“Common” is measured: kept by at least 6 in 10 of the 56 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Magento 2 Security Audit
Deep security audit beyond what review does. Adds:
- Live
composer auditfor dependency advisories (no shipped advisory data) - Adobe patch-state verdicts via
vendor/bin/patch-status(is APSB-XX applied?) - Marketplace EQP (Extension Quality Program) static rules
- Secret scanning across the repo
- Magento-specific patterns beyond Tier 1 review (anti-CSRF tokens, session security, cookie flags, etc.)
- Cross-module collision detection
review continues to handle per-module security findings. This skill is
broader (cross-module, dependency-level, repo-level).
Core Rules
- No prod credential prompts. This skill never asks for production secrets. Secret scanning is read-only.
- No shipped advisory data. Dependency advisories come from a live
composer auditand Adobe's ownvendor/bin/patch-status; when either source is unavailable the run says so inscanner_errors("advisories were NOT checked") instead of silently passing. Offline runs therefore cover secrets/EQP/patterns only — stated in the report. - JSON + SARIF always. Output the shared findings schema (see
context/references/findings-schema.md). SARIF for GitHub Code Scanning. - Tool-agnostic. Falls back to regex-based secret detection when
gitleaks/trufflehogare unavailable. - Severity calibrated to PCI/GDPR impact. A finding that elevates PCI scope or exposes PII is Critical or High by default.
Workflow
Phase 0 — Context Resolution
Invoke context. Capture Magento version, PHP version, edition, and
{ctx.runner} — the runner is not optional here, see Phase 2.
Phase 1 — Scope
- Default: all custom modules under
{vendor_lower}/. - Optional: include
vendor/(third-party-module scan). - Optional: include Magento core (CVE-matching only; no source-edit recommendations).
Phase 2 — Dependency Audit
| Check | Source |
composer audit | Composer's built-in advisory database (Packagist + FriendsOfPHP; live, needs network) |
| Roave Security Advisories | roave/security-advisories package |
| Per-advisory patch state | vendor/bin/patch-status, when the store ships it — see below |
Findings include CVE ID, severity, affected package, fixed version, upgrade path. Both
sources are live: nothing is matched against data shipped inside this skill, so results
are current by construction. The cost is stated honestly — an offline run checks no
advisories, and scanner_errors carries the "advisories were NOT checked" line.
Patch state, and why RUNNER matters
Adobe decoupled "is this fixed" from "what version am I": isolated patches and hotfixes
carry security fixes with no version bump, so composer.lock cannot see patch state
and an in-range version does not prove vulnerability. advisory-scan.sh resolves this
with vendor/bin/patch-status — Adobe's own verdict tool. It ships inside the
security patches and consults Adobe's advisory registry, so it answers the question
directly for every advisory in that registry: VULNERABLE becomes a finding,
PROTECTED and NOT_APPLICABLE are nothing-to-do by Adobe's own definition, UNKNOWN
carries no information worth a finding.
Pass RUNNER={ctx.runner}. The tool is PHP and shells out to patch(1), so on a
Dockerised stack it only runs inside the app container. Existence is probed on the
host (vendor/ is bind-mounted); execution goes through the runner.
Two traps worth knowing when reading the output:
- The tool's exit code is not a success signal — without
patch(1)it prints an error and still exits 0. Validity is decided by parsing the JSON, never by$?. A present-but-unusable tool leaves an explanatory line inscanner_errors. PATCH_STATUS=0opts out entirely, for operators who would rather the scanner not execute a binary from the tree it is scanning (CVE_PATCH_STATUSis honoured as a legacy alias).
Phase 3 — Secret Scan
| Check | Pattern |
| API keys in code/config | Provider-specific patterns (AWS, Stripe, etc.) |
Encrypted-keyless secrets in etc/config.xml defaults | Sensitive paths with non-empty defaults |
.env committed | git history check |
| Auth tokens in logs | Token formats in var/log/ |
| Hardcoded passwords | Pattern match define('PASSWORD'...) |
Tooling: prefer gitleaks or trufflehog if available; fall back to regex pack from
references/secret-patterns.md. Script: ${CLAUDE_SKILL_DIR}/scripts/secret-scan.sh.
Phase 4 — Magento Static Pattern Pass
Beyond review's Tier 1 — see references/security-checklist.md for the full catalogue.
| Check | Pattern |
Public REST endpoints with anonymous ACL | webapi.xml resource=anonymous |
| Admin controllers missing form key validation on POST | grep + AST |
<preference> rewriting core security-sensitive classes | DI graph walk |
| Insecure cookie flags | setSecure(false), setHttpOnly(false) |
| Session writes in observers | Risk of session fixation |
| Cron jobs running as web user (not magento user) | crontab.xml ownership |
| ACL resource using wildcards | * in ACL ID |
| GraphQL resolvers without auth check on mutations | Static check on resolver class |
Phase 5 — Marketplace coding-standard checks
Run the Magento coding standard — the publicly runnable part of the Marketplace Extension
Quality Program (there is no m2-coding-standard / magento-marketplace-eqp binary):
{ctx.runner} vendor/bin/phpcs --standard=Magento2 {target}(installmagento/magento-coding-standard)- optionally
vendor/bin/phpstan analyse {target}andvendor/bin/phpmd {target} text cleancode,codesize
If phpcs / the Magento2 standard is not installed, skip this phase and report it
(do not silently pass). Map findings to the shared severity scale per
references/eqp-rules.md (subcategory = the PHPCS sniff code).
Phase 6 — Cross-Module Pattern Pass
Cross-cutting checks — see ${CLAUDE_SKILL_DIR}/scripts/cross-module-scan.sh.
| Check | Pattern |
Two custom modules both <preference> the same interface | di.xml walk |
| Module dependency cycle | composer.json + module.xml graph |
Disabled modules referenced as <sequence> | Status check |
| Multiple modules registering same cron job name | crontab.xml walk |
Phase 7 — Report
The skill produces two automation artifacts and one LLM deliverable:
- JSON (automated). Built by
${CLAUDE_SKILL_DIR}/scripts/build-findings.sh, which aggregates the scanners and invokes the sharedcontext/scripts/emit-findings.shpipeline withSKILL_NAME=securityandOUTPUT_KIND=security. Runbuild-findings.shwithDOCS_ROOT=<output_root>(the resolved--docs-rootvalue, or.docsby default) so the JSON/SARIF land under{output_root}/audits/, and withRUNNER={ctx.runner}so the advisory scanner can reachvendor/bin/patch-status(Phase 2 — without it, Adobe patch-state verdicts are unavailable and the run says so inscanner_errors). - SARIF (automated). The same
build-findings.shinvocation also produces SARIF via the sharedcontext/scripts/emit-findings.shpipeline. No separate caller step is required. - Markdown summary (LLM deliverable, NOT automated). The Markdown report is
written by the skill in the conversation, with these sections:
- Magento + PHP + edition + dependencies summary
- Critical/High findings (top of report)
- Per-module breakdown
- Advisory summary (with upgrade paths) — and, when advisory sources were skipped (offline, composer missing, patch-status absent), a "Skipped advisory checks" note naming what was NOT checked
- Secret-scan summary (with remediation steps)
- EQP findings
- Cross-module findings
- Skipped checks and
scanner_errorsThe Markdown is saved as{output_root}/audits/{Vendor}_{Module}-security-{date}.md(module scope; site/vendor scope:security-{scope}-{date}.md) by the LLM, not by a script. It is intended as a human-readable narrative on top of the JSON/SARIF artifacts.
Reference Files
references/security-checklist.md— full audit catalogue.references/secret-patterns.md— provider-specific secret patterns + regex pack.references/eqp-rules.md— Marketplace EQP rule map.references/pci-context.md— when findings are PCI-scope-elevating.references/severity-security.md— calibration anchors (shared scale + security adds).
Scripts
${CLAUDE_SKILL_DIR}/scripts/secret-scan.sh—gitleaks/trufflehogwrapper + regex pack fallback.${CLAUDE_SKILL_DIR}/scripts/advisory-scan.sh— livecomposer audit+ Adobe patch-state verdicts fromvendor/bin/patch-status. HonoursRUNNERandPATCH_STATUS(Phase 2). Degrades loudly intoscanner_errorswhen offline.${CLAUDE_SKILL_DIR}/scripts/cross-module-scan.sh— di.xml + composer.json graph walker.${CLAUDE_SKILL_DIR}/scripts/build-findings.sh— assemble per-phase findings into a single JSON array.
Inputs
/security [--scope=module|site|vendor] [--include-magento-core] [--format=markdown|json|sarif] [--docs-root=<path>] [<Vendor>_<Module>...]Outputs
Module scope (basename uses the underscore module name, e.g. Acme_OrderExport):
{output_root}/audits/{Vendor}_{Module}-security-{date}.json # automation artifact (build-findings.sh)
{output_root}/audits/{Vendor}_{Module}-security-{date}.sarif # automation artifact (build-findings.sh)
{output_root}/audits/{Vendor}_{Module}-security-{date}.md # LLM deliverable, written in Phase 7Site/vendor scope:
{output_root}/audits/security-{scope}-{date}.json
{output_root}/audits/security-{scope}-{date}.sarif
{output_root}/audits/security-{scope}-{date}.md{output_root} defaults to .docs ({ctx.docs_root}); see the --docs-root/DOCS_ROOT
recipe in context/references/artifact-layout.md.
Output root (--docs-root)
This skill accepts --docs-root=<path> (see
context/references/artifact-layout.md). When set, run the emitter with
DOCS_ROOT=<path> so artifacts land under <path>/audits/; otherwise they default
to {ctx.docs_root}/audits/. Orchestrators such as feature
pass this to collect a run's artifacts under one folder.
Execution Mode
Default: auto — agents when the plugin's context-budget hook reports this conversation
above its threshold, inline otherwise. In agents mode (--agents flag, or execution_mode in
.claude/m2.json surfaced as {ctx.execution_mode} — selection contract in
context/references/execution-modes.md) the judgement
passes of this skill are dispatched to the read-only reviewer agent with a security
dimension brief, and this skill owns synthesis. The scripted scanners
(scripts/build-findings.sh) are deterministic and run identically in both modes.
Severity Calibration
Use the shared five-point scale (context/references/severity.md) with the
security-specific anchors and the PCI / GDPR severity bumps in
references/severity-security.md (the authoritative calibration matrix for this skill).
Acceptance Criteria
- Identifies every committed
.envstyle file ordefine('SECRET'...)line. - Identifies CVEs in
composer.lockwith severity, affected version, fixed version. - Cross-module collision report is complete (no missed dual
<preference>). - Output is SARIF-compatible for GitHub Code Scanning ingestion.
Related Skills
| Phase | Skill |
| 0 | context |
| (optional, on CVE fix) | upgrade |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

