Coder Social home page Coder Social logo

petermond / audit.net Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sonatype-nexus-community/audit.net

0.0 1.0 0.0 1.7 MB

Identify known vulnerabilities in .net nuget dependencies

C# 95.98% HTML 1.90% CSS 0.86% PowerShell 0.09% Shell 1.17%

audit.net's Introduction

Note: It appears that in Visual Studio 2019 an audit does not necessarily properly run on a clean Visual Studio startup. In this situation you can kick off an audit by right clicking on the solution and select "Audit NuGet Packages for Solution". Opening projects on an already running Visual Studio will run an audit.

Audit.NET

Audit.NET is a Visual Studio extension that highlights NuGet package dependencies with security vulnerabilities.

Audit.NET relies on the free package and vulnerability database "OSS Index." OSS Index provides open source tools and data for a variety of languages and package managers. Vulnerabilities are drawn from the National Vulnerability Database, a variety of Security Feeds, and community contributions.

Audit.NET scans your dependencies on project load, when new dependencies are added, or when prompted. Vulnerabilities will appear in the Error List, and pertinent lines will be underlined in the packages.config files.

Installation

Audit.NET installation has been tested on Microsoft Visual Studio Community 2017, though it will likely install on earlier versions of Visual Studio Professional.

  1. Start Visual Studio
  2. Select the "Tools->Extensions and Updates..." menu item
  3. The Extensions and Updates dialog will appear
  4. In the tree to the left, click "Online"
  5. In the tree to the left, wnsure "Visual Studio Gallery" is selected
  6. In the search bar to the upper right, type "audit.net" and hit enter
  7. The Audit.Net extension should show.
  8. Click the "Download" button
  9. The "Download and Install" dialog will appear, with the Audit.Net license (BSD 3-clause)
  10. Click the install button
  11. The dialog will dissapear and the extension will install. A "Restart Now" button will appear at the bottom of Visual Studio. Click it.
  12. Visual Studio will restart

Usage

Startup

  1. Start Visual Studio on a solution
  2. Once the solution has loaded, Audit.NET will automatically run against the solution.
    1. If there are no known vulnerabilities you will see a message in the "Output" tab indicating the number of packages checked.
    2. If there are vulnerabilities the "Error List" will be brought to the front indicating the vulnerabilities found.

New Packages

  1. Select the "Tools->NuGet Package Manager->Manage NuGet Packages for Solution" menu item
  2. The NuGet package manager will open
  3. Browser for new packages and install them as appropriate
  4. Once installation has completed Audit.NET will run against the new package(s)
    1. If there are no known vulnerabilities you will see a message in the "Output" tab indicating the number of packages checked.
    2. If there are vulnerabilities the "Error List" will be brought to the front indicating the vulnerabilities found.

Running Audit.NET manually

  1. In the Solution Explorer, select the solution or a project
  2. Select the "Project->Audit NuGet Packages" menu item
  3. Audit.NET will run against the package(s)
    1. If there are no known vulnerabilities you will see a message in the "Output" tab indicating the number of packages checked.
    2. If there are vulnerabilities the "Error List" will be brought to the front indicating the vulnerabilities found.

Viewing Errors

  1. Click the "Error List" tab
  2. Audit.NET vulnerabilities will appear in the list with the red "X" icon
  3. Double click on an error to open the package.config file with the vulnerable package
  4. The vulnerable package will be underlined in red
  5. Resolve the problem either by using the NuGet package manager, or by hand editing the packages.config
  6. If you hand edit the packages.config file you will have to run Audit.NET manually to clear the error

Viewing More Error Details

  1. Right click on an error in the errors tab
  2. Select "Show Error Help" and the OSS Index page for the selected error will be displayed. This page has additional information such as a list of reference links that can provide evidence of the existence and severity of the vulnerability, as well as possibly insight into the causes, and in some cases possible mitigations.

audit.net's People

Contributors

aleksandert avatar allisterb avatar darthhater avatar ken-duck avatar kenduck avatar nazgul26 avatar qwermike avatar scherzhaft avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.