Chrome Extension for Sonatype Nexus IQ
Table of Contents
Purpose
To allow you to inspect a package before you download it. The plugin requires a valid Sonatype Nexus Lifecycle instance, which means you must be licensed to use this plugin.
The plugin can scan packages at the following repositories:
- .Net – NuGet –
https://www.nuget.org/
- Alpine – Linux –
https://pkgs.alpinelinux.org/
- Chocolatey – Windows –
https://community.chocolatey.org/
- Clojars – Clojure –
https://clojars.org/
- CocoaPods – iOS –
https://cocoapods.org/
- Conan – C/C++ –
https://conan.io/center/
- Conda – Python –
https://anaconda.org/anaconda/
- Debian – Linux –
https://packages.debian.org/
- Debian – Linux –
https://tracker.debian.org/pkg/
- Golang – Go –
https://pkg.go.dev/
- Java – Maven –
https://mvnrepository.com/
- Java – Maven –
https://repo.maven.apache.org/
- Java – Maven –
https://repo.spring.io/list/
- Java – Maven –
https://repo1.maven.org/
- Java – Maven –
https://search.maven.org/
- JavaScript/Node – npm –
https://www.npmjs.com/
- PHP – Packagist/composer –
https://packagist.org/
- Python – PyPI –
https://pypi.org/
- R – CRAN –
https://cran.r–project.org/
- Ruby – RubyGems –
https://rubygems.org/
- Rust – Crates –
https://crates.io/
- Nexus Proxy Repos – supported repository formats are maven2, npm, rubygems and nuget e.g.
http://nexus:8081/#browse/browse:maven–central:commons–collections%2Fcommons–collections%2F3.2.1
- Artifactory Proxy Repos – supported repository formats are maven2 and npm e.g.
https://artifactory-server/webapp/#/artifacts/browse/tree/General/npmjs–cache/parseurl/–/parseurl–1.0.1.tgz
- Artifactory Repo lists – e.g.
https://repo.spring.io/list/jcenter–cache/org/cloudfoundry/cf–maven–plugin/1.1.3/
Documentation
Sonatype Nexus Lifecycle nexus-iq-chrome-extension
Data
The data is sourced from Sonatype Nexus Lifecycle’s IQ Server, which accesses the Sonatype Data Services for those supported ecosystems. For some repositories e.g. Chocolatey, the extension gets its data from Sonatype OSSIndex ( https://ossindex.sonatype.org/ ).
Usage
When you browse to a website that is covered by the tool, such as Maven Central and click on the plugin, it will open with the Sonatype Lifecycle data relevant to that library.
Main icon
Remediation Guidance
- The install will create a new icon in your Chrome Browser next to the location box.
- The plugin will work on any page that matches the URL list above.
- Navigate to one of the pages that the extension is compatible with (see the detailed list below).
- Click on the blue Sonatype logo…
4.1 …The solution will think for a second and show the Sonatype hexagon logo while it retrieves the data…Then show the Data.
- Component Information
- Security Information
The security data is presented in a list with clickable sections for each vulnerability.
- Security Details
The security details for each vulnerability is available. Click on the reference to display the security details.
- Remediation
The version history is available for each component.
- Remediation Guidance
The remediation guidance API has been added. The recommended fix version will be listed at the top of the screen. - License Information
- Unsupported Page
If you click on an unsupported page then the following screen will appear.
Examples
The list of pages that are supported are here:
- Alpine – Linux – https://pkgs.alpinelinux.org/
- Chocolatey – Windows – https://community.chocolatey.org/
- Clojars – Clojure – https://clojars.org/
- Cocoa pods – iOS – https://cocoapods.org/
- Conan – C/C++ – https://conan.io/center/
- Conda – Python – https://anaconda.org/anaconda/
- Debian – Linux – https://packages.debian.org/
- Debian – Linux – https://tracker.debian.org/pkg/
dotNet - nuget
Pattern - https://www.nuget.org/packages/<package>/<version>
e.g. https://www.nuget.org/packages/LibGit2Sharp/0.20.1
Golang - https://pkg.go.dev/
https://pkg.go.dev/
e.g. https://pkg.go.dev/github.com/etcd-io/etcd@v0.4.9
Java - Maven
Pattern - https://search.maven.org/artifact/<group>/<artifact>/<version>/<extension>
e.g. https://search.maven.org/artifact/org.apache.struts/struts2-core/2.3.30/jar
Pattern -https://mvnrepository.com/artifact/<group>/<artifact>/<version>
e.g. https://mvnrepository.com/artifact/commons-collections/commons-collections/3.2.1
Pattern - https://repo1.maven.org/maven2/<group>/<artifact>/<version>/
e.g. https://repo1.maven.org/maven2/commons-collections/commons-collections/3.2.1/
Pattern - https://repo.maven.apache.org/maven2/<group>/<artifact>/<version>/
e.g. https://repo.maven.apache.org/maven2/commons-collections/commons-collections/3.2.1/
JS/Node - npm
Pattern - https://www.npmjs.com/package/<package>
e.g. https://www.npmjs.com/package/lodash/
and
Pattern - https://www.npmjs.com/package/<package>/v/<version>
e.g. https://www.npmjs.com/package/lodash/v/4.17.9
PHP - Packagist/Composer
Pattern - https://packagist.org/
e.g. https://packagist.org/packages/drupal/drupal
Ruby - rubygems
Pattern - https://rubygems.org/gems/<package>
e.g. https://rubygems.org/gems/bundler
Python - pypi
Pattern - https://pypi.org/<package>/
e.g. https://pypi.org/project/Django/
or Pattern - https://pypi.org/<package>/<version>/
e.g. https://pypi.org/project/Django/1.6/
R - CRAN
Pattern - https://cran.r-project.org/
e.g. https://cran.r-project.org/web/packages/A3/index.html
- Ruby – RubyGems – https://rubygems.org/
Rust - Crates
Pattern - https://crates.io/
e.g. https://crates.io/crates/random
NexusRepo - npm, Maven and rubygems
e.g. http://nexus:8081/#browse/browse:rubygems-proxy:nexus%2F1.4.0%2Fnexus-1.4.0.gem
Installation
Production
- Install from Chrome Store
- Click
Add to Chrome
Note: You will be asked to “Add Sonatype Nexus IQ Extension”. Click “Add extension”
- You will be prompted to enter your login details. (Important: Please note that this version stores your details in plain text in Chrome Storage. We are investigated secure storage but at this time we do not support it. You can use a token for your password though. https://help.sonatype.com/iqserver/managing/user-management/user-tokens)
- Select an Application to link to this plugin. The application is required to perform the advanced history and remediation scanning now available.
- Click Save to save your credentials.
- You will be advised that your details are saved. Click Close when you are done and You will be taken back to the Extensions Install screen in Chrome. Close the screen and begin using.
- The installer will have created a new icon in your Chrome Menu Bar.
Developer mode
- Download the plugin from GitHub
git clone https://github.com/sonatype-nexus-community/nexus-iq-chrome-extension.git
- Open Chrome Browser.
- Click on the three dots, then More Tools, then Extensions.
- Click on load unpacked (requires “Developer Mode” to be enabled).
- Navigate to the folder where you downloaded the plugin from GitHub onto your local machine. Select the src subdirectory and then click select
- Configure the plugin like in the Production mode…
Uninstall
If you do not want to use the extension then you can right click on the icon and choose Remove from Chrome
Version History
Go to the changelog
Contributing
Please read the Contributing guide
The Fine Print
Supported by Sonatype