- Block: Prevents the package installation and returns an error. Select this action when you want to ensure the package never reaches your environment.
- Warn: Allows the package installation and logs it as a warning event. Select this action when you want visibility without risking build interruptions.
- Allow safe versions only (curate): Removes the unsafe versions from the list of versions available to the package manager client. The client then resolves and installs a safe version instead of failing. Developers get a working version without seeing a block. This action is available for the malware and minimum package age conditions. See Allow safe versions to learn more.
- Exceptions: Specify packages to exclude from enforcement. When a package matches an exception, Package Firewall skips all checks and allows the installation. Exceptions override other conditions such as restricted licenses and minimum package age. Use them for approved packages that your builds must always be able to install. You can define exceptions for a single version, multiple versions, or a version range. For version ranges, the lower bound is inclusive and the upper bound is exclusive. If you do not configure version limits, the exception applies to every version of that package for the selected ecosystem. You can also use exceptions to allow a specific VS Code extension to install regardless of the policy. Exceptions apply only to the packages explicitly listed and do not cover transitive dependencies. Package Firewall blocks a flagged transitive dependency even if the parent package has an exception. Add that package as a separate exception to allow its installation.
- Vulnerabilities: Set a CVSS severity threshold. Endor Labs uses CVSS 3.x by default and evaluates vulnerability severity using that version. You can change the CVSS version for your namespace in System Settings. If a package has a known vulnerability at or above this threshold, Endor Labs applies the configured policy action.
- Restricted licenses: Define a list of SPDX licenses that your organization considers restricted. If a package version matches one of these licenses, Endor Labs applies the configured policy action.
- Minimum package age: Set a minimum number of hours that must pass after a version is published before Package Firewall treats it as safe. If a version is newer than this threshold, Endor Labs applies the configured policy action.
License requirementEnsure that you have the Package Firewall license to configure the policy. See Licenses to learn about the available licenses.
Allow safe versions
When you set the malware or minimum package age action to Allow safe versions only (curate), Package Firewall filters the versions it returns. The package manager client can then resolve from only safe versions. If no safe version is available, Package Firewall blocks the request.- The package manager client requests a list of available versions. Package Firewall removes any versions flagged as malware or younger than the minimum package age, then returns the remaining safe versions.
- The package manager client resolves a version from the safe list using its own resolver, then requests it.
- Package Firewall evaluates the selected version against any configured restricted license and vulnerability conditions. If the version matches one of those conditions, Package Firewall warns or blocks the installation according to the configured action.
- The installation requests an exact version, and that version is unsafe.
- All available versions are unsafe and Package Firewall has no safe version to return.
Action when a policy cannot be evaluated
You can configure what Package Firewall does if it fails to complete a policy check on a package. The check can fail if the malware feed, the policy service, the datastore, or the cache is unavailable, or if Package Firewall cannot fetch upstream registry metadata. Choose what Package Firewall does if the policy check fails:- Block (Fail-close): Rejects the package at install or resolve time.
- Warn (Fail-open): Allows the package installation and records the event. This is the default behavior.
HTTP 502 error, regardless of the configured action, and Endor Labs records the event.
If the policy check fails because of an authentication failure, Package Firewall rejects the request. If Package Firewall cannot find the package’s metadata in the upstream registry, it always allows the request, regardless of the configured action.
Configure the policy
You can configure the Package Firewall policy to block or warn on installations based on malware detection, exceptions, vulnerabilities, restricted licenses, and minimum package age conditions. Package Firewall evaluates each package against the conditions in the following order:- Exceptions
- Malware
- Vulnerability
- Restricted license
- Minimum package age
For VS Code extensions, the Package Firewall policy supports the malware and minimum package age conditions.
- Select User menu > Policies & Rules from the left sidebar.
- Select Package Firewall Policies.
Configure malware detection
Set the action Package Firewall takes when it detects malware in a package.- Select Malware.
- Choose Block, Warn, or Allow safe versions only (curate) as the action for a malicious package.
- Click Save.
Set a minimum package age
Block or warn on package installations when a version is newer than the threshold you define.- Select Minimum Package Age.
- In Minimum package age in hours, enter how many hours a version must be available before developers can install it. Enter a whole number from 0 to 2160, which is 90 days.
- Choose Block, Warn, or Allow safe versions only (curate) as the action.
- Click Save.
Restrict licenses
Define the SPDX licenses your organization considers restricted and how Package Firewall responds when it detects a restricted license. Restricted license enforcement does not apply to the Go and VS Code ecosystems. See Policy support by ecosystem for license detection limits in other ecosystems.- Select Restricted License.
- Click Add Licences.
- Search for and select the licenses you want to restrict. You can search by the SPDX name or identifier of the license.
- If you don’t find the licenses you are looking for, enter them in Add custom licenses. Separate multiple licenses with semicolons, such as
Custom-1.0; Custom-2.0. - Click Add & select.
- Click Save.
- Choose Block or Warn as the action.
- Click Save.

Set a vulnerability threshold
Block or warn on package installations that have vulnerabilities at or above a CVSS severity threshold. Vulnerability enforcement does not apply to the VS Code ecosystem.- Select Vulnerability.
- Choose Critical or High & Critical in Select CVSS severity.
- Choose Block or Warn as the action. Choose Do nothing to skip the vulnerability check.
- Click Save.
Set the action for packages that cannot be evaluated
Set the action Package Firewall takes if it cannot complete a policy check for a package. See Action when a policy cannot be evaluated to learn more.- Select Package not evaluated.
- In Action when a policy cannot be evaluated, choose Block (Fail-close) or Warn (Fail-open).
- Click Save.
Add exceptions
Add packages that Package Firewall always allows. Package Firewall skips all malware, license, vulnerability, and minimum package age checks for those installations.- Select Exceptions.
- Click Add package exceptions.
- Choose the Ecosystem.
-
Enter the package name in Package name. For a VS Code extension, use its identifier in
publisher.nameform, such asms-python.python, which appears as the unique identifier on the extension’s Marketplace page. -
Optional: Turn on Specify versions and apply the exception to specific versions. If you leave this off, the exception applies to all versions of the package.
- To exclude a specific version, choose Exact version and enter the version to exclude.
- To exclude a range of package versions, choose Version range and enter the lower and upper bounds. The lower bound is inclusive, and the upper bound is exclusive. For example, a range of
1.1.3to3.0.0matches version1.1.3, but not3.0.0.

- Click Save.
- Optional: Click Add more to add exceptions for other packages.
- Click the vertical three dots and select Edit. You can update the package manager, package name, and versions.
- Click Save.
Set up notifications
Configure Package Firewall notifications to send a Slack message when Package Firewall blocks or warns on a package installation. Each notification covers the conditions you choose, such as malware, minimum package age, restricted licenses, or vulnerabilities. You can configure multiple notifications for different conditions. Package Firewall sends a notification only when an event matches both a selected reason and a selected action. Your policy must already block or warn on that reason. Each policy shows whether notifications are set up for its selected action, with a link to view or create them. Notifications are not available for the Allow safe versions only (curate) and Do nothing actions. For the Package not evaluated reason, Package Firewall sends a Block notification if the action is Block (Fail-close) and a Warn notification if the action is Warn (Fail-open). Package Firewall groups these notifications into one message for each 5-minute window in the root namespace, with a count and a link to the records. If a notification fails to send, the event still appears in the logs. Ensure that you have at least one Slack notification target before you create a notification. Package Firewall supports only Slack targets. See Slack integration to set one up.- Select Notifications.
- Click Add notification.
- Enter a Name for the notification.
- Select one or more reasons: Malware, Minimum Package Age, Restricted License, Vulnerability, or Package not evaluated.
- Select one or more actions: Block or Warn.
- Search for and select the Slack targets that receive the notifications.
- Click Save.

- Click the vertical three dots and select Edit. You can update the notification name, reasons, actions, and Slack targets.
- Click Save.
Select package sources
By default, each ecosystem uses its public registry as the package source. You can select an AWS CodeArtifact repository as the package source for Maven, npm, PyPI, and RubyGems. Before selecting a package source, configure an AWS CodeArtifact repository as a package manager integration in your tenant’s root namespace. See Configure Package Firewall with AWS CodeArtifact to set up the integration.- Select Package Sources.
- Select the configured AWS CodeArtifact repository for each ecosystem. To add a repository that isn’t listed, select Add new. To use the public registry again, select Public registry.
- Click Save.