NuGetDefense.Tool 4.0.5

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet tool install --global NuGetDefense.Tool --version 4.0.5
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 4.0.5
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=NuGetDefense.Tool&version=4.0.5
nuke :add-package NuGetDefense.Tool --version 4.0.5

NuGetDefense

Join the chat at https://gitter.im/NuGetDefense/community NuGet version

An MSBuildTask that checks for known vulnerabilities. Inspired by OWASP SafeNuGet.

Docs

View the full documentation for NuGetDefense here

4.x preview documentation can be found by running dotnet /path/to/NuGetDefense.dll -?

Features

  • Uses Multiple Sources to check for known vulnerabilities in third-party libraries (NuGet packages)
  • Simple installation/configuration: the NuGet Package is all you need.
  • dotnet Global Tool for those who want to run it manually or just in the CI
  • 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
  • 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
  • Caching to prevent excess calls and hitting rate limits on API's
  • Blocklisting NuGet Packages
  • Allowlisting NuGet Packages
  • MIT Licensed
    • Consumable NuGet packages for bundling NuGetDefense scanners into your own software

Requirements

  • NuGetDefense v3.x is built only in .Net 6.0 so you will need the runtime/SDK installed.
  • NuGetDefense v4.x is built only in .Net 8.0 so you will need the runtime/SDK installed.

Unsupported Versions

  • Official Support follows support for the underlying framework.
  • Supporters can request support of unsupported versions (such as v2.x running on .Net 5) but are advised to use a supported runtime (for better overall security)
    • older .Net projects can use 4.x as long as the .Net 8 runtime is 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 Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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. 
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.0-pre0002 36 4/25/2024
4.1.0-pre0001 123 4/17/2024
4.0.5 96 4/25/2024
4.0.4 1,112 3/16/2024
4.0.3 660 3/3/2024
4.0.2 198 2/25/2024
4.0.1 512 2/14/2024
4.0.0.1 788 1/16/2024
4.0.0 330 1/6/2024
4.0.0-prerelase1 169 12/20/2023
3.2.5 51 4/25/2024
3.2.4 162 3/16/2024
3.2.4-issue180 117 4/4/2024
3.2.3 225 3/3/2024
3.2.2 136 2/25/2024
3.2.1 111 2/14/2024
3.2.0 459 12/14/2023
3.2.0-prerelease7 153 12/13/2023
3.2.0-prerelease6 268 7/30/2023
3.2.0-prerelease5 443 7/13/2023
3.2.0-prerelease4 517 6/16/2023
3.2.0-prerelease3 532 6/3/2023
3.2.0-prerelase2 499 5/21/2023
3.2.0-prerelase 473 5/13/2023
3.1.1 10,178 3/24/2023
3.1.0 912 3/24/2023
3.0.11 2,616 3/6/2023
3.0.10 2,313 1/15/2023
3.0.9 1,031 12/11/2022
3.0.8 1,292 10/30/2022
3.0.7 7,588 7/19/2022
3.0.5 1,718 7/7/2022
3.0.4 1,614 6/26/2022
3.0.3 1,079 6/22/2022
3.0.2 956 6/16/2022
3.0.1 3,792 2/27/2022
3.0.0 1,089 1/22/2022
3.0.0-pre0017 541 11/17/2021
2.1.2.1 15,088 4/2/2021
2.1.2 759 3/12/2021
2.1.1 1,536 3/6/2021
2.1.1-pre0001 472 3/5/2021
2.1.0 620 2/27/2021
2.1.0-pre0011 346 2/7/2021
2.1.0-pre0010 405 1/31/2021
2.1.0-pre0008 342 1/26/2021
2.0.2 692 11/25/2020
2.0.2-pre0002 499 11/21/2020
2.0.1 539 11/13/2020
1.0.18 1,801 3/12/2021
1.0.17.1 507 4/2/2021
1.0.17 492 3/6/2021
1.0.17-pre0001 469 3/5/2021
1.0.16 738 2/27/2021
1.0.15 5,982 11/25/2020
1.0.15-pre0001 575 11/21/2020
1.0.14 614 11/8/2020
1.0.11 672 9/25/2020
1.0.10 685 9/23/2020
1.0.9 480 9/21/2020