dotnet-retire 2.1.0

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

Build status NuGet NuGet

dotnet-retire

A dotnet CLI extension to check your project for known vulnerabilities.

Install

$ dotnet tool install -g dotnet-retire

Usage

$ dotnet retire

Additional options:

Sample:

$ dotnet retire loglevel=debug

Sample output:

image

How does it work?

It fetches the packages listed in the corresponding packages repo in this GitHub organization (link), and checks your projects obj\project.assets.json or project.lock.json file for any match (direct, or transient).

Keeping the list of packages up to date will be done via updating that repo when announcements occur from Microsoft with additional json files with links to announcements from Microsofts security team.

Other projects with similar functionality:

SafeNuGet

Runs as part of the build (MSBuild target). Analyzes packages.config, does not handle transient dependencies.

DevAudit

Standalone .NET console app that analyzes a packages.config. Analyzes packages.config, does not handle transient dependencies.

Product 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 netcoreapp2.1 is compatible.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 2.1

    • No dependencies.
Version Downloads Last updated
5.0.0 33,788 11/26/2020
4.0.1 60,464 1/31/2020
3.1.0 2,364 11/2/2019
3.0.0 657 11/1/2019
2.4.1 756 10/31/2019
2.4.0 665 10/31/2019
2.3.3 4,127 6/13/2019
2.3.2 3,440 9/11/2018
2.3.1 995 9/8/2018
2.1.1 978 8/22/2018
2.1.0 1,473 8/18/2018
2.0.0 959 8/18/2018
1.0.4 30,797 6/8/2017
1.0.3 1,228 6/8/2017
1.0.3-beta007 850 5/31/2017
1.0.2 26,241 5/19/2017
1.0.1 4,020 5/16/2017
1.0.0 11,373 5/15/2017
1.0.0-beta002 894 5/15/2017
1.0.0-beta001 891 5/15/2017

Makes output logging verbosity configurable