Home Enterprise Further Enterprise security analysis for Scala

Further Enterprise security analysis for Scala

Author

Date

Category

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.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Subscribe to our newsletter

To be updated with all the latest news, offers and special announcements.

Recent posts

What are Static Analysis Tools?

Static analysis tools are carried out on a software product in a non-runtime environment. This means that it is unnecessary to execute a program...

Your Static Code Analysis Guide

Errors - A word that is not so peaceful in the world of developers and software development. So, without any doubt, developers work hard...

Technical Debt In Coding

In this world, everybody has some kind of debt. And if we talk about the technical debt, it sounds like some kind of a...

Why we implemented Offline days at Codacy

Since the Coronavirus outbreak, like most people, we are facing a unique reality that is challenging us in many ways at the...

Pair programming at Codacy and why we do it

Pair programming, also known as pairing or “dynamic duo” model is not a new concept, and it was pioneered by C/C++ guru...