Security
Run focused Laravel security checks for authorization, request forgery, rate limits, uploads, secrets, APIs, and configuration.From its SKILL.md
npx -y skills add soden46/syarif-laravel-ai-skills --skill securityAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- 23 days oldThe repository was created 23 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.7 KB, 492 tokens by cl100k_base, as published. Nobody here has run it
Security
Run a focused security pass whenever work touches authentication, authorization, input handling, uploads, external integrations, payment-like flows, public APIs, or sensitive data.
Access Control
Every route/action that reads or mutates protected data needs authorization.
Use:
- route middleware for coarse access boundaries;
- Policies for model actions;
- Gates for cross-cutting checks;
- Form Request
authorize()for request-input-dependent checks.
Test both allowed and denied paths.
Request Forgery And Rate Limits
Use CSRF protection for browser forms. Exclude webhooks only deliberately, and authenticate webhook requests through signatures, shared secrets, IP allowlists, or provider verification as appropriate.
Apply rate limits to abuse-prone routes such as login, password reset, public forms, file uploads, and expensive API endpoints.
Input And Output Safety
Validate all request input at the boundary. Use query builder bindings or Eloquent instead of interpolated raw SQL.
Escape output in Blade. Be deliberate about HTML rendering.
For frontend stacks, expose only the props needed by the page. Do not send hidden sensitive data because it is "not displayed."
Uploads And Files
Validate uploaded files for:
- required/optional state;
- MIME/type;
- extension if relevant;
- size;
- count;
- image dimensions when needed.
Store files through Laravel Storage. Do not trust original filenames for storage paths. Keep visibility explicit.
Secrets And Logs
Keep credentials in environment/config, not database-backed admin settings or source files.
Do not log:
- tokens;
- signatures;
- passwords;
- card data;
- full provider payloads;
- unnecessary personally identifiable information.
Use structured logs with safe identifiers and sanitized summaries.
Log::info('integration.gateway.create.completed', [
'record_id' => $record->id,
'reference' => $record->public_reference,
'provider_status' => $response->status(),
]);
API Security
For APIs:
- return consistent errors;
- hide stack traces;
- validate input;
- authorize every action;
- apply rate limits;
- avoid leaking internal IDs when public identifiers are needed;
- add compatibility tests for consumed response shapes.
Dependency And Configuration Review
When dependency or deployment configuration changes are in scope:
- check for known advisories;
- remove unused packages;
- avoid exposing frontend env values that are not meant for browsers;
- verify production debug settings are safe.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.
Gives 0 of the 12 instructions most security skills give in 492 tokens
Counted across 648 of the 828 authors here whose files we hold, read 2026-08-07
- Parameterize all database queriesin 68 of 648, across 51 files
- Hash passwords using bcrypt, scrypt, or argon2in 49 of 648, across 36 files
- Apply rate limiting to authentication endpointsin 48 of 648, across 24 files
- Configure security headersin 35 of 648, across 19 files
- Validate all inputsin 32 of 648, across 24 files
- Validate all external input at the system boundaryin 29 of 648, across 19 files
- Run containers as a non-root userin 28 of 648, across 15 files
- Use httponly secure samesite cookies for sessionsin 26 of 648, across 15 files
- Run dependency audits before every releasein 21 of 648, across 10 files
- Encode output to prevent cross-site scriptingin 21 of 648, across 11 files
- Copy dependencies before source codein 20 of 648, across 9 files
- Store secrets in environment variablesin 20 of 648, across 18 files
Said here and by no other author read
- test allowed and denied access paths
- apply rate limits to abuse-prone routes
- authenticate and verify webhook requests
- validate all request input at the boundary
- escape blade output deliberately
- store files using the storage facade
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.