All Projects → visma-prodsec → Confused

visma-prodsec / Confused

Licence: mit
Tool to check for dependency confusion vulnerabilities in multiple package management systems

Programming Languages

javascript
184084 projects - #8 most used programming language
python
139335 projects - #7 most used programming language
java
68154 projects - #9 most used programming language
go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Confused

Strongbox
Strongbox is an artifact repository manager.
Stars: ✭ 412 (+31.21%)
Mutual labels:  npm, maven, pypi
Enseada
A Cloud native multi-package registry
Stars: ✭ 80 (-74.52%)
Mutual labels:  npm, maven
Vscode Versionlens
This project has moved to gitlab
Stars: ✭ 218 (-30.57%)
Mutual labels:  npm, maven
yavdb
Yet Another Vulnerability Database
Stars: ✭ 14 (-95.54%)
Mutual labels:  maven, pypi
Dependency spy
Find known vulnerabilities in your dependencies
Stars: ✭ 87 (-72.29%)
Mutual labels:  npm, maven
maloss
Towards Measuring Supply Chain Attacks on Package Managers for Interpreted Languages
Stars: ✭ 46 (-85.35%)
Mutual labels:  maven, pypi
Go Dork
The fastest dork scanner written in Go.
Stars: ✭ 274 (-12.74%)
Mutual labels:  infosec
Scroll Hint
A JS library to suggest that the elements are scrollable horizontally, with the pointer icon.
Stars: ✭ 305 (-2.87%)
Mutual labels:  npm
Termplotlib
Plotting on the command line
Stars: ✭ 294 (-6.37%)
Mutual labels:  pypi
React Cookie Consent
A small, simple and customizable cookie consent bar for use in React applications.
Stars: ✭ 293 (-6.69%)
Mutual labels:  npm
Saturday Night Works
Takip ettiğim kaynaklardaki örneklere ait çalışmalar yer alır.
Stars: ✭ 312 (-0.64%)
Mutual labels:  npm
Hetty
Hetty is an HTTP toolkit for security research.
Stars: ✭ 3,596 (+1045.22%)
Mutual labels:  infosec
Bugbounty Cheatsheet
A list of interesting payloads, tips and tricks for bug bounty hunters.
Stars: ✭ 3,644 (+1060.51%)
Mutual labels:  infosec
Lookforward
A small library that helps you to create smooth transitions between pages with the easiest way
Stars: ✭ 298 (-5.1%)
Mutual labels:  npm
Gaxios
An HTTP request client that provides an axios like interface over top of node-fetch. Super lightweight. Supports proxies and all sorts of other stuff.
Stars: ✭ 301 (-4.14%)
Mutual labels:  npm
H2csmuggler
HTTP Request Smuggling over HTTP/2 Cleartext (h2c)
Stars: ✭ 292 (-7.01%)
Mutual labels:  infosec
Openapi Generator Cli
A node package wrapper for https://github.com/OpenAPITools/openapi-generator
Stars: ✭ 305 (-2.87%)
Mutual labels:  npm
Pypinfo
Easily view PyPI download statistics via Google's BigQuery.
Stars: ✭ 295 (-6.05%)
Mutual labels:  pypi
Windows Build Tools
📦 Install C++ Build Tools for Windows using npm
Stars: ✭ 3,280 (+944.59%)
Mutual labels:  npm
Fabric8 Maven Plugin
📢 This project is migrated to 👉 https://github.com/eclipse/jkube
Stars: ✭ 307 (-2.23%)
Mutual labels:  maven

Confused

A tool for checking for lingering free namespaces for private package names referenced in dependency configuration for Python (pypi) requirements.txt, JavaScript (npm) package.json, PHP (composer) composer.json or MVN (maven) pom.xml.

What is this all about?

On 9th of February 2021, a security researcher Alex Birsan published an article that touched different resolve order flaws in dependency management tools present in multiple programming language ecosystems.

Microsoft released a whitepaper describing ways to mitigate the impact, while the root cause still remains.

Interpreting the tool output

confused simply reads through a dependency definition file of an application and checks the public package repositories for each dependency entry in that file. It will proceed to report all the package names that are not found in the public repositories - a state that implies that a package might be vulnerable to this kind of attack, while this vector has not yet been exploited.

This however doesn't mean that an application isn't already being actively exploited. If you know your software is using private package repositories, you should ensure that the namespaces for your private packages have been claimed by a trusted party (typically yourself or your company).

Known false positives

Some packaging ecosystems like npm have a concept called "scopes" that can be either private or public. In short it means a namespace that has an upper level - the scope. The scopes are not inherently visible publicly, which means that confused cannot reliably detect if it has been claimed. If your application uses scoped package names, you should ensure that a trusted party has claimed the scope name in the public repositories.

Installation

Usage

Usage:
 ./confused [-l LANGUAGENAME] depfilename.ext

Usage of ./confused:
  -l string
        Package repository system. Possible values: "pip", "npm", "composer", "mvn" (default "npm")
  -s string
        Comma-separated list of known-secure namespaces. Supports wildcards
  -v    Verbose output

Example

Python (PyPI)

./confused -l pip requirements.txt

Issues found, the following packages are not available in public package repositories:
 [!] internal_package1

JavaScript (npm)

./confused -l npm package.json

Issues found, the following packages are not available in public package repositories:
 [!] internal_package1
 [!] @mycompany/internal_package1
 [!] @mycompany/internal_package2

# Example when @mycompany private scope has been registered in npm, using -s
./confused -l npm -s '@mycompany/*' package.json

Issues found, the following packages are not available in public package repositories:
 [!] internal_package1

Maven (mvn)

./confused -l mvn pom.xml

Issues found, the following packages are not available in public package repositories:
 [!] internal
 [!] internal/package1
 [!] internal/_package2

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].