1

Do these 2 terminologies refer to the same thing? https://www.owasp.org/index.php/Source_Code_Analysis_Tools

http://en.wikipedia.org/wiki/List_of_tools_for_static_code_analysis#.NET

Some of the tools overlap. Makes you wonder. If they are different can someone explain to me the differences.

  • In this case, they are the same. The OWASP link is defining and listing SAST tools. – Xander Aug 13 '14 at 0:33
4

Often, people use these interchangeably within the security industry.

The lists you are pointing to are referring to the same types of tools/assessment, with the addition that the second list is broader, including static analysis tools that are not targeted at security, such as those used to check for code quality issues.

Some types of SAST technically do not review source, but binaries, so it can be a little bit of a misnomer to call it SCA, in that situation.

I personally like the DAST, SAST, MAST nomenclature, because it delineates between the broad types of assessing applications for security issues: by running tests against a running application (dynamic analysis), by examining the code components or a model of them (static analysis), or by tool-assisted expert inspection and testing (manual analysis).

| improve this answer | |
1

In a popular book on the topic, "The Art of Software Security Assessment", strategies for code audits (Chapter 4) stem from three major concepts:

  1. Code comprehension strategies, e.g. your "source code analysis" where code is read from top to bottom, in pieces/components, or because of runtime hit traces in the execution flow cover particular areas of interest such as methods, functions, or basic blocks
  2. Candidate point strategies, e.g., your "static application security testing" where code is analyzed with an automated tool -- typically lexical analyzers, dynamic application security testing scanners, integrated application security testing frameworks, and/or AST-parsing modeling checkers. Note that all of these tools must be driven by a domain-level expert in order to be understood and tuned
  3. Design generalization strategies, partly rooted in source code analysis, but the code, or its underlying architecture, is analyzed by a method (e.g., OOA&D) and/or tool (e.g., doxygen, ctags, etc) -- typically to uncover Software Patterns, frameworks, components, and, if object-oriented, mappings of class diagarms. Note that these methods and tools must be driven again by a domain-level expert for proper interpretation and optimization
| improve this answer | |
0

There are many contrasts among SAST and SCA devices. SAST instruments just recognize security weaknesses in exclusive code by examining an application's code for defects that are characteristic of security weaknesses while the code is still in a static/non-running state. This assists engineers with remediating issues in their code before it's conveyed. While numerous SAST suppliers offer SCA arrangements, they are not as thorough and compelling as a devoted SCA arrangement may be.

SCA tools distinguish and track all open source segments in an association's codebase, to assist engineers in dealing with their open-source parts. Progressed SCA instruments mechanize the whole cycle of overseeing open source segments, including determination, alarming on any security or consistency issues, or in any event, impeding them from the code. They likewise give extensive data about the open-source weaknesses found so engineers can undoubtedly fix them. SCA apparatuses can be utilized all through the SDLC, from creation to after creation.

There are plenty of tools available with free and commercial licenses. Our company uses Klocwork from Perforce. SAST is one of the tools for C, C++, C#, and Java that identifies software security, quality, and reliability issues in addition to helping enforce compliance with standards.
Hope that helps.

There are various tools to scan and analyze code. It all depends on the OS of the application. Below is an example of a .Net Project resource file setup for Static analysis and security testing. (both C# and VB.Net)

<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    [..]
    <TargetFrameworkProfile />
    <!-- Add the line below -->
    <AdditionalFileItemNames>$(AdditionalFileItemNames);Content</AdditionalFileItemNames>
  </PropertyGroup>

The helper PowerShell script can be used to do it automatically for all projects in a subfolder:

Get-ChildItem *.csproj -Recurse | ForEach-Object {
$content = [xml] (Get-Content $_)
     
if (-not $content.Project.PropertyGroup[0].AdditionalFileItemNames)
    {
    Write-Host "AdditionalFileItemNames missing in $_"
    $additionalFileItemNamesElt = $content.CreateElement("AdditionalFileItemNames",
    "http://schemas.microsoft.com/developer/msbuild/2003")
    $additionalFileItemNamesElt.set_InnerText('$(AdditionalFileItemNames);Content')
    $content.Project.PropertyGroup[0].AppendChild($additionalFileItemNamesElt)
    }

Set-ItemProperty $_ -name IsReadOnly -value $false
$content.Save($_)
# Normalize line endings
(Get-Content $_ -Encoding UTF8) | Set-Content $_ -Encoding UTF8
}
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.