NuGetDefense.Tool
1.0.17.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet tool install --global NuGetDefense.Tool --version 1.0.17.1
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local NuGetDefense.Tool --version 1.0.17.1
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=NuGetDefense.Tool&version=1.0.17.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package NuGetDefense.Tool --version 1.0.17.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
An MSBuildTask that checks for known vulnerabilities. Inspired by OWASP SafeNuGet.
Docs
View the full documentation for NuGetDefense here
Features
- Uses Multiple Sources to check for known vulnerabilities in third-party libraries (NuGet packages)
- OSS Index (Caching Coming Soon!)
- National Vulnerability Database (Optionally Self-Updating)
- Google's Open Source Vulnerabilities Database (Coming Soon!)
- Simple installation/configuration: the NuGet Package is all you need.
- Transitive Dependency Checking
- SDK style projects only (older project format is not supported by the dotnet cli)
- Uses the versions resolved by the dotnet cli at build
- Project Reference Scanning
- Scan all projects in a hierarchy by installing NuGet Defense to the top level package (pre-release)
- Allow breaking the build based on severity of vulnerability.
- Ignore specific vulnerabilities/packages.
- Sensitive/Internal Packages filtering
- Don't send packages that are sensitive/internal to remote vulnerability sources
- Blocklisting NuGet Packages
- Allowlisting NuGet Packages
- MIT Licensed
Requirements
- NuGetDefense v1.x is built only in .Net Core 3.1 so you will need the runtime/SDK installed.
- NuGetDefense v2.x is built only in .Net 5.0 (significantly faster) so you will need the runtime/SDK installed.
How does it work?
NuGetDefense is a bundled dotnet tool that runs using an MSBuild ExecTask after your project finishes building.
Love it? Support it!
You can sponsor this project on Github and Patreon. The funds will be used to pay for software licenses and cloud/hardware costs that keep my projects running.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.1 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
Version | Downloads | Last updated | |
---|---|---|---|
4.1.3.1 | 2,434 | 7/13/2024 | |
4.1.3 | 1,463 | 6/1/2024 | |
4.1.2-prerelease0001 | 101 | 5/20/2024 | |
4.1.1 | 437 | 5/14/2024 | |
4.1.0-pre0002 | 123 | 4/25/2024 | |
4.1.0-pre0001 | 165 | 4/17/2024 | |
4.0.5 | 663 | 4/25/2024 | |
4.0.4 | 1,198 | 3/16/2024 | |
4.0.3 | 729 | 3/3/2024 | |
4.0.2 | 261 | 2/25/2024 | |
4.0.1 | 578 | 2/14/2024 | |
4.0.0.1 | 852 | 1/16/2024 | |
4.0.0 | 393 | 1/6/2024 | |
4.0.0-prerelase1 | 229 | 12/20/2023 | |
3.2.5 | 144 | 4/25/2024 | |
3.2.4 | 231 | 3/16/2024 | |
3.2.4-issue180 | 184 | 4/4/2024 | |
3.2.3 | 303 | 3/3/2024 | |
3.2.2 | 202 | 2/25/2024 | |
3.2.1 | 173 | 2/14/2024 | |
3.2.0 | 519 | 12/14/2023 | |
3.2.0-prerelease7 | 212 | 12/13/2023 | |
3.2.0-prerelease6 | 305 | 7/30/2023 | |
3.2.0-prerelease5 | 618 | 7/13/2023 | |
3.2.0-prerelease4 | 717 | 6/16/2023 | |
3.2.0-prerelease3 | 741 | 6/3/2023 | |
3.2.0-prerelase2 | 610 | 5/21/2023 | |
3.2.0-prerelase | 652 | 5/13/2023 | |
3.1.1 | 10,370 | 3/24/2023 | |
3.1.0 | 1,044 | 3/24/2023 | |
3.0.11 | 2,720 | 3/6/2023 | |
3.0.10 | 2,412 | 1/15/2023 | |
3.0.9 | 1,159 | 12/11/2022 | |
3.0.8 | 1,381 | 10/30/2022 | |
3.0.7 | 8,005 | 7/19/2022 | |
3.0.5 | 1,825 | 7/7/2022 | |
3.0.4 | 1,716 | 6/26/2022 | |
3.0.3 | 1,183 | 6/22/2022 | |
3.0.2 | 1,046 | 6/16/2022 | |
3.0.1 | 3,904 | 2/27/2022 | |
3.0.0 | 1,199 | 1/22/2022 | |
3.0.0-pre0017 | 699 | 11/17/2021 | |
2.1.2.1 | 15,180 | 4/2/2021 | |
2.1.2 | 827 | 3/12/2021 | |
2.1.1 | 1,637 | 3/6/2021 | |
2.1.1-pre0001 | 577 | 3/5/2021 | |
2.1.0 | 713 | 2/27/2021 | |
2.1.0-pre0011 | 423 | 2/7/2021 | |
2.1.0-pre0010 | 456 | 1/31/2021 | |
2.1.0-pre0008 | 398 | 1/26/2021 | |
2.0.2 | 797 | 11/25/2020 | |
2.0.2-pre0002 | 555 | 11/21/2020 | |
2.0.1 | 615 | 11/13/2020 | |
1.0.18 | 1,910 | 3/12/2021 | |
1.0.17.1 | 600 | 4/2/2021 | |
1.0.17 | 593 | 3/6/2021 | |
1.0.17-pre0001 | 558 | 3/5/2021 | |
1.0.16 | 832 | 2/27/2021 | |
1.0.15 | 6,076 | 11/25/2020 | |
1.0.15-pre0001 | 652 | 11/21/2020 | |
1.0.14 | 685 | 11/8/2020 | |
1.0.11 | 762 | 9/25/2020 | |
1.0.10 | 748 | 9/23/2020 | |
1.0.9 | 512 | 9/21/2020 |