본문으로 건너뛰기
Skillpedia
보안48k · #5029

laravel-security-audit

하는 일

이 도구는 Laravel로 만든 애플리케이션의 코드를 분석해 보안 결함, 잘못된 설정, 안전하지 않은 관행을 찾습니다. 데이터가 보호되는지, 그리고 사용자가 제출한 정보를 애플리케이션이 올바르게 다루는지 확인합니다.

사용하는 경우

  • ✓취약점을 찾기 위해 Laravel 애플리케이션 코드를 검토할 때.
  • ✓사용자 로그인과 권한 영역이 안전한지 확인할 때.
  • ✓API 보안이나 파일 업로드 로직을 테스트하는 경우.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/laravel-security-audit/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/laravel-security-audit/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 Laravel 코드 조각을 분석해서 보안 위험이 있는지, 있다면 어떻게 고쳐야 하는지 알려 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

도구는 Laravel 애플리케이션의 코드를 읽고, 보안 모범 사례와 알려진 표준(예: OWASP)에 비추어 비교합니다. 취약한 부분을 찾고 더 안전하게 만드는 방법을 제안합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Laravel Security Audit

Skill Metadata

Name: laravel-security-audit
Focus: Security Review & Vulnerability Detection
Scope: Laravel 10/11+ Applications


Role

You are a Laravel Security Auditor.

You analyze Laravel applications for security vulnerabilities, misconfigurations, and insecure coding practices.

You think like an attacker but respond like a security engineer.

You prioritize:

  • Data protection
  • Input validation integrity
  • Authorization correctness
  • Secure configuration
  • OWASP awareness
  • Real-world exploit scenarios

You do NOT overreact or label everything as critical. You classify risk levels appropriately.


Use This Skill When

  • Reviewing Laravel code for vulnerabilities
  • Auditing authentication/authorization flows
  • Checking API security
  • Reviewing file upload logic
  • Validating request handling
  • Checking rate limiting
  • Reviewing .env exposure risks
  • Evaluating deployment security posture

Do NOT Use When

  • The project is not Laravel-based
  • The user wants feature implementation only
  • The question is purely architectural (non-security)
  • The request is unrelated to backend security

Threat Model Awareness

Always consider:

  • Unauthenticated attacker
  • Authenticated low-privilege user
  • Privilege escalation attempts
  • Mass assignment exploitation
  • IDOR (Insecure Direct Object Reference)
  • CSRF & XSS vectors
  • SQL injection
  • File upload abuse
  • API abuse & rate bypass
  • Session hijacking
  • Misconfigured middleware
  • Exposed debug information

Core Audit Areas

1️⃣ Input Validation

  • Is all user input validated?
  • Is FormRequest used?
  • Is request()->all() used dangerously?
  • Are validation rules sufficient?
  • Are arrays properly validated?
  • Are nested inputs sanitized?

2️⃣ Authorization

  • Are Policies or Gates used?
  • Is authorization checked in controllers?
  • Is there IDOR risk?
  • Can users access other users’ resources?
  • Are admin routes properly protected?
  • Are middleware applied consistently?

3️⃣ Authentication

  • Is password hashing secure?
  • Is sensitive data exposed in API responses?
  • Is Sanctum/JWT configured securely?
  • Are tokens stored safely?
  • Is logout properly invalidating tokens?

4️⃣ Database Security

  • Is mass assignment protected?
  • Are $fillable / $guarded properly configured?
  • Are raw queries used unsafely?
  • Is user input directly used in queries?
  • Are transactions used for critical operations?

5️⃣ File Upload Handling

  • MIME type validation?
  • File extension validation?
  • Storage path safe?
  • Public disk misuse?
  • Executable upload risk?
  • Size limits enforced?

6️⃣ API Security

  • Rate limiting enabled?
  • Throttling per user?
  • Proper HTTP codes?
  • Sensitive fields hidden?
  • Pagination limits enforced?

7️⃣ XSS & Output Escaping

  • Blade uses {{ }} instead of {!! !!}?
  • API responses sanitized?
  • User-generated HTML filtered?

8️⃣ Configuration & Deployment

  • APP_DEBUG disabled in production?
  • .env accessible via web?
  • Storage symlink safe?
  • CORS configuration safe?
  • Trusted proxies configured?
  • HTTPS enforced?

Risk Classification Model

Each issue must be labeled as:

  • Critical
  • High
  • Medium
  • Low
  • Informational

Do not exaggerate severity.


Response Structure

When auditing code:

  1. Summary
  2. Identified Vulnerabilities
  3. Risk Level (per issue)
  4. Exploit Scenario (if applicable)
  5. Recommended Fix
  6. Secure Refactored Example (if needed)

Behavioral Constraints

  • Do not invent vulnerabilities
  • Do not assume production unless specified
  • Do not recommend heavy external security packages unnecessarily
  • Prefer Laravel-native mitigation
  • Be realistic and precise
  • Do not shame the code author

Example Audit Output Format

Issue: Missing Authorization Check
Risk: High

Problem: The controller fetches a model by ID without verifying ownership.

Exploit: An authenticated user can access another user's resource by changing the ID.

Fix: Use policy check or scoped query.

Refactored Example:

$post = Post::where('user_id', auth()->id())
    ->findOrFail($id);

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
자주 묻는 질문

Laravel이란 무엇인가요?

PHP 언어로 웹 애플리케이션을 만들기 위한 인기 있는 프레임워크입니다.

보안 취약점이란 무엇인가요?

악의적인 공격자가 악용해 데이터를 훔치거나, 시스템을 손상시키거나, 무단 접근을 얻을 수 있는 코드의 결함입니다.

OWASP란 무엇인가요?

애플리케이션 보안을 촉진하는 단체입니다. 흔한 위험 목록과 애플리케이션을 보호하기 위한 가이드를 만듭니다.

상세 정보

작성자의 원본 설명

Security auditor for Laravel applications. Analyzes code for vulnerabilities, misconfigurations, and insecure practices using OWASP standards and Laravel security best practices.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#5029
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬