vchirrav-eng/owasp-secure-coding-md · Archived

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.

First seen Feb 10, 2026

Installation

$ npx skills add vchirrav-eng/owasp-secure-coding-md --skill sast-brakeman

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from vchirrav-eng/owasp-secure-coding-md · top by installs.

npx skills add vchirrav-eng/owasp-secure-coding-md

Browse all from vchirrav-eng/owasp-secure-coding-md

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 17
License license-scan-scancode
Default branch main
Open issues 0
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,919 B
  • docs SUMMARY.md 187 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 2 installs

SKILL.md

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:

``bash 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)

  1. 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 Type Risk
SQL Injection Database compromise via unsanitized input
Cross-Site Scripting (XSS) Unescaped output in views
Mass Assignment Unprotected model attributes
Command Injection OS command via user input
File Access Unrestricted file read/write
Redirect Open redirect via user input
Dangerous Send Dynamic method dispatch
Remote Code Execution Code execution via deserialization/eval
CSRF Missing CSRF protection
Session Setting Insecure session configuration