CodeSonar C#

SAST when Safety and Security Matter

  Accelerate Application Security

C sharp icon

Software teams are under constant pressure to deliver more content with higher complexity, in shorter timeframes, with increased quality and security. Static Application Security Testing is a proven best practice to help software teams deliver the best code in the shortest timeframe. GrammaTech has been a leader in this field for over 15 years with CodeSonar delivering multi-language SAST capabilities for enterprises where software quality and software security matter. For an in-depth look at CodeSonar's functionality, download the CodeSonar datasheet.

Book an Evaluation

From a TAG Cyber analyst perspective, this suite of tools looks absolutely first-rate. It includes modern DevOps-consistent features with an unequaled foundational base derived from world-class research. » Read More

DevSecOps - Speed and Scale

Software developers need rapid feedback on security vulnerabilities in their work artifacts. CodeSonar can be integrated into software development environments, can work unobtrusively to the developer and provide rapid feedback.

Abstract Interpretation

GrammaTech SAST tools use the concept of abstract interpretation to statically examine all the paths through the application and understand the values of variables and how they impact program state. Abstract interpretation gives CodeSonar for C# the highest scores in vulnerability benchmarks.


Broad coverage of security vulnerabilities, including OWASP Top10, SANS/CWE 25. Support for third party applications through byte code analysis.


Integration into DevSecOps to improve quality of the code and developer efficiency. Find code quality and performance issues at speed.


Checkers that detect performance impacts such as unnecessary test for nullness, creation of redundant objects or superfluous memory writes.

Enterprise customers are using C# in their internal applications, either in-house built, or built by a third-party. Static analysis is needed to to improve security and quality to drive business continuity.

Mobile and Client customers are using C# on end-points, sometimes in an internet-of-things deployment, or to provide information to mobile users. Security is critical due to the diverse environment, privacy is top-of-mind as well.

Web Apps drive dynamic content for websites and web-based applications. In a hostile environment tainted data analysis is crucial to assist developers to understand where their applications may be vulnerable.

Frameworks Supported

Currently supported frameworks are listed below. New frameworks are added every release.

WebForms, WindowsForms, MVC.

IDE Support

CodeSonar for C# plugs into Microsoft Visual Studio and VS Code. Through the IDE you can launch new analyses and review and resolve warnings as you write the code.


CodeSonar for C# includes a complete range of checkers for security, quality, efficiency and style. Some examples:


  • Injections
  • Cryptography
  • XXE
  • Cookies
  • Passwords
  • LDAP


  • Nullness
  • Approximation
  • CloseResource
  • DeadCode
  • BadEq
  • LEqualsHashCode

Analyze Third Party Code

CodeSonar for C# analyzes bytecode and then reflects these warnings back into your source-code. This allows the analysis of both your own code as well as third-party applications where source code may not be available.


An advanced, interactive dashboard plug-in allows managers and security analysts to understand current status and track progress.

Process Integration

CodeSonar for C# is flexible and can provide output in a variety of different formats such as PDF and XML for easy integration in your process.

Book A Evaluation

The best way to try a SAST solution is to run it on your own codebase and review the warnings it issues. Book an evaluation and learn how GrammaTech technology can rapidly improve your software development capability.

System Requirements

Host: Windows, Linux
Hardware: 2+ Cores, 32+GB of RAM, 20+GB of disk