mcp-server-semgrep
Version:
MCP Server for Semgrep Integration - static code analysis with AI
31 lines (30 loc) • 781 B
YAML
rules:
- id: scalac-debug
patterns:
- pattern-either:
- pattern: scalacOptions ... "-Vdebug"
- pattern: scalacOptions ... "-Ydebug"
message: >-
Scala applications built with `debug` set to true in production may leak debug information to attackers.
Debug mode also affects performance and reliability.
Remove it from configuration.
languages: [generic]
severity: WARNING
paths:
include:
- '*.sbt*'
metadata:
category: security
cwe:
- 'CWE-489: Active Debug Code'
owasp: 'A05:2021 - Security Misconfiguration'
technology:
- scala
- sbt
references:
- https://docs.scala-lang.org/overviews/compiler-options/index.html
confidence: MEDIUM
subcategory:
- audit
likelihood: LOW
impact: LOW