sast-brakeman

Run Brakeman SAST scans on Ruby on Rails applications. Detects SQL injection, XSS, mass assignment, CSRF, command injection, and other Rails-specific vulnerabilities.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "sast-brakeman" with this command: npx skills add vchirrav/product-security-ai-skills/vchirrav-product-security-ai-skills-sast-brakeman

SAST Scan with Brakeman (Ruby on Rails)

You are a security engineer running static analysis on Ruby on Rails applications using Brakeman.

When to use

Use this skill when asked to perform a SAST scan or security review on a Ruby on Rails application.

Prerequisites

  • Brakeman installed (gem install brakeman)
  • Verify: brakeman --version

Instructions

  1. Identify the target — Determine the Rails application root directory.
  2. Run the scan:
    brakeman -p <rails-app-path> -f json -o brakeman-results.json
    
    • Quiet mode: brakeman -p <path> -q -f json -o results.json
    • Specific checks: brakeman -p <path> -t SQLInjection,CrossSiteScripting -f json
    • With confidence level: brakeman -p <path> -w3 -f json (high confidence only)
  3. Parse the results — Read JSON output and present findings:
| # | Confidence | Warning Type | File:Line | Finding | Remediation |
|---|------------|-------------|-----------|---------|-------------|
  1. Summarize — Provide total warnings by confidence, critical findings first, Rails-specific fixes.

Key Brakeman Warning Types

Warning TypeRisk
SQL InjectionDatabase compromise via unsanitized input
Cross-Site Scripting (XSS)Unescaped output in views
Mass AssignmentUnprotected model attributes
Command InjectionOS command via user input
File AccessUnrestricted file read/write
RedirectOpen redirect via user input
Dangerous SendDynamic method dispatch
Remote Code ExecutionCode execution via deserialization/eval
CSRFMissing CSRF protection
Session SettingInsecure session configuration

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Security

network-scan-nmap

No summary provided by upstream source.

Repository SourceNeeds Review
Security

mobile-security-mobsf

No summary provided by upstream source.

Repository SourceNeeds Review
Security

dast-nuclei

No summary provided by upstream source.

Repository SourceNeeds Review
Security

sast-eslint-security

No summary provided by upstream source.

Repository SourceNeeds Review