Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

ochronasec/ochrona_vs

Repository files navigation

Ochrona

This plugin is designed to operate as part of Ochrona Security, a solution for validating the dependencies used in python projects.

Ochrona requires a license to operate. We offer a free-tier license which allows up to 25 scans per month. You can sign up for an API key at https://ochrona.dev.

Learn more at Ochrona.dev

Usage

This Extension adds the Ochrona command which will detect all known python dependencies files and check them against Ochrona's repository of known python vulnerabilities.

In the command palette (CMD + SHIFT + P), type Ochrona. run ochrona

Features

Ochrona supports the following file types:

  • *requirements*.txt
  • Pipfile.lock
  • poetry.lock

A warning is displayed if a vulnerability is discovered. vulns found alert

A brief report is included in the VS Code Output tab for any discovered vulnerabilities. vulns found output

You can re-run the plugin by clicking the Ochrona Status Bar Icon. vulns found sb vulns not found sb

Extension Settings

An Ochrona API key is required for use of this extension. You may register for a free license at Ochrona.dev.

To set this open the VS Code Settings (Code -> Preferences -> Settings) or (CMD + ,) settings

Demo

demo

Release Notes

0.0.6

  • Short-circuit run if no files are found.

0.0.5

  • Added support for poetry.lock files.

0.0.4

  • Fixed bug in requirements.txt file parsing.
  • Adding warning when API Key is missing.
  • Stop spinner if request fails.

0.0.3

  • Added new invalid requirements.txt patterns.

0.0.2

  • Updated for new Ochrona API.

0.0.1

  • Support for checking *requirement*.txt and Pipfile.lock files for known python vulnerabilities.