Install
$ agentstack add skill-stoffl6781-claude-skill-laravel-security-audit ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ● Environment & secrets Used
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Laravel Security Audit
Allgemeine Security-Regeln → CLAUDE.md Kapitel 1 + 2. Dieser Skill fokussiert auf Audit-Methodik.
Severity Framework
| Level | Bedeutung | Zeitrahmen | |---|---|---| | KRITISCH | Muss vor Go-Live behoben sein | Sofort | | HOCH | Ernstes Risiko | Innerhalb 1 Woche | | MITTEL | Verbesserungspotenzial | Nächster Sprint | | NIEDRIG | Best Practice | Backlog |
Workflow
- Automatisiert:
composer audit+npm auditfür Dependency-Checks - Manuell: Checkliste unten durchgehen
- Report: Priorisierte Findings mit konkreten Fixes
Checkliste
KRITISCH
Auth & Authorization:
- Alle sensiblen Routes durch Middleware geschützt? (
auth,verified,can:) - Rate-Limiting auf Login? (
throttleMiddleware) - Password-Hashing: bcrypt/argon2 (nie MD5/SHA1)
- Policies für Authorization (nicht
Gate::checkim Blade)
Injection:
- Kein rohes SQL – immer Query Builder / Eloquent
- Blade
{{ }}überall (kein{!! !!}ohne Grund) - Keine gefährlichen PHP-Funktionen mit User-Input
Environment:
APP_DEBUG=falsein ProductionAPP_ENV=production.envnicht in Git, nicht im Webroot- Keine Secrets in Code hardcodiert
HOCH
Mass Assignment: $fillable oder $guarded auf allen Models CSRF: @csrf in allen Formularen File Uploads: Typ-Validierung, Größenlimit, nicht in /public direkt Session: secure, httponly, samesite=lax in config/session.php API: Sanctum/Passport für Auth, Rate-Limiting auf allen Endpoints Headers: X-Frame-Options, X-Content-Type-Options, Strict-Transport-Security
MITTEL
Dependencies: composer audit + npm audit – kritische sofort, Rest im nächsten Release Logging: Keine Passwörter/IBAN/Keys loggen, IPs anonymisieren Error Handling: Keine Stack-Traces in Production
DSGVO-spezifisch
Lösch-Routine (Anonymisierung statt hartem Löschen):
$user->update([
'name' => 'Gelöschter Nutzer',
'email' => "deleted_{$user->id}@example.com",
'phone' => null,
]);
IP-Anonymisierung in Logs:
$anonymizedIp = preg_replace('/\d+$/', 'x', $request->ip());
Prüfpunkte:
- Keine externen Ressourcen ohne Consent (Fonts, Analytics, CDN)
- Cookie-Consent vor Tracking-Code
- Datenschutzerklärung mit allen genutzten Diensten
Report-Format
# Security Audit – {Projekt} ({Datum})
## Zusammenfassung
{X} Kritisch, {Y} Hoch, {Z} Mittel
## Findings
| # | Severity | Kategorie | Finding | Datei | Empfehlung |
|---|----------|-----------|---------|-------|------------|
| 1 | KRITISCH | Auth | Routes ohne Middleware | routes/web.php | auth Middleware |
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: stoffl6781
- Source: stoffl6781/claude-skill
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.