SOOS Issues
SOOS Issue Types

Dependency Substitution Issues

3min

What are they?

Dependency Substitutions, also known as Dependency Confusions, are a type of attack where bad actors learn about or guess a company's internal package naming convention and use this knowledge to publish malicious package versions to a public package registry.

Often, this can lead to these substituted packages being installed on developer workstations, and potentially even being deployed.

Refer to our article about Package Mask Configurations to learn how to configure and protect against Dependency Substitution attacks.

How does it affect my code?

If these malicious substituted packages are installed and/or deployed it can leave you, or your users, vulnerable to attacks such as: remote code execution, data access, compromised systems, and more.

What can I do about it?

To protect yourself from using substituted versions of your own internal packages, SOOS allows you to set a Package Mask which represents your internal package naming convention. SOOS will then check every package coming from an external package registration to ensure it does not match your internal package naming, and will alert you if one exists.