DevSkim is a set of IDE plugins, language analyzers, and rules that provide security "linting" capabilities.
C#
1,014
706 commits
updated Oct 9, 2026
DevSkim is a .NET library and cross-platform command line tool that performs static security analysis of source code. It has a flexible rule model that supports multiple programming languages. The goal is to identify security vulnerabilities as early as possible, fix them at the point of introduction, and help build security awareness for developers.
Issues and contributions are accepted here for:
./DevSkim-DotNet/Microsoft.DevSkim/./DevSkim-DotNet/Microsoft.DevSkim.CLI/./DevSkim-DotNet/Microsoft.DevSkim.Tests/./rules/default/ and ./guidance/The C# library is available on NuGet as Microsoft.CST.DevSkim.
The .NET Global Tool is available on NuGet as Microsoft.CST.DevSkim.CLI.
Platform specific binaries of the DevSkim CLI are also available on our GitHub releases page.
Add the Microsoft.CST.DevSkim package to your project:
dotnet add package Microsoft.CST.DevSkim
If you already have the .NET SDK installed, you can install the DevSkim CLI as a dotnet global tool by running the following from a command line:
dotnet tool install --global Microsoft.CST.DevSkim.CLI
This will add DevSkim to your PATH. You can then invoke devskim from a command line.
Download the platform specific binary archive for your system (Windows, Mac OS, Linux) from the releases page. Extract the archive, navigate to the DevSkim folder from a command line, and invoke devskim or devskim.exe.
First download and install the Latest .NET runtime.
Then download the DevSkim netcoreapp archive from the releases page. Extract the archive, navigate to the DevSkim folder from a command line, and invoke dotnet devskim.dll.
DevSkim requires the .NET SDK (10.0 or later).
cd DevSkim-DotNet
dotnet build Microsoft.DevSkim.sln
dotnet test Microsoft.DevSkim.Tests/Microsoft.DevSkim.Tests.csproj
For more information, see the wiki page about how to Build from Source.
Analyze a directory and write the results as SARIF:
devskim analyze --source-code /path/to/FilesToAnalyze --output-file results.sarif
The CLI also provides the following commands:
fix - Apply suggested fixes from a DevSkim SARIF filesuppress - Add suppression comments for issues identified in a DevSkim SARIF fileverify - Validate rule filesRun devskim --help or devskim <command> --help for all options. For more information, see the wiki page about the Command Line Interface.
Please see Writing Rules for instructions on how to author rules.
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.
For more information, please see How to Contribute.
For more information, please see How to Contribute.
To report a security vulnerability, please see SECURITY.md.
DevSkim is licensed under the MIT license.
Usage of this application is governed by the Microsoft Privacy Statement.
171 followers · starred Oct 2020
2,354 followers · starred Oct 2022
3,291 followers · starred Jul 2020
96 followers · starred Jun 2017
DevSkim is a set of IDE plugins, language analyzers, and rules that provide security "linting" capabilities.
C#
1,014
706 commits
updated Oct 9, 2026
DevSkim is a .NET library and cross-platform command line tool that performs static security analysis of source code. It has a flexible rule model that supports multiple programming languages. The goal is to identify security vulnerabilities as early as possible, fix them at the point of introduction, and help build security awareness for developers.
Issues and contributions are accepted here for:
./DevSkim-DotNet/Microsoft.DevSkim/./DevSkim-DotNet/Microsoft.DevSkim.CLI/./DevSkim-DotNet/Microsoft.DevSkim.Tests/./rules/default/ and ./guidance/The C# library is available on NuGet as Microsoft.CST.DevSkim.
The .NET Global Tool is available on NuGet as Microsoft.CST.DevSkim.CLI.
Platform specific binaries of the DevSkim CLI are also available on our GitHub releases page.
Add the Microsoft.CST.DevSkim package to your project:
dotnet add package Microsoft.CST.DevSkim
If you already have the .NET SDK installed, you can install the DevSkim CLI as a dotnet global tool by running the following from a command line:
dotnet tool install --global Microsoft.CST.DevSkim.CLI
This will add DevSkim to your PATH. You can then invoke devskim from a command line.
Download the platform specific binary archive for your system (Windows, Mac OS, Linux) from the releases page. Extract the archive, navigate to the DevSkim folder from a command line, and invoke devskim or devskim.exe.
First download and install the Latest .NET runtime.
Then download the DevSkim netcoreapp archive from the releases page. Extract the archive, navigate to the DevSkim folder from a command line, and invoke dotnet devskim.dll.
DevSkim requires the .NET SDK (10.0 or later).
cd DevSkim-DotNet
dotnet build Microsoft.DevSkim.sln
dotnet test Microsoft.DevSkim.Tests/Microsoft.DevSkim.Tests.csproj
For more information, see the wiki page about how to Build from Source.
Analyze a directory and write the results as SARIF:
devskim analyze --source-code /path/to/FilesToAnalyze --output-file results.sarif
The CLI also provides the following commands:
fix - Apply suggested fixes from a DevSkim SARIF filesuppress - Add suppression comments for issues identified in a DevSkim SARIF fileverify - Validate rule filesRun devskim --help or devskim <command> --help for all options. For more information, see the wiki page about the Command Line Interface.
Please see Writing Rules for instructions on how to author rules.
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.
For more information, please see How to Contribute.
For more information, please see How to Contribute.
To report a security vulnerability, please see SECURITY.md.
DevSkim is licensed under the MIT license.
Usage of this application is governed by the Microsoft Privacy Statement.
171 followers · starred Oct 2020
2,354 followers · starred Oct 2022
3,291 followers · starred Jul 2020
96 followers · starred Jun 2017