Supported package managers
The following table lists the languages for which Supply Chain can detect malicious dependencies.Enable rules
To include malicious dependency rules in your Supply Chain scan, navigate to Settings > General > Supply Chain and click the Malicious dependency advisories toggle. You can also use this setting to disable malicious dependency scanning for your Semgrep organization.Create policy actions
Malicious dependency findings are treated as critical severity findings. If you set up your Supply Chain policies to block critical severity findings, malicious dependency findings block a PR or MR the same way any other Supply Chain finding does. You can also create or update a Supply Chain policy and configure it to trigger automatically by including the condition Dependency is malicious.View findings
Malicious dependencies appear in the Supply Chain tab, alongside other Supply Chain findings. They are denoted by the MAL badge. To view malicious dependencies detected in your projects:1
Navigate to Supply Chain.
2
Click the filters icon and select Malicious dependency.
3
Review the results listed.
Triage and remediate
After reviewing your findings, you can choose one of the following actions:- If there is no fix available, remove the malicious dependency from your codebase and re-run a Supply Chain scan.
- If there is a safe version to update to, fix the finding by updating the dependency. Then, re-run a Supply Chain scan.
- Manually apply any Semgrep triage state, such as Ignored, though this is not recommended.
Create Jira tickets
Semgrep provides a Jira integration option that lets you create Jira tickets for malicious dependency findings across any branch, not just the primary branch, so developers can respond immediately when a malicious package is detected. To enable Jira ticket creation for malicious dependencies:1
Navigate to Settings > Integrations > Jira.
2
Select the option to Automatically create tickets for malicious dependency findings on any branch.
View advisories
You can view advisories for the malicious dependencies that Semgrep can detect:1
Sign in to Semgrep AppSec Platform.
2
3
Go to the Advisory type filter, and ensure that only Malicious is selected.