search menu icon-carat-right cmu-wordmark

SCALe Collection

The CERT Division's Source Code Analysis Laboratory (SCALe) offers conformance testing of C and Java language software systems against the CERT C Secure Coding Standard and the CERT Oracle Secure Coding Standard for Java.

Publisher:

Software Engineering Institute

Experience shows that most software contains coding flaws that lead to vulnerabilities. Static analysis tools produce a large number of alerts with high false-positive rates that an engineer must painstakingly examine to find legitimate flaws. Researchers in the SEI's CERT Division have developed SCALe—Source Code Analysis Laboratory—to help analysts be more efficient and effective at auditing source code for security flaws.

What Is SCALe?

Static analyzers can be used to look for source code flaws that might be exploitable. Each analyzer has unique strengths; no analyzer finds everything. Using multiple tools finds the most security flaws, but each analyzer also provides its own interface for managing its alerts, complicating attempts to use multiple analyzers on the same codebase. Static analyzers often have high false-positive rates and provide many alerts that are not related to security flaws.

SCALe consists of tools and processes developed by CERT researchers to address these problems. SCALe has been used to analyze software for the DoD, energy delivery systems, medical devices, and more.

SCALe Auditing Framework

The SCALe auditing framework aggregates output from commercial, open source, and experimental analysis tools. These SCALe tools map warnings about possible code flaws (i.e., alerts) from code analysis tools to taxonomies of code flaws (e.g., CERT Secure Coding Rules and Common Weakness Enumeration [CWE]).

The SCALe web application provides a graphical interface that an analyst uses to filter and prioritize alerts as well as examine code associated with an alert. The analyst can also mark alert determinations (e.g., true or false) and store data for the audited code project. Some static analysis tool output formats are already integrated with the SCALe tools; the SCALe user manual explains the simple API that enables users to integrate new tools.

We provide the SCALe auditing framework tools to many DoD organizations and some non-DoD organizations for their use in evaluating their source code for adherence to secure coding standards. We provide services to help organizations adopt the SCALe auditing framework to improve their secure development lifecycle practices.

SCALe Research Prototype

We create SCALe research prototypes by adding new, experimental functionality to the SCALe auditing framework and processes. For example, a research project may use different rules for determining which alerts to audit or which alert determination lexicon to use. These prototypes may be distributed to collaborators during a project; we often integrate innovative technologies and processes from the prototypes into SCALe. Recent research involving such prototypes focuses on adding machine learning to SCALe tools and processes.

SCALe Conformance Testing

SCALe conformance testing provides organizations with an evaluation of their source code for its adherence to secure coding standards. We use the SCALe auditing framework and commercial, open source, and experimental analysis tools to provide this service. For each CERT secure coding standard, the source code for the software is certified at a level of conformance against the standard.

The SCALe Conformance Process

Conformance testing motivates organizations to invest in developing conforming systems by testing code against CERT secure coding standards, verifying that code conforms with those standards, using the CERT seal, and maintaining a certificate registry of conforming systems. When you request SCALe conformance testing, the following process is initiated:

  1. You submit your source code for analysis.
  2. CERT staff examines the code using analyzer tools.
  3. CERT staff validates and summarizes the results.
  4. You receive a detailed report of findings to guide your repair of the source code.
  5. You address the identified violations and resubmit the repaired code.
  6. CERT staff reassesses the code to ensure that you mitigated all violations properly.
  7. Your certification for that version of the product is published in a registry of certified systems.

The CERT SCALe Seal

If CERT SCALe conformance testing determines that your software conforms to a secure coding standard, you may use the CERT SCALe seal.

The seal must be specifically tied to the software passing conformance testing and not applied to untested products or the organization. Use of the CERT SCALe seal is contingent upon (1) the organization entering into a service agreement with Carnegie Mellon University and (2) the software being designated by the CERT Division as conforming.

With some exceptions, modifications made to software after it is designated as conforming voids the conformance designation.

CERT SCALe Certificates

CERT SCALe certificates contain the name and version of the software system that passed the conformance test and the results of the test. This process is similar to that followed by The Open Group.

Initially, all assessments are performed by researchers in the CERT Division of the Software Engineering Institute. In the future, third parties may be accredited to perform certifications.

SCALe: Evaluating Source Code for Adherence to Secure Coding Standards

August 2017

SCALe help analysts be more efficient and effective at auditing source code for security flaws.

SCALe Analysis of JasPer Codebase

April 2015

In this paper, David Svoboda provides the findings of a SCALe audit on a codebase.

Improving the Automated Detection and Analysis of Secure Coding Violations

June 2014

This technical note describes the accuracy analysis of the Source Code Analysis Laboratory (SCALe) tools and the characteristics of flagged coding violations.

Source Code Analysis Laboratory (SCALe)

April 2012

In this report, the authors describe the CERT Program's Source Code Analysis Laboratory (SCALe), a conformance test against secure coding standards.

Source Code Analysis Laboratory (SCALe) for Energy Delivery Systems

December 2010

In this report, the authors describe the Source Code Analysis Laboratory (SCALe), which tests software for conformance to CERT secure coding standards.

Source Code Analysis Laboratory (SCALe)

November 2012

In this webinar, Robert Seacord discusses SCALe, a demonstration that software systems can be tested for conformance to secure coding standards.

Supporting the Use of CERT Secure Coding Standards in DoD Acquisitions

July 2012

In this report, the authors provide guidance for helping DoD acquisition programs address software security in acquisitions.

Secure Coding - Avoiding Future Security Incidents

April 2013

In this 2013 webinar, Robert Seacord discusses secure coding as part of preventing security incidents.