1

New Research Report - Exploring the 2024 State of Software Quality

Group 370
2

Codacy Product Showcase: January 2025 - Learn About Platform Updates

Group 370
3

Join us at Manchester Tech Festival on October 30th

Group 370

Further Enterprise security analysis for Scala

In this article:
Subscribe to our blog:

We’re excited to announce the latest addition to our suite of security analysis: Spotbugs.

SpotBugs is a program which uses static analysis to look for bugs in Java code. It checks for more than 400 bug patterns. SpotBugs is the successor of FindBugs, an open-source static code analyzer.

SpotBugs picks up from the point FindBugs leaves off. At the same time, it maintains the support of the Findbugs’ community.

We’ve also bundled Find Security Bugs: a SpotBugs plugin for security audits of Scala web applications. The issues reported cover the OWASP Top 10 and CWE standards.

It includes security patterns such as Potential Path Traversal, Potential Command Injection, Potential SQL Injection, Potential XSS and others.

Example of Potential Scala Slick Injection: WASC-19; CAPEC-66; CWE-89: Improper Neutralization of Special Elements used in an SQL Command (‘SQL Injection’); OWASP: Top 10 2013-A1-Injection.

Failure to use bound variables in prepared statements leaves you at the risk of attackers performing SQL injection.

Try it out for yourself:

  1. git clone https://github.com/qamine-test/play-spotbugs-test.git
  2. sbt compile
  3. codacy-analysis-cli analyse –tool spotbugs –directory `pwd` –allow-network

We’re making these new patterns available for Self-hosted users in the next update for Apex, PHP, C/C++, Shell script, Dockerfile, Visual Basic, Elixir, PowerShell, TSQL and Groovy, besides the existing C#, Java, JavaScript, Python and Ruby support. You can get started by following our guide to run Spotbugs.

If you haven’t tried Codacy yet, contact us to install Codacy on-premise.

RELATED
BLOG POSTS

Enhanced security for C++, Java, and Scala with Clang-Tidy and SpotBugs
As part of our effort to continue expanding our language support, we are excited to announce the support of two new tools for all Codacy users:...
Lazy loading tips & tricks
Lazy loading is a website optimization technique that reduces bandwidth and improves user experience. Also referred to as on-demand loading, the...
Static Code Analysis: client-side tools integration with Codacy
Testing and analyzing your code is one of the most important parts of your software development process. With Codacy, you can automate code reviews,...

Automate code
reviews on your commits and pull request

Group 13