> ## Documentation Index
> Fetch the complete documentation index at: https://docs.endorlabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Malware detection

> Understand how malware is detected, classified, and scored in Endor Labs.

Endor Labs detects malware in dependencies by scanning the packages used in the project and recognizing known malicious patterns.

**Monitoring for known malicious packages:** Endor Labs scans dependencies to identify malware by cross-referencing findings with the Open Source Vulnerability (OSV) database and data from the proprietary malware feed.

**Suspicious code behavior:** Endor Labs uses malware detection rules and SAST rules to scan open source package dependencies for suspicious code patterns and behaviors. These rules analyze code structures, detect anomalies, and identify potential threats.

Threat Center helps you track newly discovered malicious packages across all your projects. It shows which of your monitored projects each one may affect, so you can investigate before the risk reaches a project-level scan. See [Review Malware](https://docs.endorlabs.com/discover/review-malware.md) to learn more.

## Detect malware findings

Endor Labs provides a set of malware policies designed to identify and manage malicious or suspicious code in your project, ensuring that Endor Labs detects potential security risks early.

* The [OSS finding policy](https://docs.endorlabs.com/platform-administration/policies/finding-policies/oss-policies.md) detects malicious code and findings in your project. You can edit the policy to change the severity and template parameters.

* Configure [malware action policy](https://docs.endorlabs.com/platform-administration/policies/action-policies/templates.md#malware) to specify how detected malware findings should be handled automatically, including notifications, blocking actions, and workflow triggers.

* Configure [malware exception policy](https://docs.endorlabs.com/platform-administration/policies/exception-policies/templates.md#malware) to exclude malware findings under defined conditions. This filters out false positives and keeps the focus on critical risks.

## Determine malware exposure

Endor Labs classifies malware findings by how certain the match is between your dependency and a known malicious package version:

* **Definitely Affected**: The dependency's most recently resolved version is itself known to be malicious.
* **Potentially Affected**: The dependency's version constraint could resolve to a known malicious package version, even if the most recently resolved version is clean. This assessment is based on the most recent dependency resolution, so a malicious version may have already been downloaded to a build system or a developer's machine before a new scan detects it.

Potentially affected findings catch cases the resolved version misses. Malware is often published before you re-run dependency resolution, and different environments, such as a developer laptop versus CI, can resolve the same version constraint to different actual versions.

Set **Potentially Affected Finding Severity** in the Malware finding policy to **Critical**, **High**, **Medium**, or **Low** to raise findings for potentially affected dependencies at that severity. Set it to **None** to disable these findings.

* New tenants have this threshold set to **Low** by default.
* Existing tenants get it enabled automatically when **Upgrade Policies to Latest Version** is turned on. See [Configure policy settings](https://docs.endorlabs.com/platform-administration/configure-system-settings.md#configure-policy-settings).
* You can upgrade the Malware finding policy to add the parameter. See [Upgrade a finding policy](https://docs.endorlabs.com/platform-administration/policies/finding-policies.md#upgrade-a-finding-policy).

![Configure potentially affected finding severity](https://mintcdn.com/endorlabs-b4795f4f/pjATargiG1kb3Ham/images/discover/review-malware/malware-parameter.webp?fit=max\&auto=format\&n=pjATargiG1kb3Ham\&q=85\&s=f0fb5d9920461638b7ce8a48bfd94c11)

To include or exclude findings based on exposure, use the **Exposure** parameter on the [malware exception policy](https://docs.endorlabs.com/platform-administration/policies/exception-policies/templates.md#malware) and [malware action policy](https://docs.endorlabs.com/platform-administration/policies/action-policies/templates.md#malware) templates.

## View malware findings

You can view the malware findings, prioritize them, and take corrective action.

1. Select **Projects** from the left sidebar.

2. Select the project for which you want to view the malware.

3. Select **Malware** to view malware findings.

4. Select a finding to view the following information:

   * **Project**: The name of the project where Endor Labs finds the malware, finding policy, categories, and attributes of the project.
   * **Risk Details**:
     * Explanation of the finding.
     * Reasoning explains why Endor Labs classifies the package as malware.
     * Recommended remediation.
   * **Metadata**: Contains details such as the vulnerability IDs, ecosystem, package release date, and advisory publication date.
   * **Dependency Path**: Shows how upstream dependencies reach the malicious package version.

5. Click **View Details** to see the full details of the malware finding.

   ![Malware findings view details](https://mintcdn.com/endorlabs-b4795f4f/99vZ3cHXQ9LCkzj5/images/scan/malware/malware-view-details.webp?fit=max\&auto=format\&n=99vZ3cHXQ9LCkzj5\&q=85\&s=b332d081ffb01ed35843681fdf542a37)

## Permitted use of malware detection data

The following sections describe the permitted use of malware detection data across Endor Open Source Core (OSS Core), Open Source Pro (OSS Pro), and Package Firewall licenses.

### What's included with OSS Core / OSS Pro vs. Package Firewall

The following table summarizes the capabilities available with each license.

| You want to… | OSS Core / OSS Pro | Package Firewall |
| - | - | - |
| See malicious packages found in your scanned repositories | ✓ Included | ✓ Included |
| Pull those findings via API into Jira, SIEM, or a dashboard | ✓ Included | ✓ Included |
| Fail a build or PR check when a scan finds malware in your code | ✓ Included | ✓ Included |
| Query Endor Labs for a package before it enters your codebase | ✕ Not licensed | ✓ Included |
| Block or gate package installation based on Endor Labs data | ✕ Not licensed | ✓ Included |
| Bulk-retrieve or mirror the Endor Labs malicious-package corpus | ✕ Not licensed ¹ | ✕ Not licensed ¹ |
| Redistribute Endor Labs malware data to third parties | ✕ Not licensed ¹ | ✕ Not licensed ¹ |

> [!TIP]
>
> ¹ Bulk export and redistribution are outside the scope of all standard SKUs. If you have a data-integration or OEM requirement, contact your account team.

### Scope of the included capability

Malware detection is included with Endor Labs OSS Core and OSS Pro so that you can identify and remediate malicious packages that Endor Labs has detected in the dependencies of repositories you have onboarded and scanned. Findings for your scanned dependencies are yours to consume through the UI, the API, and CI/CD integrations, including exporting them into your own ticketing, SIEM, and reporting systems.

Malware detection under OSS Core and OSS Pro is a detection capability. It is scoped to what your scans surface. It is not a license to the broader Endor Labs malicious-package intelligence corpus.

### Restrictions

Accordingly, under OSS Core and OSS Pro you may not:

* Retrieve, enumerate, or cache malware or malicious-package records that are not associated with a dependency identified in one of your own scanned repositories — including by iterating over package names, versions, ecosystems, registries, or record identifiers.
* Build or operate an internal threat intelligence database, index, mirror, or replica of Endor Labs malicious-package data intended to be queried independently of your Endor Labs scan results.
* Use Endor Labs malware data as the decision source for a pre-installation or pre-resolution allow/deny control — for example a proxy, registry mirror, package-manager plugin, resolver hook, or admission gate that consults Endor Labs data to decide whether a package may be fetched or installed.
* Redistribute, resell, sublicense, or otherwise make available Endor Labs malware data to any third party, or expose it through a service, product, or feed offered to others.
* Use Endor Labs malware data to develop, train, benchmark, or improve a competing product or service.

### Pre-installation blocking requires Endor Labs Package Firewall

If your goal is to prevent malicious packages from being installed or resolved at all — rather than detecting them after they enter a repository — that capability is delivered by the Endor Labs Package Firewall SKU, which is purpose-built for it and licensed for that use. Contact your account team.

### Enforcement

Endor Labs may apply rate limits, quotas, query-scoping, and entitlement checks to API endpoints that return malware data, and may adjust them without notice to enforce the scope described above. Use of the Endor Labs API is also subject to your agreement with Endor Labs and the Endor Labs Acceptable Use Policy, which control in the event of any conflict with this page.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.