Skip to content

Latest commit

 

History

History
52 lines (37 loc) · 3.7 KB

File metadata and controls

52 lines (37 loc) · 3.7 KB

Static scanning is an important part of the process

![Static scanning diagram showing analysis process](/current-version/assets/images/Static scanning.png)

Static Code Analysis or Source Code Analysis is usually part of a Code Review (white-box testing) and it is a method of computer program debugging that is done by examining the code without executing the program.

Static scanning is good way finding coding issues such as:

  • Syntax violations
  • Security vulnerabilities
  • Programming errors
  • Coding standard violations
  • Undefined values

For more information about the Static Code Analysis please visit the OWASP page To achieve a better result we can combine static security scanning and 3rd party code (open-source libraries (dependency) scanning. To doing this part better and more complete (prevent misconfigurations), we can bring up IaC (Infrastructure as code) security scan too. For example check Terraform, helm, Ansible code, etc. So according to the above lines the possible actions in this step are as follows:

  • Static Code Analysis (known as SAST)
  • Open-source libraries (3rd party / dependency) scanning (known as SCA)
  • IaC Security scanning

Tools1

Open-source

  • Brakeman - A static analysis security vulnerability scanner for Ruby on Rails applications
  • CodeQL - Discover vulnerabilities across a codebase with CodeQL, our industry-leading semantic code analysis engine.
  • CodeSec by Contrast Security - A high-speed high-quality free SAST tool designed for use by developers and in CI/CD pipelines.
  • SonarQube - An open-source web-based tool, extending its coverage to more than 20 languages, and also allows a number of plugins

Commercial

  • Checkmarx SAST - A static analysis security vulnerability scanner
  • CodeSweep - Static Analysis tool for GitHub that's free to use and can scan code on pull request. Support over 20 languages and IaC (docker, k8s). Download CodeSweep VS Code extension
  • Enlightn - A static analysis vulnerability scanner for Laravel PHP applications
  • Fortify - A static analysis security vulnerability scanner
  • HCL AppScan on Cloud - SAST tool built as a service. The tool can perform traditional SAST, SCA and IaC scanning.
  • Inquisition - A set of tools for convenient technical analysis of web applications built with Ruby and Ruby on Rails. Now you don't need to set up and configure every single gem. Use Inquisition gem instead
  • PT Application Inspector - Is the only source code analyzer providing high-quality analysis and convenient tools to automatically confirm vulnerabilities — significantly speeding up the work with reports and simplifying teamwork between security specialists and developers
  • security code scan - Vulnerability Patterns Detector for C# and VB.NET
  • Semgrep - Lightweight static analysis for many languages. Find bug variants with patterns that look like source code.
  • Veracode - A static analysis tool that is built on the SaaS model. This tool is mainly used to analyze the code from a security point of view

Links

Footnotes

  1. Listed in alphabetical order.