Snyk Code currently supports:
Snyk Code can work with a variety of relevant language types:
- Optionally strong typed languages such as TypeScript.
- Strong typed languages such as Java.
Contact Snyk for a full list of support for frameworks, libraries and vulnerability types
The following are the supported extensions:
To support a specific framework, Snyk Code needs to both support the relevant language, and to be trained on projects using the framework. The found patterns are then annotated by our security team and extended by curated content.
While Snyk Code supports ASP.NET and .aspx extensions, it does not currently analyze ASP.NET Core or .cshtml files for vulnerabilities.
- Express: Back-end web application framework for Node.js, released as free and open-source software.It has been called the de facto standard server framework for Node.js.
- Apache Camel: Open source framework for message-oriented middleware with a rule-based routing and mediation engine.
- Apache Struts: Open-source, MVC framework for creating elegant, modern Java web applications.
- Spring MVC: The Spring Web model-view-controller (MVC) framework.
- Spring JDBC: The Spring JDBC data access layer, a simple ORM.
- Jakarta XML Services: Framework to implement XML-based Web Services.
- .NET framework: .NET is an open source developer platform, created by Microsoft and used to build a variety of application types. While .NET supports different languages,
Snyk Code supports .NET using the C# interface.
- ASP.NET (version 4.x): ASP.NET is a free and open source framework to build web apps and services using .NET.
Snyk Code supports version 4.x.
- .NET Core: Microsoft created .NET Core to make the .NET framework cross-platform and enable a number of scenarios. The .NET framework and .NET Core share many components and code can be exchanged. (Microsoft provides guidance when to choose which)
- ASP.NET Core: ASP.NET Core is cross platform and comparable to .NET Core versus .NET. (Microsoft provides guidance when to use which)
Snyk Code is based on a semantic AI using an analytics engine, the Snyk Code AI Engine.
When files are provided for analysis, the engine determines which file to feed into which parser, in a language-independent common intermediate format. This format preserves and exposes characteristics of the scanned source code.
This technology allows Snyk Code to:
- Support a variety of programming languages easily.
- Support multi-language projects, spanning security scans over the different languages.
- Unveil interfile issues, such as issue patterns spread over several source files, which are typically especially hard to track.
- Find issue patterns using the Snyk Code engine, compiling the found issues as a report.
The AI engine can analyze the following in your code:
- Hard coded secrets: including use of account-names, passwords, or secrets in the code.
- Coding issues: problems such as dead code, branches that are predefined, and branches having the same code on each side.
- Type inference: determining the initial type and its changes; this is of special interest for dynamically typed languages.
- Value ranges: infers possible values for variables used to call functions to track off-by-one errors in arrays, division-by-zero, and null dereferences.
- Data flow: follows the flow of data within the application, from the source to the sink. Combined with AI-based learning of external insecure data source, data sinks, and sanitation functions, this enables a strong taint analysis.
- Use of APIs: using open source or the documentation of frameworks to learn how functions need to be used, can identify API misuse such as using the wrong parameter type or calling with the wrong value range. This mechanism can also identify use of insecure functions.
- Control Flow: identifies null dereference or race conditions by modelling each possible control flow in the application.
- Point-to Analysis: identifies multiple possible issues including from buffer overruns, null dereferences, and type mismatches, by modelling the usage of memory in variables and references.