/laravel-team:laravel-securityfrom Laravel Guild
Reviews Laravel applications for security issues using STRIDE threat modeling, covering authentication, mass assignment, IDOR, SQL injection, XSS, CSRF, and upload vulnerabilities. Use for threat modeling, sensitive PR review, or production security audits.
Ships in Laravel Guild. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Verify before asserting. Trace the exploit path (route → middleware, incl. #[Middleware]/#[Authorize] controller attributes on L13 → FormRequest → Policy → query) before reporting — a grep over routes/middleware alone misses attribute-based coverage. Unverifiable → mark Suspected + the evidence needed. Never invent CVE IDs or CVSS scores — cite only advisories actually fetched.
For release readiness, open the production security checklist. Record applicable check IDs, verified evidence, and blocker owners.
| Threat | Laravel check |
|---|---|
| Spoofing | Guard per route group correct (config/auth.php); session fixation (Session::regenerate() on login); Sanctum SPA cookie domain matches frontend origin; password-reset tokens single-use + time-bound |
| Tampering | Mass assignment ($fillable deliberate, no $guarded = [] on user input); hidden-field trust; signed URLs (URL::signedRoute()) for out-of-band links; Livewire scalar props client-settable → #[Locked] on IDs used in authz |
| Repudiation | State-changing actions logged with actor + tenant; audit records append-only |
| Info disclosure | API Resources (never raw models — hidden columns leak); error pages / debug mode (APP_DEBUG prod), stack traces in responses, source maps; logs redact PII + secrets |
| DoS | Unbounded queries (no pagination), upload size/count limits, queue flooding, missing RateLimiter::for() on auth / OTP / expensive endpoints |
| Elevation | Policy on every state-changing route (can: middleware, FormRequest authorize(), Gate::authorize(), or L13 #[Authorize] attribute); policy registration includes #[UsePolicy] on models alongside auto-discovery; IDOR — route-model binding scoped (->scopeBindings() or tenant global scope); Gate::before not granting wholesale |
Document trust boundaries crossed + data sensitivity at each.
DB::raw with concatenated input — bindings only; orderBy(request('sort')) is injection — allowlist the column.{!! !!} only with a written safety argument; user HTML → sanitize (mews/purifier or equivalent); JSON in Blade via @js / Js::from.mimetypes: (server-side, not extension), size; store on non-public disk; never trust client filename (hashName()); images → strip EXIF where PII-relevant.preventRequestForgery(except:) in bootstrap/app.php on L13 — validateCsrfTokens is the deprecated L11/12 alias, middleware class renamed VerifyCsrfToken → PreventRequestForgery) each justified. L13 verifies origin via Sec-Fetch-Site first, token fallback second — HTTPS-only, so check reverse proxies/CDNs don't strip the header, and test exclusions reference PreventRequestForgery::class.config(). Use the installed secret scanner with redaction. Rehearse APP_PREVIOUS_KEYS for planned rotation. Suspected APP_KEY compromise calls for the incident procedure, including containment and retirement of the compromised key from serving systems.ShouldBeEncrypted; failed-job payloads (failed_jobs.payload) hold serialized PII — retention policy exists.Secure, HttpOnly, and SameSite on session cookies.composer audit (uses the packagist advisory DB) — zero known-vulnerable deps to pass.One finding = severity (CVSS 4.0 estimate — 3.1 when that's all the advisory carries — or Critical/High/Med/Low + why) + OWASP Top 10:2025 tag + CWE ID · exploit path (concrete route/file:line chain) · blast radius (data / tenants affected) · remediation naming the Laravel primitive ("add OrderPolicy::update + can:update,order on the route", not "add authorization"). Sort by severity. Suspected section separate from Confirmed.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub hamzaalayed/laravel-claude-agents --plugin laravel-team8 skills in this plugin
/accessibility-designThe WCAG 2.2 AA audit cookbook for Laravel front-ends and mobile — concrete thresholds (contrast, target size, focus), Livewire / Inertia focus-management specifics, screen-reader semantics, reduced motion, mobile a11y (VoiceOver / TalkBack, dynamic type). Use when designing screens, auditing UI for accessibility, or reviewing frontend / mobile work for the accessibility part of done./delivery-templatesArtifact templates for the planning + coordination roles — requirements doc, user story + acceptance criteria, RICE / WSJF scoring, sprint plan, retro, team-health report, stakeholder update, delivery log. Use when producing any docs/requirements, docs/backlog, docs/roadmap, or docs/sprints artifact, so every document lands in the same shape at the expected path./docs-authoringDocumentation templates + style rules — changelog (Keep a Changelog), release notes, runbook (Symptoms → Triage → Resolve), API endpoint reference block, onboarding guide. Use when writing or restructuring any docs surface so every page lands in a proven shape with tested examples and cited sources./eloquent-performanceThe query-performance cookbook — reading EXPLAIN plans, diagnosing + fixing N+1 without overfetching, pagination and chunking choices, the caching decision tree (remember vs flexible vs lock), measurement discipline. Use when an endpoint or query is slow, before adding an index or cache, or when reviewing query-shape changes. Diagnosis recipes — the fix lands with the owning builder (backend / database developer)./laravel-conventionsThe idiomatic-Laravel convention reference — which primitive to reach for and which antipattern to refuse, across HTTP, Eloquent, validation, authorization, config, queues, and testing. Use when writing or reviewing Laravel/PHP code and you need the canonical "right way," when choosing between two approaches, or when something feels like it's fighting the framework. Pairs with laravel/agent-skills' laravel-simplifier (which refines after the fact); this guides the choice up front./laravel-deployThe Laravel deployment cookbook — platform detection, zero-downtime release checklist, queue-worker + scheduler topology, rollback drill, post-deploy smoke, and production performance audit. Use for deployments, worker changes, release readiness, incident runbooks, and production performance baselines.Other plugins' skills for the same job