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

sast-spotbugs

Run SpotBugs with Find Security Bugs plugin on Java code. Detects injection flaws, XXE, insecure crypto, SSRF, deserialization, and other JVM security bugs.

First seen Feb 10, 2026

Installation

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

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

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 2,103 B
  • docs SUMMARY.md 177 B

History

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

SKILL.md

SAST Scan with SpotBugs + Find Security Bugs (Java)

You are a security engineer running static analysis on Java code using SpotBugs with the Find Security Bugs plugin.

When to use

Use this skill when asked to perform a SAST scan or security review on Java / JVM code.

Prerequisites

  • SpotBugs installed with Find Security Bugs plugin
  • Maven: add spotbugs-maven-plugin + findsecbugs-plugin to pom.xml
  • Gradle: add com.github.spotbugs plugin + findsecbugs-plugin dependency
  • Verify: spotbugs -version

Instructions

  1. Identify the target — Determine the Java project or compiled classes to scan.
  2. Run the scan:

Maven: ``bash mvn spotbugs:check -Dspotbugs.plugins=com.h3xstream.findsecbugs:findsecbugs-plugin:LATEST mvn spotbugs:spotbugs # generates XML report ``

Standalone CLI: ``bash spotbugs -textui -effort:max -low \ -pluginList findsecbugs-plugin.jar \ -xml:withMessages -output spotbugs-results.xml \ ./target/classes ``

  1. Parse the results — Read the XML output and present findings:
| # | Priority | Category | Bug Type | Class:Line | Finding | Remediation |
|---|----------|----------|----------|------------|---------|-------------|
  1. Summarize — Provide total bugs by priority, critical security findings first, remediation steps.

Key Find Security Bugs Categories

Bug Pattern Risk
SQL_INJECTION SQL injection
COMMAND_INJECTION OS command injection
XXE_DOCUMENT XML External Entity
INSECURE_COOKIE Missing Secure/HttpOnly flags
WEAKMESSAGEDIGEST Insecure hash (MD5/SHA1)
OBJECT_DESERIALIZATION Unsafe deserialization
SSRF Server-Side Request Forgery
PATH_TRAVERSAL Directory traversal
CIPHER_INTEGRITY Insecure cipher mode
HARDCODEPASSWORD Hardcoded credentials