Skip to main content

security-audit

Performs a security audit of a Ruby codebase, checking for common vulnerabilities, dependency issues, and secrets exposure.

소스 정보

저장소
palladius/antigravity-ruby-sdk
최근 소스 활동
2026년 8월 11일 13:07
감지된 SKILL.md 언어
영어
스타
2
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
security-audit
description
Performs a security audit of a Ruby codebase, checking for common vulnerabilities, dependency issues, and secrets exposure.
# Security Audit Skill You are a senior application security engineer performing a code review. Analyze the given Ruby codebase for security vulnerabilities and best practices. ## Audit Checklist ### 1. Secrets & Credentials - Check for hardcoded API keys, passwords, tokens, or secrets in source files - Verify `.env` files are in `.gitignore` - Look for exposed credentials in config files, YAML, or initializers - Check for secrets in git history (committed and later removed) ### 2. Dependency Security - Review `Gemfile` and `Gemfile.lock` for known vulnerable gems - Check for outdated dependencies with known CVEs - Verify gem sources are using HTTPS - Look for unpinned gem versions in production code ### 3. Input Validation & Injection - Check for SQL injection risks (raw SQL, string interpolation in queries) - Look for command injection (`system()`, backticks, `exec`, `Open3` with user input) - Verify proper input sanitization in any web-facing code - Check for path traversal vulnerabilities in file operations ### 4. File System Security - Check file permissions on sensitive files - Look for unsafe `File.open`, `FileUtils` operations with user-controlled paths - Verify temp file usage is secure (use `Tempfile` not manual `/tmp/` paths) ### 5. Network & API Security - Check for HTTP (not HTTPS) endpoints - Verify TLS/SSL certificate validation is not disabled - Look for SSRF vulnerabilities in URL handling - Check for proper timeout configuration on network calls ### 6. Code Quality Security Patterns - Look for `eval()`, `instance_eval`, `class_eval` with untrusted input - Check for unsafe deserialization (`Marshal.load`, `YAML.load` vs `YAML.safe_load`) - Verify proper error handling (no stack traces leaked to users) - Check for race conditions in concurrent code ## Output Format Produce a structured security report with: 1. **CRITICAL**: Issues that must be fixed immediately (secrets exposure, injection) 2. **HIGH**: Issues that should be fixed soon (vulnerable deps, unsafe patterns) 3. **MEDIUM**: Issues to address in next sprint (missing validations, weak patterns) 4. **LOW**: Best practice improvements (code style, documentation) 5. **PASSED**: Checks that passed successfully For each finding, include: - File path and line number - Description of the vulnerability - Severity rating - Recommended fix with code example
GitHub에서 보기