# Connect the Anthropic Compliance API Source: https://docs.endorlabs.com/agent-governance/claude-code/compliance-api/index Enroll your Claude Enterprise directory so Coding Agent Governance can match Claude Code sessions to organization roles and groups. Connect the Anthropic Compliance API to give Coding Agent Governance the organization identity behind each Claude Code session. Endor Labs syncs your Claude Enterprise directory on a schedule and resolves each session to a directory entry by corporate email. Session policies can then match on the developer's organization role or group, and audit records show a real identity instead of a laptop login. Enrollment runs through the REST API today. The Endor Labs user interface does not expose it yet. ## How it works After you enroll, the following happens: * **Sync**: Endor Labs pulls the organizations, users, groups, and group members from your Claude Enterprise directory on a schedule. It stores one directory entry per user in your namespace, keyed by corporate email. * **Resolve**: At the start of a Claude Code session, the hook looks up the developer's Claude account email in the synced directory. It caches the result for the session, so no later tool call pays for the lookup. * **Match**: Session policies with `role_matchers` or `group_matchers` evaluate against the resolved roles and groups. A session with no resolved identity skips those policies, so an unknown developer is never blocked by mistake. ## Before you begin Confirm the following requirements before you enroll: * Your Claude Enterprise organization has the Compliance API enabled. A primary owner enables it in claude.ai under **Organization settings** > **API**. * You are a primary owner or an organization owner in claude.ai. A primary owner can create a key that covers every organization under the parent organization. An organization owner can create a key for their own organization only. * You have the **Admin** role in the Endor Labs namespace that owns your Coding Agent Governance policies, either as a user or through an API key. * [endorctl](/setup-deployment/cli) is installed, or you have a way to call the [REST API](/developers-api/rest-api) directly. * Developers sign in to Claude Code with their Claude Enterprise account. Resolution keys on that account's email. See [How Endor Labs matches a developer](#how-endor-labs-matches-a-developer) to check how a session resolves. ## Create a Compliance Access Key Create the key in claude.ai, not in Claude Console. Admin API keys (`sk-ant-admin01-`) and Claude API keys (`sk-ant-api03-`) do not work, and enrollment rejects them. 1. Decide which organizations the key covers. A parent-organization key reaches every linked organization from one enrollment, and a single-organization key reaches one. 2. Sign in to claude.ai with a role that can create the key you decided on. Only a primary owner of the parent organization can create a parent-organization key. 3. In claude.ai, select **Organization settings** > **API**. 4. Under **Keys**, click **Create key**. 5. Enter a name, such as `endor-labs-directory-sync`. 6. Select the scopes `read:compliance_org_data` and `read:compliance_user_data`, leave every other scope clear, then click **Create**. 7. Copy the key, which starts with `sk-ant-api01-`. claude.ai shows it only once. 8. Store the key in your secret manager until you complete the enrollment. The two scopes cover the four calls the sync makes. Organizations and groups need `read:compliance_org_data`. Users and group members need `read:compliance_user_data`. Scopes are immutable after creation, so create a new key to change them. > [!WARNING] > > A key with `read:compliance_user_data` can also read chats, files, and session transcripts through the Compliance API. Endor Labs never calls those endpoints and stores the key encrypted in the platform secret manager, but treat the key as a production credential. Never add `delete:compliance_user_data`. For more information, refer to [Set up the Compliance API](https://platform.claude.com/docs/en/manage-claude/compliance-api-access). ## Enroll your organization Create a `ComplianceEnrollment` resource in the namespace that owns your Coding Agent Governance policies. Replace `` with that namespace and `` with the key you created. ```bash theme={null} endorctl api create -r ComplianceEnrollment -n "" --data '{ "meta": { "name": "anthropic-compliance" }, "spec": { "access_token": "", "enabled": true } }' ``` The request includes the following fields: * `spec.access_token`: The Compliance Access Key. Required. Endor Labs validates it against the Compliance API before it stores it, encrypts it, and never returns it. Reads show a redacted placeholder instead. * `spec.enabled`: Whether the sync runs. Defaults to `true`. Set it to `false` later to pause the sync without discarding the key. * `meta.name`: Optional. Defaults to `Anthropic Compliance Enrollment` when you omit it. Endor Labs rejects the request with a `400` status when the key is the wrong kind: * A key that can call the Anthropic model API, or that holds organization admin access, is too broad. Create a compliance key with only the two directory scopes. * A key that reaches no organization, or that reads organizations but not users, is too narrow. Add the missing scope on a new key. When the Compliance API is unreachable, the check is inconclusive and the enrollment proceeds. The same validation runs whenever you rotate the key. A namespace holds one enrollment. A second create returns a `409` status, because the sync reconciles the whole namespace against one directory. ## What the sync stores Endor Labs runs the sync every six hours. The sync stores one `AgentDirectoryEntry` per directory user in your namespace and reconciles the set on every run. It creates entries for new users, refreshes existing ones, and deletes users who left the directory. Each entry includes the following fields: * `meta.name`: The user's corporate email. This is the key the hook resolves against. * `spec.identity.email` and `spec.identity.display_name`: The email and full name from the directory. * `spec.identity.roles`: The user's Anthropic organization role. Anthropic defines `admin`, `billing`, `claude_code_user`, `developer`, `managed`, `membership_admin`, `owner`, `primary_owner`, and `user`. Endor Labs stores the value Anthropic returns and does not expand custom RBAC role names. * `spec.identity.groups`: The names of every Claude organization group the user belongs to. * `spec.organization_uuid`: The Claude organization that the entry came from. > [!NOTE] > > A directory entry names a person, so the sync brings your employee roster into your Endor Labs namespace. Review this data flow with your privacy team before you enroll. ## Verify the sync Confirm the enrollment exists and is enabled. The `access_token` field shows the redacted placeholder, never the key. ```bash theme={null} endorctl api list -r ComplianceEnrollment -n "" ``` After the next sync run, look up one developer you know is in the directory. Replace `` with their corporate email. ```bash theme={null} endorctl api list -r AgentDirectoryEntry -n "" --filter 'meta.name==""' ``` The response lists one entry with the developer's roles and groups under `spec.identity`. An empty list means the sync has not run yet, or the email is not in your Claude Enterprise directory. A tenant credential must filter on exactly one email, in the form `meta.name==""`. Endor Labs refuses any other filter, including no filter, with a `400` status, so no single request can return your whole directory. Only the Endor Labs sync itself lists the directory in bulk. ## How Endor Labs matches a developer At the start of every Claude Code session, the hook resolves the developer's email from the first source that answers and looks it up in the synced directory. **1. Claude account** The hook reads `claude auth status`. Only a Claude account login counts. An API key or a cloud provider, such as Amazon Bedrock, Google Vertex AI, or Microsoft Foundry, reports no email. **2. Local account record** The hook reads the local Claude Code account only when `claude auth status` cannot answer, and only for a Claude account login. **3. Claude Code environment** The hook uses `CLAUDE_CODE_USER_EMAIL` when `CLAUDE_CODE_ACCOUNT_UUID` and `CLAUDE_CODE_ORGANIZATION_UUID` are also set. **4. Managed settings** The hook uses `ENDOR_ACTOR` from the same `env` block as the Endor Labs credentials. See [Deploy hooks for Claude Code](/agent-governance/claude-code). **5. Operating system login** The hook uses the operating system login. The hook looks up a value only when it contains `@`, because directory entries are keyed by corporate email. The lookup has a two-second limit. If it times out, the server is unreachable, or the email is not in the directory, the session runs with no identity. Sub-agent sessions inherit the identity resolved for their parent session. The hook asserts the email from the developer's machine and does not authenticate it. Treat identity policies as a guardrail, not a security boundary. ## Use identity in a policy Set `role_matchers` and `group_matchers` on the `top_level` group of a session policy. Both are regex lists, and any match counts. The policy form does not expose these fields yet, so create and edit such policies through the REST API. See [Match on developer identity](/agent-governance/policies#match-on-developer-identity) to learn the matching rules. The following example alerts on every Claude Code session started by a developer in the `contractors` group. ```bash theme={null} endorctl api create -r AgentHookPolicyDefinition -n "" --data '{ "meta": { "name": "alert-contractor-sessions" }, "spec": { "policy": { "name": "Alert on contractor sessions", "enabled": true, "activity": { "session": { "top_level": { "group_matchers": ["^contractors$"] } } }, "action": { "match_type": "MATCH_TYPE_BLOCKLIST", "alert": { "message": "A contractor started a governed Claude Code session." } } } }, "propagate": true }' ``` Hooks pick the policy up at the next session start. ## Pause, rotate, or remove the enrollment Every command below needs the enrollment UUID. Capture it once. ```bash theme={null} UUID=$(endorctl api list -r ComplianceEnrollment -n "" | jq -r '.list.objects[0].uuid') ``` Endor Labs records every create, update, and delete of the enrollment in the audit log. ### Pause the sync To pause the sync and keep the synced entries, set `spec.enabled` to `false`. Set it back to `true` to resume. A paused enrollment keeps its roster, so identity policies keep matching against the last sync. ```bash theme={null} endorctl api update -r ComplianceEnrollment -n "" --uuid "$UUID" \ --field-mask spec.enabled --data '{ "spec": { "enabled": false } }' ``` ### Rotate the key To rotate the key, create a new Compliance Access Key with the same scopes, then update `spec.access_token`. Endor Labs validates the new key before it stores it. Delete the old key in claude.ai after the update succeeds. ```bash theme={null} endorctl api update -r ComplianceEnrollment -n "" --uuid "$UUID" \ --field-mask spec.access_token --data '{ "spec": { "access_token": "" } }' ``` ### Remove the enrollment To remove the enrollment, delete it. The next sync run purges every directory entry in the namespace, and sessions run with no identity from then on. Delete the key in claude.ai as well. ```bash theme={null} endorctl api delete -r ComplianceEnrollment -n "" --uuid "$UUID" ``` ## Limitations The Compliance API connection has the following limits: * Identity resolution runs for Claude Code sessions only. Cursor, Codex, GitHub Copilot, and Snowflake Cortex Code sessions have no organization identity. * `role_matchers` and `group_matchers` apply to session-level policies only. Tool, command, and file events do not match on identity. * A session with no resolved identity skips identity policies, so the hook never blocks a developer because a lookup failed. * The developer's machine asserts the email. Endor Labs does not authenticate it against the directory. * Role and group changes reach policy evaluation only after the next sync run. See [What the sync stores](#what-the-sync-stores) to find the sync schedule. * One enrollment per namespace. The sync reconciles the whole namespace against one directory. * The sync reaches only the organizations the key covers. A primary owner's parent-organization key covers every linked organization, and an organization owner's key covers one. * The policy form does not expose identity criteria. Manage identity criteria and enrollment through the REST API. ## Next steps Continue with the following pages: * See [Match on developer identity](/agent-governance/policies#match-on-developer-identity) to write session policies that use roles and groups. * See [Deploy hooks for Claude Code](/agent-governance/claude-code) to put hooks on the developer machines that resolve identity. * See [Triage policy violations](/agent-governance/policy-violations) to review the sessions your identity policies flag. # Deploy hooks for Claude Code Source: https://docs.endorlabs.com/agent-governance/claude-code/index Install Endor Labs hooks for Claude Code on macOS, Linux, and Windows developer machines to capture session, prompt, and tool events. Endor Labs hooks for Claude Code send a structured event for every session, user prompt, tool call, shell command, and file operation. The hook also enforces your Coding Agent Governance policies locally before each tool call runs. > [!NOTE] > > See [Endor Labs MCP server in Claude Code](/setup-deployment/mcp/claude-code) to query Endor Labs from the assistant. See [Endor Labs Agent Kit in Claude Code](/secure-ai-coding/agent-kit/claude-code) to install workflow agents. ## Before you begin Confirm the following requirements before you install the hook: * An admin has completed the [prerequisites](/agent-governance/prerequisites), including creating an API key with the **AI Audit User** role. * The target machine runs macOS, Linux, or Windows with Claude Code installed. Windows machines need a generated configuration. * [endorctl](/setup-deployment/cli) is on `PATH`. This applies to the hand-written configuration on this page. A generated configuration installs and updates endorctl automatically at session start. * `ENDOR_TOKEN` is not exported in the environment that launches Claude Code. Hooks authenticate with the API key and secret only. ## Create the hook configuration Claude Code passes the Endor Labs credentials and namespace to the hooks from the `env` block in `settings.json`, so the configuration is self-contained. Replace the placeholder values in `env` with your namespace and an API key issued for the **AI Audit User** role. To skip editing by hand, see [Generate a configuration in your browser](/agent-governance/mdm-deployment#generate-a-configuration-in-your-browser) to build `settings.json` or a macOS configuration profile. The generated file also installs and updates endorctl at session start. The `env` block also sets `ENDOR_AI_AUDIT_CACHE_ENABLED` to `true`. This turns on the local event cache. The hook sends cached events in batches, about every 30 seconds while hooks run. It also sends them at session start and end. The same cache carries the developer's resolved email to every tool event and subagent event in the session. Without it, those events fall back to the operating system login. Use the following configuration for macOS and Linux. ```json expandable theme={null} { "env": { "ENDOR_API": "https://api.endorlabs.com", "ENDOR_NAMESPACE": "", "ENDOR_API_CREDENTIALS_KEY": "", "ENDOR_API_CREDENTIALS_SECRET": "", "ENDOR_AI_AUDIT_CACHE_ENABLED": "true" }, "hooks": { "SessionStart": [ { "hooks": [ { "type": "command", "command": "endorctl --api $ENDOR_API --namespace $ENDOR_NAMESPACE --api-key $ENDOR_API_CREDENTIALS_KEY --api-secret $ENDOR_API_CREDENTIALS_SECRET ai-audit claudecode" } ] } ], "UserPromptSubmit": [ { "hooks": [ { "type": "command", "command": "endorctl --api $ENDOR_API --namespace $ENDOR_NAMESPACE --api-key $ENDOR_API_CREDENTIALS_KEY --api-secret $ENDOR_API_CREDENTIALS_SECRET ai-audit claudecode" } ] } ], "PreToolUse": [ { "matcher": ".*", "hooks": [ { "type": "command", "command": "endorctl --api $ENDOR_API --namespace $ENDOR_NAMESPACE --api-key $ENDOR_API_CREDENTIALS_KEY --api-secret $ENDOR_API_CREDENTIALS_SECRET ai-audit claudecode" } ] } ], "PostToolUse": [ { "matcher": ".*", "hooks": [ { "type": "command", "command": "endorctl --api $ENDOR_API --namespace $ENDOR_NAMESPACE --api-key $ENDOR_API_CREDENTIALS_KEY --api-secret $ENDOR_API_CREDENTIALS_SECRET ai-audit claudecode" } ] } ], "PostToolUseFailure": [ { "matcher": ".*", "hooks": [ { "type": "command", "command": "endorctl --api $ENDOR_API --namespace $ENDOR_NAMESPACE --api-key $ENDOR_API_CREDENTIALS_KEY --api-secret $ENDOR_API_CREDENTIALS_SECRET ai-audit claudecode" } ] } ], "ConfigChange": [ { "hooks": [ { "type": "command", "command": "endorctl --api $ENDOR_API --namespace $ENDOR_NAMESPACE --api-key $ENDOR_API_CREDENTIALS_KEY --api-secret $ENDOR_API_CREDENTIALS_SECRET ai-audit claudecode" } ] } ], "SessionEnd": [ { "hooks": [ { "type": "command", "command": "endorctl --api $ENDOR_API --namespace $ENDOR_NAMESPACE --api-key $ENDOR_API_CREDENTIALS_KEY --api-secret $ENDOR_API_CREDENTIALS_SECRET ai-audit claudecode" } ] } ] } } ``` On Windows, generate the file instead. See [Generate a configuration in your browser](/agent-governance/mdm-deployment#generate-a-configuration-in-your-browser) to produce it, or use the Claude Code tab under [Generate a configuration manually](/agent-governance/mdm-deployment#generate-a-configuration-manually). ## Install for one developer Use a per-user install for a single-machine trial or a personal setup. 1. Open `~/.claude/settings.json` in a text editor. Create the file if it does not exist. 2. Add the `env` and `hooks` blocks from the [hook configuration](#create-the-hook-configuration) to the file. If the file already has a `hooks` key, add the new event entries to it instead of adding a second `hooks` key. 3. Save the file and restart any active Claude Code session. ## Install on a managed fleet Claude Code reads enterprise hooks from a managed settings file. On macOS, the file is `/Library/Application Support/ClaudeCode/managed-settings.json`. On Linux, it is `/etc/claude-code/managed-settings.json`. Use your MDM, such as Jamf, Intune, Kandji, or JumpCloud, to deliver that file to each managed machine. The `env` block in the configuration holds the Endor Labs credentials, so you don't need a separate shell setup. When Claude Code starts with the `--managed-settings` flag, the hook includes those settings when it records the session's agent configuration. An administrator-managed source, such as the managed settings file or an MDM profile, takes precedence over the flag. The flag's settings apply under such a source only when it sets `parentSettingsBehavior` to `merge`. Allow lists from the flag stay in effect unless an administrator-managed source locks them, for example with `allowManagedPermissionRulesOnly`. > [!WARNING] > > On macOS, a configuration profile with the `com.anthropic.claudecode` payload type can lose its `env` block to another profile. macOS keeps one `env` block per payload type. If another product, for example a developer analytics tool, ships a profile with this payload type and sets `env`, the Endor Labs hooks can run without credentials. The hooks then stop reporting, with no error. > > Before you deploy, check your fleet for other profiles with this payload type. If one exists, combine both payloads into one profile. A combined profile can lose the Endor Labs `env` block again when either product changes its template, so repeat the [profile checks](/agent-governance/mdm-deployment#check-a-claude-code-macos-profile) after each profile push. > [!TIP] > > If your MDM's deployment script rejects the inline JSON payload, encode the configuration in Base64 in the script and decode it on the target machine. This avoids the quoting and escaping issues that some MDMs introduce when they deliver JSON. ## Add repository hooks Add `/.claude/settings.json` and commit it. Claude Code runs repository hooks alongside user and enterprise hooks, so security-sensitive projects can extend the configuration. For local additions outside source control, use `/.claude/settings.local.json`. ## Claude Code hook events used by Coding Agent Governance The hook processes these seven Claude Code events. \- Hook event: \`SessionStart\` What the hook does: Records the session and the agent version, model, and user for inventory. Refreshes the local policy cache. When a new session doesn't report its model, the hook records the default model pinned in Claude Code settings. It checks managed, then project, then user settings. \- Hook event: \`UserPromptSubmit\` What the hook does: Records that a prompt was submitted, for session counters in inventory. The prompt text stays on the developer's machine. \- Hook event: \`PreToolUse\` What the hook does: Checks Bash commands against \*\*Command Execution\*\* policies. Checks Read, Write, and Edit tool calls against \*\*File Access\*\* policies. Checks \`mcp\_\_\*\` tool calls against \*\*MCP Server Access\*\* policies. \- Hook event: \`PostToolUse\` What the hook does: Captures completed tool calls for inventory and post-action audit, including MCP tool responses. The hook stores a response that isn't a JSON object, such as an MCP tool result, under the \`output\` key. When an MCP tool runs a shell command, the event records the command. \- Hook event: \`PostToolUseFailure\` What the hook does: Captures failed tool calls for inventory. \- Hook event: \`ConfigChange\` What the hook does: Enforces \*\*File Access\*\* edit policies when a Claude Code configuration file changes. The \*\*FileAccess: block self-modification of Claude configuration\*\* system policies cover writes, edits, and deletes of the same files. \- Hook event: \`SessionEnd\` What the hook does: Sends any remaining cached events to Endor Labs when the session ends. The hook accepts and ignores Claude Code events outside this set, such as `Stop`, `PermissionRequest`, and `SubagentStart`, if a configuration registers them. An older configuration keeps working, but the hook records nothing for those events. When you [connect the Anthropic Compliance API](/agent-governance/claude-code/compliance-api), the `SessionStart` hook resolves the developer's organization identity from their Claude account email. Session policies can then match on the developer's organization roles and groups. An unreadable local policy cache does not disable enforcement, because the hook falls back to the built-in system policies. A successfully evaluated **Block** policy still stops the tool call. ## Run the hook in audit-only mode For an audit-only rollout, set `ENDOR_AI_AUDIT_NO_BLOCKING=true` in the Claude Code hook environment, in the same place as the Endor Labs credentials. [endorctl ai-audit](/developers-api/cli/commands/ai-audit) then downgrades every **Block** action to **Alert** at evaluation time. Endor Labs still records violations under **Policy Violations**, but the hook never denies a tool call. **Ask Permission** policies can still prompt the developer. Use audit-only mode to trial a new policy without interrupting developers. Unset the variable when you're ready to enforce. The values `1`, `t`, `T`, `true`, `TRUE`, and `True` turn the option on. Any other value, including an unset or empty variable, keeps enforcement on. ## Verify hooks are firing 1. Start a session in Claude Code and ask the agent to run a benign shell command, such as `ls`. 2. Select **Agent Governance** > **Inventory** from the left sidebar. The page opens on the **Workstation Inventory** tab. 3. Confirm the developer's Claude Code row shows a recent value under **Last Active**. If no row appears, see [Troubleshoot missing events](#troubleshoot-missing-events). ## What developers see when a policy fires When a policy with the **Block** action matches an event, the hook returns a deny response to Claude Code. Claude Code stops the tool call and shows the **User Message** to the developer when the hook response can carry it. A response that includes a message also explains that a governance policy denied the action and tells the agent not to work around the block. When a policy with the **Ask Permission** action matches, Claude Code asks the developer to confirm or deny, where it can pause at that event. Where it cannot pause, the outcome depends on the event type. Endor Labs records the match under **Policy Violations** as **Ask** either way. See [Enforcement behavior](/agent-governance/how-it-works#enforcement-behavior) to review the per-agent behavior. When a policy with the **Alert** action matches, the hook allows the action to proceed. Endor Labs records the event under **Policy Violations** for your security team to review. ## Troubleshoot missing events Hook errors never block the developer. If the hook cannot run or reach the Endor Labs API, Claude Code allows the tool call, and the event is missing from inventory with no error. Run these checks if a developer's actions never appear under **Workstation Inventory** or **Policy Violations**: * Confirm the developer has started at least one session. With the event cache enabled, the hook batches events and sends them to Endor Labs within about 30 seconds of hook activity. The hook also sends every queued event at session start and end. Inventory **Sessions**, **Last Active**, and counts can therefore lag the newest actions by that interval. * Confirm endorctl is on `PATH` in the environment that runs the hook. If the binary is not found, the hook does nothing and shows no error. Run `endorctl version` from the same shell to verify. * Confirm only one endorctl installation is active. If `endorctl ai-audit` fails with `Failed with non-blocking status code: No stderr output`, conflicting installations are the likely cause, such as an `npx`-provisioned endorctl alongside a Homebrew install. Keep one installation method per machine, remove the others, then run `endorctl version` to confirm. * Confirm the hook receives the Endor Labs API URL, namespace, API key, and secret. A hand-written configuration reads them from `ENDOR_API`, `ENDOR_NAMESPACE`, `ENDOR_API_CREDENTIALS_KEY`, and `ENDOR_API_CREDENTIALS_SECRET`. * Confirm `ENDOR_TOKEN` is not also exported alongside your Coding Agent Governance API key credentials in the hook environment. Hooks rely only on `ENDOR_API_CREDENTIALS_KEY` and `ENDOR_API_CREDENTIALS_SECRET`. `ENDOR_TOKEN` is redundant and, on older versions of endorctl, triggered a mixed-authentication error that blocked `endorctl ai-audit`. * Confirm the API key has the **AI Audit User** role and has not expired. * Confirm the developer restarted Claude Code after the hooks file or a policy changed. Claude Code reads the configuration and refreshes the local policy cache at session start. * Confirm the JSON file parses. A trailing comma silently disables every hook in the file. * Confirm the Endor Labs API is reachable from the environment that runs the hook. Network failures appear as gaps in the inventory. ### Hooks run, but no events reach Endor Labs On macOS, another profile with the `com.anthropic.claudecode` payload type can replace the Endor Labs `env` block. See [Check a Claude Code macOS profile](/agent-governance/mdm-deployment#check-a-claude-code-macos-profile) to confirm the cause and fix it, starting at step 5. ## Next steps With hooks deployed, continue with the following pages: * See [Triage policy violations](/agent-governance/policy-violations) to set your daily review workflow. * See [Coding Agent Governance overview](/agent-governance/overview) to track adoption and enforcement trends. # Deploy hooks for Codex Source: https://docs.endorlabs.com/agent-governance/codex/index Install Endor Labs hooks for the Codex CLI on macOS, Linux, and Windows developer machines to capture session, command, and file events. Endor Labs hooks for Codex send a structured event for every session, prompt, shell command, file patch, and MCP tool call the Codex CLI makes. The hook also enforces your Coding Agent Governance policies locally before each action runs. > [!NOTE] > > See [Endor Labs MCP server in OpenAI Codex](/setup-deployment/mcp/codex) to query Endor Labs from the assistant. See [Endor Labs Agent Kit in OpenAI Codex](/secure-ai-coding/agent-kit/codex) to install workflow agents. See [Deploy hooks for Codex](/agent-governance/codex) to capture events and enforce Coding Agent Governance policies. ## Before you begin Confirm the following requirements before you install the hook: * An admin has completed the [prerequisites](/agent-governance/prerequisites), including creating an API key with the **AI Audit User** role. * The target machine runs macOS or Linux with the Codex CLI installed. For Windows, generate the configuration. * [endorctl](/setup-deployment/cli) is on `PATH`. This applies to the hand-written configuration below. A generated configuration installs and updates endorctl automatically at session start. * For the hand-written configuration, the shell that launches Codex has these environment variables set: * `ENDOR_API` (for example, `https://api.endorlabs.com`) * `ENDOR_NAMESPACE` * `ENDOR_API_CREDENTIALS_KEY` * `ENDOR_API_CREDENTIALS_SECRET` > [!WARNING] > > Do not export `ENDOR_TOKEN` in the environment that runs the hook. Hooks authenticate with the API key and secret only, and on older versions of endorctl the extra token triggered a mixed-authentication error that blocked `endorctl ai-audit`. > [!TIP] > > Prefer generating this configuration over maintaining it by hand. The [in-browser generator](/agent-governance/mdm-deployment#generate-a-configuration-in-your-browser) assembles a Codex `requirements.toml` (or a macOS configuration profile) from the [mdm-scripts repository](https://github.com/endorlabs/mdm-scripts/tree/main/agent-governance) sources, and adds a bootstrap that installs and updates endorctl at session start. Codex reads hooks from the `[hooks]` table in `config.toml`. Every hook has its own settings, and each command sets `ENDOR_AI_AUDIT_CACHE_ENABLED=true` so the hook batches events locally and sends them at `Stop`. Use the following configuration for macOS and Linux. ```toml expandable theme={null} [[hooks.SessionStart]] [[hooks.SessionStart.hooks]] type = "command" command = "ENDOR_AI_AUDIT_CACHE_ENABLED=true endorctl --api $ENDOR_API --namespace $ENDOR_NAMESPACE --api-key $ENDOR_API_CREDENTIALS_KEY --api-secret $ENDOR_API_CREDENTIALS_SECRET ai-audit codex" [[hooks.UserPromptSubmit]] [[hooks.UserPromptSubmit.hooks]] type = "command" command = "ENDOR_AI_AUDIT_CACHE_ENABLED=true endorctl --api $ENDOR_API --namespace $ENDOR_NAMESPACE --api-key $ENDOR_API_CREDENTIALS_KEY --api-secret $ENDOR_API_CREDENTIALS_SECRET ai-audit codex" [[hooks.PreToolUse]] matcher = ".*" [[hooks.PreToolUse.hooks]] type = "command" command = "ENDOR_AI_AUDIT_CACHE_ENABLED=true endorctl --api $ENDOR_API --namespace $ENDOR_NAMESPACE --api-key $ENDOR_API_CREDENTIALS_KEY --api-secret $ENDOR_API_CREDENTIALS_SECRET ai-audit codex" [[hooks.PermissionRequest]] [[hooks.PermissionRequest.hooks]] type = "command" command = "ENDOR_AI_AUDIT_CACHE_ENABLED=true endorctl --api $ENDOR_API --namespace $ENDOR_NAMESPACE --api-key $ENDOR_API_CREDENTIALS_KEY --api-secret $ENDOR_API_CREDENTIALS_SECRET ai-audit codex" [[hooks.PostToolUse]] matcher = ".*" [[hooks.PostToolUse.hooks]] type = "command" command = "ENDOR_AI_AUDIT_CACHE_ENABLED=true endorctl --api $ENDOR_API --namespace $ENDOR_NAMESPACE --api-key $ENDOR_API_CREDENTIALS_KEY --api-secret $ENDOR_API_CREDENTIALS_SECRET ai-audit codex" [[hooks.Stop]] [[hooks.Stop.hooks]] type = "command" command = "ENDOR_AI_AUDIT_CACHE_ENABLED=true endorctl --api $ENDOR_API --namespace $ENDOR_NAMESPACE --api-key $ENDOR_API_CREDENTIALS_KEY --api-secret $ENDOR_API_CREDENTIALS_SECRET ai-audit codex" ``` On Windows, generate the file instead. See [Generate a configuration in your browser](/agent-governance/mdm-deployment#generate-a-configuration-in-your-browser) to produce it, or use the Codex tab under [Generate a configuration manually](/agent-governance/mdm-deployment#generate-a-configuration-manually). Codex also accepts the same events in a sibling `hooks.json` file, and it runs both sources additively. Define each event in one place only, or the hook fires twice per event. ## Install for one developer Use this for a single-machine trial or a personal install. 1. Open `~/.codex/config.toml` in a text editor. Create the file if it does not exist. 2. Append the `[hooks]` configuration shown in [Before you begin](#before-you-begin). 3. Save the file and start a new Codex session. If you set `CODEX_HOME`, edit `config.toml` in that directory instead. ## Install on a managed fleet Codex reads system-managed configuration from a fixed directory per platform. Use your MDM, such as Jamf, Intune, Kandji, or JumpCloud, to deliver the hook configuration to each managed machine. A hand-written configuration also needs the four Endor Labs environment variables in the shell that launches Codex, and its commands assume macOS or Linux. On Windows, deliver a generated configuration, which includes the credentials inline and needs no environment variables. * On macOS and Linux, deliver `/etc/codex/hooks.json`, or add the `[hooks]` table to `/etc/codex/requirements.toml`. Settings in `requirements.toml` take precedence over the other configuration layers. * On Windows, deliver `%ProgramData%\OpenAI\Codex\hooks.json` or `%ProgramData%\OpenAI\Codex\requirements.toml`. > [!NOTE] > > On macOS, environment variables set in `~/.zshrc` reach apps launched from a terminal but not apps launched from Spotlight. Ship the variables through your MDM payload, for example a `launchctl setenv` profile, so apps launched from Spotlight also receive them. > [!TIP] > > If your MDM's deployment script rejects the inline JSON payload, encode the configuration in Base64 in the script and decode it on the target machine. This avoids the quoting and escaping issues that some MDMs introduce when they deliver JSON. ## Per-repository overrides Add the `[hooks]` table to `/.codex/config.toml` and commit it. Repository hooks let security-sensitive projects extend the configuration. Codex loads repository configuration only after the developer trusts the project. A committed hook configuration takes effect once the project's `trust_level` is `trusted` in the developer's Codex configuration. ## Codex hook events used by Coding Agent Governance The following table lists every event the hook processes. \- Hook event: \`SessionStart\` Why it matters: Records the session, agent, model, and user for inventory. Captures the configuration, MCP server, and skills snapshot, and refreshes the local policy cache. Also fires on resume and compaction. \- Hook event: \`UserPromptSubmit\` Why it matters: Records that the developer submitted a prompt, for session counters in inventory. The prompt text stays on the developer's machine. \- Hook event: \`PreToolUse\` Why it matters: Enforces policies before a tool runs. Shell commands map to \*\*Command Execution\*\*, \`apply_patch\` file changes map to \*\*File Access\*\*, and MCP tools map to \*\*MCP Server Access\*\*. \- Hook event: \`PermissionRequest\` Why it matters: Enforces policies at Codex's own approval prompts, such as shell escalation and network access requests. \- Hook event: \`PostToolUse\` Why it matters: Captures completed shell, file, and MCP tool calls for inventory, including MCP responses. When an MCP tool runs a shell command, the event records the command. \- Hook event: \`Stop\` Why it matters: Sends cached events to Endor Labs. Fires once per turn, because Codex has no session-end event. If the hook itself errors out, Codex allows the action and keeps working, so a hook problem never blocks a developer. The usual cause is a missing binary. An unreadable local policy cache does not disable enforcement, because the hook falls back to the built-in system policies. A successfully evaluated **Block** policy still stops the action. Codex applies the **Ask Permission** action differently at each hook event: * At `PreToolUse`, Codex acts only on a deny response and cannot pause for approval, so only a **Block** policy denies the call. An **Ask Permission** policy lets the call proceed and shows the developer the **User Message** in the session. Codex also passes the same message to the model as context that instructs the agent to get confirmation before it continues. Endor Labs records the match under **Policy Violations** as **Ask**, the same way it records an **Alert**. * At `PermissionRequest`, an **Ask Permission** policy defers to Codex's own approval prompt, which asks the developer directly. Only a **Block** policy denies the escalation outright. * At `SessionStart`, Codex cannot prompt, so an **Ask Permission** policy ends the session and shows the reason. A **Block** policy ends the session the same way. Codex reports file changes through its `apply_patch` tool. **File Access** policies match each file in the patch individually, and the `Write`, `Edit`, and `apply_patch` matchers all target the same tool. ## Run the hook in audit-only mode For an audit-only rollout, set `ENDOR_AI_AUDIT_NO_BLOCKING=true` in the Codex hook environment, in the same place as the Endor Labs credentials. [endorctl ai-audit](/developers-api/cli/commands/ai-audit) then downgrades every **Block** action to **Alert** at evaluation time. Endor Labs still records violations under **Policy Violations**, but the hook never denies a action. **Ask Permission** policies can still prompt the developer. Use audit-only mode to trial a new policy without interrupting developers. Unset the variable when you're ready to enforce. The values `1`, `t`, `T`, `true`, `TRUE`, and `True` turn the option on. Any other value, including an unset or empty variable, keeps enforcement on. ## Verify hooks are firing 1. Start a session in Codex and ask the agent to run a benign shell command, such as `ls`. 2. Select **Agent Governance** > **Inventory** from the left sidebar. The page opens on the **Workstation Inventory** tab. 3. Confirm the developer's Codex row shows a recent value under **Last Active**. If no row appears, see [Troubleshoot missing events](#troubleshoot-missing-events). ## What developers see when a policy fires When a policy with the **Block** action matches an event, the hook returns a deny response to Codex. Codex stops the action and shows the **User Message** to the developer when the hook response can carry it. A response that includes a message also explains that a governance policy denied the action and tells the agent not to work around the block. When a policy with the **Ask Permission** action matches, Codex asks the developer to confirm or deny, where it can pause at that event. Where it cannot pause, the outcome depends on the event type. Endor Labs records the match under **Policy Violations** as **Ask** either way. See [Enforcement behavior](/agent-governance/how-it-works#enforcement-behavior) to review the per-agent behavior. When a policy with the **Alert** action matches, the hook allows the action to proceed. Endor Labs records the event under **Policy Violations** for your security team to review. ## Troubleshoot missing events Hook errors never block the developer. If the hook cannot run or reach the Endor Labs API, Codex allows the action, and the event is missing from inventory with no error. Run these checks if a developer's actions never appear under **Workstation Inventory** or **Policy Violations**: * Confirm the developer has started at least one session. With the event cache enabled, the hook batches events and sends them to Endor Labs within about 30 seconds of hook activity. The hook also sends every queued event at session start and end. Inventory **Sessions**, **Last Active**, and counts can therefore lag the newest actions by that interval. * Confirm endorctl is on `PATH` in the environment that runs the hook. If the binary is not found, the hook does nothing and shows no error. Run `endorctl version` from the same shell to verify. * Confirm only one endorctl installation is active. If `endorctl ai-audit` fails with `Failed with non-blocking status code: No stderr output`, conflicting installations are the likely cause, such as an `npx`-provisioned endorctl alongside a Homebrew install. Keep one installation method per machine, remove the others, then run `endorctl version` to confirm. * Confirm the hook receives the Endor Labs API URL, namespace, API key, and secret. A hand-written configuration reads them from `ENDOR_API`, `ENDOR_NAMESPACE`, `ENDOR_API_CREDENTIALS_KEY`, and `ENDOR_API_CREDENTIALS_SECRET`. * Confirm `ENDOR_TOKEN` is not also exported alongside your Coding Agent Governance API key credentials in the hook environment. Hooks rely only on `ENDOR_API_CREDENTIALS_KEY` and `ENDOR_API_CREDENTIALS_SECRET`. `ENDOR_TOKEN` is redundant and, on older versions of endorctl, triggered a mixed-authentication error that blocked `endorctl ai-audit`. * Confirm the API key has the **AI Audit User** role and has not expired. * Confirm the developer restarted Codex after the hooks file or a policy changed. Codex reads the configuration and refreshes the local policy cache at session start. * Confirm the JSON file parses. A trailing comma silently disables every hook in the file. * Confirm the Endor Labs API is reachable from the environment that runs the hook. Network failures appear as gaps in the inventory. ## Next steps With hooks deployed, continue with the following pages: * See [Triage policy violations](/agent-governance/policy-violations) to set your daily review workflow. * See [Coding Agent Governance overview](/agent-governance/overview) to track adoption and enforcement trends. # Deploy hooks for GitHub Copilot Source: https://docs.endorlabs.com/agent-governance/copilot/index Install Endor Labs hooks for the GitHub Copilot CLI and VS Code agent mode to capture session, command, file, and MCP tool events. Endor Labs hooks for GitHub Copilot send a structured event for every session, prompt, shell command, file operation, and MCP tool call. The hook covers the Copilot CLI and VS Code agent mode, and enforces your Coding Agent Governance policies locally before each action runs. Copilot on GitHub.com, such as web chat and pull request reviews, runs on GitHub's infrastructure and is out of scope. ## Before you begin Confirm the following requirements before you install the hook: * An admin has completed the [prerequisites](/agent-governance/prerequisites), including creating an API key with the **AI Audit User** role. * The target machine runs macOS or Linux with the Copilot CLI or VS Code with Copilot installed. For Windows, generate the configuration. * [endorctl](/setup-deployment/cli) is on `PATH`. This applies to the hand-written configuration below. A generated configuration installs and updates endorctl automatically at session start. * For the hand-written configuration, the environment that launches Copilot has these environment variables set: * `ENDOR_API` (for example, `https://api.endorlabs.com`) * `ENDOR_NAMESPACE` * `ENDOR_API_CREDENTIALS_KEY` * `ENDOR_API_CREDENTIALS_SECRET` > [!WARNING] > > Do not export `ENDOR_TOKEN` in the environment that runs the hook. Hooks authenticate with the API key and secret only, and on older versions of endorctl the extra token triggered a mixed-authentication error that blocked `endorctl ai-audit`. Use the following hook configuration for macOS and Linux. The single `command` key is also the only command key that VS Code agent mode reads. Each command sets `ENDOR_AI_AUDIT_CACHE_ENABLED=true` so the hook batches events locally and sends them at `Stop` and `SessionEnd`. ```json expandable theme={null} { "version": 1, "hooks": { "SessionStart": [ { "type": "command", "command": "ENDOR_AI_AUDIT_CACHE_ENABLED=true endorctl ai-audit copilot", "timeoutSec": 30, "timeout": 30 } ], "UserPromptSubmit": [ { "type": "command", "command": "ENDOR_AI_AUDIT_CACHE_ENABLED=true endorctl ai-audit copilot", "timeoutSec": 30, "timeout": 30 } ], "PreToolUse": [ { "type": "command", "command": "ENDOR_AI_AUDIT_CACHE_ENABLED=true endorctl ai-audit copilot", "timeoutSec": 30, "timeout": 30 } ], "PostToolUse": [ { "type": "command", "command": "ENDOR_AI_AUDIT_CACHE_ENABLED=true endorctl ai-audit copilot", "timeoutSec": 30, "timeout": 30 } ], "PostToolUseFailure": [ { "type": "command", "command": "ENDOR_AI_AUDIT_CACHE_ENABLED=true endorctl ai-audit copilot", "timeoutSec": 30, "timeout": 30 } ], "Stop": [ { "type": "command", "command": "ENDOR_AI_AUDIT_CACHE_ENABLED=true endorctl ai-audit copilot", "timeoutSec": 30, "timeout": 30 } ], "SessionEnd": [ { "type": "command", "command": "ENDOR_AI_AUDIT_CACHE_ENABLED=true endorctl ai-audit copilot", "timeoutSec": 30, "timeout": 30 } ] } } ``` On Windows, generate the file instead. PowerShell does not accept the `KEY=value` prefix, so the generated Windows command sets the variable inside an encoded PowerShell payload. See [Generate a configuration in your browser](/agent-governance/mdm-deployment#generate-a-configuration-in-your-browser) to produce it, or use the GitHub Copilot tab under [Generate a configuration manually](/agent-governance/mdm-deployment#generate-a-configuration-manually). > [!NOTE] > > Use the capitalized event names shown above in both the Copilot CLI and VS Code. They make the Copilot CLI include the event name in the hook payload. > > The Copilot CLI reads `timeoutSec` and VS Code reads `timeout`, so the configuration sets both to the same value. endorctl sets its own shorter time limit, 5 seconds by default. If the hook runs out of time, Copilot allows the action, so the hook never holds an action for the full 30 seconds. ## Install for one developer Use this for a single-machine trial or a personal install. Both the Copilot CLI and VS Code agent mode read personal hooks. 1. Open `~/.copilot/hooks/endor.json` in a text editor. Create the file and directory if they do not exist. 2. Paste the configuration shown in [Before you begin](#before-you-begin). 3. Save the file and start a new Copilot session. If you set `COPILOT_HOME`, create the file under that directory instead. ## Install for a repository Repository hooks apply to both the Copilot CLI and VS Code agent mode, so they are the lever for covering VS Code users on a managed fleet. Add `/.github/hooks/endor.json` with the same configuration and commit it. ## Install on a managed fleet Copilot combines hooks from four levels: policy, user, project, and plugins. The policy level belongs to the administrator, and it is the one level a developer can't bypass. Hooks installed there ignore `disableAllHooks` and run regardless of folder trust. Writing the file needs elevated privileges, so developers can't edit it. Use your MDM, such as Jamf, Intune, Kandji, or JumpCloud, to deliver the hook file to the policy directory for each platform: * On macOS and Linux, deliver `/etc/github-copilot/policy.d/endor.json`. * On Windows, deliver `C:\ProgramData\GitHub\Copilot\policy.d\endor.json`. Own the file as root with mode `0644`. Copilot reads it as the developer's user, so mode `0600` blocks it. Only the Copilot CLI reads the policy level. VS Code agent mode reads hooks from the workspace `.github/hooks` directory, the user `~/.copilot/hooks` directory, `chat.hookFilesLocations`, and plugins. None of those paths belongs to the administrator, and the VS Code `ChatHooks` enterprise policy only turns hooks on or off. Cover VS Code agent mode by committing the repository-level file to the repositories your developers work in. Developers can remove that file, so you can't guarantee coverage until GitHub ships a managed hook path for VS Code. Generate the policy file with the [in-browser generator](/agent-governance/mdm-deployment#generate-a-configuration-in-your-browser) instead of maintaining it by hand. The generated file writes the credentials into every hook command, so managed machines don't need the four environment variables. It also adds a bootstrap that installs and updates endorctl at session start. See [Deploy Copilot policy hooks](/agent-governance/mdm-deployment#deploy-copilot-policy-hooks) to deliver the file to the policy directory. See [Keep a fleet current with the scheduled runner](/agent-governance/mdm-deployment#keep-a-fleet-current-with-the-scheduled-runner) to deliver it with the runner. > [!NOTE] > > On macOS, environment variables set in `~/.zshrc` reach apps launched from a terminal but not apps launched from Spotlight. Ship the variables through your MDM payload, for example a `launchctl setenv` profile, so apps launched from Spotlight also receive them. > [!TIP] > > If your MDM's deployment script rejects the inline JSON payload, encode the configuration in Base64 in the script and decode it on the target machine. This avoids the quoting and escaping issues that some MDMs introduce when they deliver JSON. ## Copilot hook events used by Coding Agent Governance The following table lists every event the hook processes. \- Hook event: \`SessionStart\` Why it matters: Records the session, agent, and user for inventory. Captures the configuration and MCP server snapshot, and refreshes the local policy cache. \- Hook event: \`UserPromptSubmit\` Why it matters: Records that a prompt was submitted, for session counters in inventory. The prompt text stays on the developer's machine. \- Hook event: \`PreToolUse\` Why it matters: Enforces policies before a tool runs. Shell commands map to \*\*Command Execution\*\*, file operations map to \*\*File Access\*\*, and MCP tools map to \*\*MCP Server Access\*\*. \- Hook event: \`PostToolUse\` Why it matters: Captures completed tool calls for inventory. When an MCP tool runs a shell command, the event records the command. \- Hook event: \`PostToolUseFailure\` Why it matters: Captures failed tool calls for inventory, through the same post-tool channel. The event records that the call failed. \- Hook event: \`Stop\` Why it matters: Marks the end of a turn for inventory. When the event cache is enabled, also sends queued events. \- Hook event: \`SessionEnd\` Why it matters: Marks the end of a CLI session for inventory. When the event cache is enabled, also sends remaining events. The hook accepts and ignores Copilot events outside this set, such as `SubagentStart`, `SubagentStop`, `PreCompact`, and `errorOccurred`, if a configuration registers them. An older configuration keeps working, but those events record nothing. If the hook itself errors out, Copilot allows the action and keeps working, so a hook problem never blocks a developer. The usual cause is a missing binary. An unreadable local policy cache does not disable enforcement, because the hook falls back to the built-in system policies. A successfully evaluated **Block** policy still stops the action. On a policy match at `PreToolUse`, a **Block** policy denies the tool call. An **Ask Permission** policy prompts the developer in VS Code agent mode only. The Copilot CLI acts on deny but ignores ask, so on CLI sessions an **Ask Permission** policy lets the call proceed and records it, the same way **Alert** behaves. An **Alert** policy lets the call proceed and records it in both the CLI and VS Code. Session start is not a blocking point for Copilot. A session-level policy match shows as a governance notice in the session instead. ## Run the hook in audit-only mode For an audit-only rollout, set `ENDOR_AI_AUDIT_NO_BLOCKING=true` in the GitHub Copilot hook environment, in the same place as the Endor Labs credentials. [endorctl ai-audit](/developers-api/cli/commands/ai-audit) then downgrades every **Block** action to **Alert** at evaluation time. Endor Labs still records violations under **Policy Violations**, but the hook never denies a action. **Ask Permission** policies can still prompt the developer. Use audit-only mode to trial a new policy without interrupting developers. Unset the variable when you're ready to enforce. The values `1`, `t`, `T`, `true`, `TRUE`, and `True` turn the option on. Any other value, including an unset or empty variable, keeps enforcement on. ## Verify hooks are firing 1. Start a session in GitHub Copilot and ask the agent to run a benign shell command, such as `ls`. 2. Select **Agent Governance** > **Inventory** from the left sidebar. The page opens on the **Workstation Inventory** tab. 3. Confirm the developer's GitHub Copilot row shows a recent value under **Last Active**. If no row appears, see [Troubleshoot missing events](#troubleshoot-missing-events). ## What developers see when a policy fires When a policy with the **Block** action matches an event, the hook returns a deny response to GitHub Copilot. GitHub Copilot stops the action and shows the **User Message** to the developer when the hook response can carry it. A response that includes a message also explains that a governance policy denied the action and tells the agent not to work around the block. When a policy with the **Ask Permission** action matches, GitHub Copilot asks the developer to confirm or deny, where it can pause at that event. Where it cannot pause, the outcome depends on the event type. Endor Labs records the match under **Policy Violations** as **Ask** either way. See [Enforcement behavior](/agent-governance/how-it-works#enforcement-behavior) to review the per-agent behavior. When a policy with the **Alert** action matches, the hook allows the action to proceed. Endor Labs records the event under **Policy Violations** for your security team to review. ## Troubleshoot missing events Hook errors never block the developer. If the hook cannot run or reach the Endor Labs API, GitHub Copilot allows the action, and the event is missing from inventory with no error. Run these checks if a developer's actions never appear under **Workstation Inventory** or **Policy Violations**: * Confirm the developer has started at least one session. With the event cache enabled, the hook batches events and sends them to Endor Labs within about 30 seconds of hook activity. The hook also sends every queued event at session start and end. Inventory **Sessions**, **Last Active**, and counts can therefore lag the newest actions by that interval. * Confirm endorctl is on `PATH` in the environment that runs the hook. If the binary is not found, the hook does nothing and shows no error. Run `endorctl version` from the same shell to verify. * Confirm only one endorctl installation is active. If `endorctl ai-audit` fails with `Failed with non-blocking status code: No stderr output`, conflicting installations are the likely cause, such as an `npx`-provisioned endorctl alongside a Homebrew install. Keep one installation method per machine, remove the others, then run `endorctl version` to confirm. * Confirm the hook receives the Endor Labs API URL, namespace, API key, and secret. A hand-written configuration reads them from `ENDOR_API`, `ENDOR_NAMESPACE`, `ENDOR_API_CREDENTIALS_KEY`, and `ENDOR_API_CREDENTIALS_SECRET`. * Confirm `ENDOR_TOKEN` is not also exported alongside your Coding Agent Governance API key credentials in the hook environment. Hooks rely only on `ENDOR_API_CREDENTIALS_KEY` and `ENDOR_API_CREDENTIALS_SECRET`. `ENDOR_TOKEN` is redundant and, on older versions of endorctl, triggered a mixed-authentication error that blocked `endorctl ai-audit`. * Confirm the API key has the **AI Audit User** role and has not expired. * Confirm the developer restarted GitHub Copilot after the hooks file or a policy changed. GitHub Copilot reads the configuration and refreshes the local policy cache at session start. * Confirm the JSON file parses. A trailing comma silently disables every hook in the file. * Confirm the Endor Labs API is reachable from the environment that runs the hook. Network failures appear as gaps in the inventory. ## Next steps With hooks deployed, continue with the following pages: * See [Triage policy violations](/agent-governance/policy-violations) to set your daily review workflow. * See [Coding Agent Governance overview](/agent-governance/overview) to track adoption and enforcement trends. # Deploy hooks for Snowflake Cortex Code Source: https://docs.endorlabs.com/agent-governance/cortex-code/index Install Endor Labs hooks for the Snowflake Cortex Code CLI to capture session, prompt, command, file, and MCP tool events. Endor Labs hooks for Snowflake Cortex Code send a structured event for every session, prompt, shell command, file operation, and MCP tool call. The hook also enforces your Coding Agent Governance policies locally before each tool call runs. Cortex Code reads hooks in the Claude Code hooks format, so the configuration has the same shape as a Claude Code configuration with its own command. ## Before you begin Confirm the following requirements before you install the hook: * An admin has completed the [prerequisites](/agent-governance/prerequisites), including creating an API key with the **AI Audit User** role. * The target machine runs macOS with the Cortex Code CLI (`cortex`) installed. Endor Labs hasn't verified Cortex Code on Linux or native Windows yet. * [endorctl](/setup-deployment/cli) is on `PATH`. * The environment that launches Cortex Code has these environment variables set: * `ENDOR_API` (for example, `https://api.endorlabs.com`) * `ENDOR_NAMESPACE` * `ENDOR_API_CREDENTIALS_KEY` * `ENDOR_API_CREDENTIALS_SECRET` > [!WARNING] > > Do not export `ENDOR_TOKEN` in the environment that runs the hook. Hooks authenticate with the API key and secret only, and on older versions of endorctl the extra token triggered a mixed-authentication error that blocked `endorctl ai-audit`. Every event runs `endorctl ai-audit cortexcode` with no flags, so endorctl reads the credentials from the environment. Use the following hook configuration. ```json expandable theme={null} { "hooks": { "SessionStart": [ { "matcher": "*", "hooks": [{ "type": "command", "command": "endorctl ai-audit cortexcode", "timeout": 30 }] } ], "UserPromptSubmit": [ { "matcher": "*", "hooks": [{ "type": "command", "command": "endorctl ai-audit cortexcode", "timeout": 30 }] } ], "PreToolUse": [ { "matcher": "*", "hooks": [{ "type": "command", "command": "endorctl ai-audit cortexcode", "timeout": 30 }] } ], "PostToolUse": [ { "matcher": "*", "hooks": [{ "type": "command", "command": "endorctl ai-audit cortexcode", "timeout": 30 }] } ], "SessionEnd": [ { "matcher": "*", "hooks": [{ "type": "command", "command": "endorctl ai-audit cortexcode", "timeout": 30 }] } ] } } ``` The event cache is on by default, so you don't need to set `ENDOR_AI_AUDIT_CACHE_ENABLED`. The hook queues events locally and sends them on its next run after 30 seconds, at `SessionEnd`, and at the next `SessionStart`. The configuration registers no `Stop` hook, so events from the end of a session can arrive late, but they are not lost. The `timeout` value is the longest Cortex Code waits for each hook. endorctl sets its own shorter time limit, 5 seconds by default. If the hook runs out of time, Cortex Code allows the tool call. ## Install for one developer Use this for a single-machine trial or a personal install. 1. Open `~/.snowflake/cortex/hooks.json` in a text editor. Create the file if it does not exist. 2. Paste the configuration shown in [Before you begin](#before-you-begin). If the file already has hooks, add the Endor Labs entries under its existing `hooks` key. 3. Save the file and start a new Cortex Code session. Cortex Code uses `$CORTEX_HOME` if set, else `$SNOWFLAKE_HOME/cortex`, else `~/.snowflake/cortex`. Put `hooks.json` in the first folder that applies. See [Known limitations](#known-limitations) for how a custom home affects inventory. ## Install for a repository Add the Endor Labs entries from the configuration under the `hooks` key of `/.cortex/settings.json`, and commit the file. Every developer who runs Cortex Code in that repository then runs the hook. ## Install on a managed fleet Cortex Code has no managed hooks path, so an administrator can't lock the hooks in place. A developer can edit or remove both the user file and the repository file. You can't guarantee coverage on every machine, so combine the following: * Use your MDM, such as Jamf, Intune, Kandji, or JumpCloud, to deliver `~/.snowflake/cortex/hooks.json` and the four environment variables to each developer. * Commit `.cortex/settings.json` with the hooks to the repositories your developers work in. The [in-browser generator](/agent-governance/mdm-deployment#generate-a-configuration-in-your-browser) and the mdm-scripts repository don't cover Cortex Code yet, so maintain the file by hand. > [!NOTE] > > On macOS, environment variables set in `~/.zshrc` reach apps launched from a terminal but not apps launched from Spotlight. Ship the variables through your MDM payload, for example a `launchctl setenv` profile, so apps launched from Spotlight also receive them. > [!TIP] > > If your MDM's deployment script rejects the inline JSON payload, encode the configuration in Base64 in the script and decode it on the target machine. This avoids the quoting and escaping issues that some MDMs introduce when they deliver JSON. ## Configuration the hook reads at session start At `SessionStart`, the hook takes a snapshot of the Cortex Code configuration for inventory and session policies. It reads the snapshot once per session and doesn't rescan during the session. * **User level**: `settings.json`, `hooks.json`, `mcp.json`, and `permissions.json` under `$SNOWFLAKE_HOME/cortex` (default `~/.snowflake/cortex`). The hook also reads hooks from `~/.claude/settings.json` and MCP servers from `~/.claude.json`. * **Project level**: `.cortex/settings.json`, `.cortex/settings.local.json`, `.claude/settings.json`, and `.claude/settings.local.json`. The `.claude` files contribute hooks only. The project directory is `CORTEX_PROJECT_DIR` when set, otherwise the hook's working directory, not the Git root. * **MCP servers**: The hook merges servers by name, and the last source wins. The order is the top level of `~/.claude.json`, then its entry for the project directory, then `$SNOWFLAKE_HOME/cortex/mcp.json`. * **Enterprise MCP servers**: Servers from the managed `files.mcpFile` setting stay separate from the merged list. The setting must be an absolute path. The hook reads `~/.claude.json` only when `importClaudeMcpServers` is on, which is the default. A project-level `importClaudeMcpServers` value overrides the user-level one. ## Managed settings and MDM policy Cortex Code accepts a managed settings file and an MDM policy from your administrator. Neither one delivers hooks, but the hook reads both at `SessionStart` to report sandbox posture, permission bypass, and enterprise MCP servers. ### Managed settings file The hook reads the managed settings file from a fixed path on each platform. \- Platform: macOS Path: \`/Library/Application Support/Cortex/managed-settings.json\` Trust check: Owned by root and not writable by group or others \- Platform: Linux Path: \`/etc/cortex/managed-settings.json\` Trust check: None \- Platform: Windows Path: \`%ProgramData%\Cortex\managed-settings.json\` Trust check: None. Endor Labs doesn't check the file's access control list The hook ignores the whole file and reports the sandbox posture as **Unknown** when the file fails its trust check or any of the following validations: * `version` is exactly `"1.0"`. * `permissions.defaultMode` is `allow` or `deny`. * `sql.defaultMode` is `read-only` or `write`. * `sql.lockMode` appears only together with `sql.defaultMode`. * `settings.forceSandboxMode` is `regular` or `autoAllow`. * `defaults.theme` is `dark`, `light`, or `pro`. * `required.minimumVersion` is a semantic version without a `v` prefix. ### MDM policy On macOS and Windows, the hook also reads a Cortex Code MDM policy. The policy holds the managed settings JSON as a Base64-encoded value. * **macOS**: Preference domain `com.snowflake.coco`. The hook reads `/Library/Managed Preferences//com.snowflake.coco.plist`, then `/Library/Managed Preferences/com.snowflake.coco.plist`. For each key, the first file that sets it wins. * **Windows**: Registry key `HKLM\SOFTWARE\Policies\Microsoft\CortexCode`. \- Key: \`CortexManagedSettingsBase64\` Type: String (\`REG_SZ\` on Windows) Value: The managed settings JSON, Base64-encoded. The value can be up to 256 KiB. \- Key: \`CortexManagedSettingsBase64Enabled\` Type: Boolean (\`REG_DWORD\` on Windows) Value: Turns the policy on when absent or true. Set it to false (\`0\`) to turn the policy off and apply the managed settings file instead. The MDM policy wins over the managed settings file for `settings.forceSandboxEnabled`, the whole `permissions` block, and `files.mcpFile`. Every other setting comes from the file. Any of the following MDM policy failures reports the sandbox posture as **Unknown**: * The value is unreadable or larger than 256 KiB. * The value isn't valid Base64, isn't valid JSON, or fails schema validation. * The property list is larger than 1 MiB, or `plutil` times out. ### Sandbox posture The hook resolves each session's sandbox posture in the following order, and the first rule that applies wins: 1. A trusted managed `settings.forceSandboxEnabled: true` reports **Sandboxed**. 2. Any warning while reading the configuration, such as an ignored managed file or a failed MDM policy, reports **Unknown**. 3. The first explicit `sandbox.enabled` value in the project `.cortex/settings.json`, then in `$SNOWFLAKE_HOME/cortex/settings.json`, sets the posture. 4. Otherwise, the posture is **Not sandboxed**. A managed `forceSandboxEnabled: false` doesn't force the sandbox off. On Windows, `forceSandboxEnabled: true` in the managed settings file alone reports **Unknown**, never **Sandboxed**, because the hook can't trust the file. An MDM policy that forces the sandbox reports **Sandboxed**. See [Sandbox posture](/agent-governance/inventory#sandbox-posture) to read the posture in inventory, and [Session sandbox policies](/agent-governance/policies#session-sandbox-policies) to act on it. ### Permission bypass The hook reports permission bypass (`dangerouslyAllowAll`) from the managed level only. When managed settings are present, the hook reports bypass as disabled unless they set `dangerouslyAllowAll: true`. A user-level `dangerouslyAllowAll` value never reports, and the Windows managed settings file alone never reports bypass state. ## Cortex Code hook events used by Coding Agent Governance The following table lists every event the hook processes. \- Hook event: \`SessionStart\` Why it matters: Records the session, agent version, and user for inventory. Captures the configuration snapshot, refreshes the local policy cache, and sends queued events. The hook reads the version from \`cortex --version\` and waits up to 1 second for it. \- Hook event: \`UserPromptSubmit\` Why it matters: Records that a prompt was submitted, for session counters in inventory. The prompt text stays on the developer's machine. \- Hook event: \`PreToolUse\` Why it matters: Enforces policies before a tool runs. See \[How Cortex Code tools map to policies]\(#how-cortex-code-tools-map-to-policies). \- Hook event: \`PostToolUse\` Why it matters: Captures completed tool calls for inventory. \- Hook event: \`SessionEnd\` Why it matters: Marks the end of a session for inventory and sends remaining events. The hook accepts and ignores `Stop`, `Notification`, `PermissionRequest`, and `SubagentStop` if a configuration registers them. Those events record nothing. ### How Cortex Code tools map to policies The hook maps each Cortex Code tool to a policy template by tool name. \- Cortex Code tool: \`Bash\` Policy template: \*\*Command Execution\*\* \- Cortex Code tool: \`Read\`, \`Write\`, \`Edit\`, \`NotebookEdit\` Policy template: \*\*File Access\*\* \- Cortex Code tool: \`mcp\_\_\\_\_\\` Policy template: \*\*MCP Server Access\*\* \- Cortex Code tool: Any other tool, such as \`sql_execute\`, \`Task\`, \`Glob\`, or \`agent_output\` Policy template: None. Endor Labs records a generic tool call. No policy template inspects the SQL that `sql_execute` runs. Cortex Code names its sub-agent tool `Task`, so policies written for the Claude Code `Agent` tool don't match it. ### Enforcement behavior If the hook can't run or doesn't finish in time, Cortex Code allows the tool call and keeps working, so a hook problem never blocks a developer. The usual cause of a hook that can't run is a missing binary. endorctl gives each hook run a time limit of 5 seconds by default, or 10 seconds when your policies use the AI judge. `ENDOR_AI_AUDIT_HOOK_TIMEOUT` overrides the limit. An unreadable local policy cache does not disable enforcement, because the hook falls back to the built-in system policies. A successfully evaluated **Block** policy still stops the tool call. On a policy match at `PreToolUse`, a **Block** policy denies the tool call, and Cortex Code shows the reason from the policy. An **Ask Permission** policy shows Cortex Code's own permission prompt, without the reason from the policy. An **Alert** policy lets the call proceed and shows the developer nothing, so only Endor Labs records the match. ### User attribution The hook attributes Cortex Code events to the value of `ENDOR_ACTOR` when the hook environment sets it. Otherwise, it uses the operating system login. ## Run the hook in audit-only mode For an audit-only rollout, set `ENDOR_AI_AUDIT_NO_BLOCKING=true` in the Snowflake Cortex Code hook environment, in the same place as the Endor Labs credentials. [endorctl ai-audit](/developers-api/cli/commands/ai-audit) then downgrades every **Block** action to **Alert** at evaluation time. Endor Labs still records violations under **Policy Violations**, but the hook never denies a tool call. **Ask Permission** policies can still prompt the developer. Use audit-only mode to trial a new policy without interrupting developers. Unset the variable when you're ready to enforce. The values `1`, `t`, `T`, `true`, `TRUE`, and `True` turn the option on. Any other value, including an unset or empty variable, keeps enforcement on. ## Verify hooks are firing 1. Start a session in Snowflake Cortex Code and ask the agent to run a benign shell command, such as `ls`. 2. Select **Agent Governance** > **Inventory** from the left sidebar. The page opens on the **Workstation Inventory** tab. 3. Confirm the developer's Snowflake Cortex Code row shows a recent value under **Last Active**. If no row appears, see [Troubleshoot missing events](#troubleshoot-missing-events). ## What developers see when a policy fires When a policy with the **Block** action matches an event, the hook returns a deny response to Snowflake Cortex Code. Snowflake Cortex Code stops the tool call and shows the **User Message** to the developer when the hook response can carry it. A response that includes a message also explains that a governance policy denied the action and tells the agent not to work around the block. When a policy with the **Ask Permission** action matches, Snowflake Cortex Code asks the developer to confirm or deny, where it can pause at that event. Where it cannot pause, the outcome depends on the event type. Endor Labs records the match under **Policy Violations** as **Ask** either way. See [Enforcement behavior](/agent-governance/how-it-works#enforcement-behavior) to review the per-agent behavior. When a policy with the **Alert** action matches, the hook allows the action to proceed. Endor Labs records the event under **Policy Violations** for your security team to review. ## Troubleshoot missing events Hook errors never block the developer. If the hook cannot run or reach the Endor Labs API, Snowflake Cortex Code allows the tool call, and the event is missing from inventory with no error. Run these checks if a developer's actions never appear under **Workstation Inventory** or **Policy Violations**: * Confirm the developer has started at least one session. With the event cache enabled, the hook batches events and sends them to Endor Labs within about 30 seconds of hook activity. The hook also sends every queued event at session start and end. Inventory **Sessions**, **Last Active**, and counts can therefore lag the newest actions by that interval. * Confirm endorctl is on `PATH` in the environment that runs the hook. If the binary is not found, the hook does nothing and shows no error. Run `endorctl version` from the same shell to verify. * Confirm only one endorctl installation is active. If `endorctl ai-audit` fails with `Failed with non-blocking status code: No stderr output`, conflicting installations are the likely cause, such as an `npx`-provisioned endorctl alongside a Homebrew install. Keep one installation method per machine, remove the others, then run `endorctl version` to confirm. * Confirm the hook receives the Endor Labs API URL, namespace, API key, and secret. A hand-written configuration reads them from `ENDOR_API`, `ENDOR_NAMESPACE`, `ENDOR_API_CREDENTIALS_KEY`, and `ENDOR_API_CREDENTIALS_SECRET`. * Confirm `ENDOR_TOKEN` is not also exported alongside your Coding Agent Governance API key credentials in the hook environment. Hooks rely only on `ENDOR_API_CREDENTIALS_KEY` and `ENDOR_API_CREDENTIALS_SECRET`. `ENDOR_TOKEN` is redundant and, on older versions of endorctl, triggered a mixed-authentication error that blocked `endorctl ai-audit`. * Confirm the API key has the **AI Audit User** role and has not expired. * Confirm the developer restarted Snowflake Cortex Code after the hooks file or a policy changed. Snowflake Cortex Code reads the configuration and refreshes the local policy cache at session start. * Confirm the JSON file parses. A trailing comma silently disables every hook in the file. * Confirm the Endor Labs API is reachable from the environment that runs the hook. Network failures appear as gaps in the inventory. ## Known limitations Cortex Code support has the following limitations: * **Session policies**: A **Block** or **Ask Permission** session policy doesn't stop a Cortex Code session, because Cortex Code ignores `continue: false` at `SessionStart`. A match on a Cortex Code session only records the violation. * **Claude Code hooks in Cortex Code sessions**: Cortex Code also runs hooks from `~/.claude/settings.json`, `.claude/settings.json`, and `.claude/settings.local.json`. Events from an `endorctl ai-audit claudecode` hook there record as Claude Code, so one Cortex Code session can appear under both agents. * **Custom home directory**: The hook reads configuration under `SNOWFLAKE_HOME` but ignores `CORTEX_HOME`, and AI tool discovery looks only in `~/.snowflake/cortex`. * **Two inventory rows on one device**: A device can show both a governed **Snowflake Cortex Code** agent and a discovered `cortex-code-cli` AI tool. * **Skills**: Endor Labs doesn't collect Cortex Code skills, so they don't appear on the **Skills** tab. * **Project MCP servers and permissions**: The hook doesn't read MCP servers or permissions declared at the project level. Those servers can appear in inventory from their tool calls, without an Endor Score. * **Windows managed settings file**: The hook doesn't check the file's access control list, so the file alone can't make the posture **Sandboxed**. Use the MDM policy to force the sandbox on Windows. * **Headless runs**: Endor Labs hasn't verified the hook with headless `cortex -p` and `cortex exec` runs. ## Next steps With hooks deployed, continue with the following pages: * See [Triage policy violations](/agent-governance/policy-violations) to set your daily review workflow. * See [Coding Agent Governance overview](/agent-governance/overview) to track adoption and enforcement trends. # Deploy hooks for Cursor Source: https://docs.endorlabs.com/agent-governance/cursor/index Install Endor Labs hooks for Cursor on macOS, Linux, and Windows developer machines to capture session, command, and file events. Endor Labs hooks for Cursor send a structured event for every session, prompt, MCP tool call, shell command, and file operation in the IDE. The hook also enforces your Coding Agent Governance policies locally before each action reaches the agent. > [!NOTE] > > See [Endor Labs MCP server in Cursor](/setup-deployment/mcp/cursor) to query Endor Labs from the assistant. See [Endor Labs Agent Kit in Cursor](/secure-ai-coding/agent-kit/cursor) to install workflow agents. See [Deploy hooks for Cursor](/agent-governance/cursor) to capture events and enforce Coding Agent Governance policies. ## Before you begin Confirm the following requirements before you install the hook: * An admin has completed the [prerequisites](/agent-governance/prerequisites), including creating an API key with the **AI Audit User** role. * The target machine runs macOS or Linux with Cursor installed. For Windows, generate the configuration. * [endorctl](/setup-deployment/cli) is on `PATH`. This applies to the hand-written configuration below. A generated configuration installs and updates endorctl automatically at session start. * For the hand-written configuration, the shell that launches Cursor has these environment variables set: * `ENDOR_API` (for example, `https://api.endorlabs.com`) * `ENDOR_NAMESPACE` * `ENDOR_API_CREDENTIALS_KEY` * `ENDOR_API_CREDENTIALS_SECRET` > [!WARNING] > > Do not export `ENDOR_TOKEN` in the environment that runs the hook. Hooks authenticate with the API key and secret only, and on older versions of endorctl the extra token triggered a mixed-authentication error that blocked `endorctl ai-audit`. > [!TIP] > > Prefer generating this file over maintaining it by hand. The [in-browser generator](/agent-governance/mdm-deployment#generate-a-configuration-in-your-browser) assembles `hooks.json` from the [mdm-scripts repository](https://github.com/endorlabs/mdm-scripts/tree/main/agent-governance) sources for macOS, Linux, and Windows. It writes the credentials into every hook command and adds a bootstrap that installs and updates endorctl at session start. Use the following `hooks.json` configuration for macOS and Linux. Every hook has its own settings, and each command sets `ENDOR_AI_AUDIT_CACHE_ENABLED=true` so the hook batches events locally and sends them at `sessionEnd`. Cursor can pass environment from a `sessionStart` hook, but a conversation that resumes after a restart loses that environment, and hooks fired inside subagents never receive it. ```json expandable theme={null} { "version": 1, "hooks": { "sessionStart": [ { "command": "ENDOR_AI_AUDIT_CACHE_ENABLED=true endorctl --api $ENDOR_API --namespace $ENDOR_NAMESPACE --api-key $ENDOR_API_CREDENTIALS_KEY --api-secret $ENDOR_API_CREDENTIALS_SECRET ai-audit cursor" } ], "sessionEnd": [ { "command": "ENDOR_AI_AUDIT_CACHE_ENABLED=true endorctl --api $ENDOR_API --namespace $ENDOR_NAMESPACE --api-key $ENDOR_API_CREDENTIALS_KEY --api-secret $ENDOR_API_CREDENTIALS_SECRET ai-audit cursor" } ], "beforeSubmitPrompt": [ { "command": "ENDOR_AI_AUDIT_CACHE_ENABLED=true endorctl --api $ENDOR_API --namespace $ENDOR_NAMESPACE --api-key $ENDOR_API_CREDENTIALS_KEY --api-secret $ENDOR_API_CREDENTIALS_SECRET ai-audit cursor" } ], "preToolUse": [ { "command": "ENDOR_AI_AUDIT_CACHE_ENABLED=true endorctl --api $ENDOR_API --namespace $ENDOR_NAMESPACE --api-key $ENDOR_API_CREDENTIALS_KEY --api-secret $ENDOR_API_CREDENTIALS_SECRET ai-audit cursor" } ], "postToolUse": [ { "command": "ENDOR_AI_AUDIT_CACHE_ENABLED=true endorctl --api $ENDOR_API --namespace $ENDOR_NAMESPACE --api-key $ENDOR_API_CREDENTIALS_KEY --api-secret $ENDOR_API_CREDENTIALS_SECRET ai-audit cursor" } ], "postToolUseFailure": [ { "command": "ENDOR_AI_AUDIT_CACHE_ENABLED=true endorctl --api $ENDOR_API --namespace $ENDOR_NAMESPACE --api-key $ENDOR_API_CREDENTIALS_KEY --api-secret $ENDOR_API_CREDENTIALS_SECRET ai-audit cursor" } ], "beforeShellExecution": [ { "command": "ENDOR_AI_AUDIT_CACHE_ENABLED=true endorctl --api $ENDOR_API --namespace $ENDOR_NAMESPACE --api-key $ENDOR_API_CREDENTIALS_KEY --api-secret $ENDOR_API_CREDENTIALS_SECRET ai-audit cursor" } ], "beforeMCPExecution": [ { "command": "ENDOR_AI_AUDIT_CACHE_ENABLED=true endorctl --api $ENDOR_API --namespace $ENDOR_NAMESPACE --api-key $ENDOR_API_CREDENTIALS_KEY --api-secret $ENDOR_API_CREDENTIALS_SECRET ai-audit cursor" } ], "afterMCPExecution": [ { "command": "ENDOR_AI_AUDIT_CACHE_ENABLED=true endorctl --api $ENDOR_API --namespace $ENDOR_NAMESPACE --api-key $ENDOR_API_CREDENTIALS_KEY --api-secret $ENDOR_API_CREDENTIALS_SECRET ai-audit cursor" } ], "beforeReadFile": [ { "command": "ENDOR_AI_AUDIT_CACHE_ENABLED=true endorctl --api $ENDOR_API --namespace $ENDOR_NAMESPACE --api-key $ENDOR_API_CREDENTIALS_KEY --api-secret $ENDOR_API_CREDENTIALS_SECRET ai-audit cursor" } ], "beforeTabFileRead": [ { "command": "ENDOR_AI_AUDIT_CACHE_ENABLED=true endorctl --api $ENDOR_API --namespace $ENDOR_NAMESPACE --api-key $ENDOR_API_CREDENTIALS_KEY --api-secret $ENDOR_API_CREDENTIALS_SECRET ai-audit cursor" } ] } } ``` On Windows, generate the file instead. See [Generate a configuration in your browser](/agent-governance/mdm-deployment#generate-a-configuration-in-your-browser) to produce it, or use the Cursor tab under [Generate a configuration manually](/agent-governance/mdm-deployment#generate-a-configuration-manually). ## Install for one developer Use this for a single-machine trial or a personal install. 1. Open `~/.cursor/hooks.json` in a text editor. Create the file if it does not exist. 2. Paste the configuration shown in [Before you begin](#before-you-begin). 3. Save the file and restart Cursor. ## Install on a managed macOS fleet Cursor reads enterprise hooks from `/Library/Application Support/Cursor/hooks.json`. Use your MDM, such as Jamf, Intune, Kandji, or JumpCloud, to deliver that file to each managed machine. If you deliver a hand-written file, also set the four Endor Labs environment variables (`ENDOR_API`, `ENDOR_NAMESPACE`, `ENDOR_API_CREDENTIALS_KEY`, `ENDOR_API_CREDENTIALS_SECRET`) in the shell that launches Cursor. A generated file includes the credentials inline. > [!NOTE] > > On macOS, environment variables set in `~/.zshrc` reach apps launched from a terminal but not apps launched from Spotlight. Ship the variables through your MDM payload, for example a `launchctl setenv` profile, so apps launched from Spotlight also receive them. > [!TIP] > > If your MDM's deployment script rejects the inline JSON payload, encode the configuration in Base64 in the script and decode it on the target machine. This avoids the quoting and escaping issues that some MDMs introduce when they deliver JSON. ## Per-repository overrides Add `/.cursor/hooks.json` and commit it. Workspace hooks layer on top of user hooks and let security-sensitive projects extend the configuration. ## Cursor hook events used by Coding Agent Governance The following table lists every event the hook processes. \- Hook event: \`sessionStart\` Why it matters: Records the session and the agent version, model, and user for inventory. Refreshes the local policy cache. \- Hook event: \`sessionEnd\` Why it matters: Sends cached events to Endor Labs when the session ends. \- Hook event: \`beforeSubmitPrompt\` Why it matters: Records that a prompt was submitted, for session counters in inventory. The prompt text stays on the developer's machine. \- Hook event: \`preToolUse\` Why it matters: Enforces \*\*File Access\*\* write and delete policies before Cursor's Write and Delete tools run, and captures other internal tool calls. Shell, file read, and MCP tool calls are enforced by their dedicated hooks below. \- Hook event: \`postToolUse\` Why it matters: Captures completed tool calls for inventory. \- Hook event: \`postToolUseFailure\` Why it matters: Captures failed tool calls for inventory. \- Hook event: \`beforeShellExecution\` Why it matters: Enforces \*\*Command Execution\*\* policies before the shell runs. \- Hook event: \`beforeMCPExecution\` Why it matters: Enforces \*\*MCP Server Access\*\* policies before an MCP tool runs. \- Hook event: \`afterMCPExecution\` Why it matters: Records the MCP tool call result for inventory. \- Hook event: \`beforeReadFile\` Why it matters: Enforces \*\*File Access\*\* read policies before the agent reads a file. \- Hook event: \`beforeTabFileRead\` Why it matters: Enforces \*\*File Access\*\* read policies before Cursor Tab (inline completions) reads a file. The hook accepts and ignores Cursor events outside this set, such as `subagentStart`, `preCompact`, `afterShellExecution`, `afterFileEdit`, and `stop`, if a configuration registers them. An older configuration keeps working, but those events record nothing. A **Block** policy denies a Cursor Tab read. Cursor can't pause a Tab read for approval, so an **Ask** policy denies it the same way. Cursor's hook response for `beforeTabFileRead` holds only a permission and no message, so neither the developer nor the agent sees the policy's **User Message**. If the hook itself errors out, the action runs anyway and Cursor keeps working, so a hook problem never blocks a developer. The usual cause is a missing binary. An unreadable local policy cache does not disable enforcement, because the hook falls back to the built-in system policies. A successfully evaluated **Block** policy still stops the action. ## Run the hook in audit-only mode For an audit-only rollout, set `ENDOR_AI_AUDIT_NO_BLOCKING=true` in the Cursor hook environment, in the same place as the Endor Labs credentials. [endorctl ai-audit](/developers-api/cli/commands/ai-audit) then downgrades every **Block** action to **Alert** at evaluation time. Endor Labs still records violations under **Policy Violations**, but the hook never denies a action. **Ask Permission** policies can still prompt the developer. Use audit-only mode to trial a new policy without interrupting developers. Unset the variable when you're ready to enforce. The values `1`, `t`, `T`, `true`, `TRUE`, and `True` turn the option on. Any other value, including an unset or empty variable, keeps enforcement on. ## Verify hooks are firing 1. Start a session in Cursor and ask the agent to run a benign shell command, such as `ls`. 2. Select **Agent Governance** > **Inventory** from the left sidebar. The page opens on the **Workstation Inventory** tab. 3. Confirm the developer's Cursor row shows a recent value under **Last Active**. If no row appears, see [Troubleshoot missing events](#troubleshoot-missing-events). ## What developers see when a policy fires When a policy with the **Block** action matches an event, the hook returns a deny response to Cursor. Cursor stops the action and shows the **User Message** to the developer when the hook response can carry it. A response that includes a message also explains that a governance policy denied the action and tells the agent not to work around the block. When a policy with the **Ask Permission** action matches, Cursor asks the developer to confirm or deny, where it can pause at that event. Where it cannot pause, the outcome depends on the event type. Endor Labs records the match under **Policy Violations** as **Ask** either way. See [Enforcement behavior](/agent-governance/how-it-works#enforcement-behavior) to review the per-agent behavior. When a policy with the **Alert** action matches, the hook allows the action to proceed. Endor Labs records the event under **Policy Violations** for your security team to review. ## Troubleshoot missing events Hook errors never block the developer. If the hook cannot run or reach the Endor Labs API, Cursor allows the action, and the event is missing from inventory with no error. Run these checks if a developer's actions never appear under **Workstation Inventory** or **Policy Violations**: * Confirm the developer has started at least one session. With the event cache enabled, the hook batches events and sends them to Endor Labs within about 30 seconds of hook activity. The hook also sends every queued event at session start and end. Inventory **Sessions**, **Last Active**, and counts can therefore lag the newest actions by that interval. * Confirm endorctl is on `PATH` in the environment that runs the hook. If the binary is not found, the hook does nothing and shows no error. Run `endorctl version` from the same shell to verify. * Confirm only one endorctl installation is active. If `endorctl ai-audit` fails with `Failed with non-blocking status code: No stderr output`, conflicting installations are the likely cause, such as an `npx`-provisioned endorctl alongside a Homebrew install. Keep one installation method per machine, remove the others, then run `endorctl version` to confirm. * Confirm the hook receives the Endor Labs API URL, namespace, API key, and secret. A hand-written configuration reads them from `ENDOR_API`, `ENDOR_NAMESPACE`, `ENDOR_API_CREDENTIALS_KEY`, and `ENDOR_API_CREDENTIALS_SECRET`. * Confirm `ENDOR_TOKEN` is not also exported alongside your Coding Agent Governance API key credentials in the hook environment. Hooks rely only on `ENDOR_API_CREDENTIALS_KEY` and `ENDOR_API_CREDENTIALS_SECRET`. `ENDOR_TOKEN` is redundant and, on older versions of endorctl, triggered a mixed-authentication error that blocked `endorctl ai-audit`. * Confirm the API key has the **AI Audit User** role and has not expired. * Confirm the developer restarted Cursor after the hooks file or a policy changed. Cursor reads the configuration and refreshes the local policy cache at session start. * Confirm the JSON file parses. A trailing comma silently disables every hook in the file. * Confirm the Endor Labs API is reachable from the environment that runs the hook. Network failures appear as gaps in the inventory. ## Next steps With hooks deployed, continue with the following pages: * See [Triage policy violations](/agent-governance/policy-violations) to set your daily review workflow. * See [Coding Agent Governance overview](/agent-governance/overview) to track adoption and enforcement trends. # Endor Scores for Coding Agent Governance Source: https://docs.endorlabs.com/agent-governance/endor-score/index Understand the Endor Labs trust score for MCP servers and skills, including its scale, the dimensions it weighs, and the OWASP LLM Top 10 categories it covers. The Endor Score is the trust score Endor Labs publishes for two things in your Coding Agent Governance inventory: * **Skills** discovered on developer machines at session start * **MCP servers** your governed agents call The score lets you compare risk across items at a glance and decide which to authorize, restrict, or block. This page describes how Endor Labs computes it and what it covers. ## Score scale Every Endor Score runs from `1` to `10` on a single dimension: **higher is safer**. A score of `1` means the evaluator found severe risk. A score of `10` means it found none. For MCP servers, the headline score is the minimum across the four scored categories that actually executed a check. The categories are **Supply Chain and Provenance**, **Authentication and Authorization**, **Operational Hygiene**, and **Input Validation and Injection**. A category with no applicable checks does not pull the score down. ### Bands and risk levels For at-a-glance triage, the Coding Agent Governance overview and inventory show the numeric score. Skills fall into four bands based on their score: \- Band: \*\*Unauthorized\*\* Score: Below 4 What it means: The evaluator considers the skill dangerous. Investigate before allowing it. \- Band: \*\*Caution\*\* Score: 4 to below 8 What it means: Findings exist that warrant review but do not on their own justify blocking. \- Band: \*\*Safe\*\* Score: 8 or higher What it means: No significant findings. \- Band: \*\*Unscored\*\* Score: None What it means: The scoring job has not evaluated the skill yet. > [!NOTE] > > The **Skills** pie chart on the [Overview](/agent-governance/overview) page currently labels the **Caution** and **Safe** bands as **Suspicious** and **Approved**. The MCP Servers inventory also shows a categorical **risk band** derived from the numeric score, on the same cutoffs the skill bands use. A low score reads as high risk. \- Risk band: \*\*High Risk\*\* Score: Below 4 What it means: The evaluator found severe risk. \- Risk band: \*\*Medium Risk\*\* Score: 4 to below 8 What it means: Findings warrant review but do not on their own justify blocking. \- Risk band: \*\*Low Risk\*\* Score: 8 or higher What it means: No significant findings. \- Risk band: \*\*Unscored\*\* Score: None What it means: The risk evaluator has not scored the server yet. ## How MCP servers are scored The MCP evaluator runs a set of static checks against each server's configuration and published source across seven dimensions. The first four dimensions have their own scores. The other three contribute findings and evidence without a per-dimension score. \- Dimension: \*\*Supply Chain and Provenance\*\* Examples of what is checked: Package source verification, known CVEs, dependency pinning. \- Dimension: \*\*Authentication and Authorization\*\* Examples of what is checked: Missing or weak authentication, secrets exposed in environment variables or source. \- Dimension: \*\*Operational Hygiene\*\* Examples of what is checked: Spec deviations, repo signals, destructive tools, error noise. \- Dimension: \*\*Input Validation and Injection\*\* Examples of what is checked: Prompt injection, command and SQL injection in tool arguments, unsafe deserialization. \- Dimension: \*\*Resource Access and Data Exposure\*\* Examples of what is checked: Path traversal, cleartext handling of sensitive data. \- Dimension: \*\*Transport and Network Security\*\* Examples of what is checked: TLS enforcement, certificate validation, public network binding. \- Dimension: \*\*LLM and Sampling Interaction\*\* Examples of what is checked: Prompt injection risk in sampling requests the server sends to the model. Each scored dimension reports its own `1`-`10` score and a short evidence string that lists the checks that fired in that category. Checks that need a live connection to the server never run, so dimensions score from source and configuration alone. Endor Labs re-scores a server when its configuration changes, for example a new command, endpoint, transport, or environment variable name. ### OWASP LLM Top 10 coverage The evaluator tags every MCP finding with the OWASP LLM Top 10 category it represents, so a low score traces back to a recognized risk class. The MCP evaluator covers these categories: \- Category: \*\*LLM01: Prompt Injection\*\* Triggers it: Tool descriptions or inputs that allow instruction override. \- Category: \*\*LLM02: Sensitive Information Disclosure\*\* Triggers it: Paths that read credentials, environment, or filesystem data. \- Category: \*\*LLM03: Supply Chain Vulnerabilities\*\* Triggers it: Unverified package sources, known CVEs, missing dependency pinning. \- Category: \*\*LLM06: Excessive Agency\*\* Triggers it: Tools that run commands or code, destructive tools, overbroad permissions. \- Category: \*\*LLM07: System Prompt Leakage\*\* Triggers it: Hardcoded secrets or static credentials in the server source. ## How skills are scored An Endor Labs backend large-language-model workflow scores skills by reading the `SKILL.md` content the hook discovers. The workflow produces a `1`-`10` score on four dimensions. \- Dimension: \*\*Instruction Integrity\*\* Examples of what is checked: Prompt injection, boundary violations, behavioral manipulation in the skill body. \- Dimension: \*\*Data Protection\*\* Examples of what is checked: Credential access, file enumeration, data exfiltration. \- Dimension: \*\*Permission Boundaries\*\* Examples of what is checked: Privilege claims, tool misuse, code execution outside the declared allowlist. \- Dimension: \*\*External Dependencies\*\* Examples of what is checked: Untrusted source pulls, remote code loading, system modification. The overall skill score is the minimum of the four dimension scores. Each dimension has its own evidence string explaining the score. Scoring re-runs when the `SKILL.md` content hash changes, so Endor Labs re-evaluates an edit to a previously approved skill automatically. The **Endor Score Factors** side panel on a skill's detail drawer shows the verdict. It lists the overall score and risk band, the four dimension scores, and an expandable evidence row per dimension. In this example, a skill that looks like a harmless notes summarizer falls in **Caution** because its bundle includes scripts the evaluator cannot confirm are inert. ![Endor Score Factors side panel for a skill in the Caution band, showing a 5 out of 10 overall score and per-dimension scores](https://mintcdn.com/endorlabs-b4795f4f/dPDQPDyDLWVGxIZu/images/agent-governance/skill-endor-score-factors.webp?fit=max\&auto=format\&n=dPDQPDyDLWVGxIZu\&q=85\&s=d7024b3dcaed65d646f531dca2dbed70) ## What is not evaluated The Endor Score is source-only. The evaluator never runs an MCP server or executes a skill to probe it. MCP scoring uses deterministic static checks. Skill scoring uses a large language model workflow, so it is not strictly deterministic. * MCP servers are evaluated from configuration and published source. Live runtime probes are disabled in the Coding Agent Governance context. * Skills are evaluated from `SKILL.md` content captured at session start. They are not exercised. * Tool name collisions between MCP servers active in the same session, and periodic re-evaluation of MCP configuration drift, are not yet flagged. ## Where you see the score You can see the score in the following locations: * **[Skills inventory](/agent-governance/inventory#skills)**: The **Endor Score** column shows the score. Select a row, then select **Endor Score Factors** under **Risk** to open the per-dimension breakdown in a side panel. * **[MCP Servers inventory](/agent-governance/inventory#mcp-servers)**: Select a server, then select **Endor Score Factors** under **Risk** to open the score and per-dimension findings in a side panel. * **[Overview](/agent-governance/overview)**: The **Skills** pie chart groups loaded skills by band across the selected time range. ## Next steps Continue with the following pages: * See [Write a policy](/agent-governance/policies) to block or alert on items above a risk threshold. * See [Review your agent inventory](/agent-governance/inventory) for the tables where the score appears. # How Coding Agent Governance works Source: https://docs.endorlabs.com/agent-governance/how-it-works/index Understand how hook events from your AI coding agents flow into the Endor Labs inventory, policies, and overview. Coding Agent Governance gives security and engineering teams visibility and control over how AI coding agents work inside your organization. Endor Labs collects events from agents, builds an inventory of your developers' AI use, and applies your policies to risky activity in real time. Use Coding Agent Governance to answer questions such as: * Which AI coding agents and MCP servers are running on developer machines? * Are agents reading sensitive files, executing dangerous commands, or talking to unapproved MCP servers? * When a policy fires, what was the developer trying to do, and which agent was responsible? Coding Agent Governance has the following components: * Hooks that run on developer machines and capture events. * Coding Agent Governance policies that govern these events. * Dashboards that show what your agents are doing. Together, these components let you control and view the activities of AI agents across your organization. ## What Coding Agent Governance is (and isn't) Coding Agent Governance puts guardrails around what coding agents do so it can catch accidental or unintended actions before they cause damage. It reduces the chance an agent does something it shouldn't while working through a task. It is not a sandbox, firewall, or hardened security boundary. Policy controls lower risk and limit the damage of agent mistakes, but they do not guarantee that a risky action is impossible. Hard guarantees require isolation at the operating system, system call, or sandbox level. Coding Agent Governance works alongside that kind of isolation. It does not replace it. Coding Agent Governance targets accidental agent behavior. It is not designed to stop a determined developer who deliberately tries to defeat the controls. ## Lifecycle of an event When a developer starts a session, an Endor Labs hook runs alongside the agent and emits a normalized event for every meaningful action. Each event includes the agent type, the user, the workspace context, and the tool, command, or file the agent acted on. The event takes two paths in parallel: * Local evaluation: The hook checks the event against a cached copy of Coding Agent Governance policies. If a policy matches, the hook can stop the action, record the event for your security team, or ask the developer to approve it. See [Enforcement behavior](#enforcement-behavior) to review where each agent can pause. * Centralized aggregation: The hook forwards the event to Endor Labs, where it updates the inventory, the Coding Agent Governance overview, and the policy violation log. Together, these paths enforce policies on developer machines in real time and give your security team a single place to monitor activity and plan their response. As your AI agent inventory evolves, your security team can refine policies and roll out changes. The following diagram shows the data flow in Coding Agent Governance. %%motion callouts: on list: off speed: 0.5 %% %%steps A, s1, B | A coding agent takes an action, and the Endor Labs hook intercepts it before the action runs. s2, C | The hook evaluates your policies locally on the developer machine. s3, D | The policy decides whether to block the action, alert, ask for permission, or allow it. e1, e2, e3, E, F, G \{effect: draw} | The hook sends event metadata to Endor Labs, where it appears in inventory, overview, and policy violations. %% flowchart TD subgraph Dev\[Developer machine] A\[Coding agent action] s1\@--> B\[Endor Labs hook] B s2\@--> C\[Local policy evaluation] C s3\@--> D\[Block / Alert / Ask Permission / Allow] end subgraph Endor\[Endor Labs] E\[Inventory] F\[Overview] G\[Policy Violations] end B e1\@-->|Event metadata| E B e2\@-->|Event metadata| F B e3\@-->|Event metadata| G click E href "/agent-governance/inventory" "Review your agent inventory" click F href "/agent-governance/overview" "Coding Agent Governance overview" click G href "/agent-governance/policy-violations" "Triage policy violations" ## Hooks and what they govern A hook is a small script Endor Labs deploys to your developers' machines. It runs whenever the agent starts a session, submits a user prompt, calls an MCP tool, runs a shell command, or reads, writes, or deletes a file. For each event, the hook can apply a policy locally before the agent acts. Hooks enforce guardrails such as blocking dangerous commands or gating MCP tool use. They are instruction-based controls that the agent and host follow, not a tamper-proof runtime. You can write policies for the following activities: * Shell commands the agent tries to run, matched by regex. * File reads, writes, deletes, and edits, matched by regex on the file path. * MCP server and tool calls, matched by regex on server name and tool name. * Shell commands reviewed by the [AI judge](#how-the-ai-judge-reviews-commands), when you turn it on. * Package installs and manifest or lockfile edits, checked against the Endor Labs malware feed. * New dependencies, checked against Endor Labs vulnerability data for known vulnerabilities. * File content the agent writes or reads, scanned for secrets. The malware, dependency risk, and secrets checks have no patterns to write. Their verdict comes from Endor Labs data. See [Secure coding checks](/agent-governance/secure-coding) to review how each check reaches a verdict. When a policy matches, the hook applies the action you chose: * **Block** stops the action and returns a deny response. If the agent hook response can carry the message, it tells the agent that a governance policy denied the action, and not to work around the block. * **Alert** logs the event without stopping the agent. * **Ask Permission** pauses for the developer to approve or deny, where the agent supports it. See [Enforcement behavior](#enforcement-behavior) to review the per-agent behavior. * **AI Judged** hands a matched shell command to the [AI judge](#how-the-ai-judge-reviews-commands), which allows, asks, or blocks it. See [Write a policy](/agent-governance/policies) to build allowlists and blocklists and to override built-in system policies. ## How the AI judge reviews commands Pattern policies decide on the developer's machine. When you turn on the AI judge, the hook also asks Endor Labs to label shell commands as benign, review, or suspicious. A review label asks the developer to confirm, and a suspicious label blocks. The judge runs only after you turn it on, with an auto mode policy whose **Judge Scope** is not **Off** or with a policy that uses the **AI Judged** action. When it runs, the hook sends the command and your deployment context to Endor Labs, which asks a large language model (LLM) for a label and a reason. Judging changes the hook's behavior in the following ways: * The hook has up to 10 seconds per event in a namespace with judging turned on, instead of 5 seconds. The judge gets up to 8 seconds, keeping 2 seconds to record the event. The hook skips the judge when less than 5 seconds would remain for it. * If the judge errors, times out, or is skipped, the command falls back to its pattern policies. A match from an **AI Judged** policy has no pattern action, so the hook releases it. * **Governance** policies keep their action whatever the judge decides. * Endor Labs records each judgment on the event, including failed and skipped ones. See [Auto mode and the AI judge](/agent-governance/policies#auto-mode-and-the-ai-judge) to turn on the judge and review how each label maps to an outcome. ## Example: A blocked malicious package install The following session shows the lifecycle end to end. A developer asks a coding agent to install an npm package. The hook checks the install against a malware policy on the developer's machine. The block stops the install before any package code runs. ```text theme={null} > Run this command in non-interactive mode: npm install plugin-proposal-json-strings I'll check what this package actually is before installing. The name looks like an unscoped variant of @babel/plugin-proposal-json-strings. Bash(npm view plugin-proposal-json-strings --json) The only remaining version is 0.0.1-security, described as a "security holding package" from npm/security-holder. The purged version history (99.10.9, 9.9.9, 8.0.11) is a dependency-confusion pattern. Bash(npm install plugin-proposal-json-strings) Error: [ENDOR LABS SECURITY POLICY BLOCK] This action was identified as an install of a known-malicious or untrusted software package. malware detected in npm package "plugin-proposal-json-strings" (flagged by MALWARE_SOURCE_OSV). Endor Labs flagged this package as known-malicious. Do not install the flagged package. If the dependency is genuinely needed, choose a non-flagged, safe version or a different well-known package, or ask the user. Do not try to install the same package by another route (a different registry, a direct download, renaming, or --force) or by disabling this check — that is treated as an evasion. Tell the user this was blocked by the Endor Labs policy "Malware: block installs of known-malicious packages". The install was blocked, and I'm not going to attempt it another way. npm install plugin-proposal-json-strings was blocked by the Endor Labs policy "Malware: block installs of known-malicious packages". The package was flagged as known-malicious (MALWARE_SOURCE_OSV). The package you probably want is the scoped Babel one, @babel/plugin-proposal-json-strings. ``` The example shows four things about how enforcement behaves: * The hook evaluated the install at the moment the agent ran it, so no package code executed. Nothing depended on the agent choosing to check the package first. * The verdict came from the Endor Labs malware feed rather than a pattern someone authored. See [Malware check](/agent-governance/secure-coding#malware-check) to review the feed each verdict comes from. * The deny response names the denied action category, the evidence, the feed source, and the policy that fired. It instructs the agent not to route around the block or disable the check. The agent stopped and reported the block instead of retrying with a different registry or `--force`. * The event reached **Policy Violations** with the package, ecosystem, and feed source alongside the agent and user, so your security team sees the attempt even though the install never ran. ## Data sent to Endor Labs Each hook event includes the metadata Endor Labs needs for inventory and policy evaluation: * Agent name, version, and (where available) model * Session and sub-session IDs * Device (endpoint) identifier * Session configuration, such as permission mode and sandbox state * User identifier when the agent provides one * Repository name (not populated for Claude Code sessions) and working directory * MCP server name, tool name, and call counts * Shell command line (regex-matched against your policies) * File path and operation type (read, write, delete, edit) * Secrets check match (rule, line, column, and fingerprint, never the secret value) * Policy match outcome and the action applied ### Secret redaction Endor Labs runs every command line, file path, URL, environment value, and MCP tool input or output through a regex-based redactor before it leaves the developer's machine. Environment variables and keys named like a secret (such as `TOKEN`, `SECRET`, `API_KEY`, `PASSWORD`, or `AUTHORIZATION`) become `[REDACTED]`. The redactor also matches common secret formats in place. These include URL and database-connection credentials, AWS access keys, JWTs, PEM private keys, and provider tokens such as GitHub (`ghp_*`), OpenAI, and Anthropic keys. Redaction of event payloads uses regex pattern matching that can miss some secrets. A secret that does not match a known pattern or key name can still reach the backend. The [secrets check](/agent-governance/secure-coding) is separate from redaction: it detects secrets in file content on the developer's machine, and its violations include the rule and location, never the value. When an enabled secrets policy detects a secret, Endor Labs also scrubs the detected string from the stored event payload. The follow-up event recorded after a permitted file operation includes no file content. > [!WARNING] > > On Cursor, the `sessionStart` hook returns the Endor Labs credential values to Cursor in plaintext under an `AGENT_HOOK_ENDOR_*` prefix, so subsequent hooks in the session inherit them. The values never leave the developer's machine, but anything that captures Cursor hook stdout (such as debug logging or screen recording) can see them. The hook writes two Coding Agent Governance files to a developer's disk. It refreshes the local policy cache (`~/.endorctl/aigovernance/endor-policies-.jsonl`) at session start. The recommended Cursor and Claude Code configurations also enable the event cache at `~/.endorctl/aigovernance/localdb/cache-.db`. The hook queues events there and sends them to Endor Labs in batches within about 30 seconds of hook activity. The hook also sends every queued event at session start and end. ## What you see in Endor Labs After you deploy hooks and at least one policy exists, select **Agent Governance** from the left sidebar: \- Sub-drawer entry: Overview What it shows: Counts of developers using AI, distinct coding agents in use, developers with a sandbox gap, and policy violations over a chosen time range. \- Sub-drawer entry: Inventory What it shows: Five tabs with usage counts and recent activity. Workstation Inventory lists each agent your developers run, and MCP Servers lists the servers your agents called. AI Models lists the models invoked through agents, and Skills lists the skills your agents loaded. Sandboxing shows whether each developer runs agents inside a sandbox. \- Sub-drawer entry: Policy Violations What it shows: A filterable feed of every event that matched a policy, with the agent, the user, and the action Endor Labs took. Policies live with the rest of your platform policies. To open them, select **User menu** > **Policies & Rules** from the left sidebar, then select **Agent Governance**. ## Limitations of Coding Agent Governance Coding Agent Governance currently has the following limitations. ### Platform and agent coverage Coverage has the following boundaries: * Hooks run on macOS, Linux, and Windows developer machines. Hooks do not run on CI runners. See [Supported agents and platforms](/agent-governance#supported-agents-and-platforms) to review the full matrix. * Policy enforcement covers Cursor, Claude Code, Codex, GitHub Copilot, and Snowflake Cortex Code. At session start, Endor Labs still discovers other AI tools, such as Continue, Cody, Gemini CLI, and Amazon Q. They appear in the **Workstation Inventory** table with a **Discovered • Not governed** status, and no hook fires for them. ### Enforcement behavior Keep the following enforcement behaviors in mind: * Policy edits take effect at the next session start on a developer's machine, when the hook refreshes the local policy cache. Tell developers to restart the agent to pick up policy changes. * A hook problem never blocks a developer. If the hook cannot run, or a malware or dependency risk policy cannot reach the Endor Labs API for a verdict, the action proceeds. An unreadable local policy cache does not disable enforcement, because the hook falls back to the built-in system policies. When the hook cannot run, the agent and the IDE keep working, but the event is missing from inventory and policy violations until you fix the cause. * In Claude Code, **Ask Permission** pauses for approval at `PreToolUse`. At `SessionStart`, Claude Code cannot prompt, so an **Ask** policy ends the session and shows the reason instead. See [Deploy hooks for Claude Code](/agent-governance/claude-code) to review its hook events. * In Cursor, **Ask Permission** pauses for approval on shell commands and MCP tool calls. On file reads and on Cursor's own `preToolUse` hook, Cursor accepts only allow or deny, so an **Ask** policy denies the call. At session start, Cursor also ends the session instead of pausing. See [Deploy hooks for Cursor](/agent-governance/cursor) to review its hook events. * In Codex, an **Ask Permission** policy cannot pause a tool call. The call proceeds, the developer sees the **User Message**, and the model receives it as a confirmation instruction. Only **Block** denies a tool call, and at Codex's own approval prompts an **Ask** policy defers to that prompt. At `SessionStart`, Codex cannot prompt, so an **Ask** policy ends the session and shows the reason. See [Deploy hooks for Codex](/agent-governance/codex) to review its Ask behavior at each hook event. * In GitHub Copilot, **Ask Permission** prompts in VS Code agent mode only. The Copilot CLI acts on deny but ignores ask, so an **Ask** policy on a CLI session proceeds and appears under **Policy Violations**, the same way **Alert** behaves. At session start, Copilot does not block, so a matched policy shows as a governance notice in the session instead. See [Deploy hooks for GitHub Copilot](/agent-governance/copilot) to review its Ask behavior in VS Code and in the CLI. * In Snowflake Cortex Code, **Ask Permission** shows Cortex Code's own permission prompt at `PreToolUse`, without the reason from the policy. A **Block** policy denies the tool call and shows the reason. At `SessionStart`, Cortex Code doesn't stop the session, so a matched session policy only records the violation. See [Deploy hooks for Snowflake Cortex Code](/agent-governance/cortex-code#enforcement-behavior) to review how its tools map to policies. * Policies match commands and patterns, not the end effect. An agent can occasionally reach the same result another way. That trade-off comes with pattern-based controls that can miss some cases. ### Attribution and visibility Attribution has the following gaps: * User attribution appears when the agent's hook payload includes a user identifier. Cursor supplies one on most events. Claude Code, Codex, and GitHub Copilot attempt to derive one from the local environment and may succeed depending on the version and configuration, but the value can still be empty. Snowflake Cortex Code reports `ENDOR_ACTOR` when set, otherwise the operating system login. The **User** column on **Policy Violations** and the user count on the **Overview** stay empty for events without an identifier. * endorctl captures device (endpoint) attribution on every event, but Coding Agent Governance does not show it in the user interface. You cannot filter or scope inventory or policy violations by device. * Claude Code sub-agent activity may have no user identity, and the hook does not record sub-agent MCP tool calls that a policy cleanly allows. Policies still evaluate and enforce on sub-agent activity. ### Inventory and scoring Inventory and scoring have the following limits: * Endor Labs computes MCP server risk scores only for servers it finds in an agent's configuration files. A server invoked without a discoverable configuration entry can appear in inventory from its tool calls without a score. * Endor Labs discovers MCP servers that enabled Claude Code plugins contribute, from the installed-plugin registry (`~/.claude/plugins`) and from skills-directory plugins. Each server appears in inventory under the name Endor Labs derives from its runtime, the command binary or URL host. When it cannot derive one, the name falls back to `/`. * Endor Labs attributes each plugin-contributed server to the level that installed the plugin. It does not inventory disabled plugins or marketplace plugins that are not installed locally. * Endor Labs does not assess agent plugins as a single unit. It evaluates the MCP servers and skills a plugin contributes, not the plugin itself. * File access matching is regex-based on path. The [secrets check](/agent-governance/secure-coding#secrets-check) adds content-aware secret detection, but Endor Labs does not redact or rewrite the content an agent reads. * Skills inventory reflects skills discovered in the workspace and user-home directories at session start. Skills loaded at runtime by the agent, or installed outside those directories, might not appear. See [Skills](/agent-governance/inventory#skills) to review the exact paths scanned. * Endor Labs doesn't collect Snowflake Cortex Code skills, or MCP servers and permissions declared at the Cortex Code project level. See [Known limitations](/agent-governance/cortex-code#known-limitations) for the other Cortex Code gaps. * Hooks capture session configuration such as permission mode and sandbox state. Use [Session Posture](/agent-governance/policies#session-posture) policies to match sessions by sandbox setting. The inventory has limited client-posture context today. # Coding Agent Governance Source: https://docs.endorlabs.com/agent-governance/index Secure your code generation factory. Includes an interactive rollout planning wizard. Coding Agent Governance gives security and engineering teams visibility and control over AI coding agents across developer workstations and cloud environments. It inventories the agents, models, MCP servers, and skills in use. It monitors agent actions such as commands, file access, and tool calls, and enforces policies to block, alert on, or require approval for risky behavior before it executes. Secure coding checks extend these controls with detection backed by Endor Labs intelligence. The malware check looks up packages in the Endor Labs malware feed, and the secrets check scans content the agent writes or reads. The dependency risk check flags new dependencies with known vulnerabilities. See [Secure coding checks](/agent-governance/secure-coding) to review what each check inspects. These controls are guardrails for accidental agent behavior, not a sandbox or hard security boundary. See [How Coding Agent Governance works](/agent-governance/how-it-works) for what that means in practice and how events flow into Endor Labs. > [!WARNING] > > Keep three operating caveats in mind when you rely on Coding Agent Governance: > > * **Hook problems never block developers.** If a hook cannot run, or a malware policy cannot reach Endor Labs for a verdict, the action proceeds. The event stays missing from inventory and policy violations until you fix the cause. An unreadable policy cache still enforces the built-in system policies. See [Limitations](/agent-governance/how-it-works#limitations-of-coding-agent-governance). > * **Policy changes apply at the next session start.** Hooks evaluate against the policy snapshot fetched when a session starts, so tell developers to restart the agent after a policy edit. See [Local policy cache](/agent-governance/policies#local-policy-cache). > * **Redaction is pattern-based.** The redactor masks secret-named keys and known credential formats before an event leaves the machine, but a secret in an unknown format can still reach the backend. See [Data sent to Endor Labs](/agent-governance/how-it-works#data-sent-to-endor-labs). ## Supported agents and platforms Coding Agent Governance enforces policies for supported agents on developer machines. Endor Labs discovers other AI coding tools at session start but does not govern them. \- Agent and form factor: Claude Code (App and CLI) Supported: -yes- Platforms: macOS, Linux, Windows \- Agent and form factor: Claude Cowork¹ Supported: -no- Platforms: macOS, Linux, Windows \- Agent and form factor: Claude Cloud² Supported: -yes- Platforms: Hosted sandbox \- Agent and form factor: Cursor (IDE) Supported: -yes- Platforms: macOS, Linux, Windows \- Agent and form factor: Cursor Cloud³ Supported: -limited- Platforms: Linux \- Agent and form factor: Cursor CLI⁴ Supported: -limited- Platforms: macOS, Linux \- Agent and form factor: Codex (CLI) Supported: -yes- Platforms: macOS, Linux, Windows \- Agent and form factor: GitHub Copilot (CLI) Supported: -yes- Platforms: macOS, Linux, Windows \- Agent and form factor: GitHub Copilot (VS Code agent mode) Supported: -yes- Platforms: macOS, Linux, Windows \- Agent and form factor: Snowflake Cortex Code (CLI)⁵ Supported: -yes- Platforms: macOS > [!WARNING] > > ¹ **Claude Cowork**: Not supported while [claude-code issue #40495](https://github.com/anthropics/claude-code/issues/40495) is open. The Cowork sandbox ignores user settings, managed settings, and environment variables, so governance hooks never load and Cowork sessions are neither monitored nor governed. The failure is silent. Use Claude Code (app or CLI) for governed work. > > ² **Claude Cloud**: Hooks run inside the hosted sandbox and fire from session start. > > ³ **Cursor Cloud**: Agent lifecycle events, such as stop and agent response, do not fire. > > ⁴ **Cursor CLI**: Shell command hooks fire reliably. Prompt, file edit, and stop events do not. On Windows, run the CLI under WSL. > > ⁵ **Snowflake Cortex Code**: Verified on macOS only. Linux and native Windows are not yet verified. ## Set up **1. Complete the prerequisites** Confirm tenant access, check license eligibility, and create an API key with the **AI Audit User** role. See [Prerequisites](/agent-governance/prerequisites). **2. Deploy hooks** Install hooks for [Cursor](/agent-governance/cursor), [Claude Code](/agent-governance/claude-code), [Codex](/agent-governance/codex), [GitHub Copilot](/agent-governance/copilot), and [Snowflake Cortex Code](/agent-governance/cortex-code). To roll them out across a fleet, see [MDM deployment](/agent-governance/mdm-deployment) and build each configuration with the [in-browser generator](/agent-governance/mdm-deployment#generate-a-configuration-in-your-browser). The generator doesn't cover Cortex Code yet. ## Operate **1. Review your inventory** Find the agents, MCP servers, models, and skills your developers use, each rated with an [Endor Score](/agent-governance/endor-score). See [Review your agent inventory](/agent-governance/inventory). **2. Triage policy violations** Filter, read, and respond to violations from your governed agents as they arrive. See [Triage policy violations](/agent-governance/policy-violations). **3. Review and extend policies** Endor Labs provides an in-built policy catalog, enabled by default. Review it, then add custom rules for what to block, alert on, or ask permission for. See [Coding Agent Governance policies](/agent-governance/policies) to write a policy. ## Plan your rollout Pick your AI coding agent and rollout style. The wizard returns a tailored checklist with deep links to every page you need. ## Names you'll see Each name covers a different part of the same capability: * **Coding Agent Governance** is the feature name, used across this documentation. * **Agent Governance** is the name in the Endor Labs user interface, on the left-sidebar entry and on the policy tab under **Policies & Rules**. * **AI Audit** is the machinery hooks run as. It appears in the **AI Audit User** role for hook API keys, the [endorctl ai-audit](/developers-api/cli/commands/ai-audit) command, and the `ENDOR_AI_AUDIT_*` environment variables. ## Frequently asked questions > [accordion] Is Coding Agent Governance a security boundary? > > No. It puts guardrails around agent behavior, not a sandbox, firewall, or hardened boundary. Policy controls lower the risk of agent mistakes and limit the damage they can do. Hard guarantees require isolation at the operating system, system call, or sandbox level, which Coding Agent Governance works alongside. See [What Coding Agent Governance is (and isn't)](/agent-governance/how-it-works#what-coding-agent-governance-is-and-isn’t). > [accordion] Will it stop a determined user from getting around it? > > No, and that is by design. It targets accidental agent behavior, not a person deliberately trying to defeat the controls. See [What Coding Agent Governance is (and isn't)](/agent-governance/how-it-works#what-coding-agent-governance-is-and-isn’t). > [accordion] What happens when a policy blocks an action? > > The agent receives a deny response explaining that a governance policy blocked the action and telling it not to work around the block. The event appears in **Policy Violations**. See [Hooks and what they govern](/agent-governance/how-it-works#hooks-and-what-they-govern). > [accordion] Why did a blocked action succeed in a different form? > > Policies match commands and patterns, not the end effect, so an agent can occasionally reach the same result another way. That trade-off comes with pattern-based controls that can miss some cases. See [Limitations](/agent-governance/how-it-works#limitations-of-coding-agent-governance). > [accordion] What actions can a policy take? > > **Block**, **Alert** (record only), or **Ask Permission**, written as blocklists or allowlists over shell commands, file access, and MCP tool calls. Secure coding checks add malware, dependency risk, and secrets detection. See [Coding Agent Governance policies](/agent-governance/policies) to write a policy. > [accordion] Can policies catch malicious packages and leaked secrets? > > Yes. The malware check flags packages from the Endor Labs malware feed in installs and manifest edits. The secrets check scans content the agent writes or reads on the developer's machine. A secrets violation reports the rule and location, never the secret value. See [Secure coding checks](/agent-governance/secure-coding) to review what each check inspects. > [accordion] Can I change the built-in system policies? > > Yes. Override a system policy with one of the same name and a different action, turn it off in the policy list, or author your own from the same templates. See [Coding Agent Governance policies](/agent-governance/policies) to write a policy. > [accordion] How is sensitive data handled? > > Every command line, file path, URL, environment value, and MCP tool input or output passes through a redactor on the developer's machine before the hook sends anything. Secret-named keys and common credential formats become `[REDACTED]`. Prompt text stays local. See [Data sent to Endor Labs](/agent-governance/how-it-works#data-sent-to-endor-labs). > [accordion] Are skills and plugins checked for security? > > Endor Labs discovers skills at session start and rates them with an [Endor Score](/agent-governance/endor-score), and policies can flag or block suspicious ones. It assesses plugins through the MCP servers and skills they contribute, not as a single unit. See [Skills](/agent-governance/inventory#skills). # Review your agent inventory Source: https://docs.endorlabs.com/agent-governance/inventory/index Find the AI coding agents, MCP servers, models, and skills your developers use, and check whether they run those agents inside a sandbox. The Coding Agent Governance inventory is a live picture of what your developers run on a workstation. Each entry aggregates events from the deployed hooks so you can answer the question, "What AI is in my organization right now?" ## Open the inventory Select **Agent Governance** from the left sidebar, then select **Inventory**. The page opens on the **Workstation Inventory** tab. Switch tabs to choose what you want to review: * **Workstation Inventory** to see installed agents and their activity. * **MCP Servers** to see the MCP servers your agents call. * **AI Models** to see the underlying models invoked through agents. * **Skills** to see the skills your agents loaded during sessions. * **Sandboxing** to see whether your developers run their agents inside a sandbox. Each tab lets you filter, search, and pivot into the Coding Agent Governance overview, policies, or policy violations. Every tab also opens a detail drawer on row click. On the item tabs, every drawer has a **Usage** section that lists [who uses the item](#see-who-uses-an-item). A download icon in the drawer header [exports the item's events](/agent-governance/policy-violations#export-violations) as a CSV report. The **Sandboxing** tab lists developers rather than items, so its drawer shows [that developer's sessions](#review-sandbox-use-for-one-developer) instead. ## Workstation Inventory The **Workstation Inventory** tab shows every agent and AI tool your hooks have observed. The **Developers with Coding Agents** pie chart breaks down the agents your developers use. The **Sessions** trend compares this week's sessions against last week's. ![Workstation Inventory](https://mintcdn.com/endorlabs-b4795f4f/fffHtDIaLv4Z53Ka/images/agent-governance/workstation-inventory.webp?fit=max\&auto=format\&n=fffHtDIaLv4Z53Ka\&q=85\&s=237329a0c3fea32e559e5309258a765b) \- Column: \*\*Name\*\* What it shows: The agent or tool name, with an \[adoption status]\(#adoption-status) indicator beside it. \- Column: \*\*Type\*\* What it shows: The agent or tool category: \*\*Coding Agent\*\*, \*\*IDE\*\*, \*\*CLI Tool\*\*, \*\*AI Agent\*\*, \*\*Framework\*\*, \*\*MCP Config\*\*, \*\*IDE Extension\*\*, or \*\*Sandbox Tool\*\*. \*\*Sandbox Tool\*\* marks a sandbox tool installed on the workstation, such as Docker Sandboxes or nono, not whether a session ran inside it. Rows without a recognized category show \*\*Unspecified\*\*. \- Column: \*\*Sessions\*\* What it shows: Total agent sessions captured. \- Column: \*\*Users\*\* What it shows: Distinct developers seen using the agent or tool. \- Column: \*\*Last Active\*\* What it shows: When the agent or tool last sent an event. Branded logos appear only for governed agents such as Cursor, Claude Code, Codex, GitHub Copilot, and Snowflake Cortex Code, which shows the Snowflake logo. Every other row (including discovered tools and any agent type the user interface has not yet learned to recognize) shows a generic AI model icon. Use the table to spot agents that are out of date, developers whose agent has stopped reporting, and tools your developers added that you have not adopted. Select a row to open the agent's detail drawer. The header shows a **Governed** or **Discovered** status chip. Below the chip, the drawer shows: * **Last Active** and **Sessions** cards, with the reported version when the agent sends one. * A **Usage** section. Select **Distinct Users** to open the [users panel](#see-who-uses-an-item). * An **Activity** section. Select **Recent Events** to open the event list in a side panel, or **Policy Violations** to jump to that agent's violations. ![Claude Code agent detail drawer showing the Governed status chip, the Last Active and Sessions cards, the version, and the Activity and Usage sections](https://mintcdn.com/endorlabs-b4795f4f/2JhTuTjilpgaKvVW/images/agent-governance/workstation-inventory-drawer.webp?fit=max\&auto=format\&n=2JhTuTjilpgaKvVW\&q=85\&s=1b8809d55fe368bb09fdd5b45ec26178) ### Adoption status Every row shows an adoption status indicator beside the name. Hover over the indicator to read the status. \- Status: \*\*Approved\*\* What it means: A green check. The coding agent reports its activity through Endor agent hooks, and your agent governance policies apply to it. \- Status: \*\*Discovered • Not governed\*\* What it means: An orange half-filled circle. Endor Labs detected the AI tool on a developer workstation that has no Endor integration. No hook fires for the tool, so your agent governance policies do not apply to it. The indicator reports whether Endor Labs governs the item, not how risky the item is. Only coding agents can have the **Approved** status. See [Platform and agent coverage](/agent-governance/how-it-works#platform-and-agent-coverage) for the agents that support policy enforcement. A device can show Snowflake Cortex Code twice: as the governed **Snowflake Cortex Code** agent, and as a discovered `cortex-code-cli` AI tool from the vendor Snowflake. Endor Labs discovers `cortex-code-cli` when another governed agent starts a session on a machine with the `cortex` binary and the `~/.snowflake/cortex` directory. ## MCP Servers The **MCP Servers** tab shows every MCP server your agents have called. The following cards summarize the MCP servers your agents called in the last month: * **Risk**: A donut chart that buckets servers by the risk band derived from their [Endor Score](/agent-governance/endor-score). * **By Source**: A pie chart that breaks servers down by where they come from. * **Blocked**: The count of servers your policies block. Use the **Risk** filter to focus on the riskiest servers. Policies set the review and threat labels. A policy with an inventory classification tags the servers it matches as **Approved**, **Blocked**, **Suspicious**, or **Malicious**, and servers with no matching policy show **Unreviewed**. See [Inventory classification](/agent-governance/policies#inventory-classification) to set the tags. The label and the score measure different things. The label records your organization's decision, applied by your policies. Endor Labs derives the [Endor Score](/agent-governance/endor-score) and its risk band from the server's configuration and source. A low-scoring server stays **Unreviewed** until a policy classifies it. To connect the two, write an [MCP Server Posture](/agent-governance/policies#mcp-server-posture) policy that matches on a score threshold and sets an inventory classification. For example, tag every server scoring 4 or lower as **Blocked**. ![MCP Servers inventory](https://mintcdn.com/endorlabs-b4795f4f/r03o-OAuQBwEFCoQ/images/agent-governance/mcp-servers-inventory.webp?fit=max\&auto=format\&n=r03o-OAuQBwEFCoQ\&q=85\&s=38168b13472aaa99718b76df09206bbc) \- Column: \*\*MCP Server Name\*\* What it shows: The server name, derived from the server's package, command, or URL. Endor Labs drops version pins and Docker image tags, so one server keeps one row. A server launched through a URL proxy such as \`mcp-remote\` takes the name of the remote server. \- Column: \*\*Endor Score\*\* What it shows: The server's trust score, higher is safer. See \[Endor Score]\(/agent-governance/endor-score) for how it is computed. \- Column: \*\*Source\*\* What it shows: Where the server comes from. See \[MCP server sources]\(#mcp-server-sources) for the values. A dash means the server is not yet classified. \- Column: \*\*Calls\*\* What it shows: The number of MCP tool calls Endor Labs has captured. \- Column: \*\*Tools\*\* What it shows: The distinct tools your agents called on this server. \- Column: \*\*Last Active\*\* What it shows: When the server last received a call. ### Identify unsanctioned MCP servers The following steps enable you to identify unsanctioned MCP servers. 1. Select a server to open its detail drawer. It opens with **Last Active** and **Tool Calls** cards. 2. Review the details section: the source, server type, host, transport, launch command, available tools, and environment variable names. 3. Under **Usage**, select **Distinct Users** to open the [users panel](#see-who-uses-an-item). 4. Under **Risk**, select **Policy Violations** to open that server's violations, or **Endor Score Factors** to open the per-dimension [Endor Score](/agent-governance/endor-score) breakdown in a side panel. See [Write a policy](/agent-governance/policies) to gate access to specific servers. ![MCP server detail drawer showing the Last Active and Tool Calls cards, the server details, and the Risk and Usage sections](https://mintcdn.com/endorlabs-b4795f4f/2JhTuTjilpgaKvVW/images/agent-governance/mcp-server-drawer.webp?fit=max\&auto=format\&n=2JhTuTjilpgaKvVW\&q=85\&s=21ac4c72cc1d5543250c2865961a51b8) ### MCP server sources The **Source** column, the **By Source** pie chart, and the drawer's **Source** field classify each server by where it comes from. The drawer shows whether the server runs locally or remotely as **Server Type**. \- Source: \*\*Project Config\*\* What it means: Declared in a project-level agent configuration file in the repository. \- Source: \*\*User Config\*\* What it means: Declared in the developer's user-level agent configuration. \- Source: \*\*Enterprise Config\*\* What it means: Declared in a managed, enterprise-level agent configuration. \- Source: \*\*Plugin\*\* What it means: Contributed by an installed agent plugin. \- Source: \*\*Connector\*\* What it means: A vendor-hosted connector, such as a claude.ai connector. \- Source: \*\*Built-in\*\* What it means: Provided by the agent client itself, such as Claude Code's workspace server or its browser integration. \- Source: \*\*Client Injected\*\* What it means: Injected into the session at runtime without appearing in any configuration the hook can see. For Snowflake Cortex Code, servers from the managed `files.mcpFile` setting are enterprise servers. The hook doesn't read MCP servers declared in a Cortex Code project. See [Configuration the hook reads at session start](/agent-governance/cortex-code#configuration-the-hook-reads-at-session-start) to review the files the hook reads. A server shows a dash until a policy classifies it. That covers servers last seen before your hooks picked up source classification, and events the hook had no configuration snapshot to check against. The classification updates as new events arrive. Endor Labs doesn't score agent plugins as a single unit. It evaluates the MCP servers and skills a plugin contributes. See [How Coding Agent Governance works](/agent-governance/how-it-works#inventory-and-scoring) for related inventory limits. ## AI Models The **AI Models** tab shows the language models invoked through your agents. Above the table, a **Top Models by Sessions** list ranks the most-used models and a **Top Providers by Sessions** list ranks their providers in the selected time range. Every column in the table is sortable, and the filters narrow the table to one agent or provider. ![AI Models inventory](https://mintcdn.com/endorlabs-b4795f4f/r03o-OAuQBwEFCoQ/images/agent-governance/ai-models-inventory.webp?fit=max\&auto=format\&n=r03o-OAuQBwEFCoQ\&q=85\&s=43c46b0be076a98ec8a52d28d9c414eb) \- Column: \*\*Model\*\* What it shows: The model name reported in agent telemetry. Sessions that report no model are grouped into a single \*\*unknown-model\*\* row. \- Column: \*\*Agents\*\* What it shows: The agents that invoked the model. \- Column: \*\*Sessions\*\* What it shows: Total agent sessions in which the model was used. \- Column: \*\*Users\*\* What it shows: Distinct developers who used the model. \- Column: \*\*Last Active\*\* What it shows: When the model last appeared in an event. Use the table to track model adoption and to flag models that fall outside your approved set. Select a row to open the model's detail drawer: **Last Active** and **Tool Calls** cards, and a **Usage** section whose **Distinct Users** entry opens the [users panel](#see-who-uses-an-item). ## Skills The **Skills** tab shows the skills your agents loaded during sessions. The following cards summarize the skills your agents loaded in the last month: * **Risk**: A donut chart that buckets skills by the risk band derived from their Endor Score. * **Top 5 Riskiest Skills**: The lowest-scoring skills by Endor Score. * **Blocked**: The count of skills your policies block. Use the **Risk** filter to focus on the riskiest skills. As with MCP servers, policies set the review and threat labels. See [Inventory classification](/agent-governance/policies#inventory-classification). These labels are separate from the score bands (**Unauthorized**, **Caution**, **Safe**) that come from the [Endor Score](/agent-governance/endor-score). ![Skills inventory](https://mintcdn.com/endorlabs-b4795f4f/r03o-OAuQBwEFCoQ/images/agent-governance/skills-inventory.webp?fit=max\&auto=format\&n=r03o-OAuQBwEFCoQ\&q=85\&s=69e67fee22b72c69bd34cbf0258a5da4) \- Column: \*\*Skill Name\*\* What it shows: The skill name reported by the agent. \- Column: \*\*Agent\*\* What it shows: The agents that loaded this skill. \- Column: \*\*Endor Score\*\* What it shows: A 1-10 trust score (higher is safer), banded as \*\*Unauthorized\*\*, \*\*Caution\*\*, or \*\*Safe\*\* for at-a-glance triage, or \*\*Unscored\*\* if the skill has no score yet. See \[Endor Score]\(/agent-governance/endor-score) for how the score is computed. \- Column: \*\*Users\*\* What it shows: Distinct developers whose sessions loaded the skill. \- Column: \*\*Last Active\*\* What it shows: When the skill was last used in a session. Use the table to triage low-scoring skills and to coordinate with developers on which skills your organization trusts. Policies can flag or block skills by name or by Endor Score. See [Skill Access](/agent-governance/policies#skill-access) to write those rules. ### Review a skill The following steps enable you to review a skill's metadata, content, users, and risk. 1. Select a row to open the skill's detail drawer. It opens with **Last Active** and **Sessions** cards. The **Sessions** card counts sessions in the selected time window, such as **Sessions (Last Month)**. 2. Review the frontmatter metadata: description, allowed tools, license, compatibility, file count, and file path. 3. Under **Content**, open the captured `SKILL.md` in a side panel. 4. Under **Usage**, select **Distinct Users** to open the [users panel](#see-who-uses-an-item). 5. Under **Risk**, select **Endor Score Factors** to open the per-dimension score breakdown. ![Skill detail drawer showing the Last Active and Sessions (Last Month) cards, frontmatter metadata, and the Risk section](https://mintcdn.com/endorlabs-b4795f4f/2JhTuTjilpgaKvVW/images/agent-governance/skill-drawer.webp?fit=max\&auto=format\&n=2JhTuTjilpgaKvVW\&q=85\&s=aaf855c9c3ec6d73fce37dbf7f21caa7) ### How skills are discovered At every session start, the hook scans for `SKILL.md` files in two directory scopes and reports every skill it finds on the session-start event. \- Scope: Workspace Paths scanned by Claude Code: \`\/.claude/skills/\` Paths scanned by Cursor: \`\/.cursor/skills/\`, \`\/.agents/skills/\`, \`\/.claude/skills/\`, \`\/.codex/skills/\` (first workspace root only) Paths scanned by Codex: \`.agents/skills/\` in every directory from the repository root down to the working directory Paths scanned by GitHub Copilot: \`.github/skills/\` and \`.copilot/skills/\` under the repository root and the working directory \- Scope: User home Paths scanned by Claude Code: \`\~/.claude/skills/\` Paths scanned by Cursor: \`\~/.cursor/skills/\`, \`\~/.agents/skills/\`, \`\~/.claude/skills/\`, \`\~/.codex/skills/\` Paths scanned by Codex: \`\~/.agents/skills/\`, \`/etc/codex/skills/\` Paths scanned by GitHub Copilot: \`\~/.copilot/skills/\` Cursor scans across the common agent skill directories so that a skill installed for any supported agent appears in the inventory. Endor Labs doesn't collect skills for Snowflake Cortex Code. ### `SKILL.md` format Each skill is a directory that contains a `SKILL.md` file with YAML frontmatter. ```yaml theme={null} --- name: my-skill description: One-line summary of what the skill does. license: Apache-2.0 compatibility: Requires Python 3.14+ allowed-tools: - Bash - Read --- # Skill body in Markdown ``` The frontmatter exposes these keys to the Endor Labs inventory: * `name`: Used as the skill identifier. If it's missing, the inventory uses the parent directory name instead. * `description`: Shown on the skill row and detail page. * `license`: Shown with the skill for compliance review. * `compatibility`: Free-text dependency requirement. * `allowed-tools`: List of tools the skill may call. Accepts a YAML list or a space-separated string. ### Discovery limits and behavior Skill discovery works within the following limits: * A single event can include up to 100 skills. The hook skips any additional skills. * The hook truncates each skill's content to 128 KiB and caps a single event payload at 10 MiB. When a skill's content would push the payload past the cap, the hook reports that skill with metadata only. * The hook skips directories named `.git`, `node_modules`, `vendor`, `__pycache__`, and `.venv` to keep discovery fast. * The hook doesn't follow symbolic links. * If two skills share the same `name`, the first one encountered wins. Workspace directories scan before user-home directories. * The hook skips `SKILL.md` files it cannot read, so a single corrupt skill doesn't break inventory. A readable file with malformed frontmatter still appears, using the directory name as the skill name. > [!NOTE] > > The hook doesn't capture skills the agent loads at runtime from outside the scanned directories. ## Sandboxing The **Sandboxing** tab shows whether your developers run their coding agents inside a sandbox. Each row is one user identifier that an agent reported, and the tab covers session start events from the last 30 days. Search by user to find a developer, and filter by **Last Active**, **Agent**, **Policy Name**, **Sandbox Coverage**, or **Sandbox Name**. ![Sandboxing tab showing the Sandbox Sessions and Sessions by Sandbox Posture cards above the developer table](https://mintcdn.com/endorlabs-b4795f4f/2JhTuTjilpgaKvVW/images/agent-governance/sandboxing-inventory.webp?fit=max\&auto=format\&n=2JhTuTjilpgaKvVW\&q=85\&s=354faf080f23e6b3c6b1ddfab9f2bd7a) The following cards summarize sandbox use: * **Sandbox Sessions**: A pie chart that breaks sandboxed sessions down by the sandbox that protected them. The center figure is the share of sandboxable sessions that ran inside a sandbox. Select a slice to filter the table to that sandbox. * **Sessions by Sandbox Posture**: A daily trend of **Sandboxed**, **Not sandboxed**, and **Unknown** sessions. \- Column: \*\*User\*\* What it shows: The user identifier the agent reported. One developer can appear as more than one row. See \[who uses an item]\(#see-who-uses-an-item) to find the identifier each agent sends. \- Column: \*\*Agent\*\* What it shows: The coding agents this developer ran. \- Column: \*\*Sessions\*\* What it shows: Session start events captured for the developer. \- Column: \*\*Sandbox Coverage\*\* What it shows: The share of the developer's sessions that ran inside a sandbox. See \[Sandbox coverage]\(#sandbox-coverage) to interpret the percentage. \- Column: \*\*Sandbox Name\*\* What it shows: The sandboxes that protected the developer's sessions. See \[Sandbox names]\(#sandbox-names) to identify each sandbox. \- Column: \*\*Policy Name\*\* What it shows: How your session policies acted on the developer's sessions. See \[Policy outcomes]\(#policy-outcomes) to read the counts and actions. \- Column: \*\*Last Active\*\* What it shows: When the developer's most recent session started. ### Sandbox posture Every session has a sandbox posture that the agent derives from its configuration at session start. \- Posture: \*\*Sandboxed\*\* What it means: The session ran inside a sandbox. \- Posture: \*\*Not sandboxed\*\* What it means: The session was sandboxable and ran outside a sandbox. \- Posture: \*\*Unknown\*\* What it means: The agent never evaluated posture, or evaluated it and could not determine it. Snowflake Cortex Code derives its posture from managed settings, the MDM policy, and project and user settings. See [Sandbox posture](/agent-governance/cortex-code#sandbox-posture) to review the order it applies them in. When a developer changes the Claude Code configuration mid-session, such as by toggling `/sandbox`, the hook records a `CONFIG_CHANGE` event instead of a file operation. A sandboxable session is one with a determined posture, either **Sandboxed** or **Not sandboxed**. The **Sandbox Sessions** center figure measures sandboxed sessions against sandboxable sessions only. **Sandbox Coverage** measures them against every session, so unknown sessions lower a developer's percentage. ### Sandbox coverage **Sandbox Coverage** is the share of a developer's sessions that ran inside a sandbox, counted against every session the developer started. The detail drawer reports the same figure as one of four statuses. \- Status: \*\*Fully sandboxed\*\* What it means: Every session ran inside a sandbox. \- Status: \*\*Partially sandboxed\*\* What it means: Some sessions ran inside a sandbox and some did not. \- Status: \*\*Not sandboxed\*\* What it means: No session ran inside a sandbox. \- Status: \*\*Sandbox status unknown\*\* What it means: None of the developer's sessions reported a determined posture, so there is nothing to measure. A developer with unknown sessions never reaches 100%, even when every determined session was sandboxed. Treat a coverage gap as a question about reporting as well as about sandbox use. ### Sandbox names The **Sandbox Name** column and the **Sandbox Sessions** chart name the sandbox that protected each session. A built-in sandbox takes the name of its agent, so **Cursor**, **Claude Code**, and **Codex** each mean the agent's own sandbox. \- Sandbox Name: \*\*Docker\*\* What it means: The session ran in a Docker sandbox. \- Sandbox Name: \*\*nono\*\* What it means: The session ran under the nono sandbox tool. \- Sandbox Name: \*\*Seatbelt\*\* What it means: The session ran under the macOS Seatbelt sandbox. \- Sandbox Name: \*\*Container\*\* What it means: The agent ran inside a generic container that Endor Labs could not identify further. \- Sandbox Name: \*\*Dedicated tool\*\* What it means: A dedicated sandbox tool managed the agent, and the agent reported no specific tool name. \- Sandbox Name: \*\*Sandbox runtime\*\* What it means: A sandbox runtime managed the agent, and the agent reported no specific runtime name. When an agent reports a sandbox that Endor Labs does not recognize, the column shows the name the agent reported. Only a sandboxed session contributes a name. A developer whose sessions all ran outside a sandbox, or whose agents never determined posture, has an empty **Sandbox Name** column. ### Policy outcomes The **Policy Name** column counts the session policies that matched a developer's sessions and shows the action those policies took. It reads as a count with the action, such as **2 blocked**. When policies with different actions matched, the column shows the most severe action, with block ahead of ask and ask ahead of alert. Hover over the value to list the names of the policies that took that action. A dash means no session policy matched. Only policies that match on the session appear here. A session event can also include a skill match or an MCP server match, and neither shows in this column. See [Write a policy](/agent-governance/policies) to create the rules behind these outcomes. ### Review sandbox use for one developer Use the detail drawer to review one developer's sessions and the sandboxes that protected them. 1. Select a row to open the developer's detail drawer. The header shows the developer and their [coverage status](#sandbox-coverage). 2. Review the **Sandboxed sessions** card for the coverage percentage and the session counts behind it. 3. Review **Agents**, **Sessions**, and **Last active** for the developer's activity. 4. Under **Sessions**, review each session start event. An entry shows the agent, a shortened session identifier, the sandbox that protected the session, and the date. An entry marked **Unknown** had no determined posture. An entry with no sandbox ran outside a sandbox. 5. Optional: Narrow the list with the **Sandbox Name**, **Policy Name**, and **Last Active** filters. Select **Reset** to clear them. ![Sandboxing detail drawer showing the Sandbox status unknown indicator, the Sandboxed sessions card, and two session entries marked Unknown](https://mintcdn.com/endorlabs-b4795f4f/2JhTuTjilpgaKvVW/images/agent-governance/sandboxing-drawer.webp?fit=max\&auto=format\&n=2JhTuTjilpgaKvVW\&q=85\&s=1f8f0e1c8815d5633e34b272397f39a4) ### Export sandbox usage Select **Export Usage** above the table to queue a CSV report of the session start events behind the tab. See [Export violations](/agent-governance/policy-violations#export-violations) to follow the export steps and find the finished report. The dialog keeps your **Last Active** and **Agent** filters, plus **Policy Name** when session policies exist, and the export applies your user search. The dialog does not offer **Sandbox Coverage** or **Sandbox Name**. Endor Labs computes both in your browser instead of storing them on the event, so the export job cannot filter on them. The report includes each session's sandbox posture and sandbox fields, so you can derive both from the CSV. ## See who uses an item Every item detail drawer has a **Usage** section with a **Distinct Users** entry showing the all-time count of developers observed using the item. Select the entry to open the users list in a side panel. The list shows every developer who has used the item, when they were first seen, and how active they have been over the last 30 days. When an item looks risky, it tells you which developers to talk to and whether they still use it. ![Distinct Users panel listing each user of the Claude Code agent with first seen, last active, and active days](https://mintcdn.com/endorlabs-b4795f4f/r03o-OAuQBwEFCoQ/images/agent-governance/distinct-users-panel.webp?fit=max\&auto=format\&n=r03o-OAuQBwEFCoQ\&q=85\&s=76fa39dbb173d2593673b7e0b991cfc5) \- Column: \*\*User\*\* What it shows: The user identifier the agent reported. \- Column: \*\*First Seen\*\* What it shows: When the user was first observed using the item. \- Column: \*\*Last Active (30d)\*\* What it shows: The user's most recent day of activity within the last 30 days. \- Column: \*\*Active Days (30d)\*\* What it shows: How many of the last 30 days the user was active on the item. A count near 30 is a daily driver. A count of 1 is someone who tried it once. The list itself is all-time, and the two activity columns cover the last 30 days. **N/A** in the activity columns means the user has been idle on the item for over a month, not that data is missing. Agents report different user identifiers, so one developer can appear as more than one row. Cursor reports the developer's email, or the operating system login when the event has no email. Claude Code reports the Claude account email, and Codex reports the ChatGPT account email. GitHub Copilot reports the GitHub login. Snowflake Cortex Code reports `ENDOR_ACTOR` when set, otherwise the operating system login. When Claude Code, Codex, or Copilot cannot read the signed-in account, the hook falls back to an environment variable your managed settings can set. Without that variable, it uses the operating system login. ## Next steps Continue with the following pages: * See [Write a policy](/agent-governance/policies) to act on what the inventory shows. * See [Read the Coding Agent Governance overview](/agent-governance/overview) to track inventory trends across a time range. # Deploy Coding Agent Governance with MDM Source: https://docs.endorlabs.com/agent-governance/mdm-deployment/index Generate Cursor hooks, Claude Code settings, Codex requirements, GitHub Copilot policy hooks, or a macOS configuration profile for managed developer machines. Coding Agent Governance configurations connect Cursor, Claude Code, Codex, and GitHub Copilot events to Endor Labs. Use this page to generate hook configuration for individual machines or for fleets managed through mobile device management (MDM). You can create Cursor `hooks.json`, Claude Code `settings.json`, Codex `requirements.toml`, a GitHub Copilot policy hook file, or a macOS configuration profile for Claude Code or Codex. The generated hooks install and update endorctl when a coding agent session starts. The generator and the mdm-scripts repository don't cover Snowflake Cortex Code yet. See [Deploy hooks for Snowflake Cortex Code](/agent-governance/cortex-code#install-on-a-managed-fleet) to deliver its hooks file by hand. ## Before you begin Complete the following tasks before you generate a configuration: * Complete the [Coding Agent Governance prerequisites](/agent-governance/prerequisites). * Create an API key with the **AI Audit User** role. * Identify the namespace that owns your Coding Agent Governance policies. * For manual generation, install `git` on the admin machine. The scripts run with system tools only. Creating a macOS configuration profile also requires macOS and `plutil`. ## Generate a configuration in your browser The browser generator assembles the configuration locally. Your API key, secret, namespace, and environment variable values are never sent to Endor Labs or GitHub. If the browser generator isn't available or can't fetch its source files, [generate the configuration manually](#generate-a-configuration-manually). ## Generate a configuration manually The [Endor Labs MDM scripts repository](https://github.com/endorlabs/mdm-scripts/tree/main/agent-governance) is the authoritative source for the generator scripts. Clone the repository on an admin machine. ```bash theme={null} git clone https://github.com/endorlabs/mdm-scripts cd mdm-scripts/agent-governance ``` Set your credentials as environment variables. The generator reads these exact variable names, and prompts for any missing credential when you run it interactively. ```bash theme={null} export ENDOR_API_CREDENTIALS_KEY="" export ENDOR_API_CREDENTIALS_SECRET="" export ENDOR_NAMESPACE="" ``` Generate the configuration that matches your coding agent and deployment method. > [!WARNING] > > The output contains your API key and secret. Treat the output and its MDM policy as secrets. Restrict access and rotate the API key if someone exposes the configuration. > [tab] Cursor > > Generate `hooks.json` for macOS or Linux. Cursor has no managed environment block, so every hook command includes the credentials and `--env` settings inline. > > ```bash theme={null} > scripts/render.sh --agent cursor \ > --api-key "$ENDOR_API_CREDENTIALS_KEY" \ > --api-secret "$ENDOR_API_CREDENTIALS_SECRET" \ > --namespace "$ENDOR_NAMESPACE" \ > -o cursor-hooks.json > ``` > > For Windows, add `--target-os windows`. The generated hook uses an encoded PowerShell command that can run from Git Bash, PowerShell, or Command Prompt. > > ```bash theme={null} > scripts/render.sh --agent cursor --target-os windows \ > --api-key "$ENDOR_API_CREDENTIALS_KEY" \ > --api-secret "$ENDOR_API_CREDENTIALS_SECRET" \ > --namespace "$ENDOR_NAMESPACE" \ > -o cursor-hooks.json > ``` > [tab] Claude Code > > Generate `settings.json` for a user installation, Linux managed settings, or Windows deployment. > > ```bash theme={null} > scripts/render.sh --agent claude \ > --api-key "$ENDOR_API_CREDENTIALS_KEY" \ > --api-secret "$ENDOR_API_CREDENTIALS_SECRET" \ > --namespace "$ENDOR_NAMESPACE" \ > -o claude-settings.json > ``` > > For Windows, add `--target-os windows`. > > ```bash theme={null} > scripts/render.sh --agent claude --target-os windows \ > --api-key "$ENDOR_API_CREDENTIALS_KEY" \ > --api-secret "$ENDOR_API_CREDENTIALS_SECRET" \ > --namespace "$ENDOR_NAMESPACE" \ > -o claude-settings.json > ``` > [tab] Claude Code macOS profile > > Pipe the Claude Code settings through `render-plist.sh` to create a `.mobileconfig` file. Replace the identifier and organization with values for your organization. > > ```bash theme={null} > scripts/render.sh --agent claude \ > --api-key "$ENDOR_API_CREDENTIALS_KEY" \ > --api-secret "$ENDOR_API_CREDENTIALS_SECRET" \ > --namespace "$ENDOR_NAMESPACE" \ > -o - \ > | scripts/render-plist.sh \ > --identifier com.example.ai-governance.claudecode \ > --organization "Example Organization" \ > --name "Claude Code - Endor AI Governance" \ > -o com.anthropic.claudecode.mobileconfig > ``` > [tab] Codex > > Generate `requirements.toml` with managed hooks for macOS or Linux. Codex trusts hooks from a managed requirements source, so they run without per-user approval. Codex has no managed environment block, so every hook command includes the credentials and `--env` settings inline. > > ```bash theme={null} > scripts/render.sh --agent codex \ > --api-key "$ENDOR_API_CREDENTIALS_KEY" \ > --api-secret "$ENDOR_API_CREDENTIALS_SECRET" \ > --namespace "$ENDOR_NAMESPACE" \ > -o codex-requirements.toml > ``` > > For Windows, add `--target-os windows`. > > ```bash theme={null} > scripts/render.sh --agent codex --target-os windows \ > --api-key "$ENDOR_API_CREDENTIALS_KEY" \ > --api-secret "$ENDOR_API_CREDENTIALS_SECRET" \ > --namespace "$ENDOR_NAMESPACE" \ > -o codex-requirements.toml > ``` > [tab] Codex macOS profile > > Pipe the Codex requirements through `render-plist.sh --style mcx` to create a `.mobileconfig` file that delivers the TOML as a managed preference. Replace the identifier and organization with values for your organization. > > ```bash theme={null} > scripts/render.sh --agent codex \ > --api-key "$ENDOR_API_CREDENTIALS_KEY" \ > --api-secret "$ENDOR_API_CREDENTIALS_SECRET" \ > --namespace "$ENDOR_NAMESPACE" \ > -o - \ > | scripts/render-plist.sh --style mcx \ > --identifier com.example.ai-governance.codex \ > --organization "Example Organization" \ > --name "Codex - Endor AI Governance" \ > -o com.openai.codex.mobileconfig > ``` > [tab] GitHub Copilot > > Generate the policy hook file for macOS or Linux. Copilot has no managed environment block, so every hook command includes the credentials and `--env` settings inline. > > ```bash theme={null} > scripts/render.sh --agent copilot \ > --api-key "$ENDOR_API_CREDENTIALS_KEY" \ > --api-secret "$ENDOR_API_CREDENTIALS_SECRET" \ > --namespace "$ENDOR_NAMESPACE" \ > -o copilot-hooks.json > ``` > > For Windows, add `--target-os windows`. The Windows session hook gets a 30-minute timeout because the bootstrap downloads endorctl during session start. > > ```bash theme={null} > scripts/render.sh --agent copilot --target-os windows \ > --api-key "$ENDOR_API_CREDENTIALS_KEY" \ > --api-secret "$ENDOR_API_CREDENTIALS_SECRET" \ > --namespace "$ENDOR_NAMESPACE" \ > -o copilot-hooks.json > ``` ### Configure optional behavior The generator enables the local response cache by default. Add `--env ENDOR_AI_AUDIT_NO_BLOCKING=true` to evaluate and record actions without blocking them. ```bash theme={null} scripts/render.sh --agent cursor \ --api-key "$ENDOR_API_CREDENTIALS_KEY" \ --api-secret "$ENDOR_API_CREDENTIALS_SECRET" \ --namespace "$ENDOR_NAMESPACE" \ --env ENDOR_AI_AUDIT_NO_BLOCKING=true \ -o cursor-hooks.json ``` Add `--skip-endorctl-update` if you provision endorctl separately and don't want the hook to check for updates when a session starts. ## Deploy the generated configuration Deliver the generated file through your MDM or configuration management tool. ### Deploy Cursor hooks Deliver `cursor-hooks.json` to the location that matches your deployment: * For a local trial, copy `cursor-hooks.json` to `~/.cursor/hooks.json`. * On managed macOS machines, deliver it to `/Library/Application Support/Cursor/hooks.json`. * On managed Linux machines, deliver it to `/etc/cursor/hooks.json`. * On Windows, push `cursor-hooks.json` to `C:\ProgramData\Cursor\hooks.json` with your MDM tool. See [Deploy hooks for Cursor](/agent-governance/cursor) to verify the installation and review the registered hook events. ### Deploy Claude Code settings Deliver the generated Claude Code configuration to the location that matches your deployment: * For a local trial, copy `claude-settings.json` to `~/.claude/settings.json`. * On managed Linux machines, deliver it to `/etc/claude-code/managed-settings.json`. * On Windows, push `claude-settings.json` to `C:\Program Files\ClaudeCode\managed-settings.json` with your MDM tool. * On managed macOS machines, upload `com.anthropic.claudecode.mobileconfig` as a custom profile. See [Deploy hooks for Claude Code](/agent-governance/claude-code) to verify the installation and review the registered hook events. #### Check a Claude Code macOS profile Run these checks on a Mac, because `plutil` ships only with macOS. The commands assume the default payload type, `com.anthropic.claudecode`. If you set a custom payload type, replace that value in the profile file name and the managed-preference path. The browser generator names the profile `.mobileconfig`, and macOS installs it as `/Library/Managed Preferences/.plist`. 1. Confirm that the profile is a valid property list, has no Windows (CRLF) line endings, and has a `SessionStart` hook that parses as shell. ```bash theme={null} plutil -lint com.anthropic.claudecode.mobileconfig grep -c $'\r' com.anthropic.claudecode.mobileconfig # must print 0 plutil -extract 'PayloadContent.0.hooks.SessionStart.0.hooks.0.command' raw -o - \ com.anthropic.claudecode.mobileconfig | sh -n # must print nothing ``` A Windows checkout, an editor, or a paste into a web form can add CRLF line endings, and `plutil -lint` still accepts the file. The generated hook strips carriage returns when it runs, so CRLF line endings alone don't break it. A nonzero count still means that something changed the file after generation, so generate it again. 2. Upload the generated file itself to your MDM. Don't open it in an editor or paste its contents. 3. If your MDM lets you download the uploaded profile, run the step 1 checks on the downloaded copy. 4. On a test Mac that has the profile installed, confirm that the managed preference contains the complete hook. The check extracts the exact command that Claude Code runs and must print nothing. ```bash theme={null} plutil -extract 'hooks.SessionStart.0.hooks.0.command' raw -o - \ '/Library/Managed Preferences/com.anthropic.claudecode.plist' | sh -n ``` 5. On the same test Mac, confirm that the managed preference still contains the Endor Labs credentials. macOS combines every profile with the same payload type into this one file and keeps only one `env` block. ```bash theme={null} plutil -p '/Library/Managed Preferences/com.anthropic.claudecode.plist' sudo profiles show -type configuration | grep -B4 -A2 anthropic ``` Check the output against these conditions: * The `plutil` output must list `AGENT_HOOK_ENDOR_API`, `AGENT_HOOK_ENDOR_NAMESPACE`, `AGENT_HOOK_ENDOR_API_CREDENTIALS_KEY`, and `AGENT_HOOK_ENDOR_API_CREDENTIALS_SECRET` under `env`. * The `profiles` output lists every installed profile with this payload type. More than one profile means that another product, for example a developer analytics tool, also configures Claude Code. If the `AGENT_HOOK_ENDOR_*` keys are missing, another profile replaced the `env` block. The Endor Labs hooks then run without credentials and send nothing, with no error. Combine both payloads into one profile, and repeat this step after every push of either profile. 6. Start a Claude Code session on the test Mac. If endorctl isn't installed yet, the `SessionStart` hook installs it to `~/.endorctl/endorctl` in the background and skips its own audit. 7. In that session, run `/status`. The **Setting sources** line must include `plist`. For example, `Enterprise managed settings (plist)`. Another managed source, such as `(remote)`, can take priority. Claude Code then skips the profile, and the Endor Labs hooks don't run. The profile appears on the **Skipped sources** line instead. To fix this, deliver the Endor Labs settings through the source that wins. On Claude Code v2.1.242 or later, you can instead set `managedSourcesBehavior` to `"merge"` in that source. Claude Code then applies both sources, and the line ends in `, merged`. Merge also applies hooks and `permissions.allow` rules from every lower source. Use it only if an administrator controls each one. 8. If the hook installed endorctl in step 6, start a second session after `~/.endorctl/endorctl` exists. 9. Confirm that the session activity reaches Endor Labs. See [Verify hooks are firing](/agent-governance/claude-code#verify-hooks-are-firing) to check for recent activity in the inventory. 10. Assign the profile to the rest of your fleet. ### Deploy Codex requirements Deliver the generated Codex configuration to the location that matches your deployment: * On managed macOS and Linux machines, deliver `codex-requirements.toml` to `/etc/codex/requirements.toml`. * On managed macOS machines, you can instead upload `com.openai.codex.mobileconfig` as a custom profile. * On Windows, push `codex-requirements.toml` to `%ProgramData%\OpenAI\Codex\requirements.toml` with your MDM tool. See [Deploy hooks for Codex](/agent-governance/codex) to verify the installation and review the registered hook events. ### Deploy Copilot policy hooks Deliver `copilot-hooks.json` to Copilot's policy directory. Copilot treats that directory as administrator policy. Hooks there ignore `disableAllHooks` and run regardless of folder trust. Only the Copilot CLI reads the policy level. Deliver the file to the location that matches your deployment: * For a local trial, copy `copilot-hooks.json` to `~/.copilot/hooks/endor.json`. Both the Copilot CLI and VS Code agent mode read that directory, but a developer can edit it. * On managed macOS and Linux machines, deliver it to `/etc/github-copilot/policy.d/endor.json`, owned by root with mode `0644`. * On Windows, push it to `C:\ProgramData\GitHub\Copilot\policy.d\endor.json` with your MDM tool. See [Deploy hooks for GitHub Copilot](/agent-governance/copilot) to verify the installation and review the registered hook events. ## Update a deployment The session hook installs endorctl on first use and checks for a newer version on later session starts. It verifies every downloaded binary with SHA-256. On macOS and Linux, the hook never waits for the download. It hands the install or update to a background job and audits with the binary already on disk. If endorctl isn't installed yet, the hook skips the audit. On Windows, the hook downloads endorctl during session start. The version check runs at most once a day. Set `ENDORCTL_UPDATE_TTL_MINUTES` in the configuration's environment variables to change that interval. Regenerate and redeploy the configuration when you change credentials, environment variables, or delivery settings. Server-side Coding Agent Governance policy changes don't require a new configuration. Older Claude Code settings and profiles for macOS and Linux don't strip CRLF line endings from the session hook. If a macOS profile with that hook picks up CRLF line endings, its session hook breaks. A file needs updating if its `SessionStart` command doesn't start with `eval "$(printf`. Regenerate and redeploy those files. ## Keep a fleet current with the scheduled runner The [mdm-scripts repository](https://github.com/endorlabs/mdm-scripts/tree/main/agent-governance) also provides `scripts/runner.sh`, which replaces one-shot generation with a self-updating deployment on macOS and Linux. Paste it into your MDM as a recurring script body, such as a Jamf script, a Kandji Custom Script, or a JumpCloud Command. Edit the settings block at the top to pick the agent (`cursor`, `claude`, `codex`, or `copilot`) and pin a reviewed revision. On each run it fetches the repository at that revision, renders the configuration on the endpoint, and replaces the installed file in one step, only when the result changed. Credential and flag changes then roll out on the next scheduled run without a redeploy. To pick up repository changes, update the pinned revision in the script. The runner has these requirements and limits: * The MDM must set `ENDOR_API_CREDENTIALS_KEY`, `ENDOR_API_CREDENTIALS_SECRET`, and `ENDOR_NAMESPACE` in the script's environment. Use an API key with the **AI Audit User** role. * Endpoints need only `curl` and `tar`, which come with macOS and Linux. * For `copilot`, the runner writes `/etc/github-copilot/policy.d/endor.json` and creates the directory if needed. * Windows does not use the runner. Pre-generate the configuration and push it with Intune or your MDM tool. # Coding Agent Governance overview Source: https://docs.endorlabs.com/agent-governance/overview/index See developer adoption, model use, and policy enforcement trends across your entire fleet on one page. The Coding Agent Governance overview pulls counts and trends from every event your hooks have captured. Use it to answer the question, "How is Coding Agent Governance going across my organization right now?" ## Open the overview Select **Agent Governance** from the left sidebar. The overview opens by default. Use **Time Range** at the top to scope every metric and chart to a window, such as the last hour, day, week, or a custom range. ![Coding Agent Governance overview](https://mintcdn.com/endorlabs-b4795f4f/2JhTuTjilpgaKvVW/images/agent-governance/agent-governance-overview.webp?fit=max\&auto=format\&n=2JhTuTjilpgaKvVW\&q=85\&s=102aadaa85a09bae747cdb3e11334eb6) ## Top metrics Four counts summarize fleet-wide activity. \- Metric: \*\*Developers with AI\*\* What it shows: Licensed developers detected using an AI coding agent. \- Metric: \*\*Coding Agents\*\* What it shows: Distinct AI coding tools detected in use, such as Cursor or Claude Code. \- Metric: \*\*Sandbox Gap\*\* What it shows: Developers whose sandbox coverage is not 100% in the selected time range. \- Metric: \*\*Policy Violations\*\* What it shows: Actions taken by agents that violated your policies, such as reading restricted files, running blocked commands, or calling unapproved MCP servers. Hover any metric to see its definition. Select **Sandbox Gap** to open the [Sandboxing](/agent-governance/inventory#sandboxing) tab filtered to those developers. A developer counts toward the gap when any session ran outside a sandbox or reported no posture. See [Sandbox coverage](/agent-governance/inventory#sandbox-coverage) to learn how Endor Labs calculates the percentage. ## Composition charts Three pie charts show what your fleet is using during the selected time range. * **Top Model Sessions**: The top three models by session count. * **Top MCP Servers**: The top three MCP servers by tool-call count. * **Skills**: Loaded skills bucketed as **Unauthorized**, **Suspicious**, **Approved**, or **Unscored** by their [Endor Score](/agent-governance/endor-score). Use these to spot a model, an MCP server, or a skill gaining ground that you have not approved. ## Top violation widgets Below the pies, two card tables show the busiest policy violations in the selected time range. Each card shows a few rows and links to **Policy Violations** with the matching filter applied. * **Most Triggered Policy Violations**: Top policy match categories by violation count, with the agent and the action taken. * **Top Violating Users**: The developers behind the most violations, with the agent they used. ## When the overview is empty The overview shows **No data available** when nothing matches the current time range. Confirm: * **Time Range** is wide enough to include relevant events. * Hooks are deployed and reporting. See [Review your agent inventory](/agent-governance/inventory) to confirm activity is arriving. ## Next steps Continue with the following pages: * See [Triage policy violations](/agent-governance/policy-violations) to drill into the events behind the counts. * See [Review your agent inventory](/agent-governance/inventory) to dig into the agents, MCP servers, models, and skills behind the charts. * See [Sandboxing](/agent-governance/inventory#sandboxing) to find the developers behind the **Sandbox Gap** count. # Coding Agent Governance policies Source: https://docs.endorlabs.com/agent-governance/policies/index Block dangerous commands, restrict file access, and gate MCP server use with allow and deny patterns for AI coding agents. Coding Agent Governance policies tell hooks how to react to risky agent activity in real time. Most policies combine a template, a set of patterns, and an action. When a matching event arrives, the hook applies the action before the agent runs the operation. Endor Labs provides more than 50 system policies. Almost all are enabled by default, so enforcement starts as soon as you deploy hooks. They restrict destructive commands, secret and credential access, risky git and publish operations, known-malicious MCP servers, and attempts to bypass the Package Firewall. These policies also ask before riskier-but-routine actions, such as installing packages or force-pushing a branch. See [Out-of-the-box policies](#out-of-the-box-policies) to review the complete list. You can change any system policy for your namespace. You can override it with a policy of the same name and a different action, turn it off in the policy list, or author your own from the same templates. See [Policy propagation across namespaces](#policy-propagation-across-namespaces) to scope an override to one namespace. The following templates are available: * [**File Access**](#file-access): Control reads, writes, edits, and deletes in the workspace. * [**Command Execution**](#command-execution): Control the shell commands an agent runs. * [**Auto Mode**](#auto-mode): Let an AI judge review shell commands, with context about your deployment. * [**MCP Server Access**](#mcp-server-access): Control which MCP servers and tools an agent calls. * [**MCP Server Posture**](#mcp-server-posture): Match MCP servers by name or by Endor Labs score. * [**Skill Access**](#skill-access): Control which skills run, by name or by Endor Labs score. * [**Session Posture**](#session-posture): Match sessions by user, sandbox, and models. * [**Malware**](#malware): Check the packages an agent installs against the Endor Labs malware feed. * [**Secrets**](#secrets): Scan content the agent writes or reads for leaked secrets. * [**Dependency Risk**](#dependency-risk): Check the dependencies an agent adds for known vulnerabilities. Create it through the REST API, because the policy form doesn't offer it yet. Hooks evaluate events against the policy snapshot they read from the namespace. ## Manage Coding Agent Governance policies To open Coding Agent Governance policies: 1. Select **User menu** > **Policies & Rules** from the left sidebar. 2. Select **Agent Governance**. ### View Coding Agent Governance policies On the **Agent Governance** listing, you can view policies grouped by what they govern: * **All Policies** for every policy in scope. * **Coding Agents** for command execution and auto mode policies. * **MCP Servers** for MCP server and tool access policies. * **File Access** for file-operation policies. * **Skills** for skill policies. * **MCP Server Posture** for policies that match MCP servers by Endor Labs score. * **Sessions** for session posture policies. * **Malware** for malware check policies. * **Secrets** for secrets check policies. Dependency risk policies have no view of their own. They appear under **All Policies**. ### Create a Coding Agent Governance policy 1. Click **Create Agent Governance Policy**. 2. Under **Define a Policy**, choose a template under **Policy Template**: * **File Access** under **Coding Agents**: Control reads, writes, deletes, and edits in the workspace. * **Command Execution** under **Coding Agents**: Control the shell commands the agent runs. * **Auto Mode** under **Coding Agents**: Let an AI judge review shell commands. This template has no list type or action steps. See [Create an auto mode policy](#create-an-auto-mode-policy) to fill in its fields. * **MCP Server Access** under **MCP Servers**: Control which MCP servers and tools the agent can call. * **MCP Server Posture** under **MCP Servers**: Match MCP servers by name or by Endor Labs score. * **Skill Access** under **Skills**: Control which skills can run, by name or by Endor Labs score. * **Session Posture** under **Sessions**: Match sessions by user identity, sandbox, and models. * **Malware** under **Secure Coding**: Block installs of known-malicious packages, verified against the Endor Labs malware feed. * **Secrets** under **Secure Coding**: Scan file content the agent writes or reads for exposed secrets. 3. Under **List Type**, choose **Allowlist** to permit only matching items, or **Blocklist** to block matching items. The **Malware** and **Secrets** templates don't show **List Type**. 4. Fill in the fields the template exposes. See [Templates and patterns](#coding-agent-governance-templates-and-patterns) to look up the field names and pattern syntax for each template. 5. Under **Choose an Action**, select the action your hook should take when an event matches: * **Block** stops the action and returns a deny response to the agent. * **Alert** lets the action proceed and records the event under **Policy Violations**. * **Ask Permission** pauses the agent until the developer approves or denies, where the agent supports it. * **AI Judged** hands the matched command to the AI judge, which decides the action. It appears for **Command Execution** policies and is unavailable when **Intent** is **Governance**. See [AI Judged action](#ai-judged-action) to review how it behaves. 6. Optional: Fill in **User Message**. The developer sees it when the policy fires, if the agent hook response can carry the message. A **Block** policy also sends it to the agent inside a deny response that names the policy category and warns against working around the block. An **AI Judged** policy has no message fields, because the agent sees the judge's reason instead. 7. Optional: For a **Command Execution** policy, choose **Risk** or **Governance** under **Intent**. **Risk** is the default. See [Policy intent](#policy-intent) to choose between them. 8. Optional: Under **Inventory Classification**, choose **Allow** or **Block** to tag the MCP servers or skills the policy matches. **None**, the default, applies no tag. The selector appears for the **MCP Server Posture** and **Skill Access** templates. See [Inventory classification](#inventory-classification) to review how each tag affects inventory. 9. Under **Name Your Policy**, enter a **Name** that describes what the policy does. 10. Click **Create Agent Governance Policy**. The policy is now active. Local hooks pick it up at the next session start. Endor Labs stores the **Agent Message** field on the policy but does not currently deliver it to the agent. The form groups templates by what the agent is doing, while the **Agent Governance** policy listing groups them by what they govern. You can view **File Access** under **Coding Agents** in the form, but its policies appear under **File Access** in the listing. ## Coding Agent Governance templates and patterns Each template targets one activity type and exposes the fields that activity uses. All pattern fields use regular expressions, not globs. Anchor with `^` and `$` to match the full string, and escape literal characters such as `.` and `/`. ### File Access Use this template to govern reads, writes, deletes, and edits in the workspace. * **File Operation**: Choose **Any**, **Read**, **Write**, **Delete**, or **Edit**. * **File Name Patterns**: Regex patterns matched against file paths. Add one pattern per row with **+ Add file pattern**. * **Example blocklist patterns**: `.*\.env$`, `.*\.pem$`, `.*/secrets/.*`. ### Command Execution Use this template to govern shell commands the agent runs. * **Custom Command Patterns**: Regex patterns matched against shell commands. Add one pattern per row with **+ Add command**. * **Example blocklist patterns**: `^rm\s+-rf\s+/`, `^curl\s+.*\|\s*(sh|bash)\b`. ### Auto Mode Use this template to turn on the AI judge for shell commands. The policy has no patterns, list type, or action. * **Judge Scope**: Choose which commands the judge reviews: **Off**, **Matched commands only**, or **All commands**. * **Deployment Context**: Optional facts about your environment, such as which hosts and registries are yours. Separate entries with a blank line. See [Auto mode and the AI judge](#auto-mode-and-the-ai-judge) to review what each scope does and the limits on deployment context. ### MCP Server Access Use this template to govern which MCP servers and tools your agents can call. * **Server Name Patterns**: Regex patterns matched against MCP server names. Add one pattern per row with **+ Add server pattern**. * **Tool Name Patterns**: Regex patterns matched against MCP tool names. Add one pattern per row with **+ Add tool pattern**. * **Example blocklist patterns**: `.*-prod$` for any production server, or `.*delete.*` for tool names that include `delete`. ### MCP Server Posture Use this template to match MCP servers by name, by Endor Labs score, or both. It scores server-level posture rather than individual tool calls, so reach for it when you want to gate on how risky a server is. * **Server Name Patterns**: Regex patterns matched against MCP server names. * **Overall score at or below**: Match when the server's Endor Score (`1`-`10`, higher is safer) is at or below this value. Leave blank to ignore the overall score. * **Per-dimension thresholds**: Optionally match on one dimension instead of the overall score: **Supply Chain & Provenance**, **Authentication & Authorization**, **Operational Hygiene**, or **Input Validation & Injection**. When you set both a name pattern and a score threshold, a server must match the name and a threshold. See [Endor Score](/agent-governance/endor-score) to learn how Endor Labs computes MCP server scores. ### Skill Access Use this template to control which agent skills can run, by name, by Endor Labs skill score, or both. * **Skill Name Patterns**: Regex patterns matched against skill names. * **Overall score at or below**: Match when the skill's Endor Score (`1`-`10`, higher is safer) is at or below this value. Leave blank to ignore the overall score. * **Per-dimension thresholds**: Optionally match on one dimension: **Instruction Integrity**, **Data Protection**, **Permission Boundaries**, or **External Dependencies**. When you set both a name pattern and a score threshold, a skill must match the name and a threshold. See [Endor Score](/agent-governance/endor-score) to learn how Endor Labs computes skill scores. ### Session Posture Use this template to match agent sessions by posture: who runs the session, whether it is sandboxed, and which models it uses. Each group is optional, so leave a group empty to ignore it. * **User name patterns**: Regex patterns matched against the session user, such as `svc-.*` or `.*@example\.com`. * **Sandbox enabled**: Choose **Yes** or **No** to match sessions whose configuration turns the sandbox on or off at any level. **Any** ignores the setting. * **Default model patterns**: Regex patterns matched against the session's default model, such as `gpt-.*`. * **Available model patterns**: Regex patterns matched against the models offered to the session, such as `claude-.*`. #### Match on more session configuration through the REST API The policy form exposes the four criteria above. Through the REST API, a session policy can match on more of the session's configuration, read from the agent's config at any level (repository, user, or enterprise). Every group you set must match, and Endor Labs ignores an empty group. Set these fields on the session activity. * `composer_mode_matchers`: Regex matched against the composer mode, such as `agent`, `ask`, or `edit`. * `source_matchers`: Regex matched against how the session started, such as `startup`, `resume`, or `clear`. * `is_background_agent`: Match sessions by whether they run as a background agent. * `sandbox.fail_if_unavailable`: Match sessions by whether they require the sandbox to be available. * `sandbox.allowed_host_matchers`: Regex matched against the sandbox's allowed network hosts, to catch overly permissive rules such as `.*`. * `permissions.default_mode_matchers`: Regex matched against the permission default mode, such as `bypassPermissions`. * `permissions.bypass_disabled`: Match sessions by whether permission bypass is disabled. * `permissions.allowed_command_matchers` and `permissions.denied_command_matchers`: Regex matched against the session's allowed and denied command lists. * `hook.event_name_matchers`: Regex matched against configured hook event names, such as `PostToolUse`. * `hook.command_matchers`: Regex matched against configured hook command strings, such as `curl .* | bash`. Manage a policy that uses these fields through the API end to end. Saving a policy from the form rebuilds its activity from the fields the form exposes, which drops any REST-only criteria without warning. The one exception is [sandbox posture](#match-on-sandbox-posture), which the form keeps. #### Match on sandbox posture A session policy can match the session's resolved sandbox posture, the same posture the [Sandboxing](/agent-governance/inventory#sandbox-posture) tab reports. **Sandbox enabled** reads only the raw configuration. The posture reflects the agent's own rules, such as defaults, precedence, and whether the sandbox can start on the host. Set `sandbox.postures` on the session activity through the REST API to one or more of the following values. The policy form cannot set it. * `SESSION_SANDBOX_POSTURE_DISABLED`: The configuration turns the sandbox off for the session. * `SESSION_SANDBOX_POSTURE_ENABLED`: The configuration turns the sandbox on for the session. * `SESSION_SANDBOX_POSTURE_UNKNOWN`: The agent evaluated its configuration but could not determine the posture. A posture policy must be a blocklist, and `sandbox.postures` must be its only session criterion. Endor Labs rejects other combinations because an older hook can't read postures and would enforce the remaining criteria alone. The form keeps the posture when you edit the policy, and the policy's detail drawer shows it as **Sandbox posture**. If you switch the policy to an allowlist or add other session criteria, the form shows an error instead of saving. See [Session sandbox policies](#session-sandbox-policies) for two ready-made posture policies. #### Match on developer identity When you [connect the Anthropic Compliance API](/agent-governance/claude-code/compliance-api), session policies can also match the developer's organization identity. Endor Labs resolves each Claude Code session to a synced directory entry by the developer's Claude account email and attaches the roles and groups it finds. Set these criteria on the session activity's `top_level` group through the REST API. The policy form does not expose them yet. * `role_matchers`: Regex patterns matched against the developer's Anthropic organization role, such as `admin` or `claude_code_user`. Any match counts. * `group_matchers`: Regex patterns matched against the developer's organization groups, such as `platform` or `security`. Any match counts. Every identity criterion you set must match, together with any other session criteria on the policy. When the hook cannot resolve a session's identity, it skips policies that use identity criteria, so it never blocks an unresolved session by mistake. Identity matching applies to Claude Code sessions and to session-level events only. See [Connect the Anthropic Compliance API](/agent-governance/claude-code/compliance-api) to enroll your organization, learn how the hook resolves the email, and see a full policy example. ### Malware Use this template to check the packages an agent installs, or adds to a manifest or lockfile, against the Endor Labs malware feed. The policy has no patterns to write. Matching the activity means running the check, and the block or allow verdict comes from the feed. * **Ecosystems**: Optional list that narrows the check to specific ecosystems. An empty list checks every ecosystem. The valid values are `npm`, `pypi`, `go`, `mvn`, `nuget`, `packagist`, `cargo`, `gem`, `apk`, `debian`, and `rpm`, and Endor Labs rejects any other value when you save the policy. The form doesn't offer Maven, so set `mvn` through the REST API. Choose **Malware** under **Secure Coding** in the policy form, or create the policy through the REST API. See [Secure coding checks](/agent-governance/secure-coding#malware-check) to review what the check inspects, the evidence a violation includes, and a full creation example. ### Secrets Use this template to scan content the agent writes or reads for secrets, using the Endor Labs secret detection rules. The policy has no patterns to write. Matching the activity means running the scan, and the verdict comes from the detection rules. * **File Operations**: Optional list of the operations to scan: **Write**, **Edit**, or **Read**. The form selects **Write** and **Edit** by default. Read scanning is opt-in because it reads each file from disk. Through the REST API, an empty `file_operations` list scans writes and edits, and a non-empty list replaces that default. * **Include File Patterns**: Optional regex list that limits scanning to matching paths. An empty list scans every file the event covers. * **Exclude File Patterns**: Optional regex list that skips paths such as test fixtures or vendored directories. Exclusions apply after inclusions. * **Include Rule IDs**: Optional list that limits the policy to specific detection rules, matched exactly against rule IDs such as `aws-access-token`. An empty list acts on every rule in your effective ruleset. * **Exclude Rule IDs**: Optional list that mutes rules whose matches are false positives in your codebase. Exclusions apply after inclusions. Choose **Secrets** under **Secure Coding** in the policy form, or create the policy through the REST API. See [Secure coding checks](/agent-governance/secure-coding#secrets-check) to review what the scan detects and what a violation includes. ### Dependency Risk Use this template to check the dependencies an agent adds against Endor Labs vulnerability data. The policy has no patterns to write, and the verdict comes from the advisories that match. * `ecosystems`: Optional list of ecosystems to check: `npm`, `pypi`, `go`, or `mvn`. An empty list checks every supported ecosystem. * `min_cvss_severity`: The lowest advisory severity that matches. Unset means `SEVERITY_HIGH`. * `include_transitives`: Set to `true` to also check the packages each new dependency pulls in. Unset means `false`. * `include_file_patterns` and `exclude_file_patterns`: Optional regex lists that limit which manifests and lockfiles the check reads. Create and edit dependency risk policies through the REST API. The policy form does not author them yet. See [Dependency risk check](/agent-governance/secure-coding#dependency-risk-check) to review what the check inspects and a full creation example. ## Allowlist or blocklist Choose **Allowlist** when you want to permit a small, known set of items and block everything else. Use it for sensitive areas, such as production credentials or a curated set of approved MCP servers. Choose **Blocklist** when you want to permit most activity and block known-dangerous items. Use it for destructive commands, leaked-secret paths, and unapproved MCP servers. ## Actions Each policy except an auto mode policy applies one of the following actions on a match. \- Action: \*\*Block\*\* Developer machine: The agent stops the action. The developer sees the \*\*User Message\*\*, where the hook response can carry it. Endor Labs: A row appears under \*\*Policy Violations\*\* with the action recorded as \*\*Blocked\*\*. \- Action: \*\*Ask Permission\*\* Developer machine: The agent pauses until the developer confirms or denies, where the agent supports it. Endor Labs: A row appears under \*\*Policy Violations\*\* with the action recorded as \*\*Ask\*\*. \- Action: \*\*Alert\*\* Developer machine: The action proceeds. The developer sees nothing. Endor Labs: A row appears under \*\*Policy Violations\*\* with the action recorded as \*\*Alert\*\*. \- Action: \*\*AI Judged\*\* Developer machine: The AI judge labels the command. The command runs, pauses for confirmation, or stops, and the agent sees the judge's reason. Endor Labs: An ask or block from the judge appears under \*\*Policy Violations\*\* as \*\*Ask\*\* or \*\*Blocked\*\*, or as \*\*Alert\*\* in audit-only mode. **AI Judged** applies to **Command Execution** policies only. See [AI Judged action](#ai-judged-action) to review how each label maps to an outcome. For **Command Execution** and **File Access** policies, a **Block** or **Ask Permission** message also quotes the text that matched. The quote shows which part of a long command or file path fired the rule, up to 256 characters. Agents differ in where they can pause for an **Ask Permission** policy. See [Enforcement behavior](/agent-governance/how-it-works#enforcement-behavior) to review the per-agent behavior. ## Auto mode and the AI judge The AI judge is a large language model (LLM) that reviews a shell command and labels it benign, review, or suspicious. Command patterns catch what you anticipated, and the judge weighs what the command actually does in context. Judging is off by default. Turn it on with an auto mode policy whose **Judge Scope** is not **Off**, or with a **Command Execution** policy that uses the **AI Judged** action. See [How the AI judge reviews commands](/agent-governance/how-it-works#how-the-ai-judge-reviews-commands) to review what the hook sends and how judging affects latency. ### How the judge's label decides the outcome What the judge reviews, and what its label does, depends on how you turned it on. \- Turned on by: AI Judged action Judge reviews: Commands that policy matched Benign: The judge releases the match Review: Ask Suspicious: Block No answer: The judge releases the match \- Turned on by: Auto mode, Matched commands only Judge reviews: Commands that a \*\*Risk\*\* command policy matched Benign: The judge releases the match Review: Ask Suspicious: Block No answer: The policy's own action applies \- Turned on by: Auto mode, All commands Judge reviews: Every command Benign: \*\*Risk\*\* command policies stand down Review: Ask Suspicious: Block No answer: Command policies decide A released match contributes no action, so the command runs unless another policy matches it. Under **All commands**, an ask or block from the judge replaces every **Risk** command match and appears under **Policy Violations** against the auto mode policy. When a review or suspicious label comes back, the agent sees the judge's reason in the ask or block message. The judge never overrides a **Governance** policy, under any scope. A **Governance** match keeps its own action next to whatever the judge decides. See [Policy intent](#policy-intent) to mark a policy as **Governance**. The judge reviews shell commands only. File access, MCP, session, malware, and secrets policies keep their own actions. When audit-only mode is on (`ENDOR_AI_AUDIT_NO_BLOCKING=true`), a suspicious label records an alert instead of blocking. A review label still asks. ### Create an auto mode policy An auto mode policy chooses which commands the judge reviews and gives it context about your environment. 1. Click **Create Agent Governance Policy**. 2. Under **Define a Policy**, choose **Auto Mode** under **Policy Template**. 3. Under **Judge Scope**, choose which commands the judge reviews: * **Off**: The judge rules on nothing by itself. The policy only supplies deployment context to **AI Judged** command policies. * **Matched commands only**: The judge rules on commands that a command policy flagged, and its label replaces that policy's action. **Governance** policies keep their action. * **All commands**: The judge rules on every command, and command policies no longer decide, except **Governance** policies. 4. Optional: Under **Deployment Context**, enter facts about your environment, such as your internal hosts and registries. Separate the entries with a blank line. 5. Under **Name Your Policy**, enter a **Name**. 6. Click **Create Agent Governance Policy**. ![Auto Mode policy template with the Judge Scope options and the Deployment Context field](https://mintcdn.com/endorlabs-b4795f4f/jrEXBwlTGUeHcNwa/images/agent-governance/policy-form-auto-mode.webp?fit=max\&auto=format\&n=jrEXBwlTGUeHcNwa\&q=85\&s=eeb910824f82033db6a5f29e3b0b72ad) > [!WARNING] > > Under **Matched commands only** or **All commands**, a **Risk** allowlist no longer limits what runs. A command outside the permitted patterns runs if the judge finds it benign. To keep an allowlist final, set its intent to **Governance**. Keep the following rules in mind when you write auto mode policies: * Only one auto mode policy applies to each event: the one with the most [scope](#scope-a-policy-by-repository-or-user) fields set, with the alphabetically first name breaking a tie. Other matching auto mode policies stay enabled but do nothing. * Endor Labs rejects an unscoped auto mode policy with **Judge Scope** set to **Off** and no deployment context, because it does nothing. A scoped policy with the same settings is valid, and it turns judging off for the repositories or users it matches. * **Deployment Context** holds at most 64 entries, each 4,096 bytes or fewer, and 8,192 bytes in total. In the form, an entry that contains a blank line splits into two entries. The system policy **Auto mode: judge commands that matched a risk policy** uses **Matched commands only** and ships disabled. Enable it to start judging without writing your own policy. ### AI Judged action The **AI Judged** action hands a command policy's own matches to the judge, which picks the outcome. Use it for patterns that are too broad to block outright, such as remote access commands, where the context decides whether the command is safe. The action has the following constraints: * It applies only to **Command Execution** policies with **Risk** intent. Endor Labs rejects it on a **Governance** policy. * The form offers **AI Judged** when you create a policy, and when you edit a policy that already uses it. To move an existing policy to **AI Judged**, create a new policy with that action. * If the judge returns no answer, the hook releases the match, because an **AI Judged** policy has no action of its own to fall back to. * The judge reads the deployment context of the auto mode policy that applies to the event, if any. * endorctl versions earlier than v1.7.1173 do not recognize the action and let the matched command run. ## Policy intent Each **Command Execution** policy has an intent that controls whether the AI judge can override it: * **Risk**: The policy flags commands that might be dangerous, and the AI judge can override its action. **Risk** is the default. * **Governance**: The policy enforces an organizational rule, and its action is final. The judge never releases a **Governance** match. Choose **Governance** for rules that hold regardless of how safe the command looks, such as no direct pushes to `main` or no package publishing from a developer machine. Intent changes nothing until you turn on the judge. Set the intent under **Intent** when you create or edit a **Command Execution** policy. Through the REST API, set the `intent` field to `POLICY_INTENT_RISK` or `POLICY_INTENT_GOVERNANCE`. Endor Labs rejects an intent on an auto mode policy. ![Command Execution policy form with the AI Judged action and the Intent select](https://mintcdn.com/endorlabs-b4795f4f/jrEXBwlTGUeHcNwa/images/agent-governance/policy-form-command-execution.webp?fit=max\&auto=format\&n=jrEXBwlTGUeHcNwa\&q=85\&s=50e428ebd435f796f379a1bb1c4252c0) Five of the [command execution policies](#command-execution-policies) ship with **Governance** intent, as the **Intent** column shows. Every command policy in [Package Firewall bypass protection](#package-firewall-bypass-protection) also has **Governance** intent. ## Inventory classification Besides taking an action, a policy can tag the MCP servers and skills it matches in your inventory. Choose a value under **Inventory Classification** when you create a policy from the **MCP Server Posture** or **Skill Access** template. The tag is independent of the action, so a policy can block and tag, tag only, or act only. The tag sets the item's review status in your inventory. **Allow** marks the item **Approved**. **Block** marks it **Blocked** (skills show **Unapproved**). When more than one policy matches the same item, **Block** beats **Allow**. The inventory record keeps the name of the policy that set each tag as evidence. Classification follows your current policy set, so turning a policy off lets the next event reclassify the item. Items no classification policy has matched show **Unreviewed**. These tags feed the **Blocked** summary cards on the MCP Servers and Skills inventory tabs. See [Review your agent inventory](/agent-governance/inventory) to read them. ## Scope a policy by repository or user Through the REST API, a policy can have a scope that limits which events it applies to. A scope holds two regex lists: * `scope.repository_matchers`: The event's repository must match at least one pattern. * `scope.user_matchers`: The event's user must match at least one pattern. Within a list, any match counts. When you set both lists, both must match. A policy without a scope applies to every event, and an event that misses the scope skips the policy for both allowlists and blocklists. The policy form does not expose scope fields yet, but editing a scoped policy in the form preserves its scope. Repository scoping does not yet take effect for Claude Code sessions, which report no repository value. User scoping works across agents today. Scope differs from the **Session Posture** template: a session policy matches session events only, while a scope restricts a policy of any template. ## Out-of-the-box policies Every namespace inherits these system policies. Most are enabled by default and appear in the **Agent Governance** policy list next to the policies you create, under the exact names shown below. The tables mark the exceptions, which are disabled by default. These are the auto mode, malware, secrets, dependency risk, and session sandbox policies, plus the environment variable export and recursive-grep policies. Enable a disabled policy to turn it on for a namespace. An override matches on the policy name, so use these names verbatim when you override one. To change a policy for a namespace, override it instead of deleting it. See [Policy propagation across namespaces](#policy-propagation-across-namespaces) to scope an override. ### MCP server policies These policies govern MCP server and tool calls. \- Policy: MCP tool call: match dangerous tool patterns What it matches: Database or SQL MCP tools whose input looks like \`delete\` or \`drop\` Action: Ask \- Policy: MCP: blocklist — known-malicious MCP servers What it matches: MCP servers on the known-malicious blocklist (\`mcp-runcmd-server\`, \`mcp-runcommand-server\`, \`mcp-runcommand-server2\`), reported by JFrog as reverse-shell payloads Action: Block ### Command execution policies These policies govern the shell commands an agent runs. Blocked commands stop outright, and Endor Labs records alerted commands as they proceed. Asked commands wait for the developer to confirm, where the agent supports it. The **Intent** column shows whether the AI judge can override the policy. See [Policy intent](#policy-intent) to review what each intent means. \- Policy: CmdLine: block destructive filesystem commands What it matches: \`rm -r\`, \`dd\`, \`mkfs\`, \`shred\`, and \`find\` with \`-delete\` or \`-exec rm\` against system or home directories Action: Block Intent: Risk \- Policy: CmdLine: block privilege escalation commands What it matches: \`sudo\`, \`su\`, \`doas\`, \`chown\`, \`chmod 777\` Action: Block Intent: Risk \- Policy: CmdLine: alert on inline code execution What it matches: \`python -c\`, \`node -e\`, \`bash -c\`, \`sh -c\`, or \`eval\` when the snippet shells out, reaches the network, or evaluates code Action: Alert Intent: Risk \- Policy: CmdLine: block download-and-execute pipelines What it matches: A \`curl\` or \`wget\` download piped into a shell Action: Block Intent: Risk \- Policy: CmdLine: block credential discovery and staging What it matches: \`find\` commands that hunt for credential files (such as \`id_rsa\` or \`.netrc\`) or walk credential directories (such as \`\~/.aws\` or \`\~/.gnupg\`) Action: Block Intent: Risk \- Policy: CmdLine: ask before dangerous git operations What it matches: \`git commit --no-verify\`, \`git reset --hard\` Action: Ask Intent: Governance \- Policy: CmdLine: ask before direct push to main/master What it matches: \`git push\` to \`main\` or \`master\` Action: Ask Intent: Governance \- Policy: CmdLine: block package and artifact publish commands What it matches: \`npm publish\`, \`yarn publish\`, \`pnpm publish\`, \`cargo publish\`, \`gem push\`, \`twine upload\`, \`docker push\`, \`docker buildx build --push\`, \`helm push\` Action: Block Intent: Governance \- Policy: CmdLine: ask before publishing to a public GitHub location What it matches: \`gh repo create --public\`, \`gh repo edit --visibility public\`, \`gh gist create --public\`, and \`gh gist\` or \`gh release\` commands that upload an image file Action: Ask Intent: Governance \- Policy: CmdLine: block network exfiltration tools What it matches: \`nc\`, \`ncat\`, \`ftp\`, and \`scp\` or \`rsync\` with a remote destination Action: Block Intent: Risk \- Policy: CmdLine: block shell reads of secret files What it matches: \`cat\`, \`xxd\`, and similar commands that read \`.env\`, key material, or other credential files Action: Block Intent: Risk \- Policy: CmdLine: block shell writes to shell profile files What it matches: Shell-side writes to startup files, including redirects (\`>>\`), \`tee\`, \`sed -i\`, \`cp\` or \`mv\` onto a profile, and interpreter one-liners that write one. Reads stay clear Action: Block Intent: Risk \- Policy: CmdLine: ask before force push What it matches: \`git push --force\` or \`--force-with-lease\` Action: Ask Intent: Governance \- Policy: CmdLine: ask before network download or remote access What it matches: \`wget\`, \`ssh\`, and \`curl\` when it uploads or sends a write request (\`-d\`, \`-F\`, \`-T\`, or \`-X POST\`, \`PUT\`, \`PATCH\`, \`DELETE\`) Action: Ask Intent: Risk \- Policy: CmdLine: ask before environment variable export What it matches: \`export\` of a variable whose name looks credential-bearing (contains \`TOKEN\`, \`KEY\`, \`SECRET\`, \`PASSWORD\`, \`PASSWD\`, \`CREDENTIAL\`, or \`AUTH\`). \`GIT_AUTHOR\_\*\` variables don't match. Values that start with \`/\`, \`\~\`, \`.\`, or \`\$\`, such as a file path or a variable reference, don't match either. Disabled by default Action: Ask Intent: Risk \- Policy: CmdLine: ask before package installation or container commands What it matches: \`npm install\` and \`pip install\` when they name a package to fetch, \`cargo install\`, \`gem install\`, \`docker run\`, \`docker pull\`. An install of only the packages a manifest declares, such as a bare \`npm install\`, \`pip install -r requirements.txt\`, or \`pip install -e .\`, doesn't prompt Action: Ask Intent: Risk \- Policy: CmdLine: ask before recursive grep What it matches: Recursive \`grep -r\`, \`rg\`, or \`rgrep\` that can sweep secret values into the transcript. Disabled by default Action: Ask Intent: Risk ### File access policies These policies guard sensitive paths. Each blocks on a match and covers reads, writes, edits, and deletes, unless noted. \- Policy: FileAccess: block access to env files and secrets Paths it blocks: \`.env\`, \`.dev.vars\`, \`secrets/\`, \`config/database.yml\`, \`.netrc\`, and any file whose name ends in \`secret\`, \`secrets\`, \`credential\`, or \`credentials\`. Reads only \- Policy: FileAccess: block access to TLS/PKI key material Paths it blocks: \`.key\`, \`.pem\`, \`.p12\`, \`.pfx\`, \`.crt\`. Reads only \- Policy: FileAccess: block access to SSH keys and config Paths it blocks: \`\~/.ssh/\` \- Policy: FileAccess: block access to cloud provider credentials Paths it blocks: \`\~/.aws/\`, \`\~/.azure/\`, \`\~/.config/gcloud/\` \- Policy: FileAccess: block access to git credential files Paths it blocks: \`.gitconfig\`, \`.git-credentials\`, \`.git/config\` \- Policy: FileAccess: block access to container and Kubernetes credentials Paths it blocks: \`\~/.docker/config.json\`, \`\~/.kube/\`, \`\~/.config/helm/\` \- Policy: FileAccess: block access to package manager token files Paths it blocks: \`\~/.cargo/credentials\`, \`\~/.cargo/credentials.toml\`, \`.pypirc\`, \`\~/.gem/credentials\` \- Policy: FileAccess: block access to vault and password manager tokens Paths it blocks: \`.vault-token\`, \`\~/.config/op/\` (1Password), \`\~/.config/bw/\` (Bitwarden) \- Policy: FileAccess: block access to shell history files Paths it blocks: \`.bash_history\`, \`.zsh_history\`, fish history \- Policy: FileAccess: block access to CI/CD and platform deployment tokens Paths it blocks: \`\~/.config/gh/\`, \`\~/.fly/\`, \`\~/.config/heroku/\`, \`\~/.config/vercel/\` \- Policy: FileAccess: block access to Terraform credentials Paths it blocks: \`.terraformrc\`, \`\~/.terraform.d/\` \- Policy: FileAccess: block access to database credential files Paths it blocks: \`.pgpass\`, \`.my.cnf\`, \`\~/.mongosh/\` \- Policy: FileAccess: block access to cryptocurrency wallet data Paths it blocks: Application data for MetaMask, Electrum, Exodus, Phantom, and Solflare \- Policy: FileAccess: block access to GPG keys and system keychains Paths it blocks: \`\~/.gnupg/\`, macOS \`\~/Library/Keychains/\` \- Policy: FileAccess: block writes to shell profile files Paths it blocks: \`.zshrc\`, \`.zshenv\`, \`.zprofile\`, \`.zlogin\`, \`.bashrc\`, \`.bash_profile\`, \`.bash_login\`, \`.profile\`, to prevent persistence. Companion policies block edits and deletes (\`FileAccess: block edits to shell profile files\`, \`FileAccess: block deletes of shell profile files\`) \- Policy: FileAccess: block deletes of GitHub Actions workflows Paths it blocks: Deletes under \`.github/workflows/\`. Companion policies ask before writes and edits instead of blocking (\`FileAccess: ask before writing GitHub Actions workflows\`, \`FileAccess: ask before editing GitHub Actions workflows\`). The policy allows reads \- Policy: FileAccess: block self-modification of Claude configuration (write) Paths it blocks: Writes to \`.claude/settings.json\`, \`.claude/settings.local.json\`, \`.claude/CLAUDE.md\`, \`.claude/hooks/\`. Companion \`(edit)\` and \`(delete)\` policies cover the other operations. The policy allows reads. Stops the agent loosening its own guardrails ### Package Firewall bypass protection These policies stop an agent from bypassing the Endor Labs Package Firewall by changing where a package manager fetches packages. They are enabled by default and block on a match. Every command policy in this group has **Governance** intent, so the AI judge never overrides it. The table groups the protection by theme. The **Agent Governance** policy list shows the 10 underlying system policies under their own names, each prefixed with `Package Firewall`. \- Policy: Registry override on install What it blocks: A package install that overrides the registry or index, such as \`npm install --registry\` or \`pip install --index-url\`. The policy also blocks installs from a URL, a \`git+\` source, or a local archive (\`.whl\`, \`.tgz\`, \`.tar.gz\`). Covers npm, pnpm, yarn, npx, pip, uv, bun, gem, mvn, and cargo \- Policy: Direct download from registries or mirrors What it blocks: Fetching package content straight from public registries or CDNs (npmjs, PyPI, jsDelivr, unpkg, esm.sh, and similar) with \`curl\`, \`wget\`, or an inline interpreter \- Policy: Package manager config change What it blocks: Config commands or environment overrides that repoint a package manager, such as \`npm config set registry\`, \`pip config set index-url\`, \`go env -w GOPROXY\`, or \`PIP_INDEX_URL\`. The policy also blocks any write, edit, or delete of a config file such as \`.npmrc\`, \`pip.conf\`, \`.yarnrc.yml\`, \`bunfig.toml\`, \`uv.toml\`, \`.netrc\`, \`.cargo/config.toml\`, or \`.gemrc\` \- Policy: Package manager cache tampering What it blocks: Populating or writing a package manager cache to stage an offline install (\`npm cache add\`, \`pip install --no-index\`, or writing into the npm or pip cache directories) ### Auto mode policy When enabled, this policy turns on the [AI judge](#auto-mode-and-the-ai-judge) for commands that a **Risk** command policy matched. \- Policy: Auto mode: judge commands that matched a risk policy Judge scope: \*\*Matched commands only\*\*, with no deployment context. Disabled by default ### Malware protection This policy runs the [malware check](/agent-governance/secure-coding#malware-check) instead of matching authored patterns. \- Policy: Malware: block installs of known-malicious packages What it matches: A package install, or a manifest or lockfile edit that adds a package, that the Endor Labs malware feed confirms as malicious, in any ecosystem. Disabled by default Action: Block ### Secrets protection These policies run the [secrets check](/agent-governance/secure-coding#secrets-check) instead of matching authored patterns. \- Policy: Secrets: block writes that introduce a credential What it matches: A file write or edit whose content holds a secret, detected by the Endor Labs secret rules. Disabled by default Action: Block \- Policy: Secrets: ask before reading a file that holds a credential What it matches: A file read whose content holds a secret, scanned from disk. Disabled by default Action: Ask ### Dependency risk protection This policy runs the [dependency risk check](/agent-governance/secure-coding#dependency-risk-check) instead of matching authored patterns. \- Policy: Dependencies: block adding known-vulnerable packages What it matches: A new dependency, or a package it pulls in, with a high or critical advisory. Disabled by default Action: Block ### Session sandbox policies These policies match sessions whose [sandbox posture](#match-on-sandbox-posture) is disabled. Both are disabled by default. Enable the alert policy first to see which sessions would match before you enable the block policy. \- Policy: Session: alert on unsandboxed sessions What it matches: A session whose sandbox posture is disabled. The developer sees "The agent sandbox is disabled for this session." Disabled by default Action: Alert \- Policy: Session: block unsandboxed sessions What it matches: A session whose sandbox posture is disabled. The developer sees "The agent sandbox is disabled for this session, and policy does not allow that." Disabled by default Action: Block Don't enable the block policy for Claude Code developers whose sandbox turns on only through MDM, managed settings, server-managed settings, or the `--settings` flag. Endor Labs doesn't read those sources yet, so it resolves those sessions as disabled and blocks them. GitHub Copilot and Snowflake Cortex Code can't stop a session at session start, so a match on a session from either agent only records the violation. ## View, edit, or delete a policy 1. Select **User menu** > **Policies & Rules** from the left sidebar, then select **Agent Governance**. 2. Select the policy name to open its full configuration. 3. To change the policy, edit any field and click **Update Agent Governance Policy**. 4. To remove the policy, confirm in the **Delete this Policy?** prompt. Hooks pick up the deletion at the next session start. Every policy has a shareable URL that includes the namespace and policy name, so you can send a teammate a direct link to a specific policy. ## Local policy cache When the agent starts a session, [endorctl ai-audit](/developers-api/cli/commands/ai-audit) pulls a snapshot of your policies and writes it to `~/.endorctl/aigovernance/endor-policies-.jsonl`. The hook evaluates every event in that session against the cached snapshot, so pattern-based enforcement happens without a network call. Malware and dependency risk policies are the exception: a matching install or manifest edit triggers a live lookup, and the action proceeds if the lookup fails. The [AI judge](#auto-mode-and-the-ai-judge) also calls Endor Labs for each command it reviews. The cache file uses one JSON object per line, each representing a single policy. You do not need to edit it. If the policy download fails at session start, the hook keeps the last snapshot it fetched, so your overrides stay in effect. > [!NOTE] > > Policy edits take effect at the next session start. New and edited policies take effect on a developer's machine the next time the agent starts a session and refreshes the local policy cache. Tell developers to restart the agent (or open a new session) to pick up policy edits. ## Policy propagation across namespaces Policies you create in a namespace automatically propagate to its sub-namespaces. The policy form always saves with propagation on, so any policy you save in `acme` shows up for `acme.team-a`, `acme.team-a.proj-1`, and every other descendant. Through the REST API, set the `propagate` field to `false` to keep a policy out of sub-namespaces. When the **Agent Governance** policy list loads for a namespace, it returns: * Policies authored in that exact namespace. * Policies authored in any ancestor namespace. * Built-in system policies from Endor Labs. If two policies share the same name across these layers, the closest match wins. For namespace `acme.team-a.proj-1`, a policy named `block-rm-rf` saved in `acme.team-a` overrides the same name in `acme` or the system catalog. A copy saved in `acme.team-a.proj-1` itself overrides all three. Use the closest-match rule to scope a change narrowly: * To turn a system or inherited policy off in one namespace, toggle it off from the **Agent Governance** policy list. This creates a local override in that namespace and leaves the policy unchanged in ancestors and siblings. * To change a system or inherited policy, override it: save a policy with the same name in the namespace where you want the change. Use a team's namespace to scope it to that team, or the tenant root to apply it tenant-wide. * Toggle a system policy off rather than trying to delete it. ## Next steps Continue with the following pages: * See [Deploy hooks for Cursor](/agent-governance/cursor), [Claude Code](/agent-governance/claude-code), [Codex](/agent-governance/codex), [GitHub Copilot](/agent-governance/copilot), or [Snowflake Cortex Code](/agent-governance/cortex-code) to put your policies in front of agent activity. * See [Triage policy violations](/agent-governance/policy-violations) to set your daily review workflow. * See [Connect the Anthropic Compliance API](/agent-governance/claude-code/compliance-api) to match session policies on your developers' organization roles and groups. # Triage policy violations Source: https://docs.endorlabs.com/agent-governance/policy-violations/index Read the summary breakdowns and the per-event table to confirm enforcement is working and investigate any policy match. **Policy Violations** records every event that matched a policy on a developer's machine. Use the page to confirm enforcement is working, investigate a single incident, and plan the next policies you write. ## Open Policy Violations Select **Agent Governance** from the left sidebar, then select **Policy Violations**. The page opens with three summaries above a per-event table. Use **Last Active** at the top to scope every summary and the table to the same window. ![Policy Violations](https://mintcdn.com/endorlabs-b4795f4f/fffHtDIaLv4Z53Ka/images/agent-governance/policy-violations.webp?fit=max\&auto=format\&n=fffHtDIaLv4Z53Ka\&q=85\&s=3cbe26257978a2b1d2013e625df82549) ## Summary at a glance Above the violation table, the page shows three summaries: * **Top 5 Policies**: A ranked breakdown of the busiest match-category and agent combinations. * **Violations by Action**: A breakdown of how violations resolved, with the total in the center. * **Violations**: The last seven days as a per-day breakdown, with a comparison against the week before. > [!NOTE] > > **Top 5 Policies** ranks match-category and agent combinations, not individual policy names. Read the table to find specific policies. ## Filter results Use the filters above the table to narrow the rows. * **Last Active** scopes to the last day, week, or month. The page opens on the last month. * **Category** scopes to a single activity type: **Dangerous Command**, **File Access**, **MCP Tool Call**, **MCP Server**, **Skill**, **Session**, **Malware**, **Secret**, or **Dependency Risk**. * **Agent** scopes to one agent: **Cursor**, **Claude Code**, **Codex**, **GitHub Copilot**, or **Snowflake Cortex Code**. * **Action** scopes to how the violation resolved: **Blocked**, **Alert**, or **Ask**. * **User** scopes to one developer. * **Group by** collapses the table into one row per **Category**, **Agent**, **User**, or **Action**, with a violation count for each group. Select **None** to return to the flat list. For example, filtering by **Category: File Access** narrows the view to file-operation policy matches: ![Policy Violations filtered to File Access](https://mintcdn.com/endorlabs-b4795f4f/K53ObHXE3D0eLNpQ/images/agent-governance/policy-violations-file-access.webp?fit=max\&auto=format\&n=K53ObHXE3D0eLNpQ\&q=85\&s=8bcf81a605ce7d7f528a0a233996479f) ## Read a violation Each row begins with an icon for the action the policy applied. Hover the icon to see whether the action was **Blocked**, **Alert**, or **Ask**. The following table describes the rest of the columns. \- Column: \*\*Policy Name\*\* What it shows: The policy name, with the match category on a second line beneath it. The categories are the same set the \*\*Category\*\* filter offers, from \*\*Dangerous Command\*\* through \*\*Dependency Risk\*\*. \- Column: \*\*Agent\*\* What it shows: The agent that produced the event, for example \*\*Cursor\*\*, \*\*Claude Code\*\*, \*\*Codex\*\*, \*\*GitHub Copilot\*\*, or \*\*Snowflake Cortex Code\*\*. Events without an agent identifier show \*\*Unknown Agent\*\*. \- Column: \*\*User\*\* What it shows: The developer who triggered the event, when the agent's hook payload includes a user identifier. Cursor supplies one on most events. Claude Code, Codex, and GitHub Copilot derive one from the local environment when they can. The value can still be empty. Snowflake Cortex Code reports \`ENDOR_ACTOR\` when set, otherwise the operating system login. \- Column: \*\*Last Active\*\* What it shows: When the event occurred. Select a row to open the violation's detail drawer. The header shows **Action**, **Policies Matched**, and **When** cards. Below the header, the drawer shows the event context, such as the agent, user, working directory, session ID, and permission mode. Select **Policy Matches** to list each policy that matched. Each match names the policy and shows the pattern or criteria that caught it. For command and file access matches, **Matched Text** shows the exact fragment of the command or file path that matched, so you can see why a broad pattern fired. ![Policy Matches panel showing the matched text for a file access violation](https://mintcdn.com/endorlabs-b4795f4f/K53ObHXE3D0eLNpQ/images/agent-governance/policy-violations-matched-text.webp?fit=max\&auto=format\&n=K53ObHXE3D0eLNpQ\&q=85\&s=fbcc22940bd47285548dacbd1db35cda) A secrets match shows the rule and the finding's line and column instead of the secret value. A malware match shows the package and ecosystem. Select **View Payload** to read the raw event. ## Common triage workflows ### Confirm a new policy is working After you create a policy, ask one developer to perform an action that matches the policy. Set **Last Active** to the last day and **Agent** to that developer's agent. Confirm the violation appears with the expected **Blocked**, **Alert**, or **Ask** action. ### Investigate a single incident Set **Last Active** to a window that covers the incident. Browse the rows for the developer's agent and user. Select the row to open the detail drawer and read the full command, file path, or MCP tool name under **Policy Matches**. ### Spot patterns to write new policies Filter on **Category** to find clusters of unsanctioned activity. For example, repeated **MCP Tool Call** rows from the same MCP server suggest adding an **MCP Server Access** policy. A wide spread of **Dangerous Command** rows like the one below points to a missing **Command Execution** policy. ![Policy Violations filtered to Dangerous Command](https://mintcdn.com/endorlabs-b4795f4f/K53ObHXE3D0eLNpQ/images/agent-governance/policy-violations-dangerous-commands.webp?fit=max\&auto=format\&n=K53ObHXE3D0eLNpQ\&q=85\&s=0f7a464c8992553e1d735579133fa591) ## Export violations The following steps enable you to export the events behind the current view as a CSV report. 1. Select **Export Usage** above the table. 2. In the **Create Report** dialog, review **Last Active** and the filters. The range defaults to the window the page is scoped to, and the dialog keeps your current filters. 3. Click **Create Report** to queue the export. 4. Download the file from **Reports** in the left sidebar. It appears under the **Agent Governance** report type. Exporting requires permission to create jobs. Users without an admin role see the action disabled. Every inventory detail drawer offers the same export through the download icon in its header, scoped to that item's events. ## When no violations match **Policy Violations** shows **No Policy Violations found** when nothing matched the current filters. If you expected matches to appear, work through the following checks: * Widen **Last Active** in case the filter window is too narrow. * Check hook health on the developer machines you expect to govern. See [Deploy hooks for Cursor](/agent-governance/cursor) or [Deploy hooks for Claude Code](/agent-governance/claude-code). * Confirm a policy exists for the activity you expected to match. See [Write a policy](/agent-governance/policies) to create one. ## Next steps Continue with the following pages: * See [Read the Coding Agent Governance overview](/agent-governance/overview) for how violations trend across your fleet. * See [Write a policy](/agent-governance/policies) to add or refine patterns based on what you find. # Prerequisites for Coding Agent Governance Source: https://docs.endorlabs.com/agent-governance/prerequisites/index Set up the role, API key, and tenant settings an admin needs before any developer machine runs a Coding Agent Governance hook. Coding Agent Governance is admin-driven. Before a developer machine can send a single event, an admin must turn on the feature and issue an API key with the right role. The admin then rolls hooks out to the supported coding agents in each developer environment. In-built policies are enabled by default, so basic enforcement starts as soon as hooks run. You review the catalog and add custom rules after deployment. Complete the following tasks to set up Coding Agent Governance. 1. Confirm Coding Agent Governance is available in your tenant. 2. Create an API key with the **AI Audit User** role to deploy with hooks. 3. Deploy hooks on developer machines. See [Deploy hooks for Cursor](/agent-governance/cursor), [Claude Code](/agent-governance/claude-code), [Codex](/agent-governance/codex), [GitHub Copilot](/agent-governance/copilot), and [Snowflake Cortex Code](/agent-governance/cortex-code). 4. Review in-built policies and write any custom rules your organization needs. See [Write a policy](/agent-governance/policies). 5. Optional: See [Connect the Anthropic Compliance API](/agent-governance/claude-code/compliance-api) to let session policies match Claude Code developers by organization role or group. Skipping any required step delays results. Inventory and policy enforcement both need hooks to run. The in-built policy catalog enforces as soon as hooks are deployed. Custom policies layer on top for organization-specific rules. ## Confirm Coding Agent Governance is available Select **Agent Governance** from the left sidebar. If the entry is missing, contact your account team to enable Coding Agent Governance for your tenant. ## Create an API key with the AI Audit User role The **AI Audit User** role is a least-privilege system role for Coding Agent Governance hooks. An API key with this role can submit hook events, read your policy snapshot for local evaluation, read the Coding Agent Governance inventory, and write operational client logs. It cannot read policy violations or any Endor Labs data outside Coding Agent Governance. > [!WARNING] > > Treat the API key and secret as production credentials. Any host with these values can submit hook events as your tenant. ### Create the API key through the user interface 1. Select **User menu** > **Settings** from the left sidebar. 2. Select **Access Control**. 3. Select **API Keys**, then click **Generate API Key**. 4. Enter a name that identifies the key, such as `agent-governance-hooks`. 5. Under **Role**, choose **AI Audit User**. 6. Choose an expiration that matches your rotation policy. 7. Click **Generate**, then copy the key and secret. Store both in your secret manager. Endor Labs shows the secret only once. See [Manage API keys](/platform-administration/api-keys) to manage this key over time. ### Create the API key with endorctl For MDM-driven rollouts or automated provisioning, create the key with [endorctl](/setup-deployment/cli). Replace `` with the namespace that owns your Coding Agent Governance policies, `` with a descriptive name for the key, and `` with the expiration in ISO 8601 UTC format. ```bash theme={null} endorctl api create -r APIKey -n "" --data '{ "meta": { "name": "" }, "spec": { "permissions": { "roles": ["SYSTEM_ROLE_AI_AUDIT"] }, "expiration_time": "" }, "propagate": true }' ``` The response contains the API key and secret under `spec.key` and `spec.secret`. Capture both before the response scrolls out of your terminal. Endor Labs returns the secret only once. See [Create an API key through Endor Labs API](/platform-administration/api-keys#create-an-api-key-through-endor-labs-api) for the full API reference, including longer expirations and namespace propagation. ## Data collection Each hook event includes the metadata Endor Labs needs for inventory and policy evaluation: * Agent name, version, and (where available) model * Session and sub-session IDs * Device (endpoint) identifier * Session configuration, such as permission mode and sandbox state * User identifier when the agent provides one * Repository name (not populated for Claude Code sessions) and working directory * MCP server name, tool name, and call counts * Shell command line (regex-matched against your policies) * File path and operation type (read, write, delete, edit) * Secrets check match (rule, line, column, and fingerprint, never the secret value) * Policy match outcome and the action applied ### Secret redaction Endor Labs runs every command line, file path, URL, environment value, and MCP tool input or output through a regex-based redactor before it leaves the developer's machine. Environment variables and keys named like a secret (such as `TOKEN`, `SECRET`, `API_KEY`, `PASSWORD`, or `AUTHORIZATION`) become `[REDACTED]`. The redactor also matches common secret formats in place. These include URL and database-connection credentials, AWS access keys, JWTs, PEM private keys, and provider tokens such as GitHub (`ghp_*`), OpenAI, and Anthropic keys. Redaction of event payloads uses regex pattern matching that can miss some secrets. A secret that does not match a known pattern or key name can still reach the backend. The [secrets check](/agent-governance/secure-coding) is separate from redaction: it detects secrets in file content on the developer's machine, and its violations include the rule and location, never the value. When an enabled secrets policy detects a secret, Endor Labs also scrubs the detected string from the stored event payload. The follow-up event recorded after a permitted file operation includes no file content. > [!WARNING] > > On Cursor, the `sessionStart` hook returns the Endor Labs credential values to Cursor in plaintext under an `AGENT_HOOK_ENDOR_*` prefix, so subsequent hooks in the session inherit them. The values never leave the developer's machine, but anything that captures Cursor hook stdout (such as debug logging or screen recording) can see them. ## Distribute credentials to developer machines Hooks read credentials from environment variables wherever they run: * `ENDOR_API`: The Endor Labs API endpoint, for example `https://api.endorlabs.com`. * `ENDOR_NAMESPACE`: The Endor Labs namespace that owns the policies and receives the events. * `ENDOR_API_CREDENTIALS_KEY`: The API key value. * `ENDOR_API_CREDENTIALS_SECRET`: The API secret. For Cursor, Codex, GitHub Copilot, and Snowflake Cortex Code, set the variables in the environment that launches the agent. For Claude Code, set them in the `env` block of `settings.json`, as shown on [Deploy hooks for Claude Code](/agent-governance/claude-code). Use your MDM (Jamf, Intune, Kandji, JumpCloud) to deliver the values, and to ensure endorctl is on `PATH`, on every machine that runs an Endor Labs hook. Do not distribute `ENDOR_TOKEN` alongside these variables. Hooks authenticate with the API key and secret only, and on older versions of endorctl the extra token triggered a mixed-authentication error that blocked `endorctl ai-audit`. See [endorctl CLI](/setup-deployment/cli) to install endorctl. ## Confirm supported agents and platforms Coding Agent Governance hooks support Cursor, Claude Code, Codex, GitHub Copilot, and Snowflake Cortex Code on macOS, Linux, and Windows developer machines. Endor Labs has verified Snowflake Cortex Code on macOS only. See [Supported agents and platforms](/agent-governance#supported-agents-and-platforms) for the full matrix, including hosted and CLI form factors. ## Next steps After you complete the prerequisites, proceed to the next steps: * See [Deploy hooks for Cursor](/agent-governance/cursor), [Claude Code](/agent-governance/claude-code), [Codex](/agent-governance/codex), [GitHub Copilot](/agent-governance/copilot), and [Snowflake Cortex Code](/agent-governance/cortex-code) to roll hooks out. * See [Write a policy](/agent-governance/policies) to review the in-built catalog and add organization-specific rules. * See [Connect the Anthropic Compliance API](/agent-governance/claude-code/compliance-api) to give Claude Code sessions an organization identity for policies. # Secure coding checks Source: https://docs.endorlabs.com/agent-governance/secure-coding/index Catch malicious packages, vulnerable dependencies, and leaked secrets in the agent loop, backed by Endor Labs intelligence. Secure coding checks are Coding Agent Governance policies that inspect what an AI coding agent produces, not just the shape of its actions. Three checks are available: * A malware check for the packages an agent installs or adds to a manifest. * A dependency risk check for dependencies with known vulnerabilities. * A secrets check for the content an agent writes and reads. All three run in the agent loop, so they catch problems at the moment they happen instead of in a later scan. Other Coding Agent Governance policies match patterns you author, such as regex patterns for commands and file paths. Secure coding checks have no patterns to maintain. The policy decides when the check runs and which action follows a match. The verdict comes from Endor Labs data: the malware feed and vulnerability data for packages, and the secret detection rules library for content. ## Malware check The malware check fires when a governed agent installs a package or edits a manifest or lockfile to add one. The check looks up the package in the Endor Labs malware feed, the same intelligence that powers [malicious package detection](/scan/malware) and [Package Firewall](/package-firewall). Only confirmed malware triggers the policy. Contested records and records under review do not. The check parses the packages out of the install command the agent runs. It recognizes the following package managers: * **npm**: `npm`, `pnpm`, `yarn`, `bun`, `npx`, and `bunx`. * **PyPI**: `pip`, `python -m pip`, `poetry`, `pipenv`, `uv`, and `uvx`. * **Go**: `go install`. * **NuGet**: `dotnet add package`, `nuget`, and `paket`. * **Packagist**: `composer`. * **Crates**: `cargo`. * **RubyGems**: `gem` and `bundle`. * **OS package managers**: `apk`, `apt`, `yum`, `dnf`, and `zypper`. A command hidden behind a wrapper still counts. The parser unwraps prefixes such as `sudo` and `env`, and inline shells such as `bash -c "npm install …"`. The check also runs when the agent writes or edits a manifest or lockfile. It compares the file before and after the edit and checks only the packages the edit adds. See [Supported manifests and lockfiles](#supported-manifests-and-lockfiles) to review the files it reads. The check looks up a lockfile entry at its exact version. It looks up a manifest entry at its pinned version, or against every version of the package when the entry is a range. It skips npm dependencies that point to a local path, a workspace, a git source, or a URL. A malware violation includes the evidence your team needs to respond: * The package name, version, and ecosystem from the install or edit. An unpinned install or a manifest range shows an empty version. * A summary of the malware report and the reasons the feed flagged the package. * The feed source that flagged the package. A malware check applies to all ecosystems by default. To limit a policy to specific ecosystems, select them under **Ecosystems** in the policy form, or set the `ecosystems` list through the REST API. The valid tokens are `npm`, `pypi`, `go`, `mvn`, `nuget`, `packagist`, `cargo`, `gem`, `apk`, `debian`, and `rpm`, and Endor Labs rejects a policy with any other value. Maven has no install command, so `mvn` applies only to manifest and lockfile edits. The form doesn't offer Maven, so set `mvn` through the REST API. The out-of-the-box policy [Malware: block installs of known-malicious packages](/agent-governance/policies#malware-protection) is disabled by default. Enable it, or create your own malware policy, to turn the check on. ### Create a malware policy To create a malware policy in the Endor Labs user interface: 1. Select **User menu** > **Policies & Rules** from the left sidebar. 2. Select **Agent Governance**. 3. Click **Create Agent Governance Policy**. 4. Under **Policy Template**, choose **Malware** under **Secure Coding**. 5. Optional: Under **Ecosystems**, select the ecosystems to check. Leave it empty to check every ecosystem. 6. Under **Choose an Action**, select **Block**, **Alert**, or **Ask Permission**. 7. Under **Name Your Policy**, enter a **Name**, then click **Create Agent Governance Policy**. ![Malware policy template with the Ecosystems field and the action choices](https://mintcdn.com/endorlabs-b4795f4f/K53ObHXE3D0eLNpQ/images/agent-governance/policy-form-malware.webp?fit=max\&auto=format\&n=K53ObHXE3D0eLNpQ\&q=85\&s=1b13e42cb7b5563c4d90588481be14e3) The following example creates a malware policy scoped to npm and PyPI installs with [endorctl](/developers-api/cli/commands/api). Replace `` with the namespace that owns your Coding Agent Governance policies. Leave `ecosystems` empty to check every ecosystem. ```bash theme={null} endorctl api create -r AgentHookPolicyDefinition -n "" --data '{ "meta": { "name": "malware-check-npm-pypi" }, "spec": { "policy": { "name": "Malware check: npm and PyPI installs", "enabled": true, "activity": { "malware_check": { "ecosystems": ["npm", "pypi"] } }, "action": { "match_type": "MATCH_TYPE_BLOCKLIST", "block": { "message": "Endor Labs flagged this package as malware." } } } }, "propagate": true }' ``` The policy appears under **Policies & Rules** > **Agent Governance**, and hooks pick it up at the next session start. ## Secrets check The secrets check scans content the agent touches for secrets, such as cloud access keys, provider tokens, and private keys. By default a policy scans the content of file writes and edits. To also scan the files the agent reads, select **Read** under **File Operations**, or list `FILE_OPERATION_READ` with `FILE_OPERATION_WRITE` and `FILE_OPERATION_EDIT` in `file_operations`. A list of only `FILE_OPERATION_READ` scans reads only. Read scanning is opt-in because it reads each file from disk. Detection uses the Endor Labs secret rules library, the same rules as [secrets scanning](/scan/secrets). See [Secret detection rules](/scan/secrets/secret-rules) to browse the full library. The scan runs on the developer's machine, and the scanned content never leaves it. A secrets violation includes: * The rule that fired, such as `aws-access-token` or `github-pat`, with its human-readable name. * The line and column where the secret starts. * A fingerprint that groups repeat findings of the same secret. The violation never includes the secret value, so a match can't leak the credential it found. Endor Labs also scrubs the detected string from the event evidence it stores. It replaces every occurrence in the captured tool input and output with `REDACTED`. When a permitted operation runs, the follow-up event records that the operation happened without the file content. Four more policy fields shape the check: * **Include File Patterns** (`include_file_patterns`) limits scanning to matching paths, and **Exclude File Patterns** (`exclude_file_patterns`) skips paths such as test fixtures or vendored directories. Exclusions apply after inclusions. An empty configuration scans every file the event covers. * **Include Rule IDs** (`include_rule_ids`) limits the policy to specific detection rules, and **Exclude Rule IDs** (`exclude_rule_ids`) mutes rules whose matches are false positives in your codebase. Both match rule IDs such as `aws-access-token` exactly. Exclusions apply after inclusions. To create a secrets policy, follow the [malware procedure](#create-a-malware-policy) and choose **Secrets** under **Secure Coding**. Choose the operations to scan under **File Operations**: **Write**, **Edit**, or **Read**. Through the REST API, use a `secrets_check` activity in place of `malware_check` in the [malware example](#create-a-malware-policy). Endor Labs rejects `FILE_OPERATION_DELETE`, because a delete writes no content to scan. ![Secrets policy template with the File Operations, file pattern, and rule ID fields](https://mintcdn.com/endorlabs-b4795f4f/K53ObHXE3D0eLNpQ/images/agent-governance/policy-form-secrets.webp?fit=max\&auto=format\&n=K53ObHXE3D0eLNpQ\&q=85\&s=ad9fab6e2e1aa2e282a82774fa47c744) Two out-of-the-box [secrets policies](/agent-governance/policies#secrets-protection) are disabled by default: **Secrets: block writes that introduce a credential** and **Secrets: ask before reading a file that holds a credential**. Enable them, or create your own secrets policy, to turn the check on. ### Scan MCP tool calls for secrets A secrets policy can also scan the arguments and results of MCP tool calls in Claude Code, Codex, Cursor, and GitHub Copilot. The policy form doesn't offer this yet. Set the following fields on the `secrets_check` activity through the REST API: * `mcp_payloads`: List `MCP_PAYLOAD_INPUT` to scan tool arguments before the call runs, and `MCP_PAYLOAD_RESPONSE` to scan results after the call returns. An empty list scans no MCP calls. * `include_mcp_server_patterns` and `exclude_mcp_server_patterns`: Optional regex lists matched against the MCP server name. Exclusions apply after inclusions. An empty configuration scans every server. A finding in the arguments applies the policy's action, so a **Block** policy stops the secret before it reaches the server. Endor Labs always records a finding in a result as an alert, because the result has already reached the agent. In both cases, Endor Labs scrubs the detected values from the MCP events it stores. The file scan settings apply unchanged alongside the MCP scan. ## Dependency risk check The dependency risk check fires when an agent adds a dependency with a known vulnerability. It looks up each new package in Endor Labs vulnerability data and matches advisories at or above a severity you set. The default severity is high. The check runs at two points: * Install commands: The check parses the packages out of the command, the same way as the [malware check](#malware-check). * Manifest and lockfile edits: The check compares the file before and after the edit and checks only the dependencies the edit adds. See [Supported manifests and lockfiles](#supported-manifests-and-lockfiles) to review the files it reads. The check covers npm, PyPI, Go, and Maven packages. It skips installs in other ecosystems, such as Cargo or RubyGems, and reports no violation for them. For an unpinned install or a version range, the check judges the highest stable version that satisfies the range, and the message says so. It can't resolve a tag such as `beta`, so it lists that package as not checked. In Maven, it can't check an entry without an exact version, such as a range, a `${property}` reference, a `-SNAPSHOT` version, or a dynamic Gradle version such as `1.+`. Pin an exact version to have it checked. ### Transitive dependencies By default, `include_transitives` is off, and the check looks up only the dependencies an install command or manifest edit names. With it on, the check also looks up the packages each new dependency pulls in, using the dependency data Endor Labs stores for that package. This also applies to `go.mod` edits. Other lockfiles already list every resolved package, so the check looks up every entry the edit adds, even when `include_transitives` is off. ### What a dependency risk violation shows When the check matches, the agent and developer see the vulnerable package, the advisory, its severity, and the fixed version when one exists. A transitive match names the direct dependency that brings it in and suggests a newer version of it. When no fixed version exists, the message suggests removing or replacing the package. A block also tells the agent not to install the vulnerable version another way, such as with `--force`. If the check could not cover every package, the first match lists the packages it did not check and the dependencies whose transitive packages it could not fully check. ### Create a dependency risk policy Create and edit dependency risk policies through the REST API. The policy form does not author them yet. The policy takes the following fields on its `dependency_risk` activity: * `ecosystems`: Optional list of ecosystems to check. The supported values are `npm`, `pypi`, `go`, and `mvn`, and `maven` and `gradle` also work for Maven. An empty list checks every supported ecosystem. * `min_cvss_severity`: The lowest advisory severity that matches. Choose `SEVERITY_LOW`, `SEVERITY_MEDIUM`, `SEVERITY_HIGH`, or `SEVERITY_CRITICAL`. Unset means `SEVERITY_HIGH`. * `include_transitives`: Set to `true` to also check the packages each new dependency pulls in. Unset means `false`. * `include_file_patterns` and `exclude_file_patterns`: Optional regex lists that limit which manifests and lockfiles the check reads. Exclusions apply after inclusions. Endor Labs does not validate `ecosystems` values, so a misspelled or uppercase value such as `python` or `NPM` matches nothing. Use the lowercase values above. The following example creates a policy that asks before an agent adds an npm or PyPI dependency with a critical vulnerability. ```bash theme={null} endorctl api create -r AgentHookPolicyDefinition -n "" --data '{ "meta": { "name": "dependency-risk-critical" }, "spec": { "policy": { "name": "Dependency risk: ask before adding critical vulnerabilities", "enabled": true, "activity": { "dependency_risk": { "ecosystems": ["npm", "pypi"], "min_cvss_severity": "SEVERITY_CRITICAL", "include_transitives": true } }, "action": { "match_type": "MATCH_TYPE_BLOCKLIST", "ask": { "message": "This dependency has a known critical vulnerability." } } } }, "propagate": true }' ``` **Ask Permission** behavior varies by agent. Cursor, for example, denies a file write that an **Ask** policy matches. See [Enforcement behavior](/agent-governance/how-it-works#enforcement-behavior) to review how each agent handles it. The out-of-the-box policy [Dependencies: block adding known-vulnerable packages](/agent-governance/policies#dependency-risk-protection) checks high and critical advisories, including transitive dependencies, and blocks on a match. It is disabled by default. Enable it, or create your own dependency risk policy, to turn the check on. ## Supported manifests and lockfiles The malware and dependency risk checks read the following files when the agent writes or edits them. \- Ecosystem: npm Manifests: \`package.json\` Lockfiles: \`package-lock.json\`, \`yarn.lock\`, \`pnpm-lock.yaml\` \- Ecosystem: PyPI Manifests: \`\*requirements\*.txt\` Lockfiles: \`poetry.lock\`, \`uv.lock\` \- Ecosystem: Go Manifests: None Lockfiles: \`go.mod\` \- Ecosystem: Maven Manifests: \`pom.xml\`, Gradle version catalogs (\`\*.versions.toml\`) Lockfiles: \`gradle.lockfile\` The checks skip `build.gradle`, because it is code rather than a manifest. ## Actions Secure coding checks use the same actions as every other Coding Agent Governance policy: **Block** stops the action, **Alert** records it, and **Ask Permission** pauses for the developer. Violations appear under **Policy Violations** next to the rest of your governance activity. See [Actions](/agent-governance/policies#actions) to review what the developer and your security team see for each action. ## How the checks fit with other Endor Labs protection Endor Labs catches malicious packages and secrets at more than one layer, and each layer covers a different point in the workflow: * Secure coding checks act in the agent loop, at the moment an agent installs a package, edits a manifest, or touches a secret. * [Package Firewall](/package-firewall) protects the registry path for every install in your organization, whether an agent or a person runs it. * [Secrets scanning](/scan/secrets) finds secrets already committed to your repositories and pull requests. The layers share the same intelligence, so a package blocked in the agent loop is the same one Package Firewall blocks at the registry. ## Limitations Be aware of the following limitations: * Checks run for [supported agents](/agent-governance#supported-agents-and-platforms) on machines with hooks deployed. * The malware and dependency risk checks never block an action they can't complete. If a lookup fails or times out, or a file can't be read or is larger than 10 MB, the action proceeds. * In Claude Code, the manifest and lockfile checks cover the `Write` and `Edit` tools, not `MultiEdit`. * The dependency risk check ignores advisories without a CVSS score, disputed or withdrawn advisories, and malware advisories, which the malware check covers. * The secrets check inspects content the agent touches in a session. It is not a repository-wide scan. Use [secrets scanning](/scan/secrets) for full-repository coverage. * Like all Coding Agent Governance controls, these checks are guardrails for agent behavior, not a security boundary. See [What Coding Agent Governance is (and isn't)](/agent-governance/how-it-works#what-coding-agent-governance-is-and-isn’t) to review what these guardrails can't stop. # ListAgentActivity Source: https://docs.endorlabs.com/api-reference/agenttelemetryservice/listagentactivity /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/agent-telemetry/activity Returns the per-agent usage summary for a tenant. # ListAgentCalls Source: https://docs.endorlabs.com/api-reference/agenttelemetryservice/listagentcalls /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/agent-telemetry/agents/{agent_id}/calls Returns one agent's recent captured calls, newest first. # CreateAIProviderKey Source: https://docs.endorlabs.com/api-reference/aiproviderkeyservice/createaiproviderkey /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/ai-provider-keys Creates a new AI provider key in the root namespace of a tenant. The credential is validated, encrypted with a server-side key and stored; read APIs never return it. # DeleteAIProviderKey Source: https://docs.endorlabs.com/api-reference/aiproviderkeyservice/deleteaiproviderkey /api-reference/openapi.v3.json delete /v1/namespaces/{tenant_meta.namespace}/ai-provider-keys/{uuid} Deletes an AI provider key specified by its UUID. # GetAIProviderKey Source: https://docs.endorlabs.com/api-reference/aiproviderkeyservice/getaiproviderkey /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/ai-provider-keys/{uuid} Fetches an AI provider key identified by its UUID. The credential is redacted in the response. # ListAIProviderKeys Source: https://docs.endorlabs.com/api-reference/aiproviderkeyservice/listaiproviderkeys /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/ai-provider-keys Lists AI provider keys in a given namespace. Credentials are redacted in the response. # UpdateAIProviderKey Source: https://docs.endorlabs.com/api-reference/aiproviderkeyservice/updateaiproviderkey /api-reference/openapi.v3.json patch /v1/namespaces/{object.tenant_meta.namespace}/ai-provider-keys Updates an AI provider key with the information in the request body. Sending the redacted placeholder for the API key keeps the stored credential unchanged. # CreateAISastCustomerContext creates a scoped context; namespace scope is carried by tenant_meta.namespace. Source: https://docs.endorlabs.com/api-reference/aisastcustomercontextservice/createaisastcustomercontext-creates-a-scoped-context;-namespace-scope-is-carried-by-tenant_metanamespace /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/ai-sast-customer-contexts # DeleteAISastCustomerContext deletes an entry by UUID. Source: https://docs.endorlabs.com/api-reference/aisastcustomercontextservice/deleteaisastcustomercontext-deletes-an-entry-by-uuid /api-reference/openapi.v3.json delete /v1/namespaces/{tenant_meta.namespace}/ai-sast-customer-contexts/{uuid} # GetAISastCustomerContext fetches an entry by UUID. Source: https://docs.endorlabs.com/api-reference/aisastcustomercontextservice/getaisastcustomercontext-fetches-an-entry-by-uuid /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/ai-sast-customer-contexts/{uuid} # ListAISastCustomerContexts lists entries in a namespace; filter on parent fields for tenant or project scope. Source: https://docs.endorlabs.com/api-reference/aisastcustomercontextservice/listaisastcustomercontexts-lists-entries-in-a-namespace;-filter-on-parent-fields-for-tenant-or-project-scope /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/ai-sast-customer-contexts # UpdateAISastCustomerContext updates an entry from the request body. Source: https://docs.endorlabs.com/api-reference/aisastcustomercontextservice/updateaisastcustomercontext-updates-an-entry-from-the-request-body /api-reference/openapi.v3.json patch /v1/namespaces/{object.tenant_meta.namespace}/ai-sast-customer-contexts # CreateAPIKey Source: https://docs.endorlabs.com/api-reference/apikeyservice/createapikey /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/api-keys Creates an API key. # DeleteAPIKey Source: https://docs.endorlabs.com/api-reference/apikeyservice/deleteapikey /api-reference/openapi.v3.json delete /v1/namespaces/{tenant_meta.namespace}/api-keys/{uuid} Deletes the API key specified by the UUID. # GetAPIKey Source: https://docs.endorlabs.com/api-reference/apikeyservice/getapikey /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/api-keys/{uuid} Fetches the API key dentified by the UUID. # ListAPIKeys Source: https://docs.endorlabs.com/api-reference/apikeyservice/listapikeys /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/api-keys Lists all API keys for a given namespace. # CreateAPIKeyReq Source: https://docs.endorlabs.com/api-reference/apikeyvalidatorservice/createapikeyreq /api-reference/openapi.v3.json post /v1/auth/api-key/validate Validates an API key. # CreateArtifactSignature Source: https://docs.endorlabs.com/api-reference/artifactsignatureservice/createartifactsignature /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/artifact-signatures Creates a new artifact signature. # GetArtifactSignature Source: https://docs.endorlabs.com/api-reference/artifactsignatureservice/getartifactsignature /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/artifact-signatures/{uuid} Fetches an artifact signature identified by the UUID. # ListArtifactSignatures Source: https://docs.endorlabs.com/api-reference/artifactsignatureservice/listartifactsignatures /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/artifact-signatures Lists all artifact signatures. # UpdateArtifactSignature Source: https://docs.endorlabs.com/api-reference/artifactsignatureservice/updateartifactsignature /api-reference/openapi.v3.json patch /v1/namespaces/{object.tenant_meta.namespace}/artifact-signatures Updates the artifact signature. # CreateAsyncJob Source: https://docs.endorlabs.com/api-reference/asyncjobservice/createasyncjob /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/async-jobs Initiates asynchronous execution of a job. Returns immediately with the job UUID and state=JOB_STATE_NEW; poll GetAsyncJob to track progress. # GetAsyncJob Source: https://docs.endorlabs.com/api-reference/asyncjobservice/getasyncjob /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/async-jobs/{uuid} Fetches an async job by UUID. When state = JOB_STATE_SUCCESS, spec.response carries the type-specific arm (sbom, vex or sbom_report) with a freshly signed download URL (5-minute TTL) and the stable object-store file_path. # GetAuditLog Source: https://docs.endorlabs.com/api-reference/auditlogservice/getauditlog /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/audit-logs/{uuid} Fetches an audit log identified by the UUID. # ListAuditLogs Source: https://docs.endorlabs.com/api-reference/auditlogservice/listauditlogs /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/audit-logs List all audit logs in a given namespace. # CreateAuthenticationLog Source: https://docs.endorlabs.com/api-reference/authenticationlogservice/createauthenticationlog /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/authentication-logs Creates an authentication log for a given object. # DeleteAuthenticationLog Source: https://docs.endorlabs.com/api-reference/authenticationlogservice/deleteauthenticationlog /api-reference/openapi.v3.json delete /v1/namespaces/{tenant_meta.namespace}/authentication-logs/{uuid} Deletes the authentication log specified by its UUID. # GetAuthenticationLog Source: https://docs.endorlabs.com/api-reference/authenticationlogservice/getauthenticationlog /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/authentication-logs/{uuid} Fetches the authentication log identified by the UUID. # ListAuthenticationLogs Source: https://docs.endorlabs.com/api-reference/authenticationlogservice/listauthenticationlogs /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/authentication-logs Lists all authentication logs in a given namespace. # Authenticate Source: https://docs.endorlabs.com/api-reference/authenticationservice/authenticate /api-reference/openapi.v3.json get /v1/auth/{authentication_source} Initiates an authentication request and returns a token along with the token expiration time for an authenticated user. # Logout Source: https://docs.endorlabs.com/api-reference/authenticationservice/logout /api-reference/openapi.v3.json get /v1/auth/{authentication_source}/logout Clears the user session and cookies. # CreateAuthorizationPolicy Source: https://docs.endorlabs.com/api-reference/authorizationpolicyservice/createauthorizationpolicy /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/authorization-policies Creates an authorization policy for a given tenant. # DeleteAuthorizationPolicy Source: https://docs.endorlabs.com/api-reference/authorizationpolicyservice/deleteauthorizationpolicy /api-reference/openapi.v3.json delete /v1/namespaces/{tenant_meta.namespace}/authorization-policies/{uuid} Deletes an authorization policy specified by its UUID. # GetAuthorizationPolicy Source: https://docs.endorlabs.com/api-reference/authorizationpolicyservice/getauthorizationpolicy /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/authorization-policies/{uuid} Fetches an authorization policy specified by its UUID. # ListAuthorizationPolicies Source: https://docs.endorlabs.com/api-reference/authorizationpolicyservice/listauthorizationpolicies /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/authorization-policies Lists all authorization policies for a given tenant. # UpdateAuthorizationPolicy Source: https://docs.endorlabs.com/api-reference/authorizationpolicyservice/updateauthorizationpolicy /api-reference/openapi.v3.json patch /v1/namespaces/{object.tenant_meta.namespace}/authorization-policies Updates the authorization policy for a given tenant. # CreateBatchFileSegments Source: https://docs.endorlabs.com/api-reference/batchfilesegmentsservice/createbatchfilesegments /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/batch/file-segments Create multiple file segment objects through a batch API call. # CreateBatchNotification Source: https://docs.endorlabs.com/api-reference/batchnotificationservice/createbatchnotification /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/batch/notifications Create multiple notification objects through a batch API call. # GetCallGraphData Source: https://docs.endorlabs.com/api-reference/callgraphdataservice/getcallgraphdata /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/call-graph-data/{uuid} Fetches the call graph for a given package version that is captured in the parent UUID. # ListCallGraphData Source: https://docs.endorlabs.com/api-reference/callgraphdataservice/listcallgraphdata /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/call-graph-data Lists all call graph data in a namespace. # GetCodeOwners Source: https://docs.endorlabs.com/api-reference/codeownersservice/getcodeowners /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/codeowners/{uuid} Fetches the CodeOwners object identified by the UUID. # ListCodeOwners Source: https://docs.endorlabs.com/api-reference/codeownersservice/listcodeowners /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/codeowners Lists all CodeOwners objects in a namespace. # GetDependencyMetadata Source: https://docs.endorlabs.com/api-reference/dependencymetadataservice/getdependencymetadata /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/dependency-metadata/{uuid} Returns a specified dependency metadata object. # ListDependencyMetadata Source: https://docs.endorlabs.com/api-reference/dependencymetadataservice/listdependencymetadata /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/dependency-metadata List dependency metadata objects based on the specified list parameters. # CreateEndorIgnoreEntry Source: https://docs.endorlabs.com/api-reference/endorignoreentryservice/createendorignoreentry /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/endor-ignore-entries Creates an EndorIgnoreEntry object. # DeleteEndorIgnoreEntry Source: https://docs.endorlabs.com/api-reference/endorignoreentryservice/deleteendorignoreentry /api-reference/openapi.v3.json delete /v1/namespaces/{tenant_meta.namespace}/endor-ignore-entries/{uuid} Deletes the EndorIgnoreEntry object identified by the UUID. # GetEndorIgnoreEntry Source: https://docs.endorlabs.com/api-reference/endorignoreentryservice/getendorignoreentry /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/endor-ignore-entries/{uuid} Fetches the EndorIgnoreEntry object identified by the UUID. # ListEndorIgnoreEntries Source: https://docs.endorlabs.com/api-reference/endorignoreentryservice/listendorignoreentries /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/endor-ignore-entries Lists all EndorIgnoreEntry objects in a namespace. # UpdateEndorIgnoreEntry Source: https://docs.endorlabs.com/api-reference/endorignoreentryservice/updateendorignoreentry /api-reference/openapi.v3.json patch /v1/namespaces/{object.tenant_meta.namespace}/endor-ignore-entries Updates the EndorIgnoreEntry object identified by the UUID. # CreateExporter Source: https://docs.endorlabs.com/api-reference/exporterservice/createexporter /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/exporters Creates a exporter. # DeleteExporter Source: https://docs.endorlabs.com/api-reference/exporterservice/deleteexporter /api-reference/openapi.v3.json delete /v1/namespaces/{tenant_meta.namespace}/exporters/{uuid} Deletes the exporter specified by the UUID. # GetExporter Source: https://docs.endorlabs.com/api-reference/exporterservice/getexporter /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/exporters/{uuid} Fetches the exporter identified by the UUID. # ListExporters Source: https://docs.endorlabs.com/api-reference/exporterservice/listexporters /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/exporters Lists all exporters. # UpdateExporter Source: https://docs.endorlabs.com/api-reference/exporterservice/updateexporter /api-reference/openapi.v3.json patch /v1/namespaces/{object.tenant_meta.namespace}/exporters Updates a exporter. # GetFindingLog Source: https://docs.endorlabs.com/api-reference/findinglogservice/getfindinglog /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/finding-logs/{uuid} Returns a specified finding log. # ListFindingLogs Source: https://docs.endorlabs.com/api-reference/findinglogservice/listfindinglogs /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/finding-logs Returns a list of finding logs based on the specified list parameters. # DeleteFinding Source: https://docs.endorlabs.com/api-reference/findingservice/deletefinding /api-reference/openapi.v3.json delete /v1/namespaces/{tenant_meta.namespace}/findings/{uuid} Delete the finding specified by the UUID. # GetFinding Source: https://docs.endorlabs.com/api-reference/findingservice/getfinding /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/findings/{uuid} Fetch the finding identified by the UUID. # ListFindings Source: https://docs.endorlabs.com/api-reference/findingservice/listfindings /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/findings List findings based on the specified list parameters. # UpdateFinding Source: https://docs.endorlabs.com/api-reference/findingservice/updatefinding /api-reference/openapi.v3.json patch /v1/namespaces/{object.tenant_meta.namespace}/findings Update a specified finding. # GetHuggingFaceModel Source: https://docs.endorlabs.com/api-reference/huggingfacemodelservice/gethuggingfacemodel /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/hugging-face-models/{uuid} Fetches the HuggingFace model specified by the UUID. # ListHuggingFaceModels Source: https://docs.endorlabs.com/api-reference/huggingfacemodelservice/listhuggingfacemodels /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/hugging-face-models Lists all HuggingFace models in a given namespace. # GetHuggingFaceOrganization Source: https://docs.endorlabs.com/api-reference/huggingfaceorganizationservice/gethuggingfaceorganization /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/hugging-face-organizations/{uuid} Fetches the HuggingFace organization specified by the UUID. # ListHuggingFaceOrganizations Source: https://docs.endorlabs.com/api-reference/huggingfaceorganizationservice/listhuggingfaceorganizations /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/hugging-face-organizations Lists all HuggingFace organizations in a given namespace. # CreateIdentityProvider Source: https://docs.endorlabs.com/api-reference/identityproviderservice/createidentityprovider /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/identity-providers Creates an identity provider. # DeleteIdentityProvider Source: https://docs.endorlabs.com/api-reference/identityproviderservice/deleteidentityprovider /api-reference/openapi.v3.json delete /v1/namespaces/{tenant_meta.namespace}/identity-providers/{uuid} Deletes the identity provider specified by the UUID. # GetIdentityProvider Source: https://docs.endorlabs.com/api-reference/identityproviderservice/getidentityprovider /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/identity-providers/{uuid} Fetches the identity provider specified by the UUID. # ListIdentityProviders Source: https://docs.endorlabs.com/api-reference/identityproviderservice/listidentityproviders /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/identity-providers Lists all identity providers. # UpdateIdentityProvider Source: https://docs.endorlabs.com/api-reference/identityproviderservice/updateidentityprovider /api-reference/openapi.v3.json patch /v1/namespaces/{object.tenant_meta.namespace}/identity-providers Updates an identity provider. # CreateInstallation Source: https://docs.endorlabs.com/api-reference/installationservice/createinstallation /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/installations creates a installation. The creation of the resource will be an upsert if the given spec.external_id and spec.platform_resource were already created. # DeleteInstallation Source: https://docs.endorlabs.com/api-reference/installationservice/deleteinstallation /api-reference/openapi.v3.json delete /v1/namespaces/{tenant_meta.namespace}/installations/{uuid} Deletes an installation specified by the UUID. # GetInstallation Source: https://docs.endorlabs.com/api-reference/installationservice/getinstallation /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/installations/{uuid} Fetches an installation identified by the UUID. # ListInstallations Source: https://docs.endorlabs.com/api-reference/installationservice/listinstallations /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/installations Lists all installations. # UpdateInstallation Source: https://docs.endorlabs.com/api-reference/installationservice/updateinstallation /api-reference/openapi.v3.json patch /v1/namespaces/{object.tenant_meta.namespace}/installations Updates an installation. # CreateInvitation Source: https://docs.endorlabs.com/api-reference/invitationservice/createinvitation /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/invitations Creates an invitation. # DeleteInvitation Source: https://docs.endorlabs.com/api-reference/invitationservice/deleteinvitation /api-reference/openapi.v3.json delete /v1/namespaces/{tenant_meta.namespace}/invitations/{uuid} Deletes the invitation specified by the UUID # GetInvitation Source: https://docs.endorlabs.com/api-reference/invitationservice/getinvitation /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/invitations/{uuid} Fetches the invitation identified by the UUID. # ListInvitations Source: https://docs.endorlabs.com/api-reference/invitationservice/listinvitations /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/invitations Lists the invitations in a namespace. # CreateIPAddressPolicy Source: https://docs.endorlabs.com/api-reference/ipaddresspolicyservice/createipaddresspolicy /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/ip-address-policies Creates a finding log. # GetIPAddressPolicy Source: https://docs.endorlabs.com/api-reference/ipaddresspolicyservice/getipaddresspolicy /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/ip-address-policies/{uuid} Returns a specified finding log. # ListIPAddresssPolicies Source: https://docs.endorlabs.com/api-reference/ipaddresspolicyservice/listipaddressspolicies /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/ip-address-policies Returns a list of finding logs based on the specified list parameters. # CreateLicenseDependency Source: https://docs.endorlabs.com/api-reference/licensedependencyservice/createlicensedependency /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/license-dependencies Creates a license dependency. # DeleteLicenseDependency Source: https://docs.endorlabs.com/api-reference/licensedependencyservice/deletelicensedependency /api-reference/openapi.v3.json delete /v1/namespaces/{tenant_meta.namespace}/license-dependencies/{uuid} Deletes the license dependency specified by the UUID. # GetLicenseDependency Source: https://docs.endorlabs.com/api-reference/licensedependencyservice/getlicensedependency /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/license-dependencies/{uuid} Fetches the license dependency specified by the UUID. # ListLicenseDependencies Source: https://docs.endorlabs.com/api-reference/licensedependencyservice/listlicensedependencies /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/license-dependencies Lists all the license dependencies in a given namespace. # UpdateLicenseDependency Source: https://docs.endorlabs.com/api-reference/licensedependencyservice/updatelicensedependency /api-reference/openapi.v3.json patch /v1/namespaces/{object.tenant_meta.namespace}/license-dependencies Updates the license dependency. # GenerateLicenseNoticesReport Source: https://docs.endorlabs.com/api-reference/licensenoticesreportservice/generatelicensenoticesreport /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/license-notices-reports Creates a license notices report. # CreateLicenseSummary Source: https://docs.endorlabs.com/api-reference/licensesummaryservice/createlicensesummary /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/license-summaries Creates a license summary. # DeleteLicenseSummary Source: https://docs.endorlabs.com/api-reference/licensesummaryservice/deletelicensesummary /api-reference/openapi.v3.json delete /v1/namespaces/{tenant_meta.namespace}/license-summaries/{uuid} Deletes the license summary specified by the UUID. # GetLicenseSummary Source: https://docs.endorlabs.com/api-reference/licensesummaryservice/getlicensesummary /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/license-summaries/{uuid} Fetches the license summary specified by the UUID. # ListLicenseSummaries Source: https://docs.endorlabs.com/api-reference/licensesummaryservice/listlicensesummaries /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/license-summaries Lists all the license summaries in a given namespace. # UpdateLicenseSummary Source: https://docs.endorlabs.com/api-reference/licensesummaryservice/updatelicensesummary /api-reference/openapi.v3.json patch /v1/namespaces/{object.tenant_meta.namespace}/license-summaries Updates the license summary. # GetLinterResult Source: https://docs.endorlabs.com/api-reference/linterresultservice/getlinterresult /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/linter-results/{uuid} Fetches the linter result identified by the UUID. # ListLinterResults Source: https://docs.endorlabs.com/api-reference/linterresultservice/listlinterresults /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/linter-results Lists all linter results. # CreateMalwareExposureQuery Source: https://docs.endorlabs.com/api-reference/malwareexposurequeryservice/createmalwareexposurequery /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/queries/malware-exposure Creates a MalwareExposureQuery. # CreateMalwareExposure Source: https://docs.endorlabs.com/api-reference/malwareexposureservice/createmalwareexposure /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/malware-exposure Creates a MalwareExposure object. # DeleteMalwareExposure Source: https://docs.endorlabs.com/api-reference/malwareexposureservice/deletemalwareexposure /api-reference/openapi.v3.json delete /v1/namespaces/{tenant_meta.namespace}/malware-exposure/{uuid} Deletes the MalwareExposure object specified by the UUID. # GetMalwareExposure Source: https://docs.endorlabs.com/api-reference/malwareexposureservice/getmalwareexposure /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/malware-exposure/{uuid} Fetches the MalwareExposure object identified by the UUID. # ListMalwareExposure Source: https://docs.endorlabs.com/api-reference/malwareexposureservice/listmalwareexposure /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/malware-exposure Lists all MalwareExposure objects in a namespace. # UpdateMalwareExposure Source: https://docs.endorlabs.com/api-reference/malwareexposureservice/updatemalwareexposure /api-reference/openapi.v3.json patch /v1/namespaces/{object.tenant_meta.namespace}/malware-exposure Updates the MalwareExposure object specified by the UUID. # GetMalware Source: https://docs.endorlabs.com/api-reference/malwareservice/getmalware /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/malware/{uuid} Fetches a malware identified by the UUID. # ListMalware Source: https://docs.endorlabs.com/api-reference/malwareservice/listmalware /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/malware List all malware in the namespace. # GetMetric Source: https://docs.endorlabs.com/api-reference/metricservice/getmetric /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/metrics/{uuid} Fetches a metric specified by its UUID. # ListMetrics Source: https://docs.endorlabs.com/api-reference/metricservice/listmetrics /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/metrics Lists all metrics in a specified namespace. # CreateNamespace Source: https://docs.endorlabs.com/api-reference/namespaceservice/createnamespace /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/namespaces Creates a namespace. # DeleteNamespace Source: https://docs.endorlabs.com/api-reference/namespaceservice/deletenamespace /api-reference/openapi.v3.json delete /v1/namespaces/{tenant_meta.namespace}/namespaces/{uuid} Deletes a namespace based on its UUID. # GetNamespace Source: https://docs.endorlabs.com/api-reference/namespaceservice/getnamespace /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/namespaces/{uuid} Fetches a namespace identified by its UUID. # ListNamespaces Source: https://docs.endorlabs.com/api-reference/namespaceservice/listnamespaces /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/namespaces Lists all namespaces in a tenant. # UpdateNamespace Source: https://docs.endorlabs.com/api-reference/namespaceservice/updatenamespace /api-reference/openapi.v3.json patch /v1/namespaces/{object.tenant_meta.namespace}/namespaces Updates a provided namespace based on its UUID. # UpdateNamespace Source: https://docs.endorlabs.com/api-reference/namespaceservice/updatenamespace-1 /api-reference/openapi.v3.json patch /v1/namespaces/{object.tenant_meta.namespace}/namespaces/{object.uuid}/namespaces Updates a provided namespace based on its UUID. # GetNotification Source: https://docs.endorlabs.com/api-reference/notificationservice/getnotification /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/notifications/{uuid} Fetches the notification identified by the UUID. # ListNotifications Source: https://docs.endorlabs.com/api-reference/notificationservice/listnotifications /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/notifications List all notifications. # CreateNotificationTarget Source: https://docs.endorlabs.com/api-reference/notificationtargetservice/createnotificationtarget /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/notification-targets Creates a notification target. # DeleteNotificationTarget Source: https://docs.endorlabs.com/api-reference/notificationtargetservice/deletenotificationtarget /api-reference/openapi.v3.json delete /v1/namespaces/{tenant_meta.namespace}/notification-targets/{uuid} Deletes the notification target specified by the UUID. # GetNotificationTarget Source: https://docs.endorlabs.com/api-reference/notificationtargetservice/getnotificationtarget /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/notification-targets/{uuid} Fetches the notification target identified by the UUID. # ListNotificationTargets Source: https://docs.endorlabs.com/api-reference/notificationtargetservice/listnotificationtargets /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/notification-targets Lists all notification targets. # UpdateNotificationTarget Source: https://docs.endorlabs.com/api-reference/notificationtargetservice/updatenotificationtarget /api-reference/openapi.v3.json patch /v1/namespaces/{object.tenant_meta.namespace}/notification-targets Updates a notification target. # CreateOnPremScheduler creates an onprem scheduler. Source: https://docs.endorlabs.com/api-reference/onpremschedulerservice/createonpremscheduler-creates-an-onprem-scheduler /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/onprem-schedulers # DeleteOnPremScheduler deletes an onprem scheduler specified by its UUID. Source: https://docs.endorlabs.com/api-reference/onpremschedulerservice/deleteonpremscheduler-deletes-an-onprem-scheduler-specified-by-its-uuid /api-reference/openapi.v3.json delete /v1/namespaces/{tenant_meta.namespace}/onprem-schedulers/{uuid} # GetOnPremScheduler returns an onprem scheduler specified by its UUID. Source: https://docs.endorlabs.com/api-reference/onpremschedulerservice/getonpremscheduler-returns-an-onprem-scheduler-specified-by-its-uuid /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/onprem-schedulers/{uuid} # ListOnPremSchedulers returns a list of onprem schedulers in a specified namespace. Source: https://docs.endorlabs.com/api-reference/onpremschedulerservice/listonpremschedulers-returns-a-list-of-onprem-schedulers-in-a-specified-namespace /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/onprem-schedulers # UpdateOnPremScheduler updates the specified onprem scheduler. Source: https://docs.endorlabs.com/api-reference/onpremschedulerservice/updateonpremscheduler-updates-the-specified-onprem-scheduler /api-reference/openapi.v3.json patch /v1/namespaces/{object.tenant_meta.namespace}/onprem-schedulers # GetPackageFirewallLog Source: https://docs.endorlabs.com/api-reference/packagefirewalllogservice/getpackagefirewalllog /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/package-firewall-logs/{uuid} Fetches the package firewall log identified by the UUID. # ListPackageFirewallLogs Source: https://docs.endorlabs.com/api-reference/packagefirewalllogservice/listpackagefirewalllogs /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/package-firewall-logs Lists all package firewall logs in a given namespace. # CreatePackageLicenseOverride Source: https://docs.endorlabs.com/api-reference/packagelicenseoverrideservice/createpackagelicenseoverride /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/package-license-overrides Creates a package license override. # DeletePackageLicenseOverride Source: https://docs.endorlabs.com/api-reference/packagelicenseoverrideservice/deletepackagelicenseoverride /api-reference/openapi.v3.json delete /v1/namespaces/{tenant_meta.namespace}/package-license-overrides/{uuid} Deletes a specified package license override. # GetPackageLicenseOverride Source: https://docs.endorlabs.com/api-reference/packagelicenseoverrideservice/getpackagelicenseoverride /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/package-license-overrides/{uuid} Gets a package license override by its UUID. # ListPackageLicenseOverrides Source: https://docs.endorlabs.com/api-reference/packagelicenseoverrideservice/listpackagelicenseoverrides /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/package-license-overrides Lists all package license overrides in a namespace. # UpdatePackageLicenseOverride Source: https://docs.endorlabs.com/api-reference/packagelicenseoverrideservice/updatepackagelicenseoverride /api-reference/openapi.v3.json patch /v1/namespaces/{object.tenant_meta.namespace}/package-license-overrides Updates a specified package license override. # CreatePackageLicenseQuery Source: https://docs.endorlabs.com/api-reference/packagelicensequeryservice/createpackagelicensequery /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/queries/package-license-queries Creates a query to fetch merged license data (PackageLicense + PackageLicenseOverride) for a package version from all the namespaces in the namespace chain. This is the primary API for the Edit Dependency UI page. The response combines: - Original licenses/copyrights/notices from PackageLicense (fetched from OSS namespace). - Any overrides from PackageLicenseOverride (fetched from user namespace). - Selection states for each item (defaults to selected if not in selection map). # CreatePackageLicense Source: https://docs.endorlabs.com/api-reference/packagelicenseservice/createpackagelicense /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/package-licenses Creates a package license. # DeletePackageLicense Source: https://docs.endorlabs.com/api-reference/packagelicenseservice/deletepackagelicense /api-reference/openapi.v3.json delete /v1/namespaces/{tenant_meta.namespace}/package-licenses/{uuid} Deletes the package license specified by the UUID. # GetPackageLicense Source: https://docs.endorlabs.com/api-reference/packagelicenseservice/getpackagelicense /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/package-licenses/{uuid} Fetches the package license specified by the UUID. # ListPackageLicenses Source: https://docs.endorlabs.com/api-reference/packagelicenseservice/listpackagelicenses /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/package-licenses Lists all the package licenses in a given namespace. # UpdatePackageLicense Source: https://docs.endorlabs.com/api-reference/packagelicenseservice/updatepackagelicense /api-reference/openapi.v3.json patch /v1/namespaces/{object.tenant_meta.namespace}/package-licenses Updates the package license. # CreatePackageManager Source: https://docs.endorlabs.com/api-reference/packagemanagerservice/createpackagemanager /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/package-managers Creates a package manager in a given namespace. # DeletePackageManager Source: https://docs.endorlabs.com/api-reference/packagemanagerservice/deletepackagemanager /api-reference/openapi.v3.json delete /v1/namespaces/{tenant_meta.namespace}/package-managers/{uuid} Deletes a package manager specified by its UUID. # GetPackageManager Source: https://docs.endorlabs.com/api-reference/packagemanagerservice/getpackagemanager /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/package-managers/{uuid} Fetches the package manager identified by the UUID. # ListPackageManagers Source: https://docs.endorlabs.com/api-reference/packagemanagerservice/listpackagemanagers /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/package-managers Lists all package managers in a given namespace # UpdatePackageManager Source: https://docs.endorlabs.com/api-reference/packagemanagerservice/updatepackagemanager /api-reference/openapi.v3.json patch /v1/namespaces/{object.tenant_meta.namespace}/package-managers Updates a specified package manager. # DeletePackageVersion Source: https://docs.endorlabs.com/api-reference/packageversionservice/deletepackageversion /api-reference/openapi.v3.json delete /v1/namespaces/{tenant_meta.namespace}/package-versions/{uuid} Deletes a package version specified by the UUID. # GetPackageVersion Source: https://docs.endorlabs.com/api-reference/packageversionservice/getpackageversion /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/package-versions/{uuid} Fetches a package version specified by the UUID. # ListPackageVersions Source: https://docs.endorlabs.com/api-reference/packageversionservice/listpackageversions /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/package-versions Lists all the package versions in a given namespace. # UpdatePackageVersion Source: https://docs.endorlabs.com/api-reference/packageversionservice/updatepackageversion /api-reference/openapi.v3.json patch /v1/namespaces/{object.tenant_meta.namespace}/package-versions Updates a specified package version. # GetPluginBinary Source: https://docs.endorlabs.com/api-reference/pluginbinaryservice/getpluginbinary /api-reference/openapi.v3.json get /v1/plugin-binaries/{uuid} Fetches a plugin binary identified by the UUID. # ListPluginBinaries Source: https://docs.endorlabs.com/api-reference/pluginbinaryservice/listpluginbinaries /api-reference/openapi.v3.json get /v1/plugin-binaries Lists all the available plugin binaries. # CreatePolicy Source: https://docs.endorlabs.com/api-reference/policyservice/createpolicy /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/policies Creates a policy. # DeletePolicy Source: https://docs.endorlabs.com/api-reference/policyservice/deletepolicy /api-reference/openapi.v3.json delete /v1/namespaces/{tenant_meta.namespace}/policies/{uuid} Deletes the policy specified by the UUID. # GetPolicy Source: https://docs.endorlabs.com/api-reference/policyservice/getpolicy /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/policies/{uuid} Fetches the policy identified by the UUID. # ListPolicies Source: https://docs.endorlabs.com/api-reference/policyservice/listpolicies /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/policies Lists all policies in a namespace. # UpdatePolicy Source: https://docs.endorlabs.com/api-reference/policyservice/updatepolicy /api-reference/openapi.v3.json patch /v1/namespaces/{object.tenant_meta.namespace}/policies Updates the policy. # GetPolicyTemplate Source: https://docs.endorlabs.com/api-reference/policytemplateservice/getpolicytemplate /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/policy-templates/{uuid} Fetches the policy template identified by the UUID. # ListPolicyTemplates Source: https://docs.endorlabs.com/api-reference/policytemplateservice/listpolicytemplates /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/policy-templates Lists all policy templates in a namespace. # CreatePRCommentConfig Source: https://docs.endorlabs.com/api-reference/prcommentconfigservice/createprcommentconfig /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/pr-comment-configs Creates a PR comment configuration. # DeletePRCommentConfig Source: https://docs.endorlabs.com/api-reference/prcommentconfigservice/deleteprcommentconfig /api-reference/openapi.v3.json delete /v1/namespaces/{tenant_meta.namespace}/pr-comment-configs/{uuid} Deletes the PR comment configuration identified by the UUID. # GetPRCommentConfig Source: https://docs.endorlabs.com/api-reference/prcommentconfigservice/getprcommentconfig /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/pr-comment-configs/{uuid} Fetches the PR comment configuration specified by the UUID. # ListPRCommentConfigs Source: https://docs.endorlabs.com/api-reference/prcommentconfigservice/listprcommentconfigs /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/pr-comment-configs List all PR comment configurations for the tenant namespace. # UpdatePRCommentConfig Source: https://docs.endorlabs.com/api-reference/prcommentconfigservice/updateprcommentconfig /api-reference/openapi.v3.json patch /v1/namespaces/{object.tenant_meta.namespace}/pr-comment-configs Updates the the PR comment configuration. # CreateProject Source: https://docs.endorlabs.com/api-reference/projectservice/createproject /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/projects Creates a project in a given namespace. # DeleteProject Source: https://docs.endorlabs.com/api-reference/projectservice/deleteproject /api-reference/openapi.v3.json delete /v1/namespaces/{tenant_meta.namespace}/projects/{uuid} Deletes a project specified by its UUID. # GetProject Source: https://docs.endorlabs.com/api-reference/projectservice/getproject /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/projects/{uuid} Fetches comprehensive information about a project identified by a given UUID. # ListProjects Source: https://docs.endorlabs.com/api-reference/projectservice/listprojects /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/projects Lists all projects in a given namespace. # UpdateProject Source: https://docs.endorlabs.com/api-reference/projectservice/updateproject /api-reference/openapi.v3.json patch /v1/namespaces/{object.tenant_meta.namespace}/projects Updates the specified project with the information in the request body. # GetProvisioningResult returns a provisioning result specified by its UUID. Source: https://docs.endorlabs.com/api-reference/provisioningresultservice/getprovisioningresult-returns-a-provisioning-result-specified-by-its-uuid /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/provisioning-results/{uuid} # ListProvisioningResults returns a list of provisioning results in a specified namespace. Source: https://docs.endorlabs.com/api-reference/provisioningresultservice/listprovisioningresults-returns-a-list-of-provisioning-results-in-a-specified-namespace /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/provisioning-results # CreateQueryMalware Source: https://docs.endorlabs.com/api-reference/querymalwareservice/createquerymalware /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/queries/malware Queries malware for specific values. Use this method to query malware for a specific package version. # CreateQuery Source: https://docs.endorlabs.com/api-reference/queryservice/createquery /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/queries Queries metrics for specific values. It returns back a list of metric UUIDs. The caller must call the List or Get metric to retrieve the individual metric values. # Queries packages which is lexicographically similar to a given package. Source: https://docs.endorlabs.com/api-reference/querysimilarpackagesservice/queries-packages-which-is-lexicographically-similar-to-a-given-package /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/queries/similar-packages # CreateQueryVulnerability Source: https://docs.endorlabs.com/api-reference/queryvulnerabilityservice/createqueryvulnerability /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/queries/vulnerabilities Queries vulnerabilities for specific values. Use this method to query vulnerabilities for a specific package version. # CreateRegistryIngestionCheckpoint Source: https://docs.endorlabs.com/api-reference/registryingestioncheckpointservice/createregistryingestioncheckpoint /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/registry-ingestion-checkpoints Creates a registry ingestion checkpoint. # DeleteRegistryIngestionCheckpoint Source: https://docs.endorlabs.com/api-reference/registryingestioncheckpointservice/deleteregistryingestioncheckpoint /api-reference/openapi.v3.json delete /v1/namespaces/{tenant_meta.namespace}/registry-ingestion-checkpoints/{uuid} Deletes the registry ingestion checkpoint specified by the UUID. # GetRegistryIngestionCheckpoint Source: https://docs.endorlabs.com/api-reference/registryingestioncheckpointservice/getregistryingestioncheckpoint /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/registry-ingestion-checkpoints/{uuid} Fetches the registry ingestion checkpoint specified by the UUID. # ListRegistryIngestionCheckpoint Source: https://docs.endorlabs.com/api-reference/registryingestioncheckpointservice/listregistryingestioncheckpoint /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/registry-ingestion-checkpoints Lists registry ingestion checkpoints in a namespace. # UpdateRegistryIngestionCheckpoint Source: https://docs.endorlabs.com/api-reference/registryingestioncheckpointservice/updateregistryingestioncheckpoint /api-reference/openapi.v3.json patch /v1/namespaces/{object.tenant_meta.namespace}/registry-ingestion-checkpoints Updates a registry ingestion checkpoint. # CreateRepository Source: https://docs.endorlabs.com/api-reference/repositoryservice/createrepository /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/repositories Creates a source control repository. The creation of the resource will be an upsert operation if the given spec.external_id and spec.platform_resource are already available. # DeleteRepository Source: https://docs.endorlabs.com/api-reference/repositoryservice/deleterepository /api-reference/openapi.v3.json delete /v1/namespaces/{tenant_meta.namespace}/repositories/{uuid} Deletes a source control repository specified by its UUID. # GetRepository Source: https://docs.endorlabs.com/api-reference/repositoryservice/getrepository /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/repositories/{uuid} Fetches a source control repository identified by a given UUID. # ListRepositories Source: https://docs.endorlabs.com/api-reference/repositoryservice/listrepositories /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/repositories Lists the source control repositories in a given namespace. # UpdateRepository Source: https://docs.endorlabs.com/api-reference/repositoryservice/updaterepository /api-reference/openapi.v3.json patch /v1/namespaces/{object.tenant_meta.namespace}/repositories Updates a source control repository with the information in the request body. # CreateRepositoryVersion Source: https://docs.endorlabs.com/api-reference/repositoryversionservice/createrepositoryversion /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/repository-versions Creates a repository version or updates a repository version if it already exists. # DeleteRepositoryVersion Source: https://docs.endorlabs.com/api-reference/repositoryversionservice/deleterepositoryversion /api-reference/openapi.v3.json delete /v1/namespaces/{tenant_meta.namespace}/repository-versions/{uuid} Deletes a repository version specified by its UUID. # GetRepositoryVersion Source: https://docs.endorlabs.com/api-reference/repositoryversionservice/getrepositoryversion /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/repository-versions/{uuid} Fetches a repository version specified by its UUID. # ListRepositoryVersions Source: https://docs.endorlabs.com/api-reference/repositoryversionservice/listrepositoryversions /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/repository-versions Lists all repository versions in a given namespace. # UpdateRepositoryVersion Source: https://docs.endorlabs.com/api-reference/repositoryversionservice/updaterepositoryversion /api-reference/openapi.v3.json patch /v1/namespaces/{object.tenant_meta.namespace}/repository-versions Updates a specified repository version with the information in the request body. # CreateRuleSetImport Source: https://docs.endorlabs.com/api-reference/rulesetimportservice/createrulesetimport /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/rule-set-imports Imports the given set of rules. # DeleteRuleSetImport Source: https://docs.endorlabs.com/api-reference/rulesetimportservice/deleterulesetimport /api-reference/openapi.v3.json delete /v1/namespaces/{tenant_meta.namespace}/rule-set-imports/{uuid} Deletes an imported rule set object specified by its UUID. # GetRuleSetImport Source: https://docs.endorlabs.com/api-reference/rulesetimportservice/getrulesetimport /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/rule-set-imports/{uuid} Fetches an imported rule set object specified by its UUID. # ListRuleSetImports Source: https://docs.endorlabs.com/api-reference/rulesetimportservice/listrulesetimports /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/rule-set-imports Lists all imported rule set objects in a namespace. # UpdateRuleSetImport Source: https://docs.endorlabs.com/api-reference/rulesetimportservice/updaterulesetimport /api-reference/openapi.v3.json patch /v1/namespaces/{object.tenant_meta.namespace}/rule-set-imports Updates an imported set of rules. # CreateSavedQuery Source: https://docs.endorlabs.com/api-reference/savedqueryservice/createsavedquery /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/saved-queries Creates a saved query. # DeleteSavedQuery Source: https://docs.endorlabs.com/api-reference/savedqueryservice/deletesavedquery /api-reference/openapi.v3.json delete /v1/namespaces/{tenant_meta.namespace}/saved-queries/{uuid} Deletes the saved query specified by the UUID. # EvaluateSavedQuery Source: https://docs.endorlabs.com/api-reference/savedqueryservice/evaluatesavedquery /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/saved-queries/{uuid}/evaluate Evaluates the saved query, then returns the query and the result. # GetSavedQuery Source: https://docs.endorlabs.com/api-reference/savedqueryservice/getsavedquery /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/saved-queries/{uuid} Fetches the saved query identified by the UUID. # ListSavedQueries Source: https://docs.endorlabs.com/api-reference/savedqueryservice/listsavedqueries /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/saved-queries Lists all saved queries in a namespace. # UpdateSavedQuery Source: https://docs.endorlabs.com/api-reference/savedqueryservice/updatesavedquery /api-reference/openapi.v3.json patch /v1/namespaces/{object.tenant_meta.namespace}/saved-queries Updates the saved queries. # CreateSBOMImport Source: https://docs.endorlabs.com/api-reference/sbomimportservice/createsbomimport /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/sbom-imports Imports the given SBOM. # DeleteSBOMImport Source: https://docs.endorlabs.com/api-reference/sbomimportservice/deletesbomimport /api-reference/openapi.v3.json delete /v1/namespaces/{tenant_meta.namespace}/sbom-imports/{uuid} Deletes an imported SBOM specified by its UUID. # GetSBOMImport Source: https://docs.endorlabs.com/api-reference/sbomimportservice/getsbomimport /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/sbom-imports/{uuid} Fetches an imported SBOM specified by its UUID. # ListSBOMImports Source: https://docs.endorlabs.com/api-reference/sbomimportservice/listsbomimports /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/sbom-imports Lists all imported SBOMS in a namespace. # UpdateSBOMImport Source: https://docs.endorlabs.com/api-reference/sbomimportservice/updatesbomimport /api-reference/openapi.v3.json patch /v1/namespaces/{object.tenant_meta.namespace}/sbom-imports Updates an imported SBOM. # GetScanCreditUsage Source: https://docs.endorlabs.com/api-reference/scancreditusageservice/getscancreditusage /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/scan-credit-usages/{uuid} Fetches a ScanCreditUsage record specified by its UUID. # ListScanCreditUsages Source: https://docs.endorlabs.com/api-reference/scancreditusageservice/listscancreditusages /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/scan-credit-usages Lists ScanCreditUsage records visible in the namespace. # CreateScanLogRequest Source: https://docs.endorlabs.com/api-reference/scanlogrequestservice/createscanlogrequest /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/scan-log-requests Create a scan log request. # CreateScanProfile creates a toolchain profile. Source: https://docs.endorlabs.com/api-reference/scanprofileservice/createscanprofile-creates-a-toolchain-profile /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/scan-profiles # DeleteScanProfile deletes a toolchain profile specified by its UUID. Source: https://docs.endorlabs.com/api-reference/scanprofileservice/deletescanprofile-deletes-a-toolchain-profile-specified-by-its-uuid /api-reference/openapi.v3.json delete /v1/namespaces/{tenant_meta.namespace}/scan-profiles/{uuid} # GetScanProfile returns a toolchain profile specified by its UUID. Source: https://docs.endorlabs.com/api-reference/scanprofileservice/getscanprofile-returns-a-toolchain-profile-specified-by-its-uuid /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/scan-profiles/{uuid} # ListScanProfiles returns a list of toolchain profiles in a specified namespace. Source: https://docs.endorlabs.com/api-reference/scanprofileservice/listscanprofiles-returns-a-list-of-toolchain-profiles-in-a-specifiednamespace /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/scan-profiles # UpdateScanProfile updates a specified Toolchain profile. Source: https://docs.endorlabs.com/api-reference/scanprofileservice/updatescanprofile-updates-a-specified-toolchain-profile /api-reference/openapi.v3.json patch /v1/namespaces/{object.tenant_meta.namespace}/scan-profiles # CreateScanResult Source: https://docs.endorlabs.com/api-reference/scanresultservice/createscanresult /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/scan-results Create a scan result. # DeleteScanResult Source: https://docs.endorlabs.com/api-reference/scanresultservice/deletescanresult /api-reference/openapi.v3.json delete /v1/namespaces/{tenant_meta.namespace}/scan-results/{uuid} Delete a specified scan result. # GetScanResult Source: https://docs.endorlabs.com/api-reference/scanresultservice/getscanresult /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/scan-results/{uuid} Return a specified scan result. # ListScanResults Source: https://docs.endorlabs.com/api-reference/scanresultservice/listscanresults /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/scan-results List scan results based on the specified list parameters. # UpdateScanResult Source: https://docs.endorlabs.com/api-reference/scanresultservice/updatescanresult /api-reference/openapi.v3.json patch /v1/namespaces/{object.tenant_meta.namespace}/scan-results Update a specified scan result. # CreateScanWorkflowResult Source: https://docs.endorlabs.com/api-reference/scanworkflowresultservice/createscanworkflowresult /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/scan-workflow-results Creates a scan workflow result in a given namespace. # DeleteScanWorkflowResult Source: https://docs.endorlabs.com/api-reference/scanworkflowresultservice/deletescanworkflowresult /api-reference/openapi.v3.json delete /v1/namespaces/{tenant_meta.namespace}/scan-workflow-results/{uuid} Deletes a scan workflow result specified by its UUID. # GetScanWorkflowResult Source: https://docs.endorlabs.com/api-reference/scanworkflowresultservice/getscanworkflowresult /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/scan-workflow-results/{uuid} Fetches comprehensive information about a scan workflow result identified by a given UUID. # ListScanWorkflowResults Source: https://docs.endorlabs.com/api-reference/scanworkflowresultservice/listscanworkflowresults /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/scan-workflow-results Lists all scan workflow results in a given namespace. # UpdateScanWorkflowResult Source: https://docs.endorlabs.com/api-reference/scanworkflowresultservice/updatescanworkflowresult /api-reference/openapi.v3.json patch /v1/namespaces/{object.tenant_meta.namespace}/scan-workflow-results Updates the specified scan workflow result with the information in the request body. # CreateScanWorkflow Source: https://docs.endorlabs.com/api-reference/scanworkflowservice/createscanworkflow /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/scan-workflows Creates a scan workflow in a given namespace. # DeleteScanWorkflow Source: https://docs.endorlabs.com/api-reference/scanworkflowservice/deletescanworkflow /api-reference/openapi.v3.json delete /v1/namespaces/{tenant_meta.namespace}/scan-workflows/{uuid} Deletes a scan workflow specified by its UUID. # GetScanWorkflow Source: https://docs.endorlabs.com/api-reference/scanworkflowservice/getscanworkflow /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/scan-workflows/{uuid} Fetches comprehensive information about a scan workflow identified by a given UUID. # ListScanWorkflows Source: https://docs.endorlabs.com/api-reference/scanworkflowservice/listscanworkflows /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/scan-workflows Lists all scan workflows in a given namespace. # UpdateScanWorkflow Source: https://docs.endorlabs.com/api-reference/scanworkflowservice/updatescanworkflow /api-reference/openapi.v3.json patch /v1/namespaces/{object.tenant_meta.namespace}/scan-workflows Updates the specified scan workflow with the information in the request body. # CreateSCMCredential creates an SCM credential in the given namespace. Source: https://docs.endorlabs.com/api-reference/scmcredentialservice/createscmcredential-creates-an-scm-credential-in-the-given-namespace /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/scm-credentials # DeleteSCMCredential deletes the SCM credential specified by UUID. Source: https://docs.endorlabs.com/api-reference/scmcredentialservice/deletescmcredential-deletes-the-scm-credential-specified-by-uuid /api-reference/openapi.v3.json delete /v1/namespaces/{tenant_meta.namespace}/scm-credentials/{uuid} # GetSCMCredential fetches the SCM credential identified by UUID. Source: https://docs.endorlabs.com/api-reference/scmcredentialservice/getscmcredential-fetches-the-scm-credential-identified-by-uuid /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/scm-credentials/{uuid} # ListSCMCredentials lists all SCM credentials in the given namespace. Source: https://docs.endorlabs.com/api-reference/scmcredentialservice/listscmcredentials-lists-all-scm-credentials-in-the-given-namespace /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/scm-credentials # UpdateSCMCredential updates the SCM credential specified in the request. Source: https://docs.endorlabs.com/api-reference/scmcredentialservice/updatescmcredential-updates-the-scm-credential-specified-in-the-request /api-reference/openapi.v3.json patch /v1/namespaces/{object.tenant_meta.namespace}/scm-credentials # CreateSecretRule Source: https://docs.endorlabs.com/api-reference/secretruleservice/createsecretrule /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/secret-rules Creates a secret rule. # DeleteSecretRule Source: https://docs.endorlabs.com/api-reference/secretruleservice/deletesecretrule /api-reference/openapi.v3.json delete /v1/namespaces/{tenant_meta.namespace}/secret-rules/{uuid} Deletes the secret rule identified by the UUID. # GetSecretRule Source: https://docs.endorlabs.com/api-reference/secretruleservice/getsecretrule /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/secret-rules/{uuid} Fetches the secret rule identified by the UUID. # ListSecretRules Source: https://docs.endorlabs.com/api-reference/secretruleservice/listsecretrules /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/secret-rules Lists all secret rules in a namespace. # UpdateSecretRule Source: https://docs.endorlabs.com/api-reference/secretruleservice/updatesecretrule /api-reference/openapi.v3.json patch /v1/namespaces/{object.tenant_meta.namespace}/secret-rules Updates a secret rule. # CreateSemgrepRule Source: https://docs.endorlabs.com/api-reference/semgrepruleservice/createsemgreprule /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/semgrep-rules Creates a Semgrep rule. # DeleteSemgrepRule Source: https://docs.endorlabs.com/api-reference/semgrepruleservice/deletesemgreprule /api-reference/openapi.v3.json delete /v1/namespaces/{tenant_meta.namespace}/semgrep-rules/{uuid} Deletes the rule specified by the UUID. # GetSemgrepRule Source: https://docs.endorlabs.com/api-reference/semgrepruleservice/getsemgreprule /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/semgrep-rules/{uuid} Fetches a Semgrep rule identified by the UUID. # ListSemgrepRules Source: https://docs.endorlabs.com/api-reference/semgrepruleservice/listsemgreprules /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/semgrep-rules Lists all Semgrep rules in the namespace. # UpdateSemgrepRule Source: https://docs.endorlabs.com/api-reference/semgrepruleservice/updatesemgreprule /api-reference/openapi.v3.json patch /v1/namespaces/{object.tenant_meta.namespace}/semgrep-rules Updates the Semgrep rule. # CreateSystemConfig Source: https://docs.endorlabs.com/api-reference/systemconfigservice/createsystemconfig /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/system-config Creates a system configuration object. # DeleteSystemConfig Source: https://docs.endorlabs.com/api-reference/systemconfigservice/deletesystemconfig /api-reference/openapi.v3.json delete /v1/namespaces/{tenant_meta.namespace}/system-config/{uuid} Deletes the system configuration specified by the UUID. # GetSystemConfig Source: https://docs.endorlabs.com/api-reference/systemconfigservice/getsystemconfig /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/system-config/{uuid} Fetches the system configuration specified by the UUID. # ListSystemConfig Source: https://docs.endorlabs.com/api-reference/systemconfigservice/listsystemconfig /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/system-config Returns the system configuration as a list of length 1. # UpdateSystemConfig Source: https://docs.endorlabs.com/api-reference/systemconfigservice/updatesystemconfig /api-reference/openapi.v3.json patch /v1/namespaces/{object.tenant_meta.namespace}/system-config Updates the system configuration. # CreateTenant Source: https://docs.endorlabs.com/api-reference/tenantservice/createtenant /api-reference/openapi.v3.json post /v1/tenants Creates a tenant. # DeleteTenant Source: https://docs.endorlabs.com/api-reference/tenantservice/deletetenant /api-reference/openapi.v3.json delete /v1/tenants/{uuid} Deletes a tenant specified by its UUID. # GetTenant Source: https://docs.endorlabs.com/api-reference/tenantservice/gettenant /api-reference/openapi.v3.json get /v1/tenants/{uuid} Fetches a tenant specified by its UUID. # ListTenants Source: https://docs.endorlabs.com/api-reference/tenantservice/listtenants /api-reference/openapi.v3.json get /v1/tenants Lists all tenants. # UpdateTenant Source: https://docs.endorlabs.com/api-reference/tenantservice/updatetenant /api-reference/openapi.v3.json patch /v1/tenants Updates a specified tenant. # GetVectorStore Source: https://docs.endorlabs.com/api-reference/vectorstoreservice/getvectorstore /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/vector-stores/{uuid} Fetches an VectorStore specified by its UUID. # ListVectorStores Source: https://docs.endorlabs.com/api-reference/vectorstoreservice/listvectorstores /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/vector-stores Lists all vector stores visible in a namespace. # CreateVersionUpgrade Source: https://docs.endorlabs.com/api-reference/versionupgradeservice/createversionupgrade /api-reference/openapi.v3.json post /v1/namespaces/{tenant_meta.namespace}/version-upgrades Creates a version upgrade. The creation of the resource will be an upsert if the given spec.external_id and spec.platform_resource were already created. # DeleteVersionUpgrade Source: https://docs.endorlabs.com/api-reference/versionupgradeservice/deleteversionupgrade /api-reference/openapi.v3.json delete /v1/namespaces/{tenant_meta.namespace}/version-upgrades/{uuid} Deletes a version upgrade specified by the UUID. # GetVersionUpgrade Source: https://docs.endorlabs.com/api-reference/versionupgradeservice/getversionupgrade /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/version-upgrades/{uuid} Fetches a version upgrade identified by the UUID. # ListVersionUpgrades Source: https://docs.endorlabs.com/api-reference/versionupgradeservice/listversionupgrades /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/version-upgrades Lists all version upgrades in the namespace. # UpdateVersionUpgrade Source: https://docs.endorlabs.com/api-reference/versionupgradeservice/updateversionupgrade /api-reference/openapi.v3.json patch /v1/namespaces/{object.tenant_meta.namespace}/version-upgrades Updates a version upgrade. # GetVulnerability Source: https://docs.endorlabs.com/api-reference/vulnerabilityservice/getvulnerability /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/vulnerabilities/{uuid} Fetches a vulnerability identified by the UUID. # ListVulnerabilities Source: https://docs.endorlabs.com/api-reference/vulnerabilityservice/listvulnerabilities /api-reference/openapi.v3.json get /v1/namespaces/{tenant_meta.namespace}/vulnerabilities List all vulnerabilities in the namespace. # Best practices: Build tool use cases Source: https://docs.endorlabs.com/best-practices/build-tools-use-case/index Explore common build tool scenarios and strategies to configure scan profiles for accurate and reliable scans Endor Labs relies on build tools such as compilers, runtimes, and package managers to scan applications accurately. These tools are essential for reproducing your project’s build environment during a scan. This is especially important for languages like Python, Java, or .NET, where lock files are less common and exact tool versions help ensure consistency. By specifying build tools in your scan profile, you can avoid issues like incorrect language detection, broken dependencies, or missing findings. Scans may fail if the toolchain is incorrect or required build tools are missing. A well-configured scan profile aligns the environment with your project and ensures accurate results. You can configure toolchains and build tools in scan profiles in multiple ways: * [Configure scan profile through the Endor Labs user interface](/scan/scan-profiles/configure-scanprofile-ui) * [Configure scan profile through `scanprofile.yaml`](/scan/scan-profiles/configure-scanprofile-yaml) * [Configure scan profile through the Endor Labs API](/scan/scan-profiles/configure-scanprofile-api) ## Auto detection of toolchains Auto detection runs only when the project's scan profile doesn't set a toolchain for the scan's operating system and architecture. It identifies the toolchain versions the project requires and compares them with the versions that Endor Labs supports for that platform. See the [toolchain support matrix](/scan/scan-profiles/build-tools#toolchain-support-matrix) to learn more about supported versions and [auto detection](/scan/scan-profiles/auto-detect-toolchains) to learn about the complete process. > [!NOTE] > > To enable auto detection in endorctl scans, use the `--install-build-tools` and `--enable-build-tools-version-detection` flags together. With only `--install-build-tools`, endorctl installs the toolchains from the scan profile, or the default toolchain versions. ## Build tool use case scenarios Understanding build tool use cases helps you improve scan accuracy and streamline your scanning process. Here are some common use cases for build tools that show how you can customize scan profiles to better match your project’s needs. ### Configure tool versions for multi-language projects You can configure language-specific tool versions in a single scan profile based on OS and architecture. For example, to scan a multi-language repository with `Python`, `Go`, and `Node.js`, set `Python 3.9.19`, `Go 1.22.6`, and `Node.js 22.23.4`. During the scan, Endor Labs applies the configured toolchain version for each language. This ensures accurate builds, better dependency resolution, and improved findings. ![Toolchain profile with Python 3.9.19, Node.js 22.23.4, and Golang 1.22.6 for macOS ARM64](https://mintcdn.com/endorlabs-b4795f4f/VYSeAm7e9mbIOWzD/images/best-practices/build-tools-use-case/multi-lang-toolchain.webp?fit=max\&auto=format\&n=VYSeAm7e9mbIOWzD\&q=85\&s=89094a260ed0122b60d343a323ce9259) ### Toolchain versions across different architectures In a multi-architecture environment, you can configure toolchains for each operating system and architecture combination to ensure scans align with system-specific setups. For example, a scan profile sets `.NET 8.0.303` for Linux AMD64, and `Go 1.20.14` and `Java 17.0.12` for macOS ARM64. A scan on each platform uses the toolchains configured for it, even when the machine has other versions installed. If the scan profile sets no toolchain for a platform, Endor Labs runs auto detection when it's enabled. It uses the Endor Labs default toolchain for any language that auto detection doesn't resolve. ![Toolchain profile with .NET 8.0.303 for Linux AMD64, and Golang 1.20.14 and Java 17.0.12 for macOS ARM64](https://mintcdn.com/endorlabs-b4795f4f/deISr2DfATZg293W/images/best-practices/build-tools-use-case/multi-arch-lang.webp?fit=max\&auto=format\&n=deISr2DfATZg293W\&q=85\&s=d9a749d2e15f4683b67bd3e77294de06) ### Configure custom toolchains for unsupported versions Set up a custom toolchain version when your project depends on a specific version not provided by Endor Labs. This gives you precise control over the scanning environment and helps avoid issues caused by version mismatches. For example, the default list includes Java `8`, `11`, `17`, `21`, and `25`. If your project needs `23.0.2` and you haven't configured a toolchain, the scan fails. In such cases, create a custom build toolchain for `Java 23.0.2` in your scan profile and link it to your project. When you re-run the scan, Endor Labs uses the configured `23.0.2` version and gives reliable results. This configuration works only in the namespace where you created the build tool. See [configure custom version for the toolchain](/scan/scan-profiles/configure-scanprofile-ui#configure-a-custom-version-for-a-tool) to learn how to configure custom version for a toolchain. For Node.js, a custom version installs as configured when it downloads from a location other than nodejs.org. See [Node.js version selection](/scan/scan-profiles/build-tools#node-js-version-selection) to learn how Endor Labs handles a nodejs.org pin. ![Custom toolchain version for Java which is not provided by Endor Labs](https://mintcdn.com/endorlabs-b4795f4f/deISr2DfATZg293W/images/best-practices/build-tools-use-case/custom-toolchain-unsupported.webp?fit=max\&auto=format\&n=deISr2DfATZg293W\&q=85\&s=16691218bea94f77ad1c8cbad718a959) ### Custom and default toolchain version strategy Endor Labs selects the toolchain version for each language based on your scan profile. When you configure toolchain versions for some languages and leave others unspecified, the scan uses your specified versions and defaults to the Endor Labs toolchain matrix for the remaining languages. For example, your scan profile sets `Python 3.9.19` for macOS ARM64 but no Go version. A scan of a Python and Go repository on macOS ARM64 uses `Python 3.9.19` and the default `Go 1.24.6`. This approach ensures your project builds successfully without requiring extra configuration. A JavaScript toolchain in a scan profile must include a Node.js version. You can't save a profile that sets only Yarn or pnpm. ![Toolchains tab of a scan profile with only Python 3.9.19 set for macOS ARM64](https://mintcdn.com/endorlabs-b4795f4f/VYSeAm7e9mbIOWzD/images/best-practices/build-tools-use-case/default-and-configured.webp?fit=max\&auto=format\&n=VYSeAm7e9mbIOWzD\&q=85\&s=6e3f72f2fedff7ddc7abe1c8f8506285) ### Reuse build tool configurations across multiple projects Multiple projects often need the same custom toolchain versions. For example, `Project A` needs `Python 3.13.0` and `Go 1.24.5`, and `Project B` needs the same versions plus `Java 22.0.2`. Python 3.13.0 isn't in the Endor Labs supported list for macOS ARM64, so configuring it separately for each project takes time. Instead, configure Python 3.13.0 once as a build tool in your namespace and name it `3.13.0`. Go 1.24.5 is already in the supported list. See [configure build tools](/scan/scan-profiles/configure-scanprofile-ui#configure-build-tools) for setup instructions. ![Build Tools list in the namespace showing Golang 1.24.6 and Python 3.13.0 for macOS arm64](https://mintcdn.com/endorlabs-b4795f4f/deISr2DfATZg293W/images/best-practices/build-tools-use-case/build-tools-use1.webp?fit=max\&auto=format\&n=deISr2DfATZg293W\&q=85\&s=7ee7c698ba02b45808e7f0648bd652ee) * For Project A's scan profile, add these reusable build tools in its scan profile. ![Toolchains tab of the Project A scan profile with Python 3.13.0 and Golang 1.24.5 in the toolchain profile](https://mintcdn.com/endorlabs-b4795f4f/deISr2DfATZg293W/images/best-practices/build-tools-use-case/build-tools-use3.webp?fit=max\&auto=format\&n=deISr2DfATZg293W\&q=85\&s=517cb8080516f67c62188cf0def9ef78) * For Project B's scan profile, add the same reusable build tools and the additional Java toolchain. ![Toolchains tab of the Project B scan profile with Python, Golang, and a custom Java 22.0.2 toolchain](https://mintcdn.com/endorlabs-b4795f4f/deISr2DfATZg293W/images/best-practices/build-tools-use-case/build-tools-use2.webp?fit=max\&auto=format\&n=deISr2DfATZg293W\&q=85\&s=557ac7c43f5dc738d1421326689709ec) This approach reduces duplication, saves time, and ensures consistent toolchain use across projects. These reusable build tool configurations are namespace-specific, so only projects within your namespace can access them. > [!NOTE] > > Use clear, unique, and consistent naming for build tool and scan profiles to improve visibility and promote reuse. For example `frontend-node22`, `backend-java17`, `shared-go120`. # Best Practices: GitHub Security Campaign Source: https://docs.endorlabs.com/best-practices/github-security-campaign/index Learn how to plan, execute, and monitor GitHub security campaigns using Endor Labs and GitHub Advanced Security. A GitHub Security Campaign is a time-bound effort to find, fix, and prevent vulnerabilities across multiple repositories. Endor Labs and GitHub Advanced Security (GHAS) turn findings into coordinated fixes that keep developers working in GitHub. This approach works well when projects share vulnerable dependencies or when your organization faces compliance deadlines. Endor Labs generates vulnerability findings in SARIF format. Upload the SARIF output to GitHub Advanced Security manually or with a configured GHAS exporter. After import, these findings become actionable alerts that help developers triage, fix, and track vulnerabilities without leaving their familiar environment. The security campaign allows organizations to: * Target a specific class of vulnerabilities, for example `Log4j`, or `CVE-2024-xyz`. * Drive dependency upgrades and security fixes across all affected repositories. * Address secrets detection and SAST findings alongside for comprehensive security remediation. * Enforce consistent remediation timelines and accountability across teams. * Monitor reduction in overall security debt using both GitHub's campaign dashboard and Endor Labs analytics. Ensure you have deployed [Endor Labs](/setup-deployment) and enabled [GitHub Advanced Security](https://docs.github.com/en/get-started/learning-about-github/about-github-advanced-security) before creating a security campaign. ## Create and manage a security campaign Use GitHub Security Campaigns to coordinate large-scale remediation by importing Endor Labs findings. 1. Run a scan with Endor Labs to generate vulnerability findings in SARIF format and upload them to GitHub Advanced Security. See [SARIF output format](/scan/sca/scanning-strategies#understand-sarif-files) for detailed information on generating, customizing, and uploading SARIF files. > [!NOTE] > > **Automatic SARIF upload** > > Configure Endor Labs GitHub App (Pro) with a GHAS SARIF exporter to automatically upload findings to GitHub after each scan. See [Export findings to GitHub Advanced Security](/integrations/data-exporters/export-to-ghas) for setup instructions. 2. In GitHub, navigate to **Security > Campaigns > New Campaign** to define your campaign parameters. Refer to [security campaign guide](https://docs.github.com/en/enterprise-cloud@latest/code-security/securing-your-organization/fixing-security-alerts-at-scale/creating-managing-security-campaigns) for more information on GitHub's campaign features and configuration options. 3. Define the scope of your campaign. * **Organization-wide**: Apply the campaign across all repositories in your organization. * **Selected repositories**: Target specific repositories affected by the vulnerability class. * **Teams or projects**: Scope by team ownership or project grouping. 4. Specify a clear focus area of the campaign that aligns with your security requirements. For example, remediating Log4j vulnerabilities across Java projects, or upgrading vulnerable npm packages to secure versions. 5. Define campaign objectives with clear remediation timelines. For example, close 80% of critical dependency vulnerabilities within 30 days, or fully remediate exposed secrets within 10 days. 6. Monitor campaign metrics in GitHub, including percentage of vulnerabilities remediated, active versus resolved alerts, and repository-level completion. ## Best practices Security campaigns help you fix alerts at scale and build developer security knowledge. Follow these practices for successful campaigns. ### Plan and prioritize alerts strategically Select a related group of security alerts for remediation rather than attempting to fix all alerts at once. For organizations building secure coding knowledge, prioritize alerts that can serve as learning opportunities. Use Endor Labs' reachability analysis and severity scoring to identify high-impact vulnerabilities. * Focus on **reachable** vulnerabilities where the vulnerable code is actually used in execution paths. * Filter by **exploitability score**, **CVE severity**, or **policy violation type**. * Use **Endor Labs Dependency Graph** to visualize transitive relationships and focus on the most impactful fixes. > [!TIP] > > You can tag repositories with metadata such as `critical`, `frontend`, or `backend` in Endor Labs and scope your campaign accordingly. Exclude inactive or archived repositories to focus efforts where they matter most. ### Provide educational resources Include links to relevant educational materials in the campaign description to help developers understand and remediate vulnerabilities effectively, such as OWASP references, secure secrets management guides, or internal upgrade instructions. ### Enable AI assistance for faster remediation Leverage AI-powered tools to accelerate remediation while maintaining code quality: * Use **GitHub Copilot Autofix** to suggest fixes for code scanning alerts automatically, reducing manual effort. * Make **GitHub Copilot Chat** available for developers to ask questions about vulnerabilities, testing, and secure coding best practices. * Enable **Endor Labs automated remediation PRs** to create pull requests with updated dependency versions, vulnerability references (CVE IDs, severity, reachability), and compatibility checks. ### Assign and support campaign managers Campaign managers play a critical role in maintaining momentum and ensuring developers have the support they need to succeed. Campaign managers should: * Review PRs, provide guidance, and maintain consistent communication. * Provide a contact link for questions and collaboration. * Monitor progress and provide support where needed to ensure sustained engagement. * Help resolve complex or unclear fixes through open communication with developers. ### Define realistic deadlines Set timelines according to issue complexity and remediation scope. Simple dependency upgrades require minimal validation, whereas compatibility or architectural fixes need extended testing and integration checks. Align campaigns with sprint cycles or release milestones. Iterative, focused campaigns lead to more predictable outcomes and better code quality. ### Track progress and engagement Monitor campaign performance through GitHub dashboards. Track remediation percentage, active versus resolved alerts, repository-level progress, and time-to-fix metrics. Use GitHub Issues for task tracking and developer communication. > [!NOTE] > > Use GitHub labels such as `security-campaign-q4` or `log4j-remediation` on issues and pull requests to enable easy filtering and audit tracking across repositories. ### Log4j vulnerability remediation example **Scenario:** A critical Log4j vulnerability affects multiple Java microservices across the organization. **Campaign execution:** 1. Export a SARIF file containing all dependency vulnerabilities from Endor Labs. 2. Upload the SARIF file to GitHub to populate alerts across affected repositories. 3. Create a security campaign titled “Fix outdated Log4j dependencies across all repos”. 4. Assign the campaign to the Java development team with a 30-day remediation deadline. 5. Developers fix vulnerabilities directly in GitHub by updating affected dependencies. 6. The security team monitors campaign progress in GitHub until developers resolve 85% of alerts, then closes the campaign. **Outcome:** The organization remediates 85% of Log4j-related vulnerabilities within 30 days, improving dependency security posture and reducing exposure to known CVEs. ## FAQs > [accordion] Can security campaigns include private repositories? > > Yes. Security campaigns work with both public and private repositories. For private repositories, turn on GitHub Advanced Security and grant the Endor Labs GitHub App the permissions it needs. > [accordion] How are alerts selected for a campaign? > > GitHub's campaign filters and Endor Labs' vulnerability data determine which alerts appear in a campaign. Use Endor Labs' reachability analysis to prioritize alerts where vulnerable code is actively used in execution paths. > [accordion] What is the maximum number of active campaigns allowed? > > GitHub permits a maximum of 10 active campaigns, each with up to 1,000 alerts. You can prioritise active repositories, target specific vulnerability types, close completed campaigns swiftly, and run campaigns sequentially or split them into focused initiatives > [accordion] Can multiple campaign types run simultaneously? > > Yes. You can run multiple campaign types simultaneously, such as dependency remediation, secrets rotation, and license compliance. Each campaign can target different repositories, teams, or vulnerability classes. > [accordion] What integrations are available for campaign management? > > GitHub Security Campaigns integrate with GitHub Issues, GitHub Actions, Slack, Jira, and Endor Labs. You can export Campaign data to business intelligence tools and internal reporting dashboards # Best Practices Source: https://docs.endorlabs.com/best-practices/index Learn how to integrate Endor Labs most effectively into your organization's workflows. These resources help you get the most from Endor Labs. Whether you’re just getting started or improving an existing setup, you’ll find strategies and tips for common use cases. > [card] [Branching](/best-practices/operational-best-practices) > > Strategies for scanning different branches and managing baseline comparisons. > [card] [Scoping scans](/best-practices/scoping-scans) > > Effectively scope your scans with inclusion and exclusion patterns. > [card] [Manage API keys](/best-practices/manage-api-keys) > > Manage API keys, check for expiring keys, and automate key rotation. > [card] [Jira with Endor Labs](/best-practices/jira-with-endor-labs) > > Use Jira efficiently with Endor Labs to manage security findings. > [card] [GitHub Security Campaign](/best-practices/github-security-campaign) > > Plan, execute, and monitor GitHub security campaigns with Endor Labs and GHAS. > [card] [Build tools use case](/best-practices/build-tools-use-case) > > Configure scan profiles for accurate and reliable scans with common build tool scenarios. > [card] [Project filters](/inventory-insights/projects/project-filters) > > Implement project filters to search, prioritize, and manage projects across your organization. > [card] [Operational best practices](/best-practices/operational-best-practices) > > Scan different branches, set up baselines, and integrate PR scans into your workflow. > [card] [Troubleshooting](/best-practices/troubleshooting) > > Diagnose and resolve common issues with Endor Labs scans. # Best Practices: API key management Source: https://docs.endorlabs.com/best-practices/manage-api-keys/index Learn how to manage API keys, check for expiring keys, and automate key rotation. You can use API keys to engage with Endor Labs services programmatically to enable any automation or integration with other systems in your environment. See [Manage API keys](/platform-administration/api-keys) for more information on how to create and delete API keys. Ensure that you rotate API keys regularly to limit how long a stolen API key stays valid. > [!TIP] > > Instead of using API keys, you can use keyless authentication to authenticate with Endor Labs services. See [Keyless authentication](/setup-deployment/ci-cd/keyless-authentication) for more information. Using keyless authentication eliminates the need to manage API keys and reduces the risk of API key compromise. You can use the Endor Labs API to programmatically create scripts to manage API keys. ## Check for expiring API keys API key expiry can cause interruptions in your workflows. It is a good practice to check for expiring API keys so that you can rotate them before they expire. Endor Labs sends email notifications 30, 14, 7, 3, and 1 day before an API key expires. See [API key expiry reminders](/platform-administration/api-keys#api-key-expiry-reminders) to learn who receives these notifications and what they contain. Use the following script (`key-expiry.sh`) to check for expiring API keys on your own schedule or to feed the results into your automation. By default, it checks the currently configured namespace for keys expiring within the next day. Customize the check with the following flags: * `-d` followed by a number checks for keys expiring within the next `n` days. * `-n` followed by a namespace name checks a specific namespace. The script uses [`jq`](https://jqlang.org/) to parse the JSON response and format the output. If `jq` is not installed, the script returns JSON. ```shell expandable theme={null} #!/bin/bash # Default values. You can update the values here or pass the values as flags to the script. DAYS=1 NAMESPACE="" NAMESPACE_FLAG="" while getopts "n:d:" opt; do case $opt in n) NAMESPACE=$OPTARG NAMESPACE_FLAG="-n $NAMESPACE" ;; d) DAYS=$OPTARG ;; \?) echo "Invalid option: -$OPTARG" >&2 echo "Usage: $0 [-n namespace] [-d days]" >&2 exit 1 ;; :) echo "Option -$OPTARG requires an argument." >&2 echo "Usage: $0 [-n namespace] [-d days]" >&2 exit 1 ;; esac done TODAY=$(date +"%Y-%m-%d") # Detect OS type and use appropriate date command if [[ "$OSTYPE" == "darwin"* ]]; then # macOS PLUS_DAYS=$(date -v+${DAYS}d +"%Y-%m-%d") else # Other Unix systems PLUS_DAYS=$(date -d "+${DAYS} days" +"%Y-%m-%d") fi if [ -z "$NAMESPACE" ]; then echo "Searching for API keys expiring between $TODAY and $PLUS_DAYS ($DAYS days)" else echo "Searching for API keys in namespace '$NAMESPACE' expiring between $TODAY and $PLUS_DAYS ($DAYS days)" fi # Check if jq is available if command -v jq &> /dev/null; then # jq is available, use it for formatted output RESULT=$(endorctl api list $NAMESPACE_FLAG -r APIKey \ --filter="spec.expiration_time >= date($TODAY) AND spec.expiration_time <= date($PLUS_DAYS)" \ --field-mask "meta.name,spec.expiration_time,meta.created_by,spec.issuing_user.spec.email" -o json) if echo "$RESULT" | jq -e '.list.objects | length > 0' &>/dev/null; then echo "$RESULT" | jq '.list.objects[] | {name: .meta.name, expiration: .spec.expiration_time, user: .meta.created_by, email: .spec.issuing_user.spec.email}' else echo "No API keys found expiring in the specified date range." fi else # jq is not available, use the regular output echo "Note: Install jq for better formatted output" endorctl api list $NAMESPACE_FLAG -r APIKey \ --filter="spec.expiration_time >= date($TODAY) AND spec.expiration_time <= date($PLUS_DAYS)" \ --field-mask "meta.name,spec.expiration_time" fi ``` The script returns the API keys that are expiring in the specified days. The output contains the key name, expiry date, and the information about the user that created the key. You can inform the user that the API key is expiring in the specified days and ask them to rotate the API key. See [Create API keys](/platform-administration/api-keys#create-an-api-key) for more information on how to create API keys. ### Create a cron job to check for expiring API keys You can also create a cron job to run the script at a regular interval and fetch the details of the expiring API keys. The following example shows a cron job script, `check_key_expiry_cron.sh`, that wraps the `key-expiry.sh` script, and sends an email to the specified email address if there are expiring API keys. Configure the script with the script path, number of days to check, email address for the report, and namespace. ```shell theme={null} #!/bin/bash # Configuration - Customize these values according to your needs SCRIPT_PATH="/path/to/key-expiry.sh" DAYS=1 # Days to check for expiring API keys EMAIL="your-email@example.com" NAMESPACE="" # Namespace to check for expiring API keys OUTPUT=$($SCRIPT_PATH -d $DAYS $([[ -n $NAMESPACE ]] && echo "-n $NAMESPACE")) if [ $(echo "$OUTPUT" | wc -l) -gt 1 ]; then echo "$OUTPUT" | mail -s "API Keys Expiring in the Next $DAYS Days" $EMAIL fi ``` Run the following command to create a cron job that runs the script at 8 AM every day if you keep the script in your home directory. ```shell theme={null} 0 8 * * * $HOME/check_key_expiry_cron.sh ``` ## Check for API keys with long expiry API keys with long expiry can be a security risk. The Endor Labs Create API key endpoint allows you to create API keys with expiry time of over 365 days. Such long expiry times may not be necessary and incompatible with your security policies. You can use the following script (`check_long_expiry_keys.sh`) to check for API keys with long expiry. The script checks for API keys with expiry dates longer than 365 days by default on the currently configured namespace. You can pass the `-d` flag with a number to check for API keys with expiry days according to the number you pass. You can also choose to pass an Endor Labs namespace to search for long expiry API keys in a specific namespace with the `-n` flag followed by the namespace name. The script uses [`jq`](https://jqlang.org/) to parse the json response. ```shell expandable theme={null} #!/bin/bash # Default values DAYS=365 NAMESPACE="" NAMESPACE_FLAG="" # Parse command line options while getopts "n:d:" opt; do case $opt in n) NAMESPACE=$OPTARG NAMESPACE_FLAG="-n $NAMESPACE" ;; d) DAYS=$OPTARG ;; \?) echo "Invalid option: -$OPTARG" >&2 echo "Usage: $0 [-n namespace] [-d days]" >&2 exit 1 ;; :) echo "Option -$OPTARG requires an argument." >&2 echo "Usage: $0 [-n namespace] [-d days]" >&2 exit 1 ;; esac done # Calculate today's date in YYYY-MM-DD format TODAY=$(date +"%Y-%m-%d") # Detect OS type and use appropriate date command for calculating the future date if [[ "$OSTYPE" == "darwin"* ]]; then # macOS PLUS_DAYS=$(date -v+${DAYS}d +"%Y-%m-%d") else # Linux PLUS_DAYS=$(date -d "+${DAYS} days" +"%Y-%m-%d") fi # Print info about the search if [ -z "$NAMESPACE" ]; then echo "Searching for API keys with expiration dates longer than $DAYS days from today ($TODAY to $PLUS_DAYS)" else echo "Searching for API keys in namespace '$NAMESPACE' with expiration dates longer than $DAYS days from today ($TODAY to $PLUS_DAYS)" fi # Check if jq is available if command -v jq &> /dev/null; then # jq is available, use it for formatted output RESULT=$(endorctl api list $NAMESPACE_FLAG -r APIKey \ --filter="spec.expiration_time > date($PLUS_DAYS)" \ --field-mask "meta.name,spec.expiration_time,meta.created_by,spec.issuing_user.spec.email" -o json) # Check if list.objects exists and is not empty if echo "$RESULT" | jq -e '.list.objects | length > 0' &>/dev/null; then echo "$RESULT" | jq '.list.objects[] | {name: .meta.name, expiration: .spec.expiration_time, user: .meta.created_by, email: .spec.issuing_user.spec.email}' else echo "No API keys found with expiration dates longer than $DAYS days." fi else # jq is not available, use the regular output echo "Note: Install jq for better formatted output" endorctl api list $NAMESPACE_FLAG -r APIKey \ --filter="spec.expiration_time > date($PLUS_DAYS)" \ --field-mask "meta.name,spec.expiration_time" fi ``` The script returns the API keys with expiry dates longer than the number of days, expiry date, and the information about the user that created the key. ## Clean up expired API keys You should regularly check for and delete expired API keys. Keeping only active and necessary API keys can improve system performance by reducing the volume of data Endor Labs processes during authentication checks. Regular cleanup makes it easier to manage and monitor active keys, allowing for better oversight of API access and usage patterns. You can use the Endor Labs API to check for expired API keys and delete them. The following script (`delete-expired-keys.sh`) checks for expired API keys and presents the options to delete them. You can choose to pass an Endor Labs namespace to search for expired API keys in a specific namespace. If you do not pass a namespace, the script checks for expired API keys in the currently configured namespace. The script uses [`jq`](https://jqlang.org/) to parse the json response. ```shell expandable theme={null} #!/bin/bash # Add a namespace to search for expired API keys in a specific namespace NAMESPACE="" NAMESPACE_FLAG="" while getopts "n:" opt; do case $opt in n) NAMESPACE=$OPTARG NAMESPACE_FLAG="-n $NAMESPACE" ;; \?) echo "Invalid option: -$OPTARG" >&2 echo "Usage: $0 [-n namespace]" >&2 exit 1 ;; :) echo "Option -$OPTARG requires an argument." >&2 echo "Usage: $0 [-n namespace]" >&2 exit 1 ;; esac done TODAY=$(date +"%Y-%m-%d") if [ -z "$NAMESPACE" ]; then echo "Searching for expired API keys (expiration date before $TODAY)" else echo "Searching for expired API keys in namespace '$NAMESPACE' (expiration date before $TODAY)" fi check_jq() { if ! command -v jq &> /dev/null; then echo "Error: This script requires jq to be installed." echo "Please install jq and try again." exit 1 fi } check_jq # Get all expired API keys RESULT=$(endorctl api list $NAMESPACE_FLAG -r APIKey \ --filter="spec.expiration_time < date($TODAY)" \ --field-mask "meta.name,spec.expiration_time,uuid" -o json) # Check if there are any expired keys if ! echo "$RESULT" | jq -e '.list.objects | length > 0' &>/dev/null; then echo "No expired API keys found." exit 0 fi KEY_COUNT=$(echo "$RESULT" | jq '.list.objects | length') echo "Found $KEY_COUNT expired API key(s)." echo -e "\nExpired API Keys:" echo "====================" echo "$RESULT" | jq -r '.list.objects[] | "ID: \(.uuid)\nName: \(.meta.name)\nExpired: \(.spec.expiration_time)\n"' echo -e "\nWould you like to delete these expired API keys?" echo "1) Delete all expired keys" echo "2) Select keys to delete individually" echo "3) Exit without deleting" read -p "Choose an option (1-3): " CHOICE case $CHOICE in 1) echo -e "\nDeleting all expired API keys..." for UUID in $(echo "$RESULT" | jq -r '.list.objects[].uuid'); do echo -n "Deleting key with UUID $UUID... " if endorctl api delete $NAMESPACE_FLAG -r APIKey --uuid=$UUID &> /dev/null; then echo "Success" else echo "Failed" fi done ;; 2) echo -e "\nSelecting keys to delete individually:" for UUID in $(echo "$RESULT" | jq -r '.list.objects[].uuid'); do NAME=$(echo "$RESULT" | jq -r ".list.objects[] | select(.uuid == \"$UUID\") | .meta.name") EXPIRY=$(echo "$RESULT" | jq -r ".list.objects[] | select(.uuid == \"$UUID\") | .spec.expiration_time") echo -e "\nID: $UUID" echo "Name: $NAME" echo "Expired: $EXPIRY" read -p "Delete this key? (y/n): " DELETE if [[ $DELETE == "y" || $DELETE == "Y" ]]; then echo -n "Deleting... " if endorctl api delete $NAMESPACE_FLAG -r APIKey --uuid=$UUID &> /dev/null; then echo "Success" else echo "Failed" fi else echo "Skipped" fi done ;; 3) echo "Exiting without deleting any keys." ;; *) echo "Invalid option. Exiting without deleting any keys." ;; esac echo -e "\nOperation completed." ``` ### Create a cron job to check for expired API keys You can also create a cron job to run the script at a regular interval. The following example shows a cron job script, `check_expired_keys_cron.sh`, that wraps the `delete-expired-keys.sh` script. Configure the script with the operation mode (delete or report), script path, email address, and namespace. ```shell expandable theme={null} #!/bin/bash # Configuration - Customize these values according to you need SCRIPT_PATH="/path/to/delete-expired-keys.sh" EMAIL="your-email@example.com" NAMESPACE="" # Set the required namespace or leave empty to check API keys in the currently configured namespace OPERATION="REPORT" # Set that value as "DELETE" to delete expired API keys # Create a temporary file for the report TEMP_REPORT=$(mktemp) # Function to send email with the report send_email() { local subject="$1" cat $TEMP_REPORT | mail -s "$subject" $EMAIL echo "Email sent with expired API keys report." } if [ "$OPERATION" = "REPORT" ]; then if [ -z "$NAMESPACE" ]; then echo "3" | $SCRIPT_PATH > $TEMP_REPORT 2>&1 else echo "3" | $SCRIPT_PATH -n $NAMESPACE > $TEMP_REPORT 2>&1 fi if grep -q "Found [1-9][0-9]* expired API key" $TEMP_REPORT; then send_email "Expired API Keys Found - Action Required" else echo "No expired API keys found." fi elif [ "$OPERATION" = "DELETE" ]; then if [ -z "$NAMESPACE" ]; then echo "1" | $SCRIPT_PATH > $TEMP_REPORT 2>&1 else echo "1" | $SCRIPT_PATH -n $NAMESPACE > $TEMP_REPORT 2>&1 fi if grep -q "Found [1-9][0-9]* expired API key" $TEMP_REPORT; then send_email "Expired API Keys Deleted - Action Taken" else echo "No expired API keys found." fi else echo "Invalid OPERATION value: $OPERATION. Must be 'REPORT' or 'DELETE'." > $TEMP_REPORT send_email "ERROR: Invalid Expired API Keys Operation" fi rm $TEMP_REPORT ``` You can use the following command to create a cron job that runs the script at 8 AM every day. ```shell theme={null} 0 8 * * * $HOME/check_expired_keys_cron.sh ``` # Best Practices: Branches and workflows Source: https://docs.endorlabs.com/best-practices/operational-best-practices/index Learn how to scan different branches, set up baseline branches, and integrate PR scans into your development workflow. Explore how to effectively use Endor Labs to scan different branches within your organization's software development workflows. Properly managing branches and integrating robust scanning processes is crucial for maintaining code quality, security, and consistency across your development pipeline. This guide shows you how to set up Endor Labs to scan and monitor your branches and catch issues early. A typical Git Flow may include the following types of branches: * `main` * `develop` * `release` * `feature` * `hotfix` The two primary branches in Git Flow are `main` and `develop`. The `main` or the `develop` branch stores the official release history and often serves as the integration branch for features. The `feature`, `release`, and `hotfix` branches can serve as supporting branches with different intended purposes. ## Baseline branch A baseline branch is any branch that falls into one of the following categories: * A branch used to maintain release history or as a single source of truth * A branch used for managing releases * A branch serving as a source of integration for features and bug fixes In the Git flow model, `main`, `release`, and `develop` can serve as the baseline branch. The `main` branch is typically the primary branch and is often chosen as the default branch in a Git repository. It serves as the central integration point and holds the most stable version of the codebase with the latest approved changes. This is why we recommend using `main` not only as the baseline branch but also as the default branch for repositories. Endor Labs uses metrics from the default branch as the primary context for displaying statistics and metrics on the dashboards. ### Why should you scan the baseline branches Scan the baseline branches to: * **Establish a security and quality baseline**: Scanning the baseline branch helps establish a reference point for the security and quality standards of your code, allowing you to identify any deviations or new vulnerabilities in subsequent branches. * **Detect inherited issues**: By scanning the baseline branch, you can catch existing issues that other branches might inherit, and address those problems before they proliferate throughout your development workflow. It will help you understand the current state of security. * **Ensure consistency across development**: Regularly scanning the baseline branch ensures that all branches derived from it start from a consistent and secure foundation, reducing the risk of introducing errors or vulnerabilities to your project. ### How to scan the baseline branch Set up a trigger to initiate a scan whenever you merge changes into the baseline branch, or schedule daily scans to ensure continuous monitoring. Perform a standard scan with additional configuration to enhance the process. By default, Endor Labs uses the first scanned branch as the default branch. Override this with the `--as-default-branch` argument to designate a baseline branch as the default during future scans. This ensures Endor Labs uses the correct context for dashboard statistics. For more information, see the [GitHub Actions templates](https://github.com/Endor-Solutions-Architecture/CI-CD-Examples/tree/main/github_actions_workflows) you can use in your CI pipelines. The repository also includes examples of other CI tools. ## Feature or hotfix branch A feature or hotfix branch is a specialized branch in a version control system used to develop and integrate new features and bug fixes into the existing codebase. Teams typically introduce changes to the code through pull requests. ### Why should you scan the feature branches through your pull requests * **Prevent security vulnerabilities**: Monitor pull requests to prevent the introduction of new vulnerable dependencies with known vulnerabilities, helping to maintain a secure codebase. * **Enforce security policies**: You can begin enforcing security policies to safeguard your codebase and ensure compliance with established best practices. * **Perform incremental scans**: Once you assess existing vulnerabilities in your baseline branch, you can [perform incremental scans](/scan/pr-scans/run-pr-scans-with-endorctl#perform-incremental-pr-scan) to optimize efficiency on your pull requests. Focus on these incremental scans to identify new vulnerabilities, and skip scanning pull requests if a package and its dependencies remain unchanged. ### How to scan the feature branches through your pull requests Trigger PR scans on pull requests to the baseline branch with the following arguments: * `--pr` (For GitHub Actions use `pr: true`) * `--pr-baseline: {baseline_branch}` (For GitHub Actions use `pr_baseline: true`) * `--pr-incremental` (For GitHub Actions use `additional_args: --pr-incremental`) For more information, see the [templates](https://github.com/Endor-Solutions-Architecture/CI-CD-Examples/tree/main/github_actions_workflows) that you can use in your CI pipelines. For more details on how to perform endorctl scans and scan parameters, see [Scan with Endor Labs](/scan/sca) and [endorctl CLI](/developers-api/cli). # Best Practices: Scoping scans Source: https://docs.endorlabs.com/best-practices/scoping-scans/index Learn how to effectively scope your scans with Endor Labs inclusion and exclusion patterns. Exclude and include filters help your team to focus their attention on the open source packages that matter most and to improve scan performance. Use inclusion patterns when you have many packages that you want to scan separately and exclusion patterns when you want to filter out packages that are not important to you. You can include or exclude packages using the following standard patterns: 1. Include or exclude specific packages. 2. Include or exclude specific directories. 3. Include or exclude with a Glob style expressions. 4. Use include and exclude patterns together to exclude specific directories such as a test directory from a scan. 5. Use multiple include and exclude patterns together to exclude or include specific directories or file paths. ## Scoping scans with endorctl To include or exclude a package based on its file name when you scan with endorctl. > [tab] Include path > > ```bash theme={null} > endorctl scan --include-path="path/to/your/manifest/file/package.json" > ``` > [tab] Exclude path > > ```bash theme={null} > endorctl scan --exclude-path="path/to/your/manifest/file/package.json" > ``` To include or exclude a package based on its directory > [tab] Include Directory > > ```bash theme={null} > endorctl scan --include-path="directory/path/**" > ``` > > ```bash theme={null} > endorctl scan --include-path="src/java/**" > ``` > [tab] Exclude Directory > > ```bash theme={null} > endorctl scan --exclude-path="path/to/your/directory/**" > ``` > > ```bash theme={null} > endorctl scan --exclude-path="src/ruby/**" > ``` ## Examples of scoping scans The following examples show how you can use scoping scans. ### Exclude an entire directory tree Use `--exclude-path="src/java/**"` to exclude all files under `src/java`, including all subdirectories. ```bash theme={null} endorctl scan --exclude-path="src/java/**" ``` ### Exclude only top-level files in a directory (not subdirectories) Use `--exclude-path="src/python/*"` to exclude only the files directly under `src/python`, leaving any subdirectories untouched. ```bash theme={null} endorctl scan --exclude-path="src/python/*" ``` > [!TIP] > > `*` matches files in the current directory only. `**` matches files in the current directory and nested subdirectories. ### Scan a directory while excluding its test folder Use `--include-path` and `--exclude-path` together to scan a specific directory while skipping test code. ```bash theme={null} endorctl scan --include-path="src/go/**" --exclude-path="src/go/test/**" ``` ### Scan multiple languages in the same repository Use multiple `--include-path` flags to scan several tech stacks at once, useful in polyglot monorepos. ```bash theme={null} endorctl scan --quick-scan \ --include-path="services/java/**" \ --include-path="services/python/**" \ --include-path="services/dotnet/**" ``` ### Include a directory while excluding specific build-tool directories Use multiple `--exclude-path` flags to skip dependency or build-tool directories you don't want analyzed. ```bash theme={null} endorctl scan \ --include-path="src/ruby/**" \ --exclude-path="src/ruby/vendor/**" \ --exclude-path="src/ruby/tmp/**" ``` ### Exclude a single manifest file Exclude a specific file rather than a whole directory — for example, a package manifest in a legacy module you don't want scanned. ```bash theme={null} endorctl scan --exclude-path="legacy/deprecated/package.json" ``` ### Exclude multiple specific files Use multiple `--exclude-path` flags to target specific manifest files in different locations. ```bash theme={null} endorctl scan --exclude-path="src/auth/package.json" --exclude-path="src/legacy/package.json" ``` ### Exclude files by extension across the repository Use a `**` glob to skip a particular file type anywhere in the repository tree. ```bash theme={null} endorctl scan --exclude-path="**/*.lock" ``` ### Combine a quick scan with an exclusion Add `--exclude-path` to `--quick-scan` to run a faster scan while skipping a specific path. ```bash theme={null} endorctl scan --quick-scan --exclude-path="src/java/generated/**" ``` ### Exclude a directory at any depth Use a leading `**/` to match a directory name regardless of where it appears in the repository tree. This is useful for directories like `node_modules` that can appear at multiple levels. ```bash theme={null} endorctl scan --exclude-path="**/node_modules/**" ``` ## Best practices of scoping scans Here are a few best practices of using scoping scans: * Ensure that you enclose your exclude pattern in double quotes to avoid shell expansion issues. For example, do not use `--exclude-path=src/test/**`, instead, use `--exclude-path="src/test/**"`. * Inclusion patterns are not designed for documentation or example directories. You cannot explicitly include documentation or example directories: * `docs/` * `documentation/` * `groovydoc/` * `javadoc` * `man/` * `examples/` * `demos/` * `inst/doc/` * `samples/` * The specified paths must be relative to the root of the directory. * If you are using **JavaScript** workspaces, Endor Labs automatically detects workspace roots and their lock files: * You can scan individual workspace packages without explicitly including the root package. The scanner automatically detects the workspace root and locates the lock file. * For example, to scan only a specific workspace package: `endorctl scan --include-path="packages/utils/**"` - the scanner automatically finds and uses the lock file at the workspace root. * You can still exclude specific child packages from your scan while the workspace root is automatically detected. # endorctl CLI exit codes Source: https://docs.endorlabs.com/best-practices/troubleshooting/endorctl-exitcodes/index Learn about the exit codes that you may encounter while using the endorctl CLI. The endorctl exit codes indicate whether the program completed successfully or encountered an error. This page documents the possible endorctl exit code values and the recommended next steps. When contacting support, provide the error code and the error message to help us debug the issue. To get the exit code, run `echo $?` on the command line prompt. \- Value: 2 Exit_Code_Name: ENDORCTL_RC_ERROR Description: endorctl could not determine the exact cause of the error. \- Value: 3 Exit_Code_Name: ENDORCTL_RC_INVALID_ARGS Description: The command received an invalid argument. This may occur due to an invalid parameter value, or an incorrect package format. \- Value: 4 Exit_Code_Name: ENDORCTL_RC_ENDOR_AUTH_FAILURE Description: You don't have the correct permissions for this operation. Check your Endor Labs token or API keys to make sure they are valid and include the necessary permissions. Provide these using the \`--token\` flag or through the environment variables \`ENDOR_TOKEN\`, or \`ENDOR_API_CREDENTIALS_KEY/SECRET\`. For most endorctl commands the environment variables are mutually exclusive: you cannot have both a token and API keys set at the same time. \`endorctl ai-audit\` is the exception. It ignores \`ENDOR_TOKEN\` when API key credentials are present, so Coding Agent Governance hooks keep working in shells that already exported \`ENDOR_TOKEN\`. \- Value: 6 Exit_Code_Name: ENDORCTL_RC_GITHUB_AUTH_FAILURE Description: You provided an empty or invalid GitHub token. Provide this token using the \`--scm-token\` flag or through the environment variable \`ENDOR_SCAN_SCM_TOKEN\`. You can skip the GitHub scan by not setting the \`--github\` flag. \- Value: 7 Exit_Code_Name: ENDORCTL_RC_ANALYTICS_ERROR Description: There was an error analyzing the dependencies. \- Value: 8 Exit_Code_Name: ENDORCTL_RC_FINDINGS_ERROR Description: There was an error generating findings based on the analytics output. \- Value: 9 Exit_Code_Name: ENDORCTL_RC_NOTIFICATIONS_ERROR Description: There was an error processing a notification triggered by a notification policy. See the error log for details and verify that you configured the corresponding notification target correctly. \- Value: 10 Exit_Code_Name: ENDORCTL_RC_GITHUB_API_ERROR Description: The GitHub API returned an error. This can occur due to GitHub rate-limiting or context deadline exceeded. Check the log message to see what object is causing the issue. \- Value: 11 Exit_Code_Name: ENDORCTL_RC_GITHUB_PERMISSIONS_ERROR Description: This error occurs when you authenticate with GitHub but lack the required permissions for the operation. You can't access the requested resource because of insufficient permissions. Check the GitHub token permissions, as well as the permissions and user accounts associated with the repository and/or organization and try again. \- Value: 12 Exit_Code_Name: ENDORCTL_RC_GIT_ERROR Description: A Git operation has failed. Examples of Git operations are: cloning, opening, finding the root, finding the HEAD, finding the default branch, and more. Ensure you are scanning the correct Git repository and that it is properly set up for the scan. \- Value: 13 Exit_Code_Name: ENDORCTL_RC_DEPENDENCY_RESOLUTION_ERROR Description: There was an error resolving the dependencies. \- Value: 14 Exit_Code_Name: ENDORCTL_RC_DEPENDENCY_SCANNING_ERROR Description: There was an error processing the resolved dependencies. \- Value: 15 Exit_Code_Name: ENDORCTL_RC_CALL_GRAPH_ERROR Description: There was an error generating the call graph. \- Value: 16 Exit_Code_Name: ENDORCTL_RC_LINTER_ERROR Description: There was an error while running the linters used to analyze the source code. This can affect secret and vulnerability detection. \- Value: 17 Exit_Code_Name: ENDORCTL_RC_BAD_POLICY_TYPE Description: endorctl detected an invalid policy. This is not a fatal error, but endorctl did not process the policy. See log for details. \- Value: 18 Exit_Code_Name: ENDORCTL_RC_POLICY_ERROR Description: There was an error evaluating one or more policies. See log for details. \- Value: 20 Exit_Code_Name: ENDORCTL_RC_INTERNAL_ERROR Description: There was an internal error within endorctl. See log for details. \- Value: 21 Exit_Code_Name: ENDORCTL_RC_DEADLINE_EXCEEDED Description: The deadline expired before the operation could complete. \- Value: 22 Exit_Code_Name: ENDORCTL_RC_NOT_FOUND Description: The requested resource was not found. \- Value: 23 Exit_Code_Name: ENDORCTL_RC_ALREADY_EXISTS Description: An attempt to create an entity failed because a resource with the same key already exists. \- Value: 24 Exit_Code_Name: ENDORCTL_RC_UNAUTHENTICATED Description: The request does not have valid authentication credentials for the operation. \- Value: 25 Exit_Code_Name: ENDORCTL_RC_VULN_ERROR Description: There was an issue ingesting and processing vulnerability data. See log for details. \- Value: 26 Exit_Code_Name: ENDORCTL_RC_INITIALIZATION_ERROR Description: There was an error initializing the project or the repository. This can happen if the project ingestion token is missing, the project URL is invalid, or authorization failed. See log for details. \- Value: 27 Exit_Code_Name: ENDORCTL_RC_HOST_CHECK_FAILURE Description: The endorctl host-check failed. Host won't be able to run endorctl scan successfully. See log for details. \- Value: 28 Exit_Code_Name: ENDORCTL_RC_SBOM_IMPORT_ERROR Description: There was an error importing an SBOM. See log for details. \- Value: 29 Exit_Code_Name: ENDORCTL_RC_PRE_COMMIT_CHECK_FAILURE Description: The pre-commit-checks command discovered one or more leaked secrets. See log for details. \- Value: 30 Exit_Code_Name: ENDORCTL_RC_GH_ACTION_WORKFLOW_SCAN_FAILURE Description: There was an error scanning the GitHub action dependencies. See log for details. \- Value: 31 Exit_Code_Name: ENDORCTL_RC_FILE_ANALYTICS_ERROR Description: There was an error reading files for analytics processing. See log for details. \- Value: 32 Exit_Code_Name: ENDORCTL_RC_SIGNATURE_VERIFICATION_FAILURE Description: Signature verification failed. See log for details. \- Value: 33 Exit_Code_Name: ENDORCTL_RC_LICENSE_ERROR Description: The requested operation requires additional licensing. See log for details. \- Value: 34 Exit_Code_Name: ENDORCTL_RC_HUGGING_FACE_ERROR Description: There was an error running the HuggingFace scanner. \- Value: 35 Exit_Code_Name: ENDORCTL_RC_SAST_ERROR Description: There was an error running the SAST scanner. \- Value: 36 Exit_Code_Name: ENDORCTL_RC_ARTIFACT_OPERATION_FAILURE Description: An error occurred while performing an artifact operation. \- Value: 37 Exit_Code_Name: ENDORCTL_RC_SEGMENTATION_ERROR Description: There was an error during file segmentation. \- Value: 38 Exit_Code_Name: ENDORCTL_RC_TOOLCHAIN_ERROR Description: An error occurred during the process of generating toolchains. See log for details. \- Value: 39 Exit_Code_Name: ENDORCTL_RC_SANDBOX_ERROR Description: An error occurred during endorctl sandbox execution, possibly due to setup or dependency issues. See log for details. \- Value: 40 Exit_Code_Name: ENDORCTL_RC_RULE_SET_ERROR Description: An error occurred when importing rules. See logs for details. \- Value: 43 Exit_Code_Name: ENDORCTL_RC_BASELINE_NOT_FOUND Description: The baseline specified with \`--pr-baseline\` was not found or has not been scanned yet. Verify that the branch or tag exists and has already been scanned. To resolve, either remove the \`--pr-baseline\` flag or run a scan on the baseline branch first. \- Value: 44 Exit_Code_Name: ENDORCTL_RC_SCAN_CANCELLED Description: The scan was cancelled. For example, endorctl cancels a pull request scan when the pull request receives new commits after the scan starts. A later scan covers the latest commit, so no action is needed. \- Value: 46 Exit_Code_Name: ENDORCTL_RC_FAILED_PRECONDITION Description: The server refused the request because of the current tenant state or the supplied configuration. The error message states what you must correct before you retry the request. \- Value: 128 Exit_Code_Name: ENDORCTL_RC_POLICY_VIOLATION Description: The scan violated one or more blocking admission policies. See log for details. \- Value: 129 Exit_Code_Name: ENDORCTL_RC_POLICY_WARNING Description: The scan violated one or more warning admission policies. endorctl returns this code only when you set the \`--exit-on-policy-warning\` flag. \- Value: 133 Exit_Code_Name: ENDORCTL_RC_EXPORTER_WARNING Description: A warning occurred while trying to export data via the configured exporter. Check your exporter configuration, scan profile setup, and integration status. \- Value: 135 Exit_Code_Name: ENDORCTL_RC_DEPENDENCY_SETUP_WARNING Description: A non-fatal issue occurred while configuring the dependency resolution environment (for example, truststore setup for mTLS). The scan continued with a fallback configuration but may encounter issues resolving from certain repositories. # Firewall & Proxy Rules Source: https://docs.endorlabs.com/best-practices/troubleshooting/firewall-rules/index Learn about firewall and web proxy rules for using Endor Labs. Your environment may need firewall or web proxy rules to use Endor Labs. Traffic flows in two directions: * **Egress**: Connections from your environment to Endor Labs, such as users accessing the Endor Labs user interface or CI systems calling the API. * **Ingress**: Connections from Endor Labs to your environment, such as scans that access self-hosted source code management (SCM) systems or private artifact registries. ## Egress rules Allow outbound HTTPS connections from your environment to the following Endor Labs endpoints. \- Description: User access to the Endor Labs user interface DNS: \`app.endorlabs.com\` IP_addresses: \`52.224.62.85/32\` Port: \`443\` \- Description: CI system and user access to Endor Labs API and CLI downloads DNS: \`api.endorlabs.com\` IP_addresses: \`52.234.140.241/32\` Port: \`443\` \- Description: User access to the Endor Labs user interface for EU tenants DNS: \`app.eu.endorlabs.com\` IP_addresses: \`20.86.183.81/32\` Port: \`443\` \- Description: CI system and user access to Endor Labs API and CLI downloads for EU tenants DNS: \`api.eu.endorlabs.com\` IP_addresses: \`52.236.141.230/32\` Port: \`443\` \- Description: Access to the Endor Labs OSS API DNS: \`api.oss.endorlabs.com\` IP_addresses: \`52.170.129.128/32\` Port: \`443\` \- Description: User access to Endor Labs documentation DNS: \`docs.endorlabs.com\` IP_addresses: N/A Port: \`443\` \- Description: Access to Endor Patches DNS: \`factory.endorlabs.com\` IP_addresses: \`52.224.70.62/32\` Port: \`443\` \- Description: Access to Endor Patches for EU tenants DNS: \`factory.eu.endorlabs.com\` IP_addresses: \`20.101.44.38/32\` Port: \`443\` \- Description: Access to Endor Patches DNS: \`elprodoss.blob.core.windows.net\` IP_addresses: N/A Port: \`443\` `docs.endorlabs.com` and `elprodoss.blob.core.windows.net` don't have static IP addresses. Allowlist these endpoints by domain name. > [!NOTE] > > If you use Endor Labs with an EU tenant, use `https://app.eu.endorlabs.com` instead of `https://app.endorlabs.com`. > [!NOTE] > > If you use Endor Labs with an EU tenant, use `https://api.eu.endorlabs.com` instead of `https://api.endorlabs.com`. > [!NOTE] > > If you use Endor Labs with an EU tenant, use `https://factory.eu.endorlabs.com` instead of `https://factory.endorlabs.com`. If you have configured integrations with third-party applications like Jira, you may need additional egress rules to complete that integration. Consult the documentation for those applications to add the required rules. > [!NOTE] > > For better performance, the Endor Labs client, `endorctl`, may attempt to connect to dynamically managed Endor Labs cloud resources not listed above. Egress restrictions that prevent such connections will not limit Endor Labs' functionality. ## Toolchain download sources Depending on the languages and ecosystems a scan encounters, `endorctl` downloads build toolchains and SDKs on demand from their official public sources. In a network-restricted environment, allow outbound HTTPS access to the domains for the ecosystems you scan, in addition to the Endor Labs endpoints above. > [!WARNING] > > This list isn't exhaustive. Endor Labs adds and updates supported toolchain versions over time, and some sources, such as package registries, resolve to many possible domains depending on your dependencies. If a scan fails with a download error for a domain not listed here, allow that domain and retry. \- Ecosystem: Go Domains: \`go.dev\`, \`proxy.golang.org\`, \`sum.golang.org\` \- Ecosystem: Java, Maven, and Gradle Domains: \`archive.apache.org\`, \`repo1.maven.org\`, \`services.gradle.org\`, \`cdn.azul.com\`, \`download.oracle.com\` \- Ecosystem: Node.js and npm Domains: \`nodejs.org\`, \`registry.npmjs.org\`, \`github.com\` (pnpm and Yarn releases) \- Ecosystem: Python Domains: \`pypi.org\`, \`files.pythonhosted.org\`, \`github.com\` (python-build-standalone releases) \- Ecosystem: Ruby Domains: \`rubygems.org\`, \`github.com\` (ruby-builder releases) \- Ecosystem: Rust Domains: \`static.rust-lang.org\`, \`crates.io\` \- Ecosystem: Scala Domains: \`github.com\` (sbt releases) \- Ecosystem: Swift Domains: \`trunk.cocoapods.org\`, \`github.com\` (CocoaPods Specs) \- Ecosystem: C# and NuGet Domains: \`builds.dotnet.microsoft.com\`, \`api.nuget.org\` \- Ecosystem: PHP and Composer Domains: \`repo.packagist.org\`, \`ppa.setup-php.com\` \- Ecosystem: C and C++ Domains: \`center2.conan.io\` \- Ecosystem: Android Domains: \`dl.google.com\` \- Ecosystem: Bazel Domains: \`releases.bazel.build\`, \`storage.googleapis.com\`, \`github.com\` (Bazel releases) \- Ecosystem: SAST Domains: \`github.com\` (Opengrep releases) \- Ecosystem: Vulnerability data Domains: \`api.osv.dev\` ## Ingress rules for restricted environments Endor Labs scans use dynamic IP addresses by default. If your environment requires IP allowlisting for firewall rules, contact Endor Labs support to enable Network Address Translation (NAT), which routes this traffic through a static IP address. You need NAT IP allowlisting for: * **Self-hosted source code management systems**: Bitbucket Data Center or self-hosted GitLab instances behind a firewall that Endor Labs needs to access for organization sync and repository cloning. * **IP-restricted cloud SCMs**: Cloud-based source code management systems that enforce IP allowlisting for app installations and API access. * **Self-hosted artifact registries**: Private artifact repositories that Endor Labs needs to access during dependency resolution in monitoring scans. * **IP-restricted webhook receivers**: Webhook endpoints that accept traffic only from allowlisted IP addresses and need to receive notifications from Endor Labs. > [!NOTE] > > When scans run within a private environment such as CI pipelines or Outpost-scheduled SCM App scans, NAT configuration is not required. ### Configure NAT IP allowlisting Endor Labs routes NATed traffic through the following static IP address for your tenant's region. \- Region: US NAT_IP_address: \`137.135.89.57/32\` \- Region: EU NAT_IP_address: \`40.114.205.163/32\` To enable NAT IP allowlisting for your tenant: 1. Contact Endor Labs support to enable NATed network requests for your tenant. 2. Configure firewall ingress rules to allow HTTPS (port 443) traffic from the NAT IP address for your tenant's region to your internal resources. ## Proxy configuration If machines in your environment connect to the internet through a web proxy, you must also configure proxy settings for `endorctl` scans, CI runners, and REST API access. See [Configure proxy server settings](/platform-administration/proxy-server-configuration) to set the required environment variables. # Troubleshooting Source: https://docs.endorlabs.com/best-practices/troubleshooting/index Diagnose and resolve common issues with Endor Labs scans. Find solutions to common issues with Endor Labs scans and tools. > [card] [endorctl exit codes](/best-practices/troubleshooting/endorctl-exitcodes) > > Learn about the exit codes for endorctl commands. > [card] [Firewall rules](/best-practices/troubleshooting/firewall-rules) > > Learn about the firewall rules that may be required to use Endor Labs. > [card] [Podman](/best-practices/troubleshooting/podman) > > Learn how to scan container images built using Podman. # Scanning Podman built container images Source: https://docs.endorlabs.com/best-practices/troubleshooting/podman/index Troubleshoot errors while scanning container images built using Podman To successfully run endorctl scans on a container image built using Podman, use the following instructions: 1. Build the image using the following command. This command builds a container image and tags it with the label `test:latest`. ```bash theme={null} podman build -t test:latest ``` 2. After building the image, confirm the target registry by running the following command. Podman automatically adds `localhost` as the target registry for this image. ```bash theme={null} podman image ls ``` 3. Before scanning the image with endorctl, sign in to the registry that hosts the image. 4. Check if there is a registry running at `localhost`. 5. If a registry is not running at `localhost`, then you must re-tag the image to a reachable registry, using the following command. Replace `` with the actual URL of an accessible registry. ```bash theme={null} podman tag test:latest /test:latest ``` 6. Sign in to the reachable registry using any container runtime. Now you can run the `endorctl` scan. Targeting a reachable registry lets you locate the image manifest and download all required layer blobs for vulnerability analysis. # endorctl changelog Source: https://docs.endorlabs.com/developers-api/cli/changelog/index Version-by-version changes to the endorctl CLI. **v1.7.1256** November 9, 2026 The following changes were introduced in endorctl: * AI SAST branch scans now index only the files changed since the last completed index instead of the whole repository. A scan runs a full index if no index from the last 7 days exists, the working tree has uncommitted changes, or the repository has submodules. * Fixed vulnerability matching for Alpine and Chainguard packages. Versions with suffixes such as `_p1` or `-r0` are now compared using APK version ordering, so these packages no longer match or miss vulnerabilities incorrectly. * Go call graph generation for reachability analysis is now about 15 percent faster. Findings are unchanged. * Scan profiles can no longer set `ENDOR_OSS_API`, `ENDOR_UI`, or `ENDOR_INTERNAL_CLUSTER_API` as additional environment variables. endorctl reserves these variables, ignores them in a scan profile, and logs a warning. **v1.7.1253** November 6, 2026 The following changes were introduced in endorctl: * Fixed JavaScript phantom dependency detection so that imports declared in any dependency scope of the importing package's `package.json`, including optional peers listed only in `peerDependenciesMeta`, are no longer reported as phantom dependencies. * JavaScript dependency scans now redirect stale nested `node_modules` copies to the version in the lock file, and root-declared imports take their pinned status from the root `package.json` version spec. * The Maven host check now accepts Maven 3.3.9 and later. The previous minimum was 3.6.1. * Android archive downloads and local Maven repository lookups now run the Maven wrapper (`mvnw`) when the project has one, the same way the rest of the Maven scan does. Package scans still use `mvn`, and `ENDOR_MVN_USE_WRAPPER` still overrides the choice. * Fixed Maven project resolution when `help:evaluate` output carries the `[INFO] [stdout]` prefix. * Fixed vulnerability de-duplication that dropped a distinct CVE when it shared an alias with another CVE. Scans now report each active CVE separately, so one advisory can show more than one CVE finding. * AI SAST now skips Gradle build output by default. Files under `build/intermediates`, `build/generated`, `build/kspCaches`, and `build/tmp` anywhere in the repository are no longer scanned. Other files under `build/` directories are still scanned. * Fixed an issue where AI SAST could stall a pull request scan while comparing the change against the previous scan. The comparison now stops after 60 seconds and falls back to the full pull request diff. * Fixed AI SAST partial scans so they keep stored findings only for files the scan did not finish. Stale findings in fully scanned files are now removed instead of being kept for the whole scan. * AI SAST findings that the scan could not save, ground to a source file, or analyze because of a model error are now kept rather than removed as stale. * The AI SAST findings refresh no longer blocks stale-finding removal on small refreshes. The safeguard against mass deletion now applies only after at least 20 findings are validated. * Agent Governance secrets policies can now scan MCP tool arguments and results for secrets. Set `mcp_payloads` to `MCP_PAYLOAD_INPUT` or `MCP_PAYLOAD_RESPONSE` on a secrets policy through the API, optionally limited by MCP server include and exclude patterns. Argument findings follow the policy action, result findings are recorded as alerts, and detected values are redacted from stored MCP events. * The Agent Governance secrets block and ask notices now tell the agent that MCP tool calls must not carry the detected secret, in addition to writes and edits. * Fixed AI SAST reruns on pull requests after a crashed or interrupted scan. A rerun of `endorctl scan` now reuses the newest complete AI SAST run and no longer replays results from an unfinished one. * Scans that a signal stops now report `scan-cancelled` instead of an unspecified exit code. This applies to `endorctl scan`, `endorctl container`, and `endorctl sbom import`, and endorctl prints a warning that names the signal. * SAST scans now write their rules and results to a private temporary directory created fresh for each run, so another user on a shared host cannot redirect the writes. If that directory cannot be created, the scan fails with `unable to create a private scan directory`. * The AI SAST findings refresh no longer blocks deletions when a change to an AI context rule dismisses most findings. Each scan now removes at most 25 findings, and later scans remove the rest. * AI SAST findings now include the HTTP routes, with method and path, that reach the affected function. The routes are in the new `entry_points` field. Routes are resolved from literal Express paths and from Spring class and method mappings. A finding gets no routes when none can be resolved. * Fixed AI SAST finding refresh stalling a scan on a slow AI step. Each validation, classification, and enrichment step now ends after 5 minutes, and the finding is retried on a later scan. * Agent Governance now reads Snowflake Cortex Code managed settings from MDM policy. Sources are the `com.snowflake.coco` managed preferences on macOS and the `HKLM\SOFTWARE\Policies\Microsoft\CortexCode` registry key on Windows. * Cortex Code MDM policy now overrides the managed settings file for each control, such as `forceSandboxEnabled`, permissions, and `files.mcpFile`. * Agent Governance now ignores a Cortex Code managed settings file that does not set `version` to `1.0` or that has invalid values. The sandbox posture is then reported as Unknown. * On macOS, Agent Governance now ignores a Cortex Code managed settings file that is not owned by root or that is group or other writable. **v1.7.1248** November 4, 2026 The following changes were introduced in endorctl: * Vulnerability advisories that name no CVE ID, such as Debian advisories, now link to their single upstream CVE. Findings for them can now show the upstream CVE's EPSS score and NVD-based CVSS severity. They are marked withdrawn when NVD rejects that CVE. * endorctl now installs pnpm 7 through 11 as an npm package instead of the standalone release binary when Node.js 22.13.0 or later is available. The standalone binaries bundle an unpatched Node.js. The Dockerfile from `endorctl toolchains docker` now adds `pnpm@` to `npm install --global` and sets `PNPM_HOME`. * Removed support for pnpm versions earlier than 7. A project pinned to pnpm 6 now uses the default pnpm version, and pnpm `6.35.1` no longer appears among the supported toolchain versions. * The AI tool inventory from `endorctl ai-audit` now lists only AI extensions. It matches GitHub Copilot, Gemini Code Assist, Amazon Q, CodeWhisperer, Sourcegraph Amp, and Cody by extension, not every extension from their publishers. * Fixed `endorctl ai-audit` using an `ANTHROPIC_API_KEY` that Claude Code had not approved to identify interactive Claude Code sessions. The account email now comes from the Claude Code sign-in status. * When you connect through an NTLM proxy, endorctl now fails a stuck proxy handshake after one minute instead of waiting indefinitely. * Fixed toolchain auto-detection with `--enable-build-tools-version-detection` so that a scan keeps the detected Yarn, pnpm, and Rush versions when the requested Node.js version is not supported, instead of falling back to default versions. * AI SAST scans of pull requests and other non-default contexts now use the feedback recorded on the default branch when building the project context summary. * Added .NET SDK `10.0.403` to the supported toolchains for scans on macOS and Linux (`amd64` and `arm64`). Projects that request an unlisted .NET `10.0.x` SDK now resolve to `10.0.403` instead of `10.0.101`. * AI SAST scans now skip files that a code generator wrote. These are files whose header marks them as generated and not to be edited, and paths listed in the OpenAPI Generator `.openapi-generator/FILES` manifest. AI SAST still uses these files as context but no longer reports findings in them. To scan them, set `ENDOR_AI_SAST_DISABLE_GENERATED_CODE_DETECTION` to `true`. * Fixed AI SAST reusing results from an earlier scan of the same commit that left code segments unscanned. A rerun now analyzes the missed segments instead of reporting those files as clean. * Policy rules can no longer call the `json.match_schema` or `json.verify_schema` Rego builtins, which can resolve remote and file `$ref` references. Creating or updating a policy that calls them now fails with `Invalid policy rule`. Existing policies that call them fail to evaluate, both in `endorctl validate policy` and during scans. * Fixed Python scans reporting `pip` and `setuptools` from the call graph virtual environment as phantom dependencies when the project does not declare them. * Fixed a crash when a policy rule caused the OPA policy engine to panic. `endorctl validate policy` now reports the panic as a policy validation error, and scans skip the failing policy and count it as an error instead of exiting. * Agent Governance now records a Snowflake Cortex Code configuration snapshot at session start. It covers MCP servers, hooks, permissions, and sandbox settings at the managed, user, and repository levels. * Agent Governance now reports the sandbox posture of Cortex Code sessions from `forceSandboxEnabled` in managed settings, or from `sandbox.enabled` in project and user settings. * The Cortex Code configuration snapshot includes MCP servers imported from `~/.claude.json` unless `importClaudeMcpServers` is `false`. A server in `mcp.json` takes precedence when names clash. **v1.7.1244** November 3, 2026 The following changes were introduced in endorctl: * In sandbox scans, `pip` now reads the per scan CA bundle in every virtual environment endorctl creates, instead of the CA list it ships with. Recent `pip` versions add that list to `PIP_CERT`, so they could still trust the excluded `emSign ECC Root CA - G3` and `AAA Certificate Services` roots. A virtual environment from the scanned project is not changed, and `ENDOR_SANDBOX_DISABLE_TRUST_FILTER` turns this off. * Fixed the error that `endorctl scan` reports when a spec value in `.endorctl/scanprofile.yaml` has the wrong type. The error now gives the line in the file where the failing manifest starts, instead of a position inside internally converted JSON. * A YAML error in a later document of `.endorctl/scanprofile.yaml` that starts with a byte-order mark now reports the actual error and its line in the file, instead of an error about the byte-order mark. Files that parse are unaffected. * With `--use-scan-profile`, a trust environment variable such as `SSL_CERT_FILE` that points at a host CA bundle file is no longer passed into the scan sandbox. The scan uses the filtered sandbox CA bundle instead, which excludes the `emSign ECC Root CA - G3` and `AAA Certificate Services` roots. `ENDOR_SANDBOX_DISABLE_TRUST_FILTER` still keeps the host trust stores. * Fixed Ruby gem library files under a top-level `lib/` directory being classified as test files. AI SAST now analyzes these files in a default scan instead of skipping them. * Custom policy evaluation now converts scan data to policy input directly, without a JSON round trip, which makes policy evaluation faster during scans. * Fixed a failure in custom policy evaluation when a policy read an enum-valued map field or an enum value that the schema does not define. * The `endorctl validate policy` table output now shows the spec name instead of the metadata name for `VersionUpgrade` policy matches. * Fixed an issue where a finding refresh changed a vulnerability finding's function reachability from reachable or unreachable to potentially reachable when the refresh could not determine reachability. The finding now keeps its earlier reachability result and summary when the dependency reachability and affected call paths are unchanged. * The dismissal caution in a pull request summary comment now says that the dismissal commit runs all CI checks again, and adds a note on CODEOWNERS approval. The reason table marks `risk-accepted` as the default. * Fixed JavaScript scans so that dependency file paths for nested packages are reported relative to the repository root instead of a sub-directory. * Fixed JavaScript scans so a package with no dependencies, no lock file, and no `node_modules` now lists its `package.json` as a dependency file, which matches how a full scan of the same package reports it. * Agent Governance now audits Snowflake Cortex Code sessions and enforces policies on them. Cortex Code hooks in `~/.snowflake/cortex/hooks.json` or `.cortex/settings.json` call `endorctl ai-audit cortexcode`. * Hooks that Cortex Code runs from `.claude/settings*.json` are recorded as Claude Code events. **v1.7.1239** November 2, 2026 The following changes were introduced in endorctl: * endorctl now supports Node.js `22.23.4`, `24.22.1` and `26.12.1` only. Every other Node.js version was removed from the supported toolchain catalog on `darwin/amd64`, `darwin/arm64`, `linux/amd64` and `linux/arm64`. A project whose detected Node.js major is no longer listed does not get a toolchain assignment. * The default Node.js toolchain is now `22.23.4`, replacing `20.10.0` and `20.15.0`. * Pull request dismiss commands now require both `enable` and `pr_comments` in the tenant `endor_ignore` system configuration. `pr_comments` defaults to `false`, so a tenant that uses dismiss commands today must set it before the commands work again. When either setting is off, the pull request summary comment hides the dismiss commands and the bot replies that the feature is turned off. * The scan profile `enable_remediation_action` field is deprecated and no longer sets `ENDOR_SCAN_REMEDIATION_ACTION` for a scan. A scan profile can still turn remediation actions off with `ENDOR_SCAN_REMEDIATION_ACTION` set to `false` in `additional_environment_variables`. * Endor Labs now reports Node.js runtime vulnerabilities. Advisories from the Node.js security database are matched against the `node` runtime entry of a scanned SBOM, so a Node.js runtime CVE is reported even when no package carries it. * A `node` SBOM entry whose version string cannot be parsed no longer matches a Node.js vulnerability by name alone. * AI Context Rules now reach AI SAST detection, validation, classification and final review, so the rules your security team writes change which findings are reported and how they are triaged. * A quoted AI Context Rule can now set or bound the severity of an AI SAST finding, and the severity line of the finding names the rule that set it. * An AI SAST refresh can now dismiss a stored finding from project guidance and remove it the same way a fixed finding is removed. A ref that needs no rescan now also gets a findings refresh. * Thumbs up and thumbs down feedback on an AI SAST finding now map to a confirmed or disputed verdict in the context summary. A dispute about only the severity or the wording is no longer read as a false positive. * A Node.js version pinned in a scan profile now moves to the newest listed release of the same major. endorctl keeps the pin when it is newer than every listed release in its major, when it is above every listed major, and when it points at a mirror or any host other than `nodejs.org`. The stored scan profile is not modified. * Auto-detected Node.js now resolves to the newest listed version in the lowest major found in the first matching file. A minor-bounded request such as `~22.5.0`, `22.5.x` or `22.5`, and an exact pin, now match any listed version in the same major. * JavaScript dependency installs no longer stop on an engines mismatch. `npm install` runs with `--engine-strict=false`, `pnpm` install and workspace listing run with `--config.engine-strict=false`, Yarn 1 runs with `--ignore-engines`, Rush runs with `RUSH_ALLOW_UNSUPPORTED_NODEJS=true` and Lerna runs with `npm_config_engine_strict=false` and `YARN_IGNORE_ENGINES=true`. * Toolchain version detection now skips every path under `node_modules`, so a committed dependency manifest no longer sets the detected Node.js, Yarn or pnpm version. A scan rooted inside `node_modules` still reads its own files, and `--include` or `--include-path` cannot re-admit a skipped file. * A SAST scan no longer fails when every `opengrep` error is a rule parse error. The scan warns with the skipped rule IDs and continues with the rules that parsed, and the existing findings of a rule that did not parse are kept instead of deleted. A scan still fails when no rule parsed or when a non-parse error is present. * A vulnerability that carries only a CVSS v4 base severity is now reported with its v4 level, score and vector instead of being dropped. The level, score and vector now all come from the same selected CVSS version. * Vulnerabilities whose alias is an OVAL definition ID, with an `oval:` or `def-` prefix, are no longer deduplicated against each other. Distinct CVEs that share one OVAL definition ID, as Amazon Linux, Fedora and Alpine advisories do, are now all reported. * CycloneDX SBOM exports now carry PyPI authors. An asynchronous export in CycloneDX `1.6` or `1.7` writes `component.authors` for public PyPI dependencies from the authors and maintainers Endor Labs stores for the package. The default CycloneDX spec `1.5`, the synchronous export paths and SPDX output are unchanged. * The S3 exporter now supports a `GZIP` compression format, which writes `.json.gz` objects with the `application/gzip` content type. The default is unchanged and still writes a `.json.zip` object with the `application/zip` content type. * Added the `--parent-name` flag to the `@endorlabs ignore` pull request command, which limits the entry to one package of the repository, for example `go://github.com/org/repo`. An entry written with a parent name covers a finding only for a command with the same parent name, and an entry written without one still covers any parent. Findings that differ only by parent are now written as a single entry. * The `-c` explanation in a pull request command is now capped at `256` characters, counted after sanitizing. A longer command is rejected with the number of characters it used, and the flag help and the dismiss table state the limit. * The dismiss command shown in a pull request summary comment is now `@endorlabs ignore -c "Explain why this finding is safe to ignore"`, with no `-r` flag. `-r` remains optional and the default reason is `risk-accepted`. The comment now names the tenant's own ignore file instead of always naming `.endorignore.yaml`. * The `@endorlabs help` reply now names the ignore file the commands write, revises the examples for `--expiration-date` and `--parent-name`, and opens with a caution when dismissals are turned off for the tenant. The caution names the `Settings > System Settings > Developer Workflows > Allow ignore files to dismiss findings` setting. * A suggested correction for an invalid reason no longer offers `-r false-positive` and now states the default reason `risk-accepted`. * A pull request summary comment now picks its resolution note from the findings it actually renders. The comment no longer shows the policy violation note with no violations listed when every triggered finding was dismissed or filtered out. This applies to GitHub, GitLab and Bitbucket. * AI SAST prompts now include a Referenced Constants section listing the module level constant declarations that a scanned function reads, up to five entries, which helps detect hard coded keys. A segment that gains this section is scanned once again because its evidence hash changes. * An AI SAST rescan now matches a stored finding to a candidate that shares its CWE before one that is merely nearer in the file, then by OWASP top category, distance and function rank. A same-function candidate with an unrelated CWE no longer matches, so such a finding is recorded with a new identity. * The AI SAST end of scan summary now counts deferred segments separately from cached ones, as `AI SAST scan complete: N segments scanned, N cached, N deferred, N remaining`. * An AI SAST refresh agent that reaches its tool iteration limit now stops using tools and returns its structured answer, instead of failing with a maximum iterations error. * Amazon Q CLI detection now requires a configuration directory for a bare `q.exe` on Windows, and reports a detection when `kiro` or `kiro-cli` is on the `PATH` without one. * endorctl no longer panics when a path flag points at something it cannot stat, such as a path under a regular file or an unreadable directory. `endorctl scan --path`, `endorctl scan --package --path`, `endorctl toolchains --path` and `endorctl toolchains docker --output-path` now return their validation error instead. * Reachability walks over large Go call graphs are faster because an already visited node is no longer expanded again. Results are unchanged. This affects `endorctl scan`, `endorctl container scan`, `endorctl sbom import`, `endorctl recommend dependency-upgrades` and `endorctl recommend dependency-upgrade-impact`. * Added Maven `3.10.0` to the supported toolchain catalog on `darwin/amd64`, `darwin/arm64`, `linux/amd64` and `linux/arm64`. The default Maven version is unchanged. * Maven workspace call graphs now use each module's own build output instead of the artifact from the Maven cache. A `pom` packaged module with no artifact returns an empty call graph and skips its build, and a build output that resolves outside the workspace reports `STATUS_ERROR_MISSING_ARTIFACT`. * A C `archive/` dependency whose open source lookup fails now reports an empty source repository clone URL instead of a synthetic `https://archive/` URL. * `endorctl scan` now logs the Rush version it detected and the package manager Rush delegates to, as `Detected Rush using at `. * Sandbox scans now build a per scan CA bundle and point `SSL_CERT_FILE`, `PIP_CERT`, `REQUESTS_CA_BUNDLE`, `CURL_CA_BUNDLE`, `NODE_EXTRA_CA_CERTS`, `SSL_CERT_DIR` and `ENDOR_SANDBOX_TRUST_STORE` at it. The bundle excludes the `emSign ECC Root CA - G3` and `AAA Certificate Services` roots, and `MAVEN_OPTS`, `GRADLE_OPTS`, `SBT_OPTS` and `COURSIER_OPTS` now read it instead of the JDK `cacerts` store. `ENDOR_SANDBOX_DISABLE_TRUST_FILTER` keeps the host trust stores, and a scan that cannot build the bundle warns and keeps them too. * The AI tool inventory from `endorctl ai-audit` now detects the Snowflake Cortex Code CLI (`cortex`) when its configuration directory `~/.snowflake/cortex` exists. **v1.7.1233** October 31, 2026 The following changes were introduced in endorctl: * Bug fixes and miscellaneous improvements. **v1.7.1228** October 29, 2026 The following changes were introduced in endorctl: * Secrets that appear in a commit message are now masked on findings, both when the finding is stored and when it is read. * Fixed an error where license information could not be retrieved for namespace-scoped requests. **v1.7.1220** October 27, 2026 The following changes were introduced in endorctl: * An invalid `.endorctl/scanprofile.yaml` now fails as invalid input with an `unable to parse .endorctl/scanprofile.yaml` message instead of an internal error, and parse errors report the line number in the file rather than a line within the document. * `endorctl scan` now retries AI SAST vector store writes up to three times with backoff when indexing receives an HTTP `500`, `502`, or `504` response. * Added automated remediation pull requests for Bitbucket Cloud projects. Bitbucket Data Center projects and installs that authenticate with an app password are not supported, and Bitbucket uses the workspace default reviewers rather than the reviewers configured in Endor Labs. * AI SAST findings in notifications now render as a plain one-line summary with a link to the full report in Endor Labs. Markdown is stripped, the summary is capped at 600 characters, and the explanation and remediation text is no longer included. * Added PHP runtime vulnerability data from `php-src` advisories, so container scans of `php` images now report findings on the packageless `php`, `php-cli`, and `php-fpm` runtimes. Windows-only, CGI, and optional-extension advisories are out of scope, and distro-built PHP packages do not match upstream PHP ranges. * Endor Labs now acknowledges an `@endorlabs` pull request command with an eyes reaction, then replaces it with a thumbs up or thumbs down when the command finishes. A command in a repository where commands are disabled or misconfigured now gets a thumbs down instead of being ignored silently. * The dismiss command shown in the pull request summary comment now targets a SAST finding by its unique key, so copying the command from a row dismisses only that finding instead of every finding with the same name. * SAST rows in the pull request summary comment now show a `Reported by` line naming the policy that reported the finding. * Package Firewall now rejects a restricted license entry that is empty, names more than one license, or cannot be parsed when you save the system configuration. The error asks for one license per entry. * Improved license detection and classification, with new exact name mappings such as `expat`, `asl 2.0`, `ruby license`, `isc license`, `cc0`, and `unlicense`, matching for `MPL-1.1`, word-bounded `mit` and `mpl` matching, and classification that falls back to the base identifier after stripping `-only` and `-or-later`. * Package Firewall now matches a gem package against restricted licenses a second time using the normalized declared license, so a gem whose license normalizes to a restricted identifier is blocked or warned. * Updated the OpenGrep engine bundled with `endorctl` to `v1.32.0`. * Malware findings on approximate dependencies are no longer reported as definitely affected. A pinned approximate dependency that matches a malicious version is now reported as a potentially affected finding when your malware policy sets a potentially affected finding severity, and no malware finding is raised for an approximate dependency when that severity is unset. * `endorctl scan` now completes with `PARTIAL_SUCCESS` when AI SAST stops early. The scan reports a warning naming the reason, which is an exhausted scan budget, failed scan segments, exhausted AI credit, or an incomplete index, and the budget warning includes how many files were scanned. * Automated scan workflow steps now ignore `ENDOR_SCAN_AS_DEFAULT_BRANCH` and log a warning when it is set. Workflow steps read `ENDOR_SCAN_TRACK_DEFAULT_BRANCH` from the automated scan parameters instead, so you can control default branch tracking per workflow. * A scan workflow whose steps are all disabled now completes with `STATUS_SKIPPED` and an `Every step ... is disabled` error, instead of remaining queued or running. **v1.7.1213** October 23, 2026 The following changes were introduced in endorctl: * Fixed Maven scans failing for projects whose `pom.xml` path contains spaces or special characters. * AI SAST now analyzes Scala and Swift source files. Previously these files were skipped without a warning and produced no findings. * Python scans no longer run `.pth` startup hooks, `sitecustomize`, or `usercustomize` in the virtual environments that endorctl creates. A malicious `.pth` file in a scanned project can no longer run code on the machine that runs the scan. * Python scans now report the newest matching `pip` and `setuptools` versions instead of the copies bundled with the scanner's Python, so findings tied to the bundled `setuptools` `65.5.0` may close. Versions are now read only from top-level `.dist-info` and `.egg-info` metadata, so vendored copies no longer override the reported version. * Rust scans now include library targets with the crate types `rlib`, `dylib`, `cdylib`, `staticlib`, and `proc-macro`. Dependencies and call graphs for these targets were previously skipped without a warning. * Fixed npm installs failing with `E401` against JFrog Artifactory when the npm package manager integration uses a JFrog reference token. The token is now written to `.npmrc` as a Bearer `_authToken` instead of a Basic `_auth` value. * Improved the code context that AI SAST sends to the model. Functions that share a name but are declared in different places are no longer merged, and the most relevant called functions are kept when the context limit is reached. * CLI and CI scans no longer write SCM credentials to the global Git configuration or to environment variables to fetch private SCM dependencies, so the credentials no longer persist on the machine that runs the scan. These scans now fetch private dependencies with the machine's own Git credentials, so the runner must already have access to those repositories. Scans that Endor Labs runs from an SCM integration are unchanged. * Bazel Go scans now report a module replaced through a `go.mod` `replace` directive under the replacement module's name instead of the original import path. The original import path is kept as the `import_path` qualifier on the package URL. A `replace` that points to a local directory is unchanged. * Fixed intermittent pull request scan failures such as `unable to checkout commit` or `packfile not found`. Git clones and fetches during scans now turn off Git auto-maintenance with `maintenance.auto=false`. * Fixed `endorctl toolchains detect` and `endorctl toolchains generate` for repositories that contain both Maven and Gradle projects. These repositories now also get a default Maven version, where previously only a default Gradle version was set. **v1.7.1208** October 22, 2026 The following changes were introduced in endorctl: * Fixed vulnerability matching so that C and Git packages pinned to a commit SHA no longer fall back to matching the first advisory for the package name. An all-numeric version is now parsed as a version rather than treated as a commit SHA, whatever its length. * You can now set `max_tokens_param` in a local LLM profile to send `max_completion_tokens` instead of `max_tokens`, which reasoning models require. The default is still `max_tokens`, and an unrecognized value now fails config load. * Endor Labs now fetches private Ruby gems from the registry declared in `Gemfile.lock` rather than from rubygems.org, so Ruby call graphs include code from private gems that previously failed to download. Public gems, and scans with the Ruby call graph turned off, are unchanged. A registry configured for token authentication only, with no basic credentials, is skipped with a warning. * Fixed npm dependency scope resolution so that a development or optional sibling no longer changes the scope of the packages resolved after it. Packages reached by both production and development paths are now resolved as production first. * The AWS STS and CodeArtifact calls endorctl makes when authenticating to a package manager now run on an HTTP client with a 30 second per-attempt timeout, so a stalled AWS endpoint fails with a timeout instead of running unbounded. * Fixed AI SAST stale finding removal on default branch scans so that findings are kept when their file is absent from a sparse or partial checkout but still tracked at `HEAD`. Incremental default branch scans now remove findings whose file was deleted or renamed away in the diff. * Fixed merge base resolution on shallow checkouts. When no remote-tracking ref points at the checked out commit, such as a bare `FETCH_HEAD` checkout or a pull request fetched into a local branch, endorctl now also deepens that commit by its SHA, so a scan that previously exited with `no merge base` completes. The deepen is best effort, and a Git server that does not allow fetching by commit SHA is unchanged. * Incremental AI SAST diff scans now send touched files of 100 lines or fewer to the model whole, instead of skipping small file consolidation. Pull request scans, and `--diff-scope` runs that are not branch scans, keep the previous behavior. * The AI SAST scan summary now prints the candidate funnel counts without `--verbose`, covering candidates that entered validation, were dropped at validation or classification, were dropped on a segment error, or were linked to prior findings. The counts also appear in CI and piped output. * Incremental AI SAST pull request scans with an empty or deletion-only diff now stop early instead of scanning the whole repository. The scan builds no topology, context, or segments, and returns the previous results in diff scope, or no results otherwise. A deletion-only pull request produces no new findings. * AI SAST pull request scans now resolve imports across more repository layouts, including TypeScript path aliases, Python packages under `src/` or `lib/`, C and C++ includes behind conditionals, Go modules that share a name, and Cargo workspaces. Scala, Gosu, PHP, Swift, and Bash are now supported. Far fewer scans fall back to no context or widen to the whole repository. Building the graph has a 10 minute budget, after which the scan uses legacy selection. * AI SAST pull request scans now find the previous build by the pull request ID recorded in the scan result when the stored ref does not identify the pull request. A CI pipeline that stores a shared ref such as `merge` for every pull request now gets result reuse and stable finding identity across pushes, for a pull request rebuilt within 7 days of its previous build. * Fixed AI SAST scans hanging on a file search tool call that finished before the scan checked it for an error. A fast search over a small scope could leave a scan blocked indefinitely, in one case for 70 minutes. * `endorctl ai-audit claudecode` now records Claude Code `PostToolUse` events whose `tool_response` is not an object, such as MCP tool results. These responses are stored under the `output` key instead of being dropped. * Endor Labs now supports Go `1.27.3` as a scan toolchain version. * Fixed .NET dependency resolution so that package names, `packages.config` entries, and both package and project lookups in `packages.lock.json` match without regard to case. A package spelled two ways no longer becomes two packages, a lock file dependency whose case differs is no longer dropped with its vulnerabilities unreported, and a scan no longer fails with `invalid package version` and zero resolved dependencies when a referenced project sets its own assembly name. A `` entry is now resolved to its real package name and version through the `HintPath` folder, duplicate references are dropped, Windows-style `HintPath` values resolve on macOS and Linux, and a malformed `packages.config` no longer fails a package scan that has a lock file. * Fixed Bitbucket Data Center detection so that a project on a `bitbucket.` host cloned over SSH is classified as Bitbucket without a network probe, including clone URLs that carry a port or omit `/scm/`. Dependency and custom policy finding links, and file links in the web app, now open in Bitbucket for these projects. Secret finding links still keep the SSH port, and AI SAST links still use the Bitbucket Cloud path format. Projects classified before this release are not reclassified on rescan. **v1.7.1202** October 19, 2026 The following changes were introduced in endorctl: * You can now set `standalone_tickets` on a Jira notification action policy so that dependency aggregation findings create tickets without a parent issue, with the title prefixed by `project@ref`. * Endor Labs now supports Node.js `26.12.0` and pnpm `12.14.0` as scan toolchain versions. * Fixed the `CmdLine: ask before direct push to main/master` agent policy so that it prompts only when `main` or `master` is the whole push target. Branches such as `feature/main-menu` and `release-main` no longer trigger the prompt. * Fixed AI SAST finding refresh so that verdicts are written in batches. If the default branch moves during a refresh, the batches already written are kept instead of discarded. * `endorctl recommend dependency-upgrades` now prefers an upgrade that stays within the same major version when it fixes every Critical and High finding that the cross-major candidate fixes and introduces no new ones. * Major version upgrades are now rated at least Medium conflict risk, and a minor version bump of a `0.x` package is treated as a major change for risk purposes. * `endorctl ai-audit` now treats Cowork remote device shell calls as commands, so command policies and command hook events apply to them. * `endorctl ai-audit` now resolves the user on a hook event that has no cached user, instead of falling back to the operating system login. * `endorctl container scan` now names Java archives that have no POM metadata after the closest matching open source Maven package, so the package name and PURL in scan results reflect real Maven coordinates. * Fixed pull request scans on a shallow clone losing the merge base when the deepen fetch could not update a symbolic ref such as `origin/HEAD`. These scans fell back to a full dependency build, which made them much slower. * Scan failure logs now carry a `sub_code` field that identifies the specific failure behind a return code, for dependency scanning and Maven resolution. Failures that previously shared one code are now distinct, which helps when you work through a scan failure with support. **v1.7.1201** October 17, 2026 The following changes were introduced in endorctl: * Java call graphs for an included build that has no Gradle wrapper of its own now run on the composite build's Gradle installation. * AI SAST no longer skips a function whose recorded position has drifted since the last scan, such as when lines are inserted above it. C++ and Rust function names are also matched correctly. * AI SAST pull request scans no longer drop functions that follow a block comment spanning the gap between two diff hunks. Files larger than 2 MiB keep the previous behavior. * AI SAST context summaries now use an updated default summarization model and a rewritten summary prompt, so stored summaries are regenerated on the next scan and the set of reported findings can change. * `endorctl ai-audit` now includes the settings passed to Claude Code with its `--managed-settings` launch flag when it audits agent configuration. An administrator-managed source takes precedence over those settings, and the allow lists they define are kept unless an administrator-managed source locks them. * Pull request scans triggered by a webhook now resolve the project by repository URL and installation ID, so a duplicate project created from the CLI is no longer selected ahead of the project synced from the installation. Projects with no recorded installation ID no longer match, and events from a second installation covering the same repository are dropped. * Secret scanning now reports standalone 40-character generic secrets that the `aws-secret` rule previously hid, while duplicate generic findings on genuine AWS key pairs stay suppressed. The `aws-secret` pattern no longer matches values that contain `=` outside base64 padding. Findings from the `aws-secret` rule are now reported under the rule ID `aws-secret-generic`. The rule ID forms part of a secret finding's fingerprint, so suppressions that reference the previous rule ID or fingerprint, including `.endorignore.yaml` entries, no longer match and must be updated. * NuGet registries configured with token authentication now produce a credential, using `__token__` as the user name. Token authentication takes precedence over the deprecated user name and password fields. * JavaScript phantom dependencies that a project declares directly are tagged as direct again, reverting the change that tagged them as transitive. Dependencies that already appear in the bill of materials are also no longer labeled as phantom. * AI SAST findings now keep their identity across pull request rebuilds, so suppressions bound to a finding, such as `.endorignore.yaml` entries, keep applying. * Fixed AI SAST findings are now retired from the default branch when a pull request merges, under default configuration. A failure to copy findings to the default branch is now reported as an error instead of as a successful scan. * Java runtime vulnerability records now fall back to NVD data where no OSV advisory covers the runtime, so findings for JDK, Oracle Java, and GraalVM packages reflect NVD affected ranges. VEX export labels those entries with the `NVD` source instead of failing to resolve a source. * Analytics scans no longer store or delete function graphs, so an existing call graph is preserved instead of being removed. * Fixed the first pull request scan of a new project recording the pull request branch as the repository's default branch. The actual default branch is now registered up front, so that first scan has a baseline to build on. * SARIF output for AI SAST findings now carries the AI summary as the result message, a precise primary location with region and snippet, and a `codeFlows` thread flow built from the source-to-sink dataflow. The rule `fullDescription` is omitted for AI SAST rules because the explanation is per finding. * npm package version lookups now fall back to the full packument for `4xx` responses other than authentication, rate-limit, and request-timeout codes, and for `501`, where previously only `404` triggered the fallback. Call graph failures for pre-existing private dependencies are now reported in the scan output instead of only in debug logs. * Fixed an AI SAST scan failure on Windows where walking the scan path ended with `EOF`. Directories are now read in sorted order. * `endorctl recommend dependency-upgrades` now sorts upgrade conflicts before applying the display cap, so the same conflicts are reported on every run. * Concurrent first scans of the same repository, such as parallel CI jobs, now reuse the project created by the scan that won the race instead of failing to create the project. * Amazon Linux 2022 is no longer ingested from OVAL and is no longer offered as a base image upgrade target. * Conan scans now keep recipes that share a name and version across different folders instead of dropping the duplicates. Retained recipes are named from their directory path. * pnpm projects whose `pnpm-workspace.yaml` holds only settings and no `packages` field now scan instead of failing the install. The install is retried with `--ignore-workspace` and workspace discovery is skipped for those projects. * AI SAST pull request scans now work on shallow `actions/checkout` checkouts in GitHub Actions. * Automated scans of GitHub projects now use a single-branch clone by default. Set `ENDOR_SCAN_GIT_SINGLE_BRANCH_CLONE` to `false` in the scan profile's additional environment variables to restore the previous behavior. Automated scans of GitHub Enterprise and other source control platforms are unchanged. * Incremental AI SAST pull request scans now report only findings within the pull request diff. * `--ai-sast-rescan` now forces a rescan on pull request scans, matching default branch scans. Without it, a rerun of the same commit can reuse earlier AI SAST results when the recorded scan scope matches the current one. * Alpine container findings now match NVD-sourced vulnerability records where no Alpine advisory covers the package. Those findings carry remediation text naming the upstream fix version. * Alpine 3.20 and earlier are now treated as end of life, so they are no longer offered as base image upgrade targets. A package on an end-of-life Alpine release now matches the fix from the nearest newer covered release on the same upstream line, with remediation text naming that release. **v1.7.1196** October 15, 2026 The following changes were introduced in endorctl: * Fixed an issue where an internal failure during code analysis could terminate the `endorctl scan` process. Affected scans now report an internal error and exit cleanly. **v1.7.1192** October 14, 2026 The following changes were introduced in endorctl: * JWT secret findings are now expiration-aware. The secrets scan reads the token's `exp` claim offline. The Secrets without validation rules policy sets severity to Low for expired tokens and High for unexpired tokens. Tokens without an `exp` claim keep the configured severity. * Removed Maven `3.10.0` from the supported toolchains until it is fully supported for scans. Maven `3.9.4` remains the default. * AI SAST now revalidates stored findings in parallel during refresh, so each scan refreshes more findings within the scan's time budget. * AI SAST refresh now revalidates stored findings with your AI context rules and reviewer feedback, and revalidates them again when either changes. * AI SAST now scopes findings by their primary location under `--include-path` and `--exclude-path`. A finding in an included path is kept even if part of its data flow runs outside the included paths. * AI SAST now drops findings that it cannot tie to a detected candidate in an existing source file, which reduces spurious findings. The first AI SAST scan after upgrading reruns detection on all code and can take longer. * Scans of a repository with no commits now finish successfully with the message `Repository has no commits, nothing to scan` instead of failing. * Fixed .NET call graph generation for private dependencies logging a `nuget.org` error and trying non-NuGet feeds such as Maven or npm registries. Downloads now try only NuGet feeds, and errors name the feed that failed. * Conan dependencies required by a build tool dependency, such as `m4` under `autoconf`, now have build scope instead of normal scope and are treated as non-production in SBOM exports. * Fixed uv workspace members failing to resolve dependencies from private indexes defined only in the workspace root `pyproject.toml`. Members now inherit the root's `[tool.uv.index]` entries and credentials. * Fixed uv scans failing to authenticate to a private index whose URL includes a user name but no password. The password now comes from the matching package manager integration. * uv now matches index credentials from package manager integrations on scheme, host, and path prefix, instead of host alone. * SAST findings no longer depend on the directory where the repository is checked out, so scanning the same repository from different locations keeps the same findings. * Fixed SAST scans deleting or overwriting `semgrep.log` and `call_graph.dot` files that already exist in the scanned repository. * Fixed Maven scans failing with `401` errors on parent POM resolution when a package manager integration used the same repository URL as a credentialed repository in `settings.xml`. * Fixed Gradle scans of projects inside an included build. These projects now resolve through the composite build root, including for Kotlin call graphs. * Fixed GitHub Actions dependencies being flagged as malware when their declared npm version range does not include the malicious version. * Fixed Windows scans of projects with multiple Python packages generating a call graph only for the first package. **v1.7.1184** October 9, 2026 The following changes were introduced in endorctl: * Fixed Java uber jar scans (`ENDOR_JVM_USE_ARTIFACT_SCAN=true`) that did not generate call graphs for private dependency jars nested in the artifact. * Container scans now report OS package vulnerabilities for images based on Ubuntu `26.04`, and base image update recommendations can now suggest Ubuntu `26.04`. * Base image update recommendations no longer suggest end-of-life Ubuntu releases or moving tags such as `ubuntu:rolling`, `debian:sid`, and `alpine:edge`. Scans skip such values in `--base-image-tag-next` or `--base-image-tag-latest` and log a warning. * AI SAST now skips copied third-party JavaScript libraries in your repository, so it no longer reports findings in vendored library files. Your project's own code is always reviewed. * Fixed dependency scans failing when endorctl could not store or delete call graphs. The scan now logs a warning and completes, and marks call graphs as available only after they are stored. * Fixed AI SAST findings disappearing from default branch scans when AI SAST did not re-detect them on unchanged code. These findings are now kept and revalidated by the next refresh. * Agent Governance now asks for confirmation before a coding agent makes content public on GitHub, such as `gh repo create --public`, `gh gist create --public`, or changing a repository's visibility to public. * AI SAST now revalidates stored findings on every default branch scan, including scans you run yourself, not only scheduled scans. PR scans, `--diff-scope` scans, and dry runs still skip revalidation. * Fixed malware detection for npm and PyPI packages when an advisory lists only a last affected version. Later versions are no longer flagged, and finding text now shows the affected range, such as `<=1.2.3`. * AI SAST no longer skips Python functions as trivial. Scans of Python projects can take longer and report different findings. * The SAST scanner now stops after 180 minutes by default instead of 60 minutes. Set `ENDOR_SCAN_SAST_TIMEOUT` to change the limit, or set it to `0` to remove it. * When one scanner, such as SAST or secrets, fails during `endorctl scan`, the other scanners now keep running. The scan reports every error it collected and still fails. * The Agent Governance system policy that asks before a coding agent exports a credential-like environment variable is now disabled by default. **v1.7.1178** October 7, 2026 The following changes were introduced in endorctl: * AI model discovery now recognizes current model IDs from OpenAI GPT, Anthropic Claude, Google Gemini and Gemma, and AWS Bedrock-hosted models such as DeepSeek, Mistral, Qwen, and xAI Grok. * Fixed Package Firewall policies for coding agents blocking read-only commands when an argument contained a command name, such as `rm` in `--rm` or `node` in `node:22`. * Added Maven `3.10.0`, Rust `1.99.0`, and pnpm `12.9.1` to the supported toolchains. **v1.7.1177** October 5, 2026 The following changes were introduced in endorctl: * Fixed Gradle monorepo mode (`ENDOR_SCAN_GRADLE_MONOREPO_MODE=true`) pairing one module's build file with another module's dependencies when `org.gradle.parallel=true`, which produced wrong findings that changed between scans. * Malware policies for coding agents now also check edits to Maven `pom.xml` and Gradle `gradle.lockfile` files. * Fixed AI model scans, including Hugging Face model scans, failing in the EU region because the default query model was unavailable there. * Container scans now report OS package vulnerabilities for images based on Alpine Linux `3.24`. **v1.7.1174** October 1, 2026 The following changes were introduced in endorctl: * AI SAST detection now reports fewer false positives, finds more vulnerabilities, and assigns CWE IDs to findings more accurately. * Fixed SAST scans that could hang indefinitely. The SAST scanner now stops after 60 minutes and reports an error. Set `ENDOR_SCAN_SAST_TIMEOUT` to change the limit, or set it to `0` to remove it. * When endorctl cannot download or load a dependency call graph, the scan now reports partial success with a call graph error instead of success. The exit code is unchanged. * PR scans of projects not hosted on GitHub, such as Azure DevOps projects, no longer search GitHub for the pull request number. Set `--scm-pr-id` to pass the pull request ID for these projects. * Fixed Ruby scans that resolved no dependencies when a committed `.bundle/config` set `BUNDLE_GEMFILE` to a missing Gemfile and the repository had no `Gemfile.lock`. * Fixed Scala scans creating a duplicate, wrongly named package, such as `_2.12.11` instead of `_2.12`, when sbt could not generate the dependency tree. * When AI SAST fails because your AI provider account does not serve the model, or no enabled key covers it, the error now names the model and provider involved. * Fixed empty scan logs for SBOM import runs. Logs from `endorctl sbom import` are now available with the scan. * Added pnpm `12.8.1` to the supported toolchains. **v1.7.1169** September 29, 2026 The following changes were introduced in endorctl: * Malware policies for coding agents now also check edits to dependency manifests and lockfiles, such as `package.json`, `requirements.txt`, and `go.mod`, not only install commands. * Agent Governance Block and Ask messages now show the text that matched the policy. * Fixed audit-only mode (`ENDOR_AI_AUDIT_NO_BLOCKING=true`) blocking Ask policies in Cursor and stopping sessions from starting in Claude Code, Codex, and Cursor. * Fixed a connection failure behind some TLS-inspecting corporate proxies, such as Palo Alto and F5 appliances. Affected commands failed with an `Invalid permissions` error. **v1.7.1167** September 24, 2026 The following changes were introduced in endorctl: * AI SAST detection agent findings now carry the `True Positive` finding tag. The **True Positive** attribute filter and the AI Analysis Status policy parameter now match these findings. * AI SAST detection now applies stricter validation that keeps a finding only when the code shows the claimed security effect. This change reduces false positives. * SBOM exports now mark AI models as CycloneDX `machine-learning-model` components instead of libraries. SPDX exports record the matching `sourceInfo`. **v1.7.1158** September 17, 2026 The following changes were introduced in endorctl: * PR and diff scans of GitHub and GitLab repositories can now resolve the Git merge-base from a single-branch clone. This is opt-in. To enable it, set `ENDOR_SCAN_GIT_SINGLE_BRANCH_CLONE=true` in the additional environment variables of a scan profile. * Fixed SAST scans on Windows so that `--include-path` and `--exclude-path` glob patterns keep forward slashes and match files as expected. * Agent Governance now records a mid-session Claude Code configuration change, such as toggling `/sandbox`, as a `CONFIG_CHANGE` event instead of a file operation. **v1.7.1156** September 16, 2026 The following changes were introduced in endorctl: * Added the `--spec-version` flag and the `ENDOR_SBOM_SPEC_VERSION` environment variable to `endorctl sbom export` to select the SBOM specification version. Use `1.5`, `1.6`, or `1.7` for CycloneDX, or `2.3` for SPDX. The defaults are CycloneDX `1.5` and SPDX `2.3`. * `endorctl sbom export` now runs every export as an asynchronous job. The synchronous export path was removed. * Fixed malware scans leaving temporary directories behind, which could fill the disk on long-lived runners. * With Conan scanning enabled, endorctl now treats `c` and `cpp` in `--languages` as Conan projects. To run segment-based analysis on C/C++ projects instead, set `--segment-match-languages=c`. * endorctl now exits with return code `46` (`ENDORCTL_RC_FAILED_PRECONDITION`) instead of an internal error when the server refuses a request because a precondition is not met. * JavaScript phantom dependencies, which your code uses but does not declare in its manifest files, are now reported as unpinned. * Fixed pnpm dependencies resolved from a URL or tarball being reported as version `0.0.0`. endorctl now reads the version recorded in `pnpm-lock.yaml`. * Maven private package manager integrations now support bearer-token authentication through `token_auth`. endorctl uses `token_auth` first, then `basic_auth`, then the deprecated `user` and `password` fields. * Scan profiles can now pin a custom Conan version through the C toolchain `conan_version` setting. Without a pin, endorctl uses Conan `2.28.0`. * AI SAST now keeps the same CWE label and finding name on unchanged code across repeat scans, such as rescans of the same pull request. * AI SAST no longer fails the whole scan when your license runs out of AI credits. The scan keeps results from other scanners and logs a warning to contact your Endor Labs account team. * Fixed an issue where AI SAST findings still stored the primary location code snippet when a scan ran with `--disable-code-snippet-storage`. AI SAST no longer stores any code snippets for those findings. * Fixed Agent Governance Ask policies blocking every matched tool call in Codex. An Ask policy now warns the user and tells the agent to get confirmation before the call proceeds. Block policies still block the call. * The endorctl MCP server scan tool now accepts a `segment_match_languages` option, which maps to `--segment-match-languages`. Set it to `["c"]` to run segment matching on C/C++ projects. The `languages` value `c` now selects Conan dependency scanning. * Fixed Swift scans failing when endorctl installed the Swift toolchain after the Swift `6.4.0` release. endorctl now installs Swift `6.3.3` by default, installs `6.3.1`, `6.3.2`, or `6.3.3` when `.swift-version` pins one of them, and resolves a bare `6.3` pin to `6.3.3`. * Fixed Agent Governance in GitHub Copilot CLI sessions. The session-monitored banner and policy notices now appear in the terminal, events report the Copilot version, and ending a session now sends a session stop event so the active session count decreases. * Fixed default scans of C/C++ repositories running call graph analysis over C sources and logging `Failed to parse file` for each file. C is no longer a default `--call-graph-languages` value. **v1.7.1152** September 15, 2026 The following changes were introduced in endorctl: * Gradle dependency resolution now uses network timeouts, so scans no longer stall on unreachable registries. The defaults are a 15 second connection timeout, a 30 second read timeout, and 1 retry. You can change them with `ENDOR_GRADLE_CONNECTION_TIMEOUT` (milliseconds, default `15000`), `ENDOR_GRADLE_READ_TIMEOUT` (milliseconds, default `30000`), and `ENDOR_GRADLE_RETRY_COUNT` (default `1`). * Fixed Bazel scans of bzlmod workspaces that reported no Rust crate dependencies. The scan now reads the crate name and version from the repository name when other target information is unavailable. **v1.7.1149** September 10, 2026 The following changes were introduced in endorctl: * Fixed Go dependency resolution so a `replace` directive records the module that actually supplies the code and keeps the declared path as its import path. Vulnerabilities, licenses, and visibility for replaced modules now resolve correctly. * Added private registry authentication for Poetry. `endorctl` matches sources in `[[tool.poetry.source]]` to Package Manager integration URLs and passes credentials to `poetry lock` and `poetry install` through `POETRY_HTTP_BASIC__USERNAME` and `POETRY_HTTP_BASIC__PASSWORD`. * Compressed the YARA rules embedded in the `endorctl` binary so endpoint security scanners no longer flag `endorctl` as malware by string-matching signatures inside it. Malware scan behavior is unchanged. * Java 27 now passes the endorctl host check. Supported Java versions for scanning are `11.0.0` up to but not including `28.0.0`. * Added `--package-version-uuids` (up to 500 values) and `--project-uuids` (up to 100 values) to `endorctl license-notice-report generate`. Exactly one of the three scope flags is required. * Markdown license notice reports now use a single flat Components layout and no longer split components into Direct and Transitive sections. * Added `token_auth` support for private PyPI registries with pip, Poetry, and uv. `endorctl` sends the token as the HTTP Basic password with no username, and for Poetry it sets only the password environment variable. Pipenv does not support password-only tokens. * AI SAST scheduled refresh is now on by default. Scheduled scans of the default branch re-evaluate stored findings against current code and guidance. Set `ENDOR_SCAN_AI_SAST_REFRESH=false` to turn it off. * Fixed AI SAST whole-file scans of small source files so that functions inside the file are analyzed. Authorization checks and data flows in resolvers and helper functions are no longer skipped. * Container scans now print the findings URL for the scanned container's package version instead of the project findings URL. If no package version is found, `endorctl` falls back to the project findings URL. * `endorctl ai-audit` now records the shell command a coding agent runs through an MCP tool, and the Agent Governance events list shows the command instead of only the tool name. * Fixed `endorctl ai-audit` leaving claude.ai connectors unclassified when the session configuration was not cached. * Fixed scans erasing annotations that users set on existing findings. **v1.7.1143** September 7, 2026 The following changes were introduced in endorctl: * AI SAST scans now generate exploit and remediation details for high and critical findings in parallel with detection, so scans finish faster. If that step fails, findings are kept without the extra details instead of failing. * Fixed AI SAST findings carrying OWASP LLM Top 10 2026 entry tags, such as `LLM03:2026`, for entries where the weakness is only a contributing cause. Each entry tag now comes only from the weakness's primary CWE, so filtering by an entry tag no longer returns unrelated findings such as prompt injection. * Fixed scans intermittently crashing with `panic: send on closed channel` while building the call graph for reachability analysis. **v1.7.1141** September 3, 2026 The following changes were introduced in endorctl: * Extended Bazel dependency resolution for `rules_apple` targets to macOS, watchOS, tvOS, and visionOS scan roots, including watch apps embedded in iOS apps. visionOS support covers `visionos_application` targets only. * Added dependency resolution and call graph support for Gosu and Guidewire projects built with Gradle, including the Guidewire `gwb` wrapper. * Fixed container scans intermittently reporting zero findings when the image's package inventory could not be read. Such scans now fail instead of reporting empty results. * Fixed package scans ignoring Maven repositories configured through package managers, including repositories without an ID, and silently falling back to the default repositories. * Fixed Bazel scans degrading to partial success when a target query selected internal rule classes such as `_ios_internal_*`. Unsupported rule classes are now skipped cleanly. * Fixed AI SAST findings disappearing from a project's default branch. A merge scan no longer deletes stored AI SAST results, and a scan that did not run AI SAST no longer retires AI SAST findings. * Fixed AI SAST reporting a file as clean without scanning it on a branch that still has the file after another branch deleted it. Scans now remove cached results for deleted files. * AI SAST function summaries, used as context for callers and callees, now describe how each argument is handled and which protections are missing, so they no longer overstate a function's safeguards. * AI SAST now skips source files larger than 2 MiB, non-code files larger than 256 KiB, and files over 64 KiB whose lines average more than 2000 bytes, such as data dumps. * Fixed AI SAST being silently skipped on scans started by an SCM app installation with AI SAST enabled, while the other selected scanners still ran. * AI SAST findings for weaknesses in the OWASP LLM Top 10 2026 list now carry the `OWASP-LLM-Top-10` tag, which you can filter on like `OWASP-Top-10`. * The endorctl MCP server `scan` tool now requires an absolute `path` when no root directory is configured, and no longer falls back to the server's working directory. * Fixed Agent Governance hooks storing file content, including secrets masked on the earlier event, in post-file-operation audit events. Post-file events no longer carry file content. * Fixed AI SAST silently skipping code that contains invalid UTF-8 bytes, such as Latin-1 encoded files, while still reporting a successful scan. * Fixed potentially affected malware findings not being created for JavaScript phantom dependencies, which were incorrectly treated as pinned. * Fixed AI SAST scans of large Java repositories crashing while writing or loading a module bundle, caused by Java classes that use self-referencing generic type bounds. * AI SAST now validates AI and LLM findings against the 2026 OWASP Top 10 for LLM Applications list and applies all six verification criteria. * Agent Governance hooks now record the Claude Code version for each session. * Fixed Agent Governance hooks recording a model named `unknown` for Cursor sessions. * Agent Governance hooks now use the pinned model configuration when a new Claude Code session does not report its model. * Unverified secret findings now carry the `Potentially Valid Secret` tag (`FINDING_TAGS_POTENTIALLY_VALID_SECRET`), and the secrets policy template moves to version `2.1.0`. **v1.7.1133** August 27, 2026 The following changes were introduced in endorctl: * JavaScript call graph and phantom dependency logs are now reported as an aggregated diagnostic summary per package instead of one entry per file, which greatly reduces scan log volume. * JavaScript scans now report which transitive dependencies are pinned by a lock file for `npm`, `yarn`, and `pnpm` projects. * Fixed an issue where private JVM dependencies, including Scala dependencies, were skipped during call graph generation instead of being routed to the JVM analyzer. * A partial import scan in JavaScript projects is now reported at info level instead of warn level, because unresolved imports are a normal condition. * Fixed an issue where the decommissioned Security Review feature caused scans on unlicensed tenants to report partial success instead of completing successfully. * Added the `endorctl container diff` command, along with the `--baseline-context-id`, `--diff`, and `--snooze-baseline-findings` flags, to show only new and fixed findings relative to a baseline container scan. * Added the `--hide-platform-credentials` flag, which removes Endor Labs platform credentials such as `GOOGLE_APPLICATION_CREDENTIALS` from the environment of Gradle child processes during a scan. * Fixed Gradle authentication failures caused by `GOOGLE_APPLICATION_CREDENTIALS` being inherited by Gradle child processes. * JavaScript scans now record both the resolved version and the declared version range that a lock file lists for each dependency. * Fixed scans hanging during Maven dependency resolution by adding transport timeouts and retry limits for unreachable private repositories. * Added dependency resolution for iOS and Swift targets built with Bazel by attaching the `rules_apple` aspect to iOS scan roots. * Fixed under-reporting of transitive dependencies in Bazel scans, where deeply nested build event protocol file sets were not traversed completely. * Fixed AI SAST findings persisting after you fixed the code. A scan that finds no issues in a file now removes the findings it no longer reports. * Fixed AI SAST reporting files as clean on a non-default branch when another branch had already scanned identical content. Full scans now carry over that branch's findings for those files. * Dependency metadata and findings now include the dependency's native scope as reported by its ecosystem, such as `provided`, `compile`, or `test`, in the `native_scope` and `target_dependency_native_scope` fields. * Fixed false positive Sourcegraph token findings for labeled commit SHA assignments and CI variables in secrets scan. * Fixed the Claude Code hook suppressing Claude Code's native permission prompt. The hook now returns no decision when a tool call passes all policies. * Container scans now report OS package vulnerabilities for Oracle Linux 10 images and can recommend Oracle Linux 10 as a base image upgrade. * MCP server names in the AI inventory no longer include version pins or Docker image tags, and servers launched through URL proxies such as `mcp-remote` are named after the remote server, so duplicate entries collapse into one. **v1.7.1128** August 24, 2026 The following changes were introduced in endorctl: * Fixed re-scan protection for manually managed ecosystems, such as C and C++, by checking the ecosystem of the existing package version. * Fixed an issue where private npm package names could be disclosed to the public registry. `endorctl` now resolves these packages with `npm pack` using your own registry credentials. * Fixed a crash in SAST scans on Windows caused by an `O_NOFOLLOW` failure in the bundled OpenGrep binary. * Fixed authentication for Google Artifact Registry repositories in Gradle builds by injecting an init script during dependency resolution. * Fixed the host compatibility check so that a fourth segment in a Java version string no longer fails the maximum supported version check. * Fixed false unpinned dependency findings on legacy .NET projects that use NuGet. * Fixed an issue where a pnpm transitive dependency was reported as pinned by the root project's specification. * Fixed a crash in Python and Go dependency resolution for Bazel scans caused by aspect nodes without coordinates, and aligned `alias()` traversal with the other supported rules. * Improved scan performance on large monorepos by using a single-branch Git clone. * Added finding count entries to the project summary emitted at the end of a scan. * PR scans now filter dependency resolution to the packages affected by the pull request by default, across all supported ecosystems. Set `ENDOR_SCAN_INCREMENTAL_DEP_RES` to `false` to restore full dependency resolution on PR scans. * Fixed AI SAST terminal output for `--diff-scope` and PR incremental scans listing previously stored findings outside the requested scope. * The AI SAST triage agent now recognizes infrastructure-as-code findings by file path, such as Dockerfile, Terraform, and Puppet files, and evaluates them as configuration instead of data flow. * Fixed SAST scans failing to parse Dockerfiles that contain square brackets in shell commands, which left the rest of the file unscanned. * Fixed AI SAST finding location links to use the resolved commit SHA instead of the branch name, so the links keep working after a force-push or branch deletion. * The default Agent Governance policy that asks before package installation no longer prompts for `npm install`, `pip install -r`, or `pip install -e .` commands that install only the packages the project already declares. * The default Agent Governance policy that asks before environment variable export no longer prompts for `GIT_AUTHOR_*` variables or for variables whose values are paths starting with `/`, `~`, `.`, or `$`. * Agent Governance now attributes Codex events to the ChatGPT account email and GitHub Copilot events to the GitHub login, instead of the operating system username. * SAST findings in SARIF output now include `startColumn`, `endLine`, and `endColumn`, so GitHub code scanning highlights the exact code span. * Cursor hook events that do not include an account email now report the operating system login as the user, matching the other supported agents. * Fixed a scan warning about multiple affected ranges for vulnerabilities with no fix, such as `CVE-2026-0994`. Findings now report only the affected range that contains the dependency version. **v1.7.1118** August 18, 2026 The following changes were introduced in endorctl: * Fixed truncation of long custom finding policy output fields, such as `Remediation`, so that multi-byte characters are no longer split into invalid UTF-8. **v1.7.1115** August 17, 2026 The following changes were introduced in endorctl: * Bug fixes and miscellaneous improvements. **v1.7.1114** August 14, 2026 The following changes were introduced in endorctl: * Fixed empty call graphs for Java-only modules in Gradle projects that mix Kotlin and Java. Gradle modules are now analyzed based on the source files they actually contain, so reachability results for your first-party code are complete again. * AI SAST and secrets scans now skip `.endorignore.yaml`, so example values in the ignore file no longer produce findings. * Fixed missing call edges in C/C++ call graphs, which made reachability results incomplete. Call graphs now include calls used as variable initializers and cross-file calls that resolve through header prototypes, including headers included with angle brackets. **v1.7.1113** August 14, 2026 The following changes were introduced in endorctl: * Fixed an issue where one private dependency failing to have its call graph saved aborted the remaining dependencies in the same batch. The other dependencies in the batch are now processed, and the scan reports a partial success instead of failing outright. * Fixed non-deterministic phantom dependency discovery in JavaScript scans, so npm phantom dependency findings are now stable across repeated scans of unchanged code. * A scan that ends in partial success no longer forces a full code rescan on the next run. Only a failed scan triggers a full rescan, so the next scheduled scan of the same project completes faster. * Fixed the startup check that endorctl makes against the Endor Labs API, where two competing five second timers covered the same request and could end it early on a slow network, leaving only a bare `context deadline exceeded` warning. The check now uses a single ten second deadline. * The default Ruby toolchain for scans is now Ruby 3.4 instead of Ruby 3.2, which reached end of life. Pin a different version in your scan profile to keep the previous behavior. * Base image remediation no longer recommends upgrade tags for OS releases that are pre-release or have no vulnerability data yet. These tags previously appeared to resolve every finding. * A tag passed to `--base-image-tag-next` or `--base-image-tag-latest` that names such an OS release is now skipped with a warning, and endorctl falls back to auto-discovery for that candidate. The scan exit code is unchanged. * Fixed AI SAST scans failing to save project-level context summaries, which made every scan regenerate the same summary. Summaries are now saved and reused on later scans. **v1.7.1109** August 13, 2026 The following changes were introduced in endorctl: * The PR-incremental dependency resolution filter is now enabled by default for the SwiftPM plugin. * The `--bazel-include-targets` and `--bazel-exclude-targets` flags now reject Bazel target patterns such as `//...`, `//foo:all`, and `:*`, and fail with an actionable error instead of silently matching no targets. Pass explicit target labels, or use `--bazel-targets-query` for pattern-based selection. * The `--report-type` flag of `endorctl license-notice-report generate` now accepts `md` to export a license notice report in Markdown format, alongside `pdf`, `txt`, and `html`. * The `BomDependency` schema now includes a `file_location_remote_paths` field that maps each local scanned path in `file_locations` to the matching path in the dependency's own upstream source. This field is populated only for dependencies identified by segment matching. * Fixed the AI SAST triage agent reusing a cached verdict after the flagged code changed. Changed findings are now re-triaged, and unchanged ones keep their cached verdict. **v1.7.1104** August 11, 2026 The following changes were introduced in endorctl: * Fixed gem extraction for Ruby call graph analysis so that symlinks pointing outside the extraction directory are skipped. Ruby call graphs are opt-in through `ENDOR_SCAN_RUBY_CALL_GRAPH`. * Fixed SAST scans failing on Windows in repositories with large numbers of ignored paths. Paths derived from `.gitignore` are no longer passed as exclude arguments, because the scan engine already skips ignored files. * The PR-incremental dependency resolution filter is now enabled by default for the CocoaPods plugin, so pull request scans resolve only the dependencies affected by the changes in the pull request. Set `ENDOR_SCAN_INCREMENTAL_DEP_RES` to `false` to turn it off. * AI SAST now generates project-level context summaries by default. * AI SAST now retries transient failures when saving a segment's results, so a brief error no longer blocks the repository index from completing. The incomplete scan cache warning now names the affected files. * Fixed AI SAST scans failing when a prompt exceeded the model's context window. Prompt size is now checked against an actual token count, and segments too large to fit are no longer retried on every scan. * Fixed SARIF output reporting an inconsistent rule severity when several findings share a rule ID. The rule now carries the highest severity among its findings, and every code location is still reported as a separate result. * Fixed scans of Scala-only repositories failing with `java: command not found` when the scan profile pins a Java version. The configured Java toolchain is now kept for Scala projects. * Fixed Bazel scans of Java, Kotlin, and Scala targets that depend on external repositories declared through module extensions. These dependencies previously got an empty version and a malformed package URL, which stopped the package's dependency data from being saved. **v1.7.1098** August 6, 2026 The following changes were introduced in endorctl: * Bazel scans now resolve dependency root files from the scanned git ref instead of the state on disk, so a target is correctly attributed to `MODULE.bazel` or `WORKSPACE` and no longer reports dependency files that are not part of the scanned commit. Cleanup of obsolete versions also handles nested workspaces. * Fixed JavaScript and TypeScript call graph generation to follow imports from `.tsx` files and to record calls to generator functions, which recovers call graph edges that were previously missing from reachability analysis. * Scans now log a warning when environment variables configured in a scan profile are ignored, including names that do not start with `ENDOR_`, reserved names, and entries with empty values. * Container scans now de-duplicate resolved Java dependencies, which removes redundant dependency metadata from the reported results for images with large Java dependency sets. * Fixed AI SAST skipping every function when its prioritization index was empty, for example on a first scan. AI SAST now scans all non-trivial functions in that case. * Fixed duplicate AI SAST findings for the same code location across rescans. Findings that point at the same sink line now merge even when the reported function name differs. * AI SAST now prints a warning when it skips a branch or pull request that does not target the default branch. Removed the hidden `--ai-sast-all-releases` flag. Use `--as-default-branch` to override. * Fixed AI SAST PR scans keeping stale findings for files that are no longer part of the pull request diff, for example after a rebase. * Container scans now select the longest matching pre-scanned base image instead of the first match. When more than one pre-scanned base image matches, use `--base-image-name` to select one. * AI SAST no longer assigns CWEs that MITRE marks as discouraged for vulnerability mapping, so findings receive a more specific CWE. * Improved C and C++ call graph accuracy for vendored dependencies. Call graph analysis now recognizes lowercase and reserved-identifier include guards, handles typedefs of primitive types, and links calls to functions declared in headers to their definitions in other source files. **v1.7.1093** August 4, 2026 The following changes were introduced in endorctl: * Fixed `--segment-match-languages=c` so that host toolchain validation is scoped to C when `--languages` is not set, allowing C-only scans to run without failing on missing toolchains for unrelated languages. * Scala scans now log `sbt` command output, so a failing `sbt` command surfaces its build diagnostics in the scan logs. * The PR-incremental dependency resolution filter is now enabled by default for the .NET plugin. * Fixed a loss of matched file paths when a new package version won a tie-break during dependency resolution, so packages retain all matched files and C function reachability results are accurate. * Added the `ENDOR_SCAN_DYNAMIC_LIBS` environment variable, a comma-separated list of package name substrings that call graph analysis treats as additional entry points for Java frameworks that invoke application code reflectively. * Improved call graph generation performance on large scans by removing a forced garbage collection that ran after every call graph stitch. * Fixed upgrade impact analysis recommending an upgrade of an unrelated package to fix a vulnerability in a direct dependency. Recommendations for a direct dependency now only suggest upgrading that dependency, and regular Guava releases are no longer treated as pre-release builds. **v1.7.1088** July 30, 2026 The following changes were introduced in endorctl: * Fixed scans of large repositories failing with no error during the repository analytics phase. Scans no longer load the full pull request and commit history of the repository into memory. **v1.7.1085** July 29, 2026 The following changes were introduced in endorctl: * Added the `--by-severity` flag to `endorctl container remediation list-base-image-updates` so base image update options can be broken down by the severity of the findings they resolve. * Go pull request scans now resolve only the dependencies affected by the changes in the pull request, because the incremental dependency resolution filter is enabled by default for the Go plugin. * Fixed an issue where the Go plugin reused a cached package workspace across calls, which could leave linter and license results incomplete. The plugin now materializes a fresh workspace for each call. * Scheduled scans now skip re-evaluating packages whose dependency edges and code context are unchanged. This reduces scan time for recurring scans. * Fixed dependency resolution for Python `uv` projects that compute their version dynamically, for example from a Git tag. The root package is now matched by name. * AI SAST now prints a summary at the end of each scan with the number of segments scanned, served from cache, and still remaining. * AI SAST now skips well-known vendored third-party directories, such as `third_party/`, `3rdparty/`, `_deps/`, `Pods/`, and `site-packages/`, which reduces scan time. * Fixed a stack overflow crash when scanning Go code that contains self-referential constructs, such as a function that returns a type it declares locally or an F-bounded generic type. * Custom Rego policies can no longer call the `http.send`, `net.lookup_ip_addr`, or `opa.runtime` built-in functions. * Updated the remediation guidance for potentially affected malware findings to recommend pinning the package to a version or version range without known malware, because a lockfile alone does not prevent resolving to a malicious version. **v1.7.1080** July 27, 2026 The following changes were introduced in endorctl: * Fixed an issue where the dependency graph and the flat dependency list could fall out of sync when segment-matched dependencies were merged, which caused reachability information to be missing for carried-over dependencies. * Fixed an issue where PR scans updated the project `scan_time`, which delayed scheduled rescans of the default branch. PR scans no longer affect default-branch scan scheduling. * Creating or updating a custom or system secret rule now triggers a scheduled full-history rescan, so findings for the new rule appear even on repositories with no recent commits. * Fixed inconsistent dependency naming in Bazel scans that use a workspace subdirectory with `--bazel-workspace-path`, so first-party call graphs are stitched together and reachability is classified correctly. * Fixed an issue where findings were re-evaluated for projects that have dependency scanning or GitHub Actions scanning disabled, which produced spurious findings. * Fixed an issue where scans of repositories with multiple GitHub Actions packages failed with dependency-resolution errors instead of resolving every sub-package. * Fixed an issue where `pnpm-lock.yaml` was omitted from the resolved `dependency_files` metadata because lock-file detection matched only the `.lock` suffix. * Python PR scans now apply incremental dependency-resolution filtering by default, which reduces PR scan time. Set `ENDOR_SCAN_INCREMENTAL_DEP_RES=false` to opt out. * Fixed AI SAST finding source links pointing to an older commit after a rescan. Location links now point to the repository version that was evaluated. * AI SAST now orders caller, callee, and overload context deterministically, so repeated scans of unchanged code produce more consistent results. * Fixed AI SAST skipping scan segments when source code and context exceeded the model's input limit. Oversized code is now split into smaller segments, and optional context is selected to fit. * The maximum Java version supported by `endorctl host-check` is now 25.0.4. * Fixed automated base image scans failing on stale Docker image digests that no longer resolve in the registry. Stale digests are now filtered out before the registry lookup. * Improved scan performance for packages whose dependencies are resolved approximately, such as when a build fails, by removing a quadratic slowdown in dependency deduplication on large repositories. **v1.7.1076** July 22, 2026 The following changes were introduced in endorctl: * Added Kotlin support to Bazel scans, so `kt_jvm_library`, `kt_jvm_binary`, and `kt_jvm_test` targets are covered by both software composition analysis and call graph reachability. * Fixed Bazel scans that generated malformed queries for projects using Bzlmod repositories. * Malware findings are no longer raised for npm and PyPI dependencies when the only overlap between the version constraint and the malicious versions is prerelease versions. For example, a dependency constrained to `<2.0.0` is not flagged for malware published only as `2.0.0-beta` prereleases. **v1.7.1071** July 20, 2026 The following changes were introduced in endorctl: * Fixed the user interface links printed by local scans so they point to the correct regional cluster. For example, `app.eu.endorlabs.com` for the EU cluster instead of `app.endorlabs.com`. * Fixed `endorctl host-check` to detect the Maven wrapper in the project root without requiring the `--path` flag, so it no longer falls back to the system `mvn` when a wrapper is present. * AI SAST now runs only on scans that target the repository's default branch. Scans of other branches, and pull requests whose base is another branch, skip AI SAST. * Fixed secret validation for OpenAI API keys, so detected keys now report the correct validity status. **v1.7.1069** July 17, 2026 The following changes were introduced in endorctl: * The PR-incremental dependency resolution filter is now enabled by default for the JavaScript plugin. It also honors an explicitly pinned lock file outside the package tree with the environment variable, `ENDOR_JS_LOCK_FILE_PATH`. * Scan logs now show the actual reason a pnpm install failed instead of a generic error. * `dotnet restore` and `dotnet build` can now resolve Windows-targeted frameworks on non-Windows scan hosts when you set the environment variable, `ENDOR_SCAN_ENABLE_WINDOWS_TARGETING`. * Fixed an issue where credentials injected into `.npmrc` for dependency resolution could persist in the working tree after a scan. * Bazel scans now classify each dependency by its own ecosystem instead of inheriting the target's language, so dependencies such as Cargo and PyPI packages under one target are classified correctly. * AI SAST now traces data flow through every caller in the chain, showing only the call sites and the lines that affect them. This applies to Java, C#, Go, and Python. * Malware findings are no longer raised for npm and PyPI dependencies whose version constraint cannot match any known malicious version. For example, a dependency constrained to `^1.0.0` is not flagged for malware published only in versions `2.0.0` and `3.0.0`. **v1.7.1060** July 13, 2026 The following changes were introduced in endorctl: * Capped SARIF rule tags to a fixed allowlist of 10 tags in deterministic priority order when exporting to GitHub Advanced Security, preventing silent tag truncation and keeping rule tags consistent across exports. * `endorctl` now compares the `CODEOWNERS` file hash before updating its record during a scan, so an unchanged `CODEOWNERS` file no longer triggers unnecessary re-processing and private dependency call graph regeneration. * Fixed AI SAST scans failing to save results when a finding's location or data flow description exceeded 1,024 characters. Long descriptions are now truncated. * Fixed AI SAST creating duplicate findings for the same vulnerability across scans of the same commit. The sink function name is now resolved from the source code. * Fixed broken AI SAST finding paths and source links for scans run on Windows. File paths in findings and links now use forward slashes. * Licenses reported by a package manager are now classified as declared licenses in dependency license results, instead of discovered licenses. **v1.7.1053** July 9, 2026 The following changes were introduced in endorctl: * Fixed a crash in AI security review when a generated code reference had an invalid end line number. * Reduced false positives in Infrastructure as Code (IaC) findings by improving the AI evaluator prompt. * The PR-incremental dependency resolution filter is now enabled by default for the JVM plugin. * Fixed Rust scans to resolve dependencies when a `Cargo.toml` file inherits workspace fields such as `version.workspace` and `edition.workspace`. * Fixed the segment scanner to remove stale segment match dependencies when a re-scan finds no valid matches. * Fixed an error in license dependency processing caused by overly long SPDX license identifiers. * Fixed AI SAST scans failing when the CWE classification prompt exceeded the model's context window. The classification step now receives a trimmed input and at most three CWE matches per finding. * AI SAST finding descriptions now use a more readable layout. The Security Controls, Verification Scorecard, and Severity Scoring sections are collapsible, and severity is computed from the scored factors. * Fixed AI SAST describing unindexed callees, such as standard library or dependency functions, with the summary of an unrelated repository function. These callees now show only their name and location. * Fixed .NET scans ignoring the SDK version pinned in `global.json` when the file contained a byte order mark, comments, or trailing commas. `endorctl` now detects the pinned SDK instead of falling back to the default SDK, so `dotnet restore` no longer fails. **v1.7.1045** July 6, 2026 The following changes were introduced in endorctl: * Added the `--segment-match-languages` flag to `endorctl scan`. * Fixed .NET call graph scans that failed on Azure DevOps repositories whose names contain spaces, by sanitizing percent-encoded characters in the temporary clone directory path. * Fixed scanning of Azure DevOps repositories that use legacy `.visualstudio.com` URLs. * The `--diff-scope` flag, which limits AI SAST, SAST, and secrets scans to changed files, is now listed in `endorctl scan` help. It accepts `local` or `baseline`. * Fixed AI SAST PR scans that reported no default-branch baseline when the full scan used `--exclude-path`. Exclude-only filters no longer block the baseline from being recorded. * Fixed a regression where AI SAST scans run with `--ai-sast-rescan` still reused cached results instead of rescanning every file. * AI SAST now follows the scan profile's AI SAST setting for every automated scan, not only webhook scans. `ENDOR_SCAN_AI_SAST=false` now turns AI SAST off even when `ENDOR_SCAN_ENABLE` includes `ai-sast`. * AI SAST and SAST scan output is now split by the AI tag. `--ai-sast` shows AI SAST findings, `--sast` shows rule-based SAST findings, and enabling both shows both. * Fixed Azure DevOps PR scans being skipped for repositories whose name ends in `.git`. * Azure DevOps PR scans now report results as pull request statuses instead of commit statuses, so you can use an Azure DevOps branch policy to block pull requests on Endor Labs results. * Fixed AI SAST findings missing OWASP and SANS compliance tags, so policies that filter on these tags now match. Child CWEs now inherit the tags of their parent OWASP categories. * The endorctl MCP server now reuses existing endorctl credentials, such as those from `endorctl init`, instead of prompting for browser authentication. Set `ENDOR_MCP_SERVER_AUTH_MODE` to force a specific authentication mode. * Azure DevOps API requests now retry on HTTP 429 rate-limit responses and honor the `Retry-After` header. * Fixed .NET scans stalling for hours after a build command timed out, when leftover MSBuild or compiler server processes kept the command from exiting. **v1.7.1037** July 1, 2026 The following changes were introduced in endorctl: * Fixed Python dependency resolution failing with uv 0.11 and later, where trailing-space arguments to `uv pip show` caused "invalid value" errors. * Added a native secrets detector for JWK private keys, covering RSA, EC, and OKP keys in both JSON and object-literal formats. * Fixed phantom root packages with empty paths appearing in concurrent same-language monorepo scans by ignoring transient file-not-found errors during manifest discovery. * Fixed non-deterministic dependency loss in Gradle multi-root repositories. * Python dependency-resolution failures now surface the actual `uv sync` error output instead of a generic `exit status 1` message. * AI SAST now scales concurrent segment analysis with available CPUs, up to 20 by default. This reduces rate-limit errors that could skip code segments on large repositories. * Fixed AI SAST PR scans that reported no default-branch baseline after a full scan ran in CI on a detached commit SHA. * Fixed `finding_url` links in SARIF output pointing to the wrong host for tenants on the EU deployment. The link now follows the configured `ENDOR_API` endpoint. * Exception and action policies can now use a finding's create time during scan evaluation. **v1.7.1033** June 26, 2026 The following changes were introduced in endorctl: * Fixed a regression that prevented scanning empty git repositories. * Ruby scans now capture resolved dependencies from `Gemfile.lock`. * Improved AI SAST scan performance on large repositories through faster segment deduplication and `.gitignore` matching, and by skipping a slow repository-wide caller search. * Fixed AI SAST returning no results on scheduled default-branch scans when automated PR scans were turned off in the scan profile. * AI SAST now reports fewer false positives. * AI SAST now assigns CWE IDs to findings more consistently. * Fixed AI SAST PR scans that stayed blocked on a missing default-branch baseline after an earlier full scan left files marked as in progress. **v1.7.1024** June 24, 2026 The following changes were introduced in endorctl: * Fixed container scans dropping Rust dependencies embedded in binaries that are shipped by an OS package. **v1.7.1021** June 23, 2026 The following changes were introduced in endorctl: * Maven package scans now surface the underlying error when a POM fails to parse. * Maven dependency resolution now loads the `maven-bundle-plugin` extension for OSGi POMs. * Ruby scans now import bundler to parse gemspec files. * AI SAST dataflow steps now carry the step narrative in a separate `description` field and keep the source excerpt in `snippet`. * AI SAST no longer rescans from scratch when an SCA step such as the Maven call graph fails. `--ai-sast-rescan` now rescans only AI SAST, without a full SCA rescan. * Fixed vulnerability findings that were identified by a `DEBIAN-CVE-` alias instead of the preferred GHSA or CVE identifier. * Fixed container scans of Debian and Ubuntu images reporting duplicate Java packages when the Maven artifact ID starts with `lib`, such as `libthrift`. **v1.7.1013** June 18, 2026 The following changes were introduced in endorctl: * Fixed Azure DevOps PR scans that failed due to a false staleness check. * SBOM export by name now returns a clear error when the package version is not found. * Secret scans now perform a full rescan when an explicit rescan is requested. **v1.7.1007** June 16, 2026 The following changes were introduced in endorctl: * Fixed PR identification for GitLab and Bitbucket, resolving spurious 401 errors during PR scans. * Added the `--secret-rules-file` flag to `endorctl scan` for supplying custom secret detection rules. * Improved language detection for Rust projects. * Python call graph generation now batches large projects by lines of code and available memory. * Fixed pnpm scan failures where a package referencing workspace `catalog:` dependencies could not build its lock file when scanned in isolation. * AI SAST scans now use a default time budget of six hours for every project. * Fixed SBOM exports failing with `version is required` when a package version was a Git branch name containing `/`, such as a Swift branch dependency. **v1.7.1002** June 10, 2026 The following changes were introduced in endorctl: * Superseded PR scans are now cancelled automatically, with a dedicated return code. * Deleted package versions are now tracked in scan results and scan history. * AI SAST findings now carry compliance tags such as OWASP Top 10 and SANS Top 25, derived from their CWE IDs, matching rule-based SAST findings. * Segment-match findings now list the actual matched files, up to 10, as their dependency file paths and locations instead of `.` or the nearest `.csproj` file. **v1.7.1001** June 9, 2026 The following changes were introduced in endorctl: * Fixed PR scans on shallow or partial clones, where the merge base could be unreachable and the diff silently fell back to an incorrect comparison. endorctl now deepens the clone to reach the merge base, and reports a clear error if the two branches share no history. * Container scans now keep Java components bundled inside JVM application OS packages, such as Jenkins or OpenJDK, and deduplicate only OS packages that repackage the same Maven artifact. **v1.7.998** June 8, 2026 The following changes were introduced in endorctl: * Added the `--include-test-dependencies` flag to `endorctl sbom export`. * Pre-commit secret scans now flag only added lines. * Expanded secret validation coverage. * JavaScript scans now resolve call graphs for private transitive dependencies. * Improved Ruby dependency resolution in scans. * AI SAST findings now show code owners from your `CODEOWNERS` file, and their location links no longer contain a doubled slash. * Fixed scan logs redacting package coordinates such as `mvn://group:artifact@version` as if they were URL credentials. * The GitHub App token secret rule now detects the new stateless `ghs_` token format. * Fixed reachability analysis errors when a dependency had an empty stored call graph. **v1.7.994** June 4, 2026 The following changes were introduced in endorctl: * JavaScript scans can now fetch call graphs for private packages. * Improved error handling and return codes for local scans. * Added a return code for when the baseline is not found. * Secret scanning now applies the global allowlist during file walking for faster scans. * Fixed incomplete call graphs on large Go projects, where build metadata could exceed an internal scan buffer and silently drop required build settings. * Added a secret detection rule for passwords in PostgreSQL connection strings. * Fixed dependency resolution for pnpm projects that require pnpm 11, where the automatically installed pnpm toolchain was not found. **v1.7.990** June 2, 2026 The following changes were introduced in endorctl: * Added the `--dry-run` flag to `endorctl container registry scan`. * Fixed the declared license field for compound SPDX expressions. * AI SAST findings now expose structured data in `spec.finding_metadata.ai_sast_data`, including per-section explanations and a source-to-sink dataflow with SCM links. * AI SAST now analyzes every code segment with caller and callee context, including file-level segments, not only single functions. * Added secret detection rules for Groq, Replicate, xAI, Fireworks AI, LangSmith, Anyscale, Supabase, Buildkite, CircleCI personal and project tokens, Docker Hub personal access tokens, Stripe webhook secrets, Resend, and Salesforce access tokens and consumer keys. * Action policies in incremental PR scans now treat a finding as new when its dependency becomes reachable or its importer changes, and compare each secret location against the baseline. * Secret validation now covers additional Airtable, Dropbox, Facebook, Heroku, Hugging Face, Netlify, npm, and Slack token rules. * Fixed npm token validation reporting valid tokens without the user-profile scope as invalid. **v1.7.988** June 1, 2026 The following changes were introduced in endorctl: * Added the `--os-reachability` flag to `endorctl container registry scan`. * Added Harbor as a container registry type option. * JavaScript scans now support a custom lock file location. * Fixed a JavaScript call graph failure that could cause findings to be deleted. * Private SCM dependency resolution across organizations is now enabled by default. * Added secret detection rules for Azure AD client secrets (canonical Q\~ format) and Azure Storage Account Keys, including a validator. * Fixed authentication gaps in `.npmrc` file handling. * GitHub SARIF writes now retry transient 401 errors, with clearer GitHub authentication error classification. * SBOM export now skips malformed packages instead of failing the entire export. * AI SAST scans that exceed their time budget now keep findings from the code already scanned and log how many segments succeeded. Server-side timeouts near the end of the budget no longer abort the scan. * AI SAST now splits Scala and Swift code into function-level segments and ignores comment-only changes in these languages during PR scans. * AI SAST now runs twice as many code segment scans in parallel by default, two for each available CPU. * AI SAST findings now set `sast_rule_id` and `sast_rule_name` to the primary CWE ID and name, so you can group AI SAST findings by rule. **v1.7.980** May 26, 2026 The following changes were introduced in endorctl: * Fixed a Gradle issue where dependencies that failed manifest discovery were silently dropped, which inflated reported success rates. The resolver now synthesizes a path-derived package name so these scan failures are reported accurately. * Fixed SBOM imports where SPDX documents with multiple root packages would silently abort and return zero findings. Multi-root SPDX documents are now normalized to a single root before CycloneDX conversion, so imports succeed and vulnerability matching runs. * Fixed SBOM imports missing vulnerabilities for public dependencies listed in the imported SBOM. * Fixed private Git dependency resolution failing when the SCM access token contains URL-reserved characters, such as Bitbucket Data Center tokens. endorctl now URL-encodes the token in the Git `insteadOf` rewrite. * Fixed SCM access tokens appearing in endorctl warning logs when Git URL rewriting fails. **v1.7.978** May 22, 2026 The following changes were introduced in endorctl: * Added environment variable support for the `scanned-only` and `exclude-scanned` flags in `container registry list`, with validation that enforces mutual exclusivity between the flags and their environment variables. * Added environment variable support (`ENDOR_CONTAINER_COLLECT_*`) for the `kubeconfig-context`, `kubeconfig-path`, and `runtime-type` flags in `container collect`, with early validation of the kubeconfig context and runtime type. **v1.7.976** May 19, 2026 The following changes were introduced in endorctl: * Dependencies whose license category cannot be determined now report a category of `Unknown` instead of an empty value, so they filter consistently by license category. * AI SAST scans now run within a time budget. When the budget runs out, the scan skips the remaining code and reports findings from the code it already scanned. * Fixed the first AI SAST scan of a default branch reusing results from an earlier PR scan instead of running a full baseline scan. * AI SAST true-positive findings with high or critical severity now include an exploit reproduction section with the exploit path, reproduction steps, and a sample input. * AI SAST findings that are not confirmed in high-impact categories now include a validation outcome that explains which verification checks fell short. * AI SAST true-positive findings with medium, high, or critical severity now include remediation guidance as a code diff with a short explanation of the fix. * AI SAST incremental and PR scans now include the diff of each changed function in the analysis, so detection focuses on removed checks and newly added sinks. * License detection now recognizes `GPL-2.0` licenses with the classpath exception instead of reporting them as plain `GPL-2.0`. * Fixed Java toolchain auto-detection for Gradle builds that apply the Java plugin with the `plugins { java }` shorthand when other DSL blocks appear between them, in both Groovy and Kotlin build scripts. * Fixed SARIF output reporting high-severity findings with level `note`. High-severity findings now use level `warning`. * Fixed container scans failing on images that contain Endor-patched Java libraries with a `-endor-latest` version. The scan now resolves these packages to their pinned patched version. * Fixed Bazel scans of Swift projects ignoring Swift targets generated from protocol buffer definitions. **v1.7.973** May 14, 2026 The following changes were introduced in endorctl: * Dependency metadata now includes declared and discovered SPDX license identifiers. * Added Google Artifact Registry (GAR) support for container registry scanning, including authentication and `gar` as a `--type` option on `endorctl container registry`. * The `--image` and `--image-tar` flags now apply only to the `container scan`, `instrument`, and `collect` commands. The `container registry` subcommands no longer accept them. * Added a warning message when the default branch is switched during a scan. * Fixed call graph generation for Java and Scala to use the JDK at `JAVA_HOME` before falling back to `PATH`, so the call graph uses your configured JDK. * Bazel targets are now resolved at the start of a scan, improving accuracy of the Bazel package include filter. * Fixed C# PR segment-matching to handle workspaces with multiple package versions and non-root baseline versions. * Fixed `container scan` argument validation to check both CLI flags and `ENDOR_CONTAINER_SCAN_*` environment variables, so env-only configuration is no longer ignored. * AI SAST now saves findings as a scan runs. If the scan fails partway, the next scan recovers the findings already saved. * AI SAST incremental scans now handle renamed files. Pure renames reuse existing findings at the new path, and renamed files with edits are scanned incrementally instead of triggering a full scan. * AI SAST `--dry-run` scans now require only the shared CWE knowledge store and no longer set up repository vector stores. * The endorctl MCP server `scan` tool now accepts `ai-sast` as a scan type, including `diff_scope` scans of local or baseline changes. * The `--pr` flag no longer requires `--pr-incremental` for AI SAST scans that set `--diff-scope`. * Fixed AI SAST PR scans matching new findings to unrelated baseline findings, which hid new findings as already existing. **v1.7.968** May 11, 2026 The following changes were introduced in endorctl: * Fixed GitHub Actions dependency resolution failing with a generic error when a workflow pins an action to a commit SHA that does not exist in the action's repository. The dependency is now reported as not found. **v1.7.967** May 8, 2026 The following changes were introduced in endorctl: * NuGet dependency scans now extract license information from a package's LicenseUrl when it is not otherwise declared, improving license coverage for NuGet projects. * Fixed AI SAST main-branch scans returning findings from a previous PR scan. Scans with nothing to scan or a partial failure now keep existing findings instead of deleting them. * AI SAST no longer runs a separate analysis of agent skill files such as `SKILL.md`, which shortens scan time. * Fixed container scans dropping npm packages bundled inside OS-packaged Node.js applications such as `npm` and `yarn`. These packages now appear in the dependency list and SBOM. * Fixed container scans not reporting end-of-life status for Alpine Linux images such as Alpine 3.19. The scan now uses the EOL date of the Alpine release line when the exact patch version has none. **v1.7.960** May 5, 2026 The following changes were introduced in endorctl: * Added the `--insecure` flag (env var `ENDOR_CONTAINER_REGISTRY_INSECURE`) to `endorctl container registry` commands, which skips TLS verification when connecting to self-signed container registries. * Renamed the environment variable for `--registry-namespace` from `ENDOR_CONTAINER_REGISTRY_REGISTRY_NAMESPACE` to `ENDOR_CONTAINER_REGISTRY_NAMESPACE`. **v1.7.957** May 4, 2026 The following changes were introduced in endorctl: * Fixed pnpm workspace detection failing when pnpm emitted WARN lines for unresolvable variables in `.npmrc` files. * Fixed secret policies not matching when a custom secret rule's name differed from its description. The result name is now sourced from the rule name. * Added `oci` as a supported registry type for container scanning, enabling OCI-compliant registry support. * Fixed a race condition that could delete the old default branch when a new default branch was set. * Fixed PR-incremental scans over-resolving dependencies on Gradle composite-build repositories. The Gradle resolver now honors the narrowed manifest set. * Fixed `ENDOR_SCAN_LANGUAGES=typescript` not running the JavaScript plugin. * Fixed PURL qualification for OS packages found through ELF binary cataloging in distroless images, which prevented false-positive vulnerability matches. * Fixed PR-incremental scans to source baseline context from the baseline repository version instead of querying all packages. * Deprecated the `--registry` flag on `endorctl container registry`. It is now replaced by `--host`. * Fixed PR-incremental Java scans triggering full Gradle resolution when no Gradle manifest survived the PR filter. * Fixed include-path validation to reject directory paths without `/*` or `/**` when set through environment variables, matching the behavior of the CLI flags and preventing accidental package deletions. * Reordered path validation so include and exclude paths are validated before `.gitignore` paths are applied. * Deprecated the `--registry-type` flag on `endorctl container registry`. It is now replaced by `--type`. * Fixed AI SAST being skipped on merge-to-main scans of Bitbucket and GitLab repositories, which caused those scans to report no AI SAST findings. * AI SAST no longer follows symbolic links to directories when it collects files to scan, which matches how the rest of endorctl handles them. * Fixed container registry scans timing out while enumerating image metadata in large registries. Registry scans now also handle registry rate limits during enumeration. * Fixed Swift scans failing to install the toolchain when a repository requires more than one Swift version, for example a `swift-tools-version` in `Package.swift` and a different version in `.swift-version`. * `endorctl container registry` commands now treat an empty registry host as Docker Hub. * Fixed the `check_dependency_for_risks` MCP tool reporting malicious package records as vulnerabilities. It now returns malware and vulnerability IDs separately. * Container reachability now accepts Tetragon eBPF events as profiling data. Place a `tetragon.ndjson` file in the directory you pass to `--profiling-data-dir` when you run `endorctl container scan --os-reachability`. **v1.7.946** April 27, 2026 The following changes were introduced in endorctl: * Fixed a nil-pointer crash in the JavaScript call graph, which could segfault scans of some npm packages. * Fixed the scan end time not being recorded on successful workflow scans, which caused the Scanned column to show an incorrect time. * Fixed AI security-review findings being silently dropped when the model classified them as new features or other aspect types. * Removed the Hugging Face organization scan flags from endorctl scan. Hugging Face organization scanning is now configured through SCM integrations in the UI. * Dependency resolution now always runs for full scans and is skipped only for quick scans. * Project summary calculation is now capped at 60 seconds for non-cloud scans, preventing scans from hanging. * Fixed Yarn workspace SBOMs being non-deterministic, which had caused flapping results and dropped roughly 2,500 transitive development dependencies. * AI SAST now supports `--diff-scope`. Use `--diff-scope=local` to scan uncommitted local changes, or `--diff-scope=baseline` to scan files changed against the default branch. * AI SAST now supports `--dry-run` for local diff scans, which reads project context from Endor Labs without uploading findings. With `--ai-sast`, `--dry-run` requires `--diff-scope`. * AI SAST now caches per-file scan results and skips files unchanged since the last successful default-branch scan. Only default-branch scans write the cache, and cache reads and writes are batched. * AI SAST no longer reports findings whose only issue is a hardcoded secret, and it redacts secret values in finding text. Secrets scanning covers hardcoded secrets. * AI SAST scans now stop with an error when your licensed AI credit limit is exhausted, instead of continuing past the failed requests. * Fixed AI SAST PR reruns on the same commit returning zero findings while the previous scan was still in progress. A fresh scan now runs instead. * The endorctl MCP server now exposes the `describe_resource_schema` tool. * Fixed the `get_resource` MCP tool timing out when looking up a resource by name. * Fixed C# dependencies identified by segment match being marked reachable or unreachable. Their reachability is now reported as unknown. * The AI SAST finding policy now has a Minimum AI SAST Severity parameter. Findings are created only for AI SAST results at or above the selected severity. * endorctl now supports Java versions up to 25.0.3. * The endorctl MCP `scan` tool now returns a summary by default, with severity counts and top findings. Set `scan_options.summary` to `false` to return full results. **v1.7.940** April 21, 2026 The following changes were introduced in endorctl: * Fixed an issue where credentials and tokens could leak into logs, scan results, and serialized configuration. * Fixed duplicate findings that could override scan results when the SBOM context lacked an identifier. * Fixed a nil-pointer crash that could occur when checking invalid file or directory paths during a scan. * Added an opt-in windowed incremental mode for secrets scans, enabled with `SECRETS_USE_WINDOWED_INCREMENTAL`, that splits long scans into time windows with per-window checkpoint persistence. * Added support for `--diff-scope` with `--secrets`, so secrets scans can be limited to changed files. * Fixed incremental scans so that deleted files are included when detecting dependency impact. * Fixed the host version check to retry on transient HTTP errors, reducing spurious failures. * AI SAST now scans code outside functions, such as module-level configuration and templates. Files of 100 lines or fewer are analyzed as a whole. * AI SAST PR scans no longer depend on GitHub webhook payloads to compute the PR diff. PR scans without an SCM PR ID are now skipped unless tagged `merge-to-main`. * Improved reachability analysis for languages other than Java and .NET. Methods without a definition in the call graph are now treated as public entry points. * Fixed diff scans on divergent branches so that only commits after the merge base are compared, instead of the entire history. * Fixed diff scans failing to fetch the base branch on GitLab, Bitbucket, and self-hosted Git servers, or when the remote is not named `origin` or the branch is passed as `origin/main` or `refs/heads/main`. * Fixed container registry scans of GitHub Container Registry failing with a 404 error when `--registry-namespace` is set to a personal username instead of an organization. * Fixed container scans of Chainguard and Wolfi images dropping Python packages, such as `urllib3`, when an unrelated OS package bundled their files. Vulnerabilities for these PyPI packages are now reported. * Scans run through the endorctl MCP server now skip admission policy evaluation, so a policy violation no longer blocks findings from being returned to the IDE. CI scans are unaffected. * The endorctl MCP server scan tool now accepts the `diff_scope` option for the `secrets` scan type, in addition to `sast` and `vulnerabilities`. * The `get_resource` MCP tool now accepts an optional `fields` list of field mask paths, so it returns only the requested parts of a resource and avoids request timeouts on large resources. * Fixed container registry scans ignoring `--architecture` when pulling images. Images are now pulled for the requested architecture. * Findings for dependencies discovered through segment matching now carry the `FINDING_TAGS_SEGMENT_MATCH` attribute, so you can filter them separately. **v1.7.932** April 15, 2026 The following changes were introduced in endorctl: * The `--registry-type` flag is now optional for most container registries. Only self-hosted registries still require it. * Improved vulnerability matching for Chainguard and Wolfi apk container images through namespace canonicalization. * Fixed uv dependency resolution for `pyproject.toml` package names containing underscores, following PEP 503 normalization. * Fixed call graph errors on Yarn Berry Plug'n'Play projects by forcing the node-modules linker. * Fixed sbt dependency parsing for Maven version ranges and version evictions in `.dot` output. * The `--reauth` flag is now marked experimental. Users are directed to credential helpers instead. * Fixed Bazel Build Event Protocol nested fileset parsing. * GitHub check-run annotations now show correct finding counts for security review after low-severity filtering. * Fixed .NET call graph normalization for private packages that have no DLLs. * Fixed a crash in the MCP security review tool and wired in aspect-based classification. * AI SAST finding descriptions now link code references to the project's SCM host, such as GitLab, instead of always linking to `github.com`. * AI SAST PR scans now validate flags before scanning. With `--ai-sast`, `--pr` requires `--pr-incremental`, and `--pr-incremental` requires `--pr-baseline` or `--enable-pr-comments`. * Fixed AI SAST skipping automated branch scans when automated PR scans were enabled in the scan profile. It now skips them only when automated PR scans are off, with a clearer message. * The `--publish` flag on `endorctl container instrument` now pushes the instrumented image to the registry automatically after instrumentation. * Vulnerability matching now honors the OSV `last_affected` range field, so versions after the last affected version are no longer reported as vulnerable. * Fixed false-positive vulnerability findings for RHEL packages that have multiple module streams, such as `postgresql:13` and `postgresql:15`. Matching now uses the package's major version to pick the right stream. * Fixed Unmaintained Dependency findings being removed inconsistently for packages with an invalid release timestamp. The package creation time now breaks ties between duplicate package versions. * Fixed automated non-PR scans receiving PR comment and PR incremental settings from the scan profile, which caused conflicts because those scans have no PR. * The endorctl MCP server scan tool now accepts a `diff_scope` option for SAST scans. Set it to `local` to scan uncommitted changes or `baseline` to scan changes against the default branch. * The endorctl MCP server scan tool now accepts a `languages` option to limit a scan to specific languages. C and C++ projects must pass `c` because C is not auto-detected. **v1.7.924** April 9, 2026 The following changes were introduced in endorctl: * Bug fixes and miscellaneous improvements. **v1.7.922** April 8, 2026 The following changes were introduced in endorctl: * Added a `--platform` flag to `endorctl container instrument` that accepts a comma-separated list of platforms, so you can instrument container images for multiple architectures such as arm64 and amd64 in a single command while preserving the multi-arch manifest. * Improved Bazel Bzlmod scanning to better detect JavaScript dependencies. * Faster secret scanning on Linux from an upgraded secret-detection engine with native RE2 regex support. **v1.7.918** April 7, 2026 The following changes were introduced in endorctl: * Private Git-based dependencies hosted in other GitHub organizations or GitLab groups now resolve for Go, SwiftPM, Python, Node.js, Rust, and Ruby. * The AI SAST evaluator now produces more consistent security review results. * The default `--timeout` for `endorctl container registry` changed from `30s` to `0s`, so registry scans run without timing out. * C is now an officially supported language. * AI SAST now assigns CWE IDs by matching each finding's title against a CWE index, rather than choosing from a fixed list, for more precise CWE classification. * Added Yarn 4.13.0 to the supported toolchains. * The endorctl MCP server `get_resource`, `scan`, and `security_review` tools now accept an optional `namespace` input that overrides the server's configured namespace, so you can work on child namespaces with parent namespace credentials. * Fixed JFrog Artifactory container registry scans failing with a 404 error because the repository key was missing from the image path. **v1.7.912** April 1, 2026 The following changes were introduced in endorctl: * Host checks now gate container operations on Windows and emit a warning when prerequisites are not met. * `Unable to process dependencies` errors now surface under Issues with a Partial Success scan status instead of only appearing in logs. * Merge-to-main lookback is now enabled by default, so incremental PR scans consult recent merge-to-main package versions to avoid duplicate findings across pull requests. * Bazel scans now fail gracefully on non-executable targets instead of erroring out. * Scan requests now complete instead of staying stuck in progress when a GitHub check-run update fails. * C# segment scans now handle package versions that use non-native path separators. * JavaScript and npm phantom dependencies are now correctly tagged as phantom and marked transitive instead of direct. * TypeScript call graph generation now handles race conditions for more reliable scans. * AI SAST repository indexing is now resumable. After a failed or interrupted scan, the next scan can start right away and skips items that are already indexed. * Container scans now report vulnerabilities for Chainguard images using the Chainguard security advisory feed. * Scans now log a warning instead of an error when a vulnerability's severity cannot be mapped to a finding level. **v1.7.909** March 31, 2026 The following changes were introduced in endorctl: * Fixed Yarn dependency graphs that contained dangling edges when alias * Fixed the Scala fallback path stripping version suffixes from package names, which previously caused scans to be rejected. * Yarn version detection now prefers the lockfile format over the installed runtime binary version. * AI SAST PR scans now reuse previous results when the latest commit makes only security-irrelevant changes, such as comment or documentation edits, skipping indexing and analysis. * JavaScript scans start faster because the plugin now lazy-loads its TreeSitter queries. * .NET scans now attempt a solution-level dotnet restore before falling back to per-project restore. * The `--base-image-scan` flag on `endorctl container scan` now defaults to `true`, so base image scanning runs by default. * Filesystem secret scans now respect the `--include-path` and `--exclude-path` flags. * Dependency resolution is now correct when a monorepo root and a workspace child share the same package name. * .NET scans now suppress the .NET SDK first-run welcome banner, which previously interfered with MSBuild property extraction. * JavaScript scans of non-workspace monorepos now check the repository root `node_modules` when resolving subpackage lockfiles. * Fixed gRPC gateway Prometheus label dropping the `x-endor-caller` header when it is not present. * Container scans now identify the base image locally from the image layers first, instead of querying the Docker daemon. * Fixed Bazel scans of Swift projects missing some third-party dependency paths. * Fixed container scans missing Go dependencies inside binaries that are installed as OS packages. * Fixed license scans of large repositories failing because the results exceeded the maximum document size. * Fixed `endorctl scan` on Azure DevOps repositories (`dev.azure.com` and `visualstudio.com`) reporting `unable to create SARIF result for finding` for SAST and secrets findings. **v1.7.906** March 27, 2026 The following changes were introduced in endorctl: * Bug fixes and miscellaneous improvements. **v1.7.901** March 25, 2026 The following changes were introduced in endorctl: * Java dependency resolution now requires actual artifact detection. The legacy identification of dependencies without Java artifacts has been removed. * Added Python support for Bazel scans through the `rules_python` aspects plugin. * Raised the custom tag maximum length from 63 to 255 characters. * Added Swift support for Bazel scans through the `rules_swift` aspects integration. * Python scans now auto detect unlisted `.txt` files as pip requirements through content analysis, beyond the files passed with the requirements-file option. * Increased the default scan timeout from 10 minutes to 30 minutes. * Fixed container scans with `--project-name` where the base image scan used the project name from `ENDOR_SCAN_PROJECT_NAME` or `ENDOR_CONTAINER_SCAN_PROJECT_NAME` instead of the flag value. * Fixed container scans of base images that reported the image as its own base image. * Fixed scan failures caused by corrupted JSON output from package manager commands such as `cargo metadata`. * Fixed base image scans run by `endorctl container scan` so that they use the same namespace as the parent scan. **v1.7.893** March 20, 2026 The following changes were introduced in endorctl: * Fixed a failure scanning Java projects that use private registries over mTLS by merging your custom CA into the default truststore, so public and private dependencies both resolve. * Lifecycle scripts are now suppressed during dependency resolution for pnpm, Yarn Berry, and Rush installs, preventing arbitrary code execution. * .NET scans now evaluate complex MSBuild property expressions using native MSBuild property evaluation, with a static XML fallback. * Fixed SARIF output that triggered GitHub Advanced Security warnings. Findings without a CVSS score now fall back to the finding severity, and `security-severity` uses a plain decimal value such as `7.5`. * The scan summary finding counts now include both SAST and AI SAST findings when both are enabled, matching the findings table in the Endor Labs user interface. **v1.7.887** March 18, 2026 The following changes were introduced in endorctl: * JavaScript call graph generation now fails with a clear error when `node_modules` were not fully downloaded, instead of producing incorrect results. * C# builds now preserve the order of imported prop files in `.csproj` projects, correcting .NET dependency resolution. * .NET scans now shut down the MSBuild build server, preventing orphaned worker processes from accumulating between retries. * Incremental PR scans now match root-level packages correctly when the baseline uses `pr/*` version tags. * Incremental PR scans now handle segment-match dependencies correctly for C/C++ and C# projects. * Fixed AI SAST PR reruns on an unchanged commit reporting zero findings. Reruns on the same commit now reuse the previous findings. * When `--base-image-scan` is set and `--base-image-scan-project` is not, `endorctl container scan` now names the base image project after the base image, with the tag or digest removed. **v1.7.882** March 16, 2026 The following changes were introduced in endorctl: * Reduced the default Maven connect timeout to 30 seconds and read timeout to 60 seconds so scans against slow package repositories fail faster. * Added Quay container registry support to the `endorctl container registry list` and `endorctl container registry scan` commands. * Fixed .NET package name mismatches by assigning unresolved package names to the resolved package and call graph response. * Fixed incorrect package names for Python projects that use a dynamic version field in `pyproject.toml`. * Secret scanning of git logs now assumes files are git tracked, so findings from historical commits are included. * Java scans now skip the OWASP dependency-check Maven plugin during the mvn install build step, avoiding a 212MB NVD database download. * AI SAST scans of agent skills now include bundled files from the skill's `scripts/`, `references/`, and `docs/` directories, up to 64 KB per file and 256 KB per skill. * Container and SBOM scans now classify Debian, RPM, APK, SBOM, and git dependencies as external instead of internal. **v1.7.870** March 10, 2026 The following changes were introduced in endorctl: * PR scans now fall back to a full-history fetch when baseline refs are missing, improving baseline comparison reliability. * Fixed Bazel `scala_library` call graph generation to resolve the correct artifact path. * Added support for the latest `rules_python` hermetic toolchain runfile locations in Bazel Python call graphs. * Yarn scans now respect the `yarnPath` and `nodeLinker` settings in `.yarnrc.yml` and handle Yarn registry credentials more reliably. * Fixed SPDX SBOM import failures caused by temporary path collisions. * Fixed false positive package detection where module `setup.py` files were misclassified as setuptools manifests. * Policy validation now checks for typos in customer-authored policies, surfacing clearer validation errors. * Fixed `endorctl container instrument` for images that set a non-root `USER`. The instrumented image now starts the sensor as root so runtime monitoring works. **v1.7.867** March 5, 2026 The following changes were introduced in endorctl: * Fixed a crash when normalizing Python package names with malformed coordinates. * Fixed a Docker client connection leak that could accumulate during container scans. * Fixed missing pedigree information in SBOM output, including patch and purl fields, with purl now used for dependency lookups. * Added the `endorctl ignore` command that adds findings or vulnerability IDs to the ignore file, which dismisses findings during scans. * Added the `endorctl validate ignore` command that validates the ignore file syntax. * The Go registry resolver now handles standard library packages, including direct download and metadata. * Fixed handling of URL-encoded slashes in function reference versions for .NET and Java call graphs. * AI SAST scans now check for the AI SAST license feature instead of the AI Inference license, and they fail with an error when the license is missing. * AI SAST now removes duplicate findings within a scan that share the same sink location and primary CWE. * AI SAST scans of non-default branches no longer modify the project's shared AI SAST index, unless `--as-default-branch` is set. * Fixed AI SAST default-branch scans after a PR merge skipping the merged files during reindexing. The scan now diffs from the last indexed commit. * AI SAST severity scoring was recalibrated to reduce the number of findings rated critical. * AI SAST findings now label each dataflow location as a source, intermediate step, sink, or logical bug. * Fixed `endorctl validate policy` skipping disabled policies when you validate a policy by its UUID. * Fixed `endorctl container collect` failing to generate a reachability report for instrumented images whose entrypoint spawns child processes, such as MongoDB. # ai-audit Source: https://docs.endorlabs.com/developers-api/cli/commands/ai-audit/index Process AI coding agent hook events for Coding Agent Governance. The command `endorctl ai-audit` processes AI coding agent hook events for [Coding Agent Governance](/agent-governance). You do not run it interactively. A hook configuration installed on a developer machine invokes it once per hook event. The agent passes the event as JSON on standard input, and the command writes the agent-specific response, such as an allow or deny decision, to standard output. See [Deploy hooks for Cursor](/agent-governance/cursor), [Claude Code](/agent-governance/claude-code), [Codex](/agent-governance/codex), and [GitHub Copilot](/agent-governance/copilot) to install the hook configurations that run this command. ## Usage Each supported agent has a subcommand that understands that agent's hook payload format. ```bash theme={null} endorctl ai-audit ``` \- Subcommand: \`claudecode\` Processes: Claude Code hook events \- Subcommand: \`cursor\` Processes: Cursor hook events \- Subcommand: \`codex\` Processes: Codex CLI hook events \- Subcommand: \`copilot\` Processes: GitHub Copilot hook events, from the Copilot CLI and VS Code agent mode A typical hook configuration entry runs the command with explicit connection flags. ```bash theme={null} endorctl --api $ENDOR_API --namespace $ENDOR_NAMESPACE --api-key $ENDOR_API_CREDENTIALS_KEY --api-secret $ENDOR_API_CREDENTIALS_SECRET ai-audit cursor ``` ## Authentication `endorctl ai-audit` authenticates with an API key and secret issued for the **AI Audit User** role. See [Prerequisites for Coding Agent Governance](/agent-governance/prerequisites) to create the key. \- Setting: API endpoint Flag: \`--api\` Environment variable: \`ENDOR_API\` \- Setting: Namespace Flag: \`--namespace\` Environment variable: \`ENDOR_NAMESPACE\` \- Setting: API key Flag: \`--api-key\` Environment variable: \`ENDOR_API_CREDENTIALS_KEY\` \- Setting: API secret Flag: \`--api-secret\` Environment variable: \`ENDOR_API_CREDENTIALS_SECRET\` Unlike other endorctl commands, `ai-audit` ignores `ENDOR_TOKEN` when API key credentials are present, so hooks keep working in shells that already exported a token. Older versions of endorctl failed on the mixed credentials, so don't export `ENDOR_TOKEN` in the hook environment. See [endorctl exit codes](/best-practices/troubleshooting/endorctl-exitcodes) for the related authentication failure. ## Behavior The command has the following runtime behavior: * **Local policy evaluation**: The command evaluates each event against the policy snapshot in `~/.endorctl/aigovernance/endor-policies-.jsonl`. The snapshot refreshes from your namespace at session start, so pattern-based enforcement needs no network call per event. Malware policies are the exception, querying the malware feed per matching install. The [AI judge](/agent-governance/policies#auto-mode-and-the-ai-judge) also calls Endor Labs for each command it reviews. See [Local policy cache](/agent-governance/policies#local-policy-cache). * **Allows the action on errors**: If the command cannot run, or cannot reach the Endor Labs API for a malware verdict, it allows the action. An unparseable policy snapshot falls back to the built-in system policies. If the AI judge cannot answer, the command falls back to its pattern policies. * **Bounded latency**: Each invocation limits itself to 5 seconds, then allows the action, so a backend outage cannot stall the agent. In a namespace where the AI judge is on, the limit is 10 seconds. ## Environment variables For an audit-only rollout, set `ENDOR_AI_AUDIT_NO_BLOCKING=true` in the environment of the hook, as shown in the deploy configuration for each agent. It downgrades every Block action to Alert at evaluation time, so policies record violations without denying actions. A suspicious label from the AI judge also records an alert instead of blocking. ## Related information The following pages cover the feature this command serves: * [Coding Agent Governance](/agent-governance) for what the hooks capture and enforce. * [How Coding Agent Governance works](/agent-governance/how-it-works) for the event lifecycle and the data sent to Endor Labs. * [Deploy Coding Agent Governance with MDM](/agent-governance/mdm-deployment) to generate hook configurations for managed fleets. # api Source: https://docs.endorlabs.com/developers-api/cli/commands/api/index Use the api command to interact with the Endor Labs API. The `endorctl api` command allows you to interact with the Endor Labs API directly through the command line interface. ## Usage The syntax of the `endorctl api` command is: ```bash theme={null} endorctl api [subcommand] [flags] ``` The `endorctl api` command supports the following subcommands: * `create` creates a specified object in a namespace. * `delete` deletes a specified object in a namespace. * `get` gets a specified object in a namespace. * `list` lists a specified group of objects in a namespace. * `update` updates a specified object in a namespace. ### Flags and variables The `endorctl api` subcommands support the following flags, unless specified otherwise: \- Flag: \`d\`, \`data\` Environment_Variable: \`ENDOR_API_DATA\` Type: string Description: Define the object you want to create or update in json format. \- Flag: \`field-mask\` Environment_Variable: \`ENDOR_API_FIELD_MASK\` Type: string Description: Specify a list of fields to return or update. \- Flag: \`header\` Environment_Variable: \`ENDOR_API_HEADER\` Type: string Description: Specify request header information in the following format: \`key:value\`. \- Flag: \`i\`, \`interactive\` Environment_Variable: \`ENDOR_API_INTERACTIVE\` Type: boolean Description: Create or update an object interactively. Requires you to set the \`EDITOR\` environment variable (for example, \`export EDITOR=vim\`). \- Flag: \`name\` Environment_Variable: \`ENDOR_API_NAME\` Type: string Description: Specify the name of the resource that you want to interact with. \- Flag: \`o\`, \`output-type\` Environment_Variable: \`ENDOR_API_OUTPUT_TYPE\` Type: string Description: Specify the output format of the response. The default output type is \`json\`, but you can also use \`yaml\` or \`table\`. \- Flag: \`r\`, \`resource\` Environment_Variable: \`ENDOR_API_RESOURCE\` Type: string Description: Specify the resource type that you want to interact with. See \[commonly used resource types]\(#commonly-used-resource-types) below for a list of supported resource types. \- Flag: \`t\`, \`timeout\` Environment_Variable: \`ENDOR_API_TIMEOUT\` Type: string Description: Set the timeout limit for the command. The default is \`20s\`, but larger or more complex requests might need additional time, which might lead to a "context deadline exceeded" error. \- Flag: \`uuid\` Environment_Variable: \`ENDOR_API_UUID\` Type: string Description: Specify the UUID of the resource that you want to interact with. ### Commonly used resource types The following table lists resource types that are commonly used in the API. See [resource kind](/developers-api/rest-api/using-the-rest-api/data-model/resource-kinds) for more information. > [!NOTE] > > Resource kinds are case sensitive. \- Resource_Kind: \`Project\` Description: A project represents a configuration for ingesting source control repositories. List all projects by calling \`endorctl api list -r Project\`. \- Resource_Kind: \`Repository\` Description: A repository represents information about a source control repository that hosts source code. List all repositories for a project by filtering on \`meta.parent_uuid==\\`. \- Resource_Kind: \`RepositoryVersion\` Description: A repository version represents information about a specific version of code in source control, such as commit SHAs, tags or branches. List all repository versions for a project by filtering on \`meta.parent_uuid==\\`. \- Resource_Kind: \`PackageVersion\` Description: A package version represents information about a named version of a package. List all package versions for a project by filtering on \`spec.project_uuid==\\`. \- Resource_Kind: \`DependencyMetadata\` Description: A dependency metadata object represents the relationship between the root package version (importer) and a given dependency. List all dependency metadata objects for a project by filtering on \`spec.importer_data.project_uuid==\\`. \- Resource_Kind: \`Metric\` Description: A metric object contains the output of a given analytic. List all metric objects for a project by filtering on \`spec.project_uuid==\\`. \- Resource_Kind: \`Finding\` Description: A finding represents a result of an evaluation method used to evaluate code against a rule. List all findings for a project by filtering on \`spec.project_uuid==\\`. \- Resource_Kind: \`ScanResult\` Description: A scan result contains metadata about a particular scan (like configuration and results). List all scan results for a project by filtering on \`meta.parent_uuid==\\`. \- Resource_Kind: \`AuthorizationPolicy\` Description: An authorization policy represents a policy for access control. List all authorization policies by calling \`endorctl api list -r AuthorizationPolicy\`. ## endorctl api create The `endorctl api create` command creates an object of a specified resource type. ```shell theme={null} endorctl api create -r [resource] [flags] ``` ### endorctl api create interactive mode * Use `--interactive` or `-i` to create an object with an interactive code editor. * Define your editor using `export EDITOR=` where the editor is the command you use to edit files. For example, `export EDITOR=vi` allows you to edit in vi and `export EDITOR=code` opens the file with the code command in VS Code. ### endorctl api create examples To create a package manager integration that uses the repository `https://example.replaceme.com` for dependency resolution in Python with the top priority for dependency resolution use the following command. ```shell theme={null} endorctl api create -r PackageManager \ --data '{"meta":{"name":"pypi PackageManager"},"spec":{"pypi":{"url":"https://example.replaceme.com ","priority":0}}}' ``` ## endorctl api delete The `endorctl api delete` command deletes a given object of a specified resource type. ```shell theme={null} endorctl api delete -r [resource] [flags] ``` ### endorctl api delete example Use the following command to delete the project with the UUID, '62aa1cfadfa47d9ccb754d22', that is no longer needed. ```shell theme={null} endorctl api delete -r Project --uuid 62aa1cfadfa47d9ccb754d22 ``` ## endorctl api get The `endorctl api get` command retrieves a given object of a specified resource type. ```shell theme={null} endorctl api get -r [resource] [flags] ``` ### endorctl api get examples * Get a specific project by its UUID. ```shell theme={null} endorctl api get -r Project --uuid ``` * Get a specific package version. ```bash theme={null} endorctl api get --resource "PackageVersion" --name "://@" ``` ## endorctl api list The `endorctl api list` command lists all objects of a specified resource type, based on the specified filters, field-masks and/or other options. ```shell theme={null} endorctl api list -r [resource] [flags] ``` ### endorctl api list flags and variables The `endorctl api list` command supports the following additional flags and environment variables: \- Flag: \`archive\` Environment_Variable: \`ENDOR_API_ARCHIVE\` Type: boolean Description: Fetch resources from the archive. \- Flag: \`count\` Environment_Variable: \`ENDOR_API_COUNT\` Type: boolean Description: Get the number of items in the list. \- Flag: \`f\`, \`filter\` Environment_Variable: \`ENDOR_API_FILTER\` Type: json Description: Specify query parameters used to filter resources. \- Flag: \`group-aggregation-paths\` Environment_Variable: \`ENDOR_API_GROUP_AGGREGATION_PATHS\` Type: json Description: Specify one or more fields to group resources by. \- Flag: \`group-show-aggregation-uuids\` Environment_Variable: \`ENDOR_API_GROUP_SHOW_AGGREGATION_UUIDS\` Type: boolean Description: Get the UUIDs of the resources in each group as specified by \`--group-aggregation-paths\`. \- Flag: \`group-unique-count-paths\` Environment_Variable: \`ENDOR_API_GROUP_UNIQUE_COUNT_PATHS\` Type: json Description: Count the number of unique values, for these fields, in the group. \- Flag: \`group-unique-value-paths\` Environment_Variable: \`ENDOR_API_GROUP_UNIQUE_VALUE_PATHS\` Type: json Description: Get the unique values, for these fields, in the group. \- Flag: \`list-all\` Environment_Variable: \`ENDOR_API_LIST_ALL\` Type: boolean Description: List all resources (use \`-t\`or \`--timeout\` to increase timeout for big queries). \- Flag: \`page-id\` Environment_Variable: \`ENDOR_API_PAGE_ID\` Type: string Description: Set the page ID to start from. \- Flag: \`page-size\` Environment_Variable: \`ENDOR_API_PAGE_SIZE\` Type: integer Description: Set the page size to limit the number of results returned (default is 100). \- Flag: \`page-token\` Environment_Variable: \`ENDOR_API_PAGE_TOKEN\` Type: string Description: Set the page token to start from. \- Flag: \`pr-uuid\` Environment_Variable: \`ENDOR_API_PR_UUID\` Type: string (UUID format) Description: Only list resources from a specific PR scan. \- Flag: \`sort-order\` Environment_Variable: \`ENDOR_API_SORT_ORDER\` Type: string Description: Sort resources in the specified order, ascending or descending (default ascending). \- Flag: \`sort-path\` Environment_Variable: \`ENDOR_API_SORT_PATH\` Type: string Description: Specify a field to sort resources by. \- Flag: \`traverse\` Environment_Variable: \`ENDOR_API_TRAVERSE\` Type: boolean Description: Get data from any child namespaces as well. ### endorctl api list examples Use the `--filter` flag to customize your query and the `--field-mask` flag to limit the fields returned. For example, run the following command to list the description and the target dependency name for all findings in a given project. ```shell theme={null} endorctl api list \ --resource Finding \ --filter "spec.project_uuid==" \ --field-mask "meta.description,spec.target_dependency_package_name" ``` See [Filters](/developers-api/rest-api/using-the-rest-api/filters) and [Masks](/developers-api/rest-api/using-the-rest-api/masks) for more information on filters and field-masks. Get a count of the number of projects hosted in your Endor Labs tenant. ```bash theme={null} endorctl api list \ --resource Project \ --count \ | jq -r '.count_response.count' ``` List all projects in the namespace and only return the name of each project. ```shell theme={null} endorctl api list \ --resource Project \ --list-all \ --field-mask meta.name \ | jq '.list.objects[].meta.name' ``` List all package versions at a given source code Git reference. ```bash theme={null} endorctl api list \ --resource "PackageVersion" \ --output-type "yaml" \ --filter "spec.project_uuid== and spec.source_code_reference.version.ref==" ``` List all direct dependencies of a specific package given its UUID. ```bash theme={null} endorctl api list \ --resource DependencyMetadata \ --filter "spec.importer_data.package_version_uuid== and spec.dependency_data.direct==true" ``` Return a count of findings associated with the default branch for a given project. ```shell theme={null} endorctl api list \ --resource Finding \ --filter "context.type==CONTEXT_TYPE_MAIN and spec.project_uuid==" \ --count ``` Return a count of unique vulnerabilities in non-test dependencies for a given project. Filters to vulnerabilities with an upstream patch available and a reachable function. ```shell theme={null} endorctl api list \ --resource Finding \ --filter "context.type==CONTEXT_TYPE_MAIN and spec.project_uuid== and spec.finding_categories contains [FINDING_CATEGORY_VULNERABILITY] and spec.finding_tags contains [FINDING_TAGS_NORMAL] and spec.finding_tags contains [FINDING_TAGS_REACHABLE_FUNCTION] and spec.finding_tags contains [FINDING_TAGS_FIX_AVAILABLE]" \ --group-aggregation-paths "spec.finding_metadata.vulnerability.meta.name" ``` Return the count of the number of scans run on the default branch since a given date. ```shell theme={null} endorctl api list \ --resource ScanResult \ --filter "context.id==default and meta.create_time >= date(2023-11-14)" \ --count ``` See [Use cases](/developers-api/rest-api/using-the-rest-api/use-cases) for more examples. ## endorctl api update ```shell theme={null} endorctl api update -r [resource] [flags] ``` ### endorctl api update interactive mode * Use `--interactive` or `-i` to update an object with an interactive code editor. * Define your editor using `export EDITOR=` where the editor is the command you use to edit files. For example, `export EDITOR=vi` allows you to edit in vi and `export EDITOR=code` opens the file with the code command in VS Code. * Specify which fields you want to update using the `--field-mask` parameter. If this is not set, endorctl will try to update all fields. ### endorctl api update examples To interactively update a project with the UUID 6549886f0dd828140b4a477b. ```shell theme={null} endorctl api update -r Project -i --uuid 6549886f0dd828140b4a477b --field-mask meta.tags ``` To add a tag "CrownJewel" to a project named [https://github.com/endorlabs/github-action](https://github.com/endorlabs/github-action) use the following command. ```shell theme={null} endorctl api update -r Project \ --name https://github.com/endorlabs/github-action \ --data "{ \"meta\": {\"tags\": [ \"CrownJewel\" ] }}" \ --field-mask 'meta.tags' ``` # completion Source: https://docs.endorlabs.com/developers-api/cli/commands/completion/index Use the completion command to get a command completion script for a specified command shell The `completion` command for endorctl outputs a completion script that you can add to your local environment. After running the script, tab autocompletion will be available for endorctl. Supported command completion environments are Zsh, PowerShell, bash and fish. ## Command completion for Zsh shells To enable command completion for a macOS based Zsh environment. ```shell theme={null} echo "source $(endorctl completion zsh)" >> ~/.zshrc source ~/.zshrc ``` You will need to start a new shell for this setup to take effect. ## Command completion for bash shells To enable command completion for a Linux bash based shell. ```shell theme={null} echo "source $(endorctl completion zsh)" >> ~/.bashrc source ~/.bashrc ``` You will need to start a new shell for this setup to take effect. ## Command completion for PowerShell To load completions in your current shell session. ```powershell theme={null} endorctl completion powershell | Out-String | Invoke-Expression ``` To load completions for every new session, add the output of the above command to your PowerShell profile. ## Command completion for Fish shells To load completions in your current shell session. ```shell theme={null} endorctl completion fish | source ``` To load completions for every new session, execute once. ```shell theme={null} endorctl completion fish > ~/.config/fish/completions/endorctl.fish ``` You will need to start a new shell for this setup to take effect. ## Usage There are no flags that apply to endorctl completion. # container Source: https://docs.endorlabs.com/developers-api/cli/commands/container/index Use the container command to scan and operate on container images. Run the `endorctl container` command to scan container images, instrument them for reachability analysis, collect data from deployment environments, and perform registry operations. ## Usage The syntax of the `endorctl container` command is: ```bash theme={null} endorctl container [command] [flags] ``` The `endorctl container` command supports the following subcommands: * `scan`: Scans a container image for vulnerabilities and security risks. * `diff`: Shows the findings introduced, fixed, and common between two scanned container images. * `instrument`: Instruments a container image with the dynamic profiling sensor. * `collect`: Collects data from the target deployment environment. * `remediation`: Shows base image remediation data for a scanned container image. > [!NOTE] > > Use the `endorctl container scan` command instead of the deprecated `endorctl scan --container` command. See [Container scan commands migration guide](/scan/containers/container-migration) for more information. ## Run the endorctl scan Endor Labs supports the following methods of scanning container images: * **[Scan container images in a Git repository](#scan-container-images-in-a-git-repository)**: Use this approach to scan images built within your repository using a Dockerfile. * **[Scan container images as a standalone project](#scan-container-images-as-a-standalone-project)**: Use this approach to scan base or golden images that you share across multiple repositories or applications. * **[Scan container image tarball](#scan-container-image-tarball)**: Use this to scan images saved as tar files, such as base images exported from Docker, to generate dependency, SBOM, and vulnerability reports. ### Scan container images in a Git repository Run the following command to scan a container image built in a specific repository. Specify the project path using the `--path` argument and the container image name using the `--image` argument. This associates the container with the Git repository and branch of the project. ```bash theme={null} endorctl container scan --image= --path=users/janedoe/endorlabs/npm/exampleproject ``` You can also scan multiple container images as part of a single repository. ```bash theme={null} endorctl container scan --image= --path=users/janedoe/endorlabs/npm/exampleproject endorctl container scan --image= --path=users/janedoe/endorlabs/npm/exampleproject endorctl container scan --image= --path=users/janedoe/endorlabs/npm/exampleproject ``` You can tag findings with the corresponding container image name and tag. This lets you filter container-related findings in the user interface or through the API. ```bash theme={null} endorctl container scan --image= --path=users/janedoe/endorlabs/npm/exampleproject --finding-tags= ``` ### Scan container images as a standalone project Run the following command to scan a container image from a registry. Specify the project name using the `--project-name` argument, and the container image name and tag using the `--image` argument. ```bash theme={null} endorctl container scan --image= --project-name= ``` To keep multiple versions of a container image in a container-only project, include the `--as-ref` flag. ```bash theme={null} endorctl container scan --image= --project-name= --as-ref ``` You can tag findings with the corresponding container image name and tag. This lets you filter container-related findings in the user interface or through the API. ```bash theme={null} endorctl container scan --project-name= --image= --as-ref --finding-tags= ``` > [!NOTE] > > **Important** > > To associate a container scan with an existing SCA scan for a project, you must use the `--path` argument specifying the same project path used for the SCA scan. You cannot associate a container scan with an SCA scan for a project using the `--project-name` parameter. ### Scan container image tarball You can save a container image as a tarball and scan it with endorctl to generate a report containing dependencies, SBOM details, and security findings. 1. Ensure that you have the container image available locally. ```bash theme={null} docker pull alpine:latest ``` 2. Export the image to a tarball file. ```bash theme={null} docker save alpine:latest -o alpine-latest.tar ``` 3. Perform the endorctl scan. ```bash theme={null} endorctl container scan --image=alpine:latest --project-name= --image-tar=/absolute/path/to/alpine-latest.tar ``` > [!NOTE] > > * `--image-tar` must point to the absolute path of the tarball file. > * `--image=` is optional but recommended. It explicitly identifies the container image inside the tarball. ### Options The `endorctl container scan` command supports the following flags. \- Flag: \`image\` Environment_Variable: \`ENDOR_CONTAINER_SCAN_IMAGE\` Type: string Description: The container image name and tag to scan, for example, \`nginx:latest\`. Use this flag in combination with other scan-related parameters. \- Flag: \`image-tar\` Environment_Variable: \`ENDOR_CONTAINER_SCAN_IMAGE_TAR\` Type: string Description: The absolute path to a container image tarball file to scan, for example, \`/path/to/image.tar\`. Use this flag in combination with other scan-related parameters. \- Flag: \`p\`, \`path\` Environment_Variable: \`ENDOR_CONTAINER_SCAN_REPOSITORY_PATH\` Type: string Description: Set the path to a valid git repository to associate the container scan with a Git repository. Default is \`.\`. \- Flag: \`project-name\` Environment_Variable: \`ENDOR_CONTAINER_SCAN_PROJECT_NAME\` Type: string Description: Set the project name for the container scan when scanning as a standalone project. \- Flag: \`as-ref\` Environment_Variable: \`ENDOR_CONTAINER_SCAN_AS_REF\` Type: boolean Description: Scan the container in a persistent context and keep the version. Use with \`--project-name\` to specify the name of the project. \- Flag: \`dry-run\` Environment_Variable: \`ENDOR_SCAN_DRY_RUN\` Type: boolean Description: Stores scan results in memory for review and does not upload them to the Endor Labs platform. Dry-run mode does not support base image scanning. \- Flag: \`project-tags\` Environment_Variable: \`ENDOR_CONTAINER_SCAN_PROJECT_TAGS\` Type: strings Description: Specify a list of user-defined tags to add to this project. \- Flag: \`r\`, \`os-reachability\` Environment_Variable: \`ENDOR_CONTAINER_SCAN_OS_REACHABILITY\` Type: boolean Description: Enable OS reachability analysis to determine which OS packages in the container image are actually used at runtime. \- Flag: \`o\`, \`output-type\` Environment_Variable: \`ENDOR_CONTAINER_SCAN_SUMMARY_OUTPUT_TYPE\` Type: string Description: Set output format (\`json\`, \`yaml\`, \`table\`, \`summary\`, or \`table-verbose\`). Default is \`table\`. \- Flag: \`volume\` Environment_Variable: \`ENDOR_CONTAINER_SCAN_VOLUME\` Type: strings Description: Bind mount a volume for container profiling, for example, \`--volume=/host/path:/container/path\`. Requires \`--os-reachability\`. \- Flag: \`publish\` Environment_Variable: \`ENDOR_CONTAINER_SCAN_PUBLISH\` Type: strings Description: Publish a container's port to the host for profiling, for example, \`--publish=8080:80\`. Requires \`--os-reachability\`. \- Flag: \`e\`, \`env\` Environment_Variable: \`ENDOR_CONTAINER_SCAN_ENV\` Type: strings Description: Set environment variables that the image needs to run, for example, \`--env=KEY=value\`. Requires \`--os-reachability\`. \- Flag: \`entrypoint\` Environment_Variable: \`ENDOR_CONTAINER_SCAN_ENTRYPOINT\` Type: string Description: Override the default ENTRYPOINT of the image for profiling, for example, \`--entrypoint=/app/start.sh\`. Requires \`--os-reachability\`. \- Flag: \`profiling-max-size\` Environment_Variable: \`ENDOR_CONTAINER_SCAN_PROFILING_MAX_SIZE\` Type: integer Description: Set the maximum allowed container image size in GB for dynamic profiling. The default value is 10 GB and the minimum value is 1 GB. \- Flag: \`profiling-data-dir\` Environment_Variable: \`ENDOR_CONTAINER_SCAN_PROFILING_DATA_DIR\` Type: strings Description: Add a directory containing profiling data to include in the scan. The directory can contain \`creport.json\`, \`mondel.ndjson\`, or \`tetragon.ndjson\`. \- Flag: \`app-scan-context\` Environment_Variable: \`ENDOR_CONTAINER_SCAN_APP_SCAN_CONTEXT\` Type: string Description: Provide the context ID of the SCA app scan. Default is \`default\`. \- Flag: \`app-scan-project\` Environment_Variable: \`ENDOR_CONTAINER_SCAN_APP_SCAN_PROJECT\` Type: string Description: Provide the SCA project name for the app in the container image. \- Flag: \`detached-ref-name\` Environment_Variable: \`ENDOR_CONTAINER_SCAN_DETACHED_REF_NAME\` Type: string Description: Set the name of the git reference to a user-provided name, for example, \`--detached-ref-name=main\`. Requires \`--path\`. \- Flag: \`finding-tags\` Environment_Variable: \`ENDOR_CONTAINER_SCAN_FINDING_TAGS\` Type: strings Description: Specify a list of user-defined tags to add to findings generated for objects in this scan scope. Use finding tags to search and filter findings later. \- Flag: \`image-type\` Environment_Variable: \`ENDOR_CONTAINER_SCAN_IMAGE_TYPE\` Type: string Description: Specify the type of image to scan (\`app\` or \`base\`). \- Flag: \`diff\` Environment_Variable: \`ENDOR_CONTAINER_SCAN_DIFF\` Type: boolean Description: Print the findings introduced, fixed, and common compared to the project's main-context baseline after the scan completes. Requires \`--as-ref\`. Not supported with \`--dry-run\`. See \[Incremental container scanning]\(/scan/containers/incremental-container-scanning) for more information. \- Flag: \`suppress-baseline-findings\` Environment_Variable: \`ENDOR_CONTAINER_SCAN_SUPPRESS_BASELINE_FINDINGS\` Type: boolean Description: Suppress the findings this scan shares with its baseline, so only the findings the build introduced remain. Requires \`--diff\`, which compares this reference-context scan against the main-context scan of the same image. Not supported for CI run scans. ### Base image scan flags Use the following `endorctl container scan` flags to detect the base image and compute base image update options. \- Flag: \`base-image-check-updates\` Environment_Variable: \`ENDOR_CONTAINER_SCAN_BASE_IMAGE_CHECK_UPDATES\` Type: boolean Description: Compute the base image update options during the scan. Required to view update options with the \`container remediation list-base-image-updates\` command. \- Flag: \`base-image-name\` Environment_Variable: \`ENDOR_CONTAINER_SCAN_BASE_IMAGE_NAME\` Type: string Description: Name the base image at scan time. Endor Labs uses it to choose between base image names when it finds more than one, and as a fallback when no other source identifies the base image. It is incompatible with \`--dockerfile-path\`. \- Flag: \`dockerfile-path\` Environment_Variable: \`ENDOR_CONTAINER_SCAN_DOCKERFILE_PATH\` Type: string Description: Read the base image name from the Dockerfile that built the application image. It is incompatible with \`--base-image-name\`. \- Flag: \`base-image-scan\` Environment_Variable: \`ENDOR_CONTAINER_SCAN_BASE_IMAGE_SCAN\` Type: boolean Description: Scan the base image if it is identified and not previously scanned. Enabled by default. \- Flag: \`base-image-scan-project\` Environment_Variable: \`ENDOR_CONTAINER_SCAN_BASE_IMAGE_SCAN_PROJECT\` Type: string Description: Set the project name for the base image scan. If not provided, the project name is derived from the base image repository. \- Flag: \`base-image-tag-next\` Environment_Variable: \`ENDOR_CONTAINER_SCAN_BASE_IMAGE_TAG_NEXT\` Type: string Description: Pin the tag to scan as the next update candidate, instead of relying on auto-discovery. Requires \`--base-image-check-updates\` and takes a single tag. The scan skips a tag that does not qualify for update recommendations and logs a warning. \- Flag: \`base-image-tag-latest\` Environment_Variable: \`ENDOR_CONTAINER_SCAN_BASE_IMAGE_TAG_LATEST\` Type: string Description: Pin the tag to scan as the latest update candidate, instead of relying on auto-discovery. Requires \`--base-image-check-updates\` and takes a single tag. The scan skips a tag that does not qualify for update recommendations and logs a warning. ## Container image finding diff Run the `endorctl container diff` command to compare a target container scan against a baseline scan and report the findings that were introduced, fixed, or shared between them. Both scans must already exist on the platform. See [Incremental container scanning](/scan/containers/incremental-container-scanning) for the full workflow. The syntax of the `endorctl container diff` command is: ```bash theme={null} endorctl container diff [flags] ``` When you omit the baseline selectors, the baseline auto-resolves to the project's main-context scan of the same image repository. The `endorctl container diff` command supports the following flags. \- Flag: \`image\` Environment_Variable: \`ENDOR_CONTAINER_DIFF_IMAGE\` Type: string Description: Set the already-scanned target container image to analyze, for example, \`nginx:1.31\`. Mutually exclusive with \`--package-version-uuid\`. \- Flag: \`package-version-uuid\` Environment_Variable: \`ENDOR_CONTAINER_DIFF_PACKAGE_VERSION_UUID\` Type: string Description: Set the UUID of the target image's package version, in place of \`--image\`. \- Flag: \`context-id\` Environment_Variable: \`ENDOR_CONTAINER_DIFF_CONTEXT_ID\` Type: string Description: Select the target scan by exact context ID, such as an image tag, when \`--image\` matches more than one scan. Requires \`--image\`. \- Flag: \`context-tag-prefix\` Environment_Variable: \`ENDOR_CONTAINER_DIFF_CONTEXT_TAG_PREFIX\` Type: string Description: Select the newest reference-context target scan whose tag starts with this prefix, in place of \`--context-id\`. \- Flag: \`baseline-image\` Environment_Variable: \`ENDOR_CONTAINER_DIFF_BASELINE_IMAGE\` Type: string Description: Set the already-scanned baseline container image to compare against. When unset, the baseline auto-resolves to the project's main-context scan of the same image repository. \- Flag: \`baseline-package-version-uuid\` Environment_Variable: \`ENDOR_CONTAINER_DIFF_BASELINE_PACKAGE_VERSION_UUID\` Type: string Description: Set the UUID of the baseline image's package version, in place of \`--baseline-image\`. \- Flag: \`baseline-context-id\` Environment_Variable: \`ENDOR_CONTAINER_DIFF_BASELINE_CONTEXT_ID\` Type: string Description: Select the baseline scan by exact context ID when \`--baseline-image\` matches more than one scan. Requires \`--baseline-image\`. \- Flag: \`baseline-tag-prefix\` Environment_Variable: \`ENDOR_CONTAINER_DIFF_BASELINE_TAG_PREFIX\` Type: string Description: Select the newest reference-context baseline scan whose tag starts with this prefix, in place of \`--baseline-context-id\`. \- Flag: \`project-name\` Environment_Variable: \`ENDOR_CONTAINER_DIFF_PROJECT_NAME\` Type: string Description: Set the project name that the images were scanned into. \- Flag: \`vulns-only\` Environment_Variable: \`ENDOR_CONTAINER_DIFF_VULNS_ONLY\` Type: boolean Description: Show vulnerability findings only. \- Flag: \`by-severity\` Environment_Variable: \`ENDOR_CONTAINER_DIFF_BY_SEVERITY\` Type: boolean Description: Group findings by severity even when reachability data is available. \- Flag: \`top\` Environment_Variable: \`ENDOR_CONTAINER_DIFF_TOP\` Type: integer Description: Set the maximum number of changed findings shown per list, from 0 to 100. Set \`0\` to show counts only. Default is \`5\`. \- Flag: \`list-all\` Environment_Variable: \`ENDOR_CONTAINER_DIFF_LIST_ALL\` Type: boolean Description: Fetch every changed finding, instead of the top findings per list. \- Flag: \`max-records\` Environment_Variable: \`ENDOR_CONTAINER_DIFF_MAX_RECORDS\` Type: integer Description: Set the maximum number of records fetched per fixed, introduced, or common list under \`--list-all\`. Set \`0\` for unlimited. Default is \`1000\`. \- Flag: \`o\`, \`output-type\` Environment_Variable: \`ENDOR_CONTAINER_DIFF_OUTPUT_TYPE\` Type: string Description: Set output format (\`summary\`, \`json\`, or \`yaml\`). Default is \`summary\`. \- Flag: \`suppress-baseline-findings\` Environment_Variable: \`ENDOR_CONTAINER_DIFF_SUPPRESS_BASELINE_FINDINGS\` Type: boolean Description: Suppress the findings the target and baseline scans share, and keep them suppressed as new vulnerabilities appear in shared packages. Requires a main-context baseline and a reference-context target from the same image repository. Mutually exclusive with \`--release-baseline-findings\`. \- Flag: \`release-baseline-findings\` Environment_Variable: \`ENDOR_CONTAINER_DIFF_RELEASE_BASELINE_FINDINGS\` Type: boolean Description: Release every finding previously suppressed by \`--suppress-baseline-findings\` on the target scan and stop maintaining them. Mutually exclusive with \`--suppress-baseline-findings\`. ## Instrumented container reachability Instrumented container reachability records the OS packages your application uses at runtime through a sensor in your image. Use `endorctl container instrument` to create the instrumented image. See [Instrumented container reachability](/scan/containers/instrumented-reachability) for more information. The `endorctl container instrument` command supports the following flags. \- Flag: \`app-stop-signal\` Environment_Variable: \`ENDOR_CONTAINER_INSTRUMENT_APP_STOP_SIGNAL\` Type: string Description: Signal sent to the app so the sensor can flush profiling data before the container exits, for example, \`QUIT\` or \`TERM\`. Ensure the signal is compatible with your application. \- Flag: \`app-stop-grace-period\` Environment_Variable: \`ENDOR_CONTAINER_INSTRUMENT_APP_STOP_GRACE_PERIOD\` Type: string Description: Grace period for app shutdown, for example \`10s\`, \`1m\`. Use when the app needs time to flush before exit. \- Flag: \`app-stderr-to-file\` Environment_Variable: \`ENDOR_CONTAINER_INSTRUMENT_APP_STDERR_TO_FILE\` Type: boolean Description: Redirect application error output to a file in the instrumented container. \- Flag: \`app-stdout-to-file\` Environment_Variable: \`ENDOR_CONTAINER_INSTRUMENT_APP_STDOUT_TO_FILE\` Type: boolean Description: Redirect application standard output to a file in the instrumented container. \- Flag: \`entrypoint\` Environment_Variable: \`ENDOR_CONTAINER_INSTRUMENT_ENTRYPOINT\` Type: string Description: Override the image entrypoint (JSON array or shell string). Use when the image has a custom entrypoint. \- Flag: \`cmd\` Environment_Variable: \`ENDOR_CONTAINER_INSTRUMENT_CMD\` Type: string Description: Override the image CMD (JSON array or shell string). Use when the image has a custom CMD. \- Flag: \`debug-mode\` Environment_Variable: \`ENDOR_CONTAINER_INSTRUMENT_DEBUG_MODE\` Type: boolean Description: Enable sensor debug logs for instrumented container. \- Flag: \`load-instrumented-image\` Environment_Variable: \`ENDOR_CONTAINER_INSTRUMENT_LOAD_INSTRUMENTED_IMAGE\` Type: boolean Description: Load the instrumented image into the local Docker daemon so Kubernetes or a registry can use it. Default \`false\`. \- Flag: \`output-image-tar\` Environment_Variable: \`ENDOR_CONTAINER_INSTRUMENT_OUTPUT_IMAGE_TAR\` Type: string Description: Output tar path for the instrumented image. Default \`instrumented-image.tar\`. \- Flag: \`sensor-path\` Environment_Variable: \`ENDOR_CONTAINER_INSTRUMENT_SENSOR_PATH\` Type: string Description: Path to sensor binary. \- Flag: \`platform\` Environment_Variable: \`ENDOR_CONTAINER_INSTRUMENT_PLATFORM\` Type: string Description: Target platform for the instrumented image, for example \`linux/amd64\` or \`linux/arm64\`, or a comma-separated list such as \`linux/arm64,linux/amd64\` for multi-arch. Use when instrumenting multi-arch images. Requires \`--image\`. \- Flag: \`publish\` Environment_Variable: \`ENDOR_CONTAINER_INSTRUMENT_PUBLISH\` Type: boolean Description: Publish the instrumented image to the registry after instrumentation completes. Requires you to authenticate the Docker daemon with the target registry. Default \`false\`. ### Collect container profiling data The `endorctl container collect` command collects data from the target deployment environment, including profiling data from instrumented containers. See [Instrumented container reachability](/scan/containers/instrumented-reachability) for the full workflow. The `endorctl container collect` command supports the following flags: \- Flag: \`dynamic-profiling-data\` Environment_Variable: \`ENDOR_CONTAINER_COLLECT_DYNAMIC_PROFILING_DATA\` Type: boolean Description: Collect dynamic profiling data from instrumented containers (default \`true\`). \- Flag: \`kubeconfig-context\` Environment_Variable: \`ENDOR_CONTAINER_COLLECT_KUBECONFIG_CONTEXT\` Type: string Description: Provide the kubectl kubeconfig context to use to access the target (k8s) deployment environments. \- Flag: \`kubeconfig-path\` Environment_Variable: \`ENDOR_CONTAINER_COLLECT_KUBECONFIG_PATH\` Type: string Description: Provide the kubectl kubeconfig path to use to access the target (k8s) deployment environments. \- Flag: \`output-dir\` Environment_Variable: \`ENDOR_CONTAINER_COLLECT_OUTPUT_DIR\` Type: string Description: Set the directory to store collected data from the target deployment environment. The command creates a subdirectory \`cluster/pod/container\`. Use that path for \`--profiling-data-dir\` in the scan step. \- Flag: \`runtime-type\` Environment_Variable: \`ENDOR_CONTAINER_COLLECT_RUNTIME_TYPE\` Type: string Description: Container runtime type. Supports \`k8s\` only. ## Container registry scanning A container registry is a centralized service that stores and distributes your container images. Endor Labs lets you scan images directly from your registry, giving you full visibility into the security posture of your containerized workloads at scale. Use the `endorctl container registry` commands to list and scan images stored in your registry. * [**List images from a registry**](#list-command): Use `endorctl container registry list` to preview which images match your filters before scanning. This lets you verify the scope and adjust filtering parameters such as `--include`, `--exclude`, `--recent`, and `--limit`. You can also save the results as a scan plan for the scan step. * [**Scan images from a registry**](#scan-command): Use `endorctl container registry scan` to enumerate and scan container images from a registry in a single step. You can also provide a saved scan plan from the list command instead of enumerating the registry again. > [!NOTE] > > **Prerequisites for AWS ECR, Azure ACR, and Google Artifact Registry scans** > > * **AWS ECR**: Install and configure the [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html). > * **Azure ACR**: Install and configure the [Azure CLI](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli). > * **Google Artifact Registry**: Install the [Google Cloud CLI](https://cloud.google.com/sdk/docs/install) and run `gcloud auth configure-docker -docker.pkg.dev` to configure the Docker credential helper. Replace `` with your registry region, such as `us-west2`. ### List command The list command connects to your registry, enumerates container images based on your configured filters, and prints a summary with a table of image paths. You can also save the results as a scan plan to reuse with the scan command. ```bash theme={null} endorctl container registry list --type= [options] ``` You can apply filters such as `include`, `exclude`, `recent`, and `limit` to narrow down the images returned. If you provide a namespace and API credentials, the saved plan automatically excludes already scanned images, so it is ready to scan only new or updated images. The command applies filters in the following order: 1. **include** 2. **exclude** 3. **recent** 4. **limit** You can use the `endorctl container registry list` command with the following flags. \- Flag: \`--type\` Environment_Variable: \`ENDOR_CONTAINER_REGISTRY_TYPE\` Type: string Description: Container registry type. See \[supported container registries]\(/scan/containers/container-registry-scan/#supported-container-registries) for the registries and their corresponding values. \- Flag: \`--host\` Environment_Variable: \`ENDOR_CONTAINER_REGISTRY_HOST\` Type: string Description: Registry server or host. See the supported container registries table for example formats. Required for Azure ACR and JFrog. \- Flag: \`--insecure\` Environment_Variable: \`ENDOR_CONTAINER_REGISTRY_INSECURE\` Type: boolean Description: Allow HTTPS connections to the registry without verifying the TLS certificate. Use when connecting to registries with self-signed or otherwise untrusted certificates. \- Flag: \`--registry-namespace\` Environment_Variable: \`ENDOR_CONTAINER_REGISTRY_NAMESPACE\` Type: string Description: The namespace or scope to list within. This flag is optional for most registries but required for Google Artifact Registry. It is commonly used for the Docker Hub, GHCR, GAR, and JFrog Artifactory registries. For Docker Hub or GHCR, it is the organization or user name, for GAR, it is the Google Cloud project, and for JFrog, it is the repository key. \- Flag: \`--include\` Environment_Variable: \`ENDOR_CONTAINER_REGISTRY_INCLUDE\` Type: string Description: Regex to include repositories or tags. Matches the repository name without the registry server or domain, the full repository and tag, or the digest. If not set, the command includes all repositories and their tags. \- Flag: \`--exclude\` Environment_Variable: \`ENDOR_CONTAINER_REGISTRY_EXCLUDE\` Type: string Description: Regex to exclude a subset of container image names by repository or by repository and tag. For example, \`--exclude='test-repo'\` excludes all tags in repositories matching \`test-repo\`, and \`--exclude='myapp:latest'\` excludes only the \`latest\` tag in repositories matching \`myapp\`. \- Flag: \`--recent\` Environment_Variable: \`ENDOR_CONTAINER_REGISTRY_RECENT\` Type: string Description: Include only images updated within the given recent time window. Use a duration string such as \`24h\`, \`7d\`, or \`2d7h\`. Applied after include and exclude. \- Flag: \`--limit\` Environment_Variable: \`ENDOR_CONTAINER_REGISTRY_LIMIT\` Type: integer Description: Limit the number of images in the result after the command applies all filters. \- Flag: \`--include-untagged\` Environment_Variable: \`ENDOR_CONTAINER_REGISTRY_INCLUDE_UNTAGGED\` Type: boolean Description: Include untagged manifests when the registry type supports them. \- Flag: \`--include-untagged-only\` Environment_Variable: \`ENDOR_CONTAINER_REGISTRY_INCLUDE_UNTAGGED_ONLY\` Type: boolean Description: Consider only untagged container images. Use this only when the registry type supports untagged container images. \- Flag: \`--validate-tag-digest\` Environment_Variable: \`ENDOR_CONTAINER_REGISTRY_VALIDATE_TAG_DIGEST\` Type: boolean Description: Resolve and confirm digest through a registry HEAD request for each tag. \- Flag: \`--architecture\` Environment_Variable: \`ENDOR_CONTAINER_REGISTRY_ARCHITECTURE\` Type: string Description: Preferred architecture for multi-architecture images, for example, \`amd64\`, \`arm64\`, or \`linux/arm64\`. \- Flag: \`--timeout\` Environment_Variable: \`ENDOR_CONTAINER_REGISTRY_TIMEOUT\` Type: string Description: Command timeout duration, such as \`30s\`, \`1m\`, or \`5m\`. Default is \`30s\`. \- Flag: \`--project-prefix\` Environment_Variable: \`ENDOR_CONTAINER_REGISTRY_PROJECT_PREFIX\` Type: string Description: Optional prefix for project names derived from repository path. Without a prefix, the project name uses the container image repository path. \- Flag: \`--save-as-plan\` Environment_Variable: \`ENDOR_CONTAINER_REGISTRY_SAVE_AS_PLAN\` Type: string Description: Write the list output as a scan plan JSON file to use with \`endorctl container registry scan --scan-plan\`. \- Flag: \`--scanned-only\` Environment_Variable: \`ENDOR_CONTAINER_REGISTRY_SCANNED_ONLY\` Type: boolean Description: Show only images that Endor Labs already scanned. Requires \`--namespace\` and API credentials. You cannot use this flag with \`--save-as-plan\`. \- Flag: \`--exclude-scanned\` Environment_Variable: \`ENDOR_CONTAINER_REGISTRY_EXCLUDE_SCANNED\` Type: boolean Description: Exclude images that are already scanned from the output. Without this flag, already-scanned images are still skipped during scanning. The flag only affects what appears in the list output. If a tag points to a new digest, Endor Labs treats it as a new image and scans it. When saving with \`--save-as-plan\`, the saved plan always excludes scanned images regardless of this flag. Requires \`--namespace\` and API credentials. ### Scan command The scan command runs Endor Labs container scans on a set of images. You can pass a saved scan plan from the list command or enumerate the registry with the same filter flags as list. The command pulls each image if needed, runs the scan, and by default removes pulled images after scanning. You must provide `--namespace` and API credentials. Images that are already scanned are automatically skipped. * Scan using a saved scan plan: ```bash theme={null} endorctl container registry scan --namespace= --scan-plan= [options] ``` * Scan using a registry type. When you do not use `--scan-plan`, pass `--type`. ```bash theme={null} endorctl container registry scan --namespace= --type= [options] ``` You can use the `endorctl container registry scan` command with the following flags. \- Flag: \`--namespace\`, \`-n\` Environment_Variable: \`ENDOR_NAMESPACE\` Type: string Description: Endor Labs namespace for the scan and for checking current scan status. \- Flag: \`--scan-plan\` Environment_Variable: \`ENDOR_CONTAINER_REGISTRY_SCAN_PLAN\` Type: string Description: Path to a scan plan JSON file produced by \`endorctl container registry list --save-as-plan\`. Provide either \`--type\` or \`--scan-plan\`. \- Flag: \`--show-scan-plan\` Environment_Variable: \`ENDOR_CONTAINER_REGISTRY_SHOW_SCAN_PLAN\` Type: boolean Description: Print the scan plan including registry, filters, counts, and image list before starting scans. Set to \`false\` to skip this output and start scanning immediately. \- Flag: \`--dry-run\` Environment_Variable: \`ENDOR_SCAN_DRY_RUN\` Type: boolean Description: Stores scan results in memory for review and does not upload them to the Endor Labs platform. Dry-run mode does not support base image scanning. \- Flag: \`--reauth\` Environment_Variable: \`ENDOR_CONTAINER_REGISTRY_REAUTH\` Type: boolean Description: Try to refresh registry credentials if authentication fails. For ECR and ACR, this uses the AWS CLI or Azure CLI respectively to refresh credentials. \- Flag: \`--keep-pulled-images\` Environment_Variable: \`ENDOR_CONTAINER_REGISTRY_KEEP_PULLED_IMAGES\` Type: boolean Description: Keep pulled images in the local daemon after scanning. By default, the command removes pulled images to free disk space. ## Base image remediation Use the `endorctl container remediation list-base-image-updates` command to view how the findings of a scanned container image would change with each base image update option. The command reads the update options computed by a scan that ran with `--base-image-check-updates`, and does not scan or recompute anything. See [Base image remediation](/scan/containers/base-image-remediation) for the complete workflow. ```bash theme={null} endorctl container remediation list-base-image-updates \ --namespace= \ --image= \ --project-name= ``` The `list-base-image-updates` command supports the following flags. \- Flag: \`image\` Environment_Variable: \`ENDOR_CONTAINER_REMEDIATION_IMAGE\` Type: string Description: The scanned container image to analyze, using the same reference you scanned with. Required if you don't use \`--package-version-uuid\`. \- Flag: \`package-version-uuid\` Environment_Variable: \`ENDOR_CONTAINER_REMEDIATION_PACKAGE_VERSION_UUID\` Type: string Description: The UUID of the scanned image's package version. Use it instead of \`--image\`, not with it. \- Flag: \`project-name\` Environment_Variable: \`ENDOR_CONTAINER_REMEDIATION_PROJECT_NAME\` Type: string Description: The project the image was scanned into. Required when the image was scanned into more than one project. Incompatible with \`--package-version-uuid\`. \- Flag: \`update-option\` Environment_Variable: \`ENDOR_CONTAINER_REMEDIATION_UPDATE_OPTION\` Type: string Description: Show only one update option, \`refreshed\`, \`next\`, or \`latest\`. Unset shows all three. \- Flag: \`vulns-only\` Environment_Variable: \`ENDOR_CONTAINER_REMEDIATION_VULNS_ONLY\` Type: boolean Description: Show vulnerability findings only. Unset shows all finding types. \- Flag: \`by-severity\` Environment_Variable: \`ENDOR_CONTAINER_REMEDIATION_BY_SEVERITY\` Type: boolean Description: Group findings by severity even when reachability data is available. \- Flag: \`top\` Environment_Variable: \`ENDOR_CONTAINER_REMEDIATION_TOP\` Type: integer Description: The maximum number of changed findings shown per list, from 0 to 100. The default is 5. Set to \`0\` to show counts only. \- Flag: \`list-all\` Environment_Variable: \`ENDOR_CONTAINER_REMEDIATION_LIST_ALL\` Type: boolean Description: Show every changed finding for the selected update option. Requires \`--update-option\`. \- Flag: \`max-records\` Environment_Variable: \`ENDOR_CONTAINER_REMEDIATION_MAX_RECORDS\` Type: integer Description: The maximum number of records fetched per list with \`--list-all\`. The default is 1000. Set to \`0\` for unlimited. \- Flag: \`o\`, \`output-type\` Environment_Variable: \`ENDOR_CONTAINER_REMEDIATION_OUTPUT_TYPE\` Type: string Description: The output format, \`summary\`, \`json\`, or \`yaml\`. The default is \`summary\`. # help Source: https://docs.endorlabs.com/developers-api/cli/commands/help/index Use the help command to get command help for endorctl. The help command lists all available commands for endorctl scan. ## Examples ```shell theme={null} endorctl help ``` ## Usage ```shell expandable theme={null} endorctl help Endorctl is a command-line tool that allows you to scan and monitor your projects, import and export SBOMs, and interact with the API. Using endorctl you can connect to your Endor Labs tenant and integrate it into your CI pipeline. Usage: endorctl [flags] endorctl [command] Available Commands: api Interact with the Endor Labs API completion Generate the autocompletion script for the specified shell help Help about any command host-check Validate host machine environment and configuration init Initialize or reinitialize endorctl recommend Recommendations for dependency maintenance sbom SBOM operations scan Scan a source code repository sync-org Sync GitHub repositories for a specified organization validate Validate a policy Flags: -a, --api string Set the API URL for the Endor Labs Application (default "https://api.endorlabs.com") --api-key string Set the API key used to authenticate with Endor Labs --api-secret string Set the secret corresponding to the API key used to authenticate with Endor Labs --aws-role-arn string Set the target role ARN for AWS based authentication. AWS authentication is only enabled if this flag is set --bypass-host-check Bypass the check that verifies that the host machine is correctly setup to use endorctl --config-path string Set the local filesystem path to the endor config directory containing your endor environment variables --enable-github-action-token Enable keyless authentication using Github action OIDC tokens --gcp-service-account string Set the target service account for GCP based authentication. GCP authentication is only enabled if this flag is set -h, --help help for endorctl --log-level string Set the log level (default "info") -n, --namespace string Set to the namespace of the project that you are working with --token string Set the authentication token used to authenticate with Endor Labs --verbose Enable verbose logging -v, --version version for endorctl Use "endorctl [command] --help" for more information about a command. ``` > [!NOTE] > > If you use Endor Labs with an EU tenant, use `https://api.eu.endorlabs.com` instead of `https://api.endorlabs.com`. # host-check Source: https://docs.endorlabs.com/developers-api/cli/commands/host-check/index Use the host check command to verify if your system is appropriately set up to perform a scan. The command `endorctl host-check` verifies if your system can perform a successful scan. ## Usage To verify that your local host is appropriately configured to scan a given repository: 1. Clone the repository for which you'd like to verify system setup. Update the following instructions to the repository of your selection. ```shell theme={null} git clone https://github.com/endorlabs/app-java-demo.git ``` 2. Navigate to the root of the repository you've cloned. ```shell theme={null} cd ./app-java-demo ``` 3. Run the `endorctl host-check` command. ```shell theme={null} endorctl host-check ``` ## Options The `endorctl host-check` command uses the following flags and environment variables. \- Flag: \`auth-check-only\` Environment_Variable: \`ENDOR_HOST_CHECK_AUTH_CHECK_ONLY\` Type: boolean Description: Validate authentication credentials only. \- Flag: \`name\` Environment_Variable: \`ENDOR_ARTIFACT_NAME\` Type: string Description: The name of the artifact whose signature you want to revoke. \- Flag: \`path\` Environment_Variable: \`ENDOR_HOST_CHECK_PATH\` Type: string Description: Set the path to the repository to scan on the local filesystem. For example, \`--path=/Users/endorlabs/github/myrepo\`. # ignore Source: https://docs.endorlabs.com/developers-api/cli/commands/ignore/index Use the ignore command to add findings to the ignore file. Use the `ignore` command to add findings or vulnerability IDs to the ignore file, which dismisses findings during scans. This allows developers to request exceptions directly in their pull requests and provides teams with the option to manage exceptions directly in the source code. > [!NOTE] > > You must [enable ignore file support](/platform-administration/configure-system-settings#allow-ignore-files-to-dismiss-findings) in **Settings** > **SYSTEM SETTINGS** > **Developer Workflows** for ignore files to be processed during scans. ## Usage The syntax of the `endorctl ignore` command is: ```bash theme={null} endorctl ignore [--finding-uuid | --vuln-id ] [-i] [flags] ``` You must provide `--finding-uuid`, `--vuln-id`, or `--interactive`. If you provide a finding UUID, you must also provide `--namespace`. The more fields you provide, the more specific the ignore entry. For example, if you provide the finding name and multiple findings share that name in the same repository version, the command applies the ignore entry to all such findings. ## Options The command `endorctl ignore` uses the following flags and environment variables: \- Flag: \`comments\` Environment_Variable: \`ENDOR_IGNORE_COMMENTS\` Type: string Description: Optional comments to add to the ignore entry. \- Flag: \`expiration-date\` Environment_Variable: \`ENDOR_IGNORE_EXPIRATION_DATE\` Type: string Description: Stop ignoring the finding on this date (format: YYYY-MM-DD). \- Flag: \`expire-if-fix-available\` Environment_Variable: \`ENDOR_IGNORE_EXPIRE_IF_FIX_AVAILABLE\` Type: boolean Description: Stop ignoring the finding if a fix becomes available. \- Flag: \`finding-uuid\` Environment_Variable: \`ENDOR_IGNORE_FINDING_UUID\` Type: comma-separated string Description: UUID of finding to ignore. \- Flag: \`interactive\` Environment_Variable: \`ENDOR_IGNORE_INTERACTIVE\` Type: boolean Description: Enter finding and/or ignore entry details interactively. \- Flag: \`path\` Environment_Variable: \`ENDOR_IGNORE_PATH\` Type: string Description: Path to the repository or file to add the ignore entry to (default \`.endorignore.yaml\`). \- Flag: \`prefix\` Environment_Variable: \`ENDOR_IGNORE_PREFIX\` Type: string Description: Override the default prefix for the ignore entry ID (default \`endorignore-\`, or project name if added by finding UUID). \- Flag: \`reason\` Environment_Variable: \`ENDOR_IGNORE_REASON\` Type: string Description: Reason for ignoring the finding. Valid values: \`false-positive\`, \`risk-accepted\`, \`in-triage\`, \`resolved\`, \`other\` (default \`risk-accepted\`). \- Flag: \`username\` Environment_Variable: \`ENDOR_IGNORE_USERNAME\` Type: string Description: Override the username associated with the ignore entry. \- Flag: \`vuln-id\` Environment_Variable: \`ENDOR_IGNORE_VULN_ID\` Type: comma-separated string Description: Vulnerability ID to ignore, such as CVE or GHSA identifiers. ## Examples ### Ignore a finding based on UUID Ignore a specific finding based on the UUID and enter details such as reason and expiration-date interactively: ```bash theme={null} endorctl ignore --finding-uuid $FINDING_UUID --namespace $NAMESPACE -i ``` ![Ignore finding UUID interactive](https://mintcdn.com/endorlabs-b4795f4f/dHzwUrp_QbpzV9uv/images/developers-api/cli/ignore_interactive_with_uuid.webp?fit=max\&auto=format\&n=dHzwUrp_QbpzV9uv\&q=85\&s=5fd49653c50ca6d063af95825fc7389e) #### Ignore entry based on finding UUID and interactive input Here the user entered the reason, expiration date, and comments interactively. The rest was automatically populated based on the finding UUID. The default prefix is the finding project name. ```yaml theme={null} version: 1.0.0 ignore: - id: endorlabs/app-java-demo-1 username: bob@corp.com@google update_time: 2026-02-09 22:35:04 UTC finding_name: Unmaintained Dependency org.webjars.bowergithub.webcomponents:shadycss@1.9.1 parent_name: mvn://com.endor.webapp:endor-java-webapp-demo@4.0-SNAPSHOT dependency_name: mvn://org.webjars.bowergithub.webcomponents:shadycss@1.9.1 extra_key: mvn://org.webjars.bowergithub.webcomponents:shadycss@1.9.1 reason: other expiration_date: 2026-03-01 comments: Will change to a better dependency in a separate commit ``` ### Enter all details interactively Enter all details about which findings to ignore interactively, without the UUID: ```bash theme={null} endorctl ignore -i ``` ![Ignore interactive](https://mintcdn.com/endorlabs-b4795f4f/dHzwUrp_QbpzV9uv/images/developers-api/cli/ignore_interactive_full.webp?fit=max\&auto=format\&n=dHzwUrp_QbpzV9uv\&q=85\&s=c442ac65d03624d833a19ac98f0562e3) #### Ignore entry based on interactive input only Here the user entered the finding name, reason, expiration date, and comments interactively. The default prefix is `endorignore-`. ```yaml theme={null} version: 1.0.0 ignore: - id: endorignore-1 username: bob@corp.com@google update_time: 2026-02-09 22:36:01 UTC finding_name: Unmaintained Dependency org.webjars.bowergithub.webcomponents:shadycss@1.9.1 reason: other expiration_date: 2026-03-01 comments: Will change to a better dependency in a separate commit ``` ### Automation Use command in a script to ignore findings based on UUID with a custom prefix: ```bash theme={null} endorctl ignore \ --path=$PATH_TO_IGNORE_FILE \ --prefix=$CUSTOM_PREFIX \ --namespace=$NAMESPACE \ --finding-uuid=$FINDING_UUID \ --username=$USERNAME \ --reason=$REASON \ --comments=$COMMENTS \ --expiration-date=$EXPIRATON_DATE \ --expire-if-fix-available=$EXPIRE_IF_FIX_AVAILABLE ``` # Commands Source: https://docs.endorlabs.com/developers-api/cli/commands/index Learn more about the available endorctl commands The following commands are available in endorctl: * [ai-audit](/developers-api/cli/commands/ai-audit): Process AI coding agent hook events for Coding Agent Governance. * [api](/developers-api/cli/commands/api): Interact with the Endor Labs API. * [completion](/developers-api/cli/commands/completion): Generate a command completion script for a specified command shell. * [container](/developers-api/cli/commands/container): Scan and operate on container images. * [help](/developers-api/cli/commands/help): Get command help for endorctl. * [host-check](/developers-api/cli/commands/host-check): Verify if your system is ready to perform a scan. * [ignore](/developers-api/cli/commands/ignore): Add findings to the ignore file. * [init](/developers-api/cli/commands/init): Authenticate to Endor Labs from a workstation with an external identity provider. * [recommend](/developers-api/cli/commands/recommend): Suggest dependency updates that address issues across your environment. * [rule-set](/developers-api/cli/commands/rule-set): Import SAST rules into Endor Labs. * [sbom](/developers-api/cli/commands/sbom): Import or export SBOMs to or from Endor Labs. * [sbom export](/developers-api/cli/commands/sbom/export): Export an SBOM for a software package from Endor Labs. * [sbom import](/developers-api/cli/commands/sbom/import): Import SBOMs to Endor Labs. * [scan](/developers-api/cli/commands/scan): Perform scans against a repository. * [artifact sign](/developers-api/cli/commands/sign-artifacts): Sign and verify container images and build artifacts. * [sync-org](/developers-api/cli/commands/sync-org): Sync all projects in a GitHub organization to Endor Labs. * [toolchains](/developers-api/cli/commands/toolchains): Detect tools in your repository or create a scan profile. * [validate](/developers-api/cli/commands/validate): Validate policies and ignore files. * [validate ignore](/developers-api/cli/commands/validate/ignore): Validate a YAML ignore file. * [validate policy](/developers-api/cli/commands/validate/policy): Validate policies. # init Source: https://docs.endorlabs.com/developers-api/cli/commands/init/index Use the init command to authenticate to Endor Labs from a workstation with an external identity provider. The command `endorctl init` allows you to quickly authenticate your client to Endor Labs using an external identity provider. Supported authentication providers for `endorctl init` are: * `google` - Used to create an API key and API key secret when you sign in with Google Workspaces as your external identity provider. * `github` - Used to create an API key and API key secret when you sign in with GitHub Cloud as your external identity provider. * `gitlab` - Used to create an API key and API key secret when you sign in with GitLab Cloud as your external identity provider. * `email` - Used to create an API key and API key secret when you sign in with an email link. * `sso` - Used to sign in with a Custom Enterprise Identity Provider, such as Okta. ## Usage Run `endorctl init` and your browser window will open automatically. Select your authentication provider from the available options and complete the authentication process. ![Init authentication through browser](https://mintcdn.com/endorlabs-b4795f4f/dHzwUrp_QbpzV9uv/images/developers-api/cli/init-auth-mode.webp?fit=max\&auto=format\&n=dHzwUrp_QbpzV9uv\&q=85\&s=f63fde25d5e52e50995a78a0fd7eb185) You can also specify your supported authentication provider manually: > [tab] Google > > ```bash theme={null} > endorctl init --auth-mode=google > ``` > [tab] GitHub > > ```bash theme={null} > endorctl init --auth-mode=github > ``` > [tab] GitLab > > ```bash theme={null} > endorctl init --auth-mode=gitlab > ``` > [tab] Email > > ```bash theme={null} > endorctl init --auth-email=`` > ``` > [tab] SSO > > ```bash theme={null} > endorctl init --auth-mode=sso --auth-tenant=`` > ``` To login with your supported authentication provider in environments without a browser you can use headless mode: > [tab] Google > > ```bash theme={null} > endorctl init --auth-mode=google --headless-mode > ``` > [tab] GitHub > > ```bash theme={null} > endorctl init --auth-mode=github --headless-mode > ``` > [tab] GitLab > > ```bash theme={null} > endorctl init --auth-mode=gitlab --headless-mode > ``` > [tab] Email > > ```bash theme={null} > endorctl init --auth-email=`` --headless-mode > ``` > [tab] SSO > > ```bash theme={null} > endorctl init --auth-mode=sso --auth-tenant=`` --headless-mode > ``` Once you've issued the command in headless mode, navigate to an internet/browser accessible computer and follow the instructions provided in your terminal. ## Options The following flags and environment variables are available for the `endorctl init` command. \- Flag: \`auth-email\` Environment_Variable: \`ENDOR_INIT_AUTH_EMAIL\` Type: string Description: User email for authentication. Required if you don't select an SSO or social login authentication mode. \- Flag: \`auth-mode\` Environment_Variable: \`ENDOR_INIT_AUTH_MODE\` Type: string Description: Set authentication method for the initialization process (\`github\`, \`google\`, \`gitlab\`, \`azureadv2\`, \`sso\`, or \`browser-auth\`). \- Flag: \`auth-tenant\` Environment_Variable: \`ENDOR_INIT_AUTH_TENANT\` Type: string Description: Tenant name for SSO authentication. Required when using \`--auth-mode=sso\`. \- Flag: \`headless-mode\` Environment_Variable: \`ENDOR_INIT_HEADLESS_MODE\` Type: boolean Description: Run authentication and initialization without opening your browser. # license-notice-report Source: https://docs.endorlabs.com/developers-api/cli/commands/license-notice-report/index Generate license notice reports for a package version from the command line. The `license-notice-report` command manages license notice reports for package versions. The report includes license texts, copyright notices, and other attribution information that should be included when distributing software that uses the specified package. The syntax of the `endorctl license-notice-report` command is: ```bash theme={null} endorctl license-notice-report [command] [flags] ``` ## Usage Use the `endorctl license-notice-report generate` command to initiate report generation for a package version: ```bash theme={null} endorctl license-notice-report generate --namespace --package-version-uuid [flags] ``` ## Options The `endorctl license-notice-report generate` command uses the following flags: \- Flag: \`group-by-license\` Environment_Variable: \`ENDOR_LICENSE_NOTICE_REPORT_GROUP_BY_LICENSE\` Type: boolean Description: Group the report entries by license type. Set to \`false\` to group by dependency instead. Defaults to \`true\`. \- Flag: \`n\`, \`namespace\` Environment_Variable: \`ENDOR_NAMESPACE\` Type: string Description: Set the namespace of the project that contains the package version. Required. \- Flag: \`package-version-uuid\` Environment_Variable: \`ENDOR_LICENSE_NOTICE_REPORT_PACKAGE_VERSION_UUID\` Type: string Description: UUID of the package version to generate the notice report for. Required. \- Flag: \`report-type\` Environment_Variable: \`ENDOR_LICENSE_NOTICE_REPORT_REPORT_TYPE\` Type: string Description: Output format for the report (\`pdf\`, \`txt\`, \`html\`, or \`md\`). Default is \`pdf\`. See [Licenses](/inventory-insights/licenses/#generate-a-license-notice-report-for-a-project-beta) for more information. # recommend Source: https://docs.endorlabs.com/developers-api/cli/commands/recommend/index Use the recommend command to suggest dependency updates that address issues across your environment. The `endorctl recommend` command returns prioritized updates to fix findings across your tenant, projects, or packages. Each recommendation weighs the number of issues and complexity of an upgrade. ## Usage To recommend dependency updates across **all projects** in your namespace. ```shell theme={null} endorctl recommend dependency-upgrades ``` To recommend dependency updates across a **specific project** in your namespace: 1. Retrieve the UUID of your project. In the following example, we are retrieving the UUID of the project "[https://github.com/endorlabs/app-java-demo](https://github.com/endorlabs/app-java-demo)" and saving it as an environment variable. ```shell theme={null} UUID=$(endorctl api list -r Project --filter="meta.name matches https://github.com/endorlabs/app-java-demo" --field-mask=uuid | jq -r '.list.objects[].uuid') ``` 2. Run the `recommend dependency-upgrades` command. ```shell theme={null} endorctl recommend dependency-upgrades --project-uuid=$UUID ``` To recommend dependency updates across a **specific package** in your namespace: 1. Retrieve the UUID of your package version. The following example looks for a project with the name "[https://github.com/endorlabs/app-java-demo](https://github.com/endorlabs/app-java-demo)" and saves it as an environment variable. ```shell theme={null} UUID=$(endorctl api list -r PackageVersion --filter="meta.name==mvn://com.endor.webapp:endor-java-webapp-demo@4.0-SNAPSHOT AND context.type==CONTEXT_TYPE_MAIN" --field-mask=uuid | jq -r '.list.objects[].uuid') ``` 2. Run the `recommend dependency-upgrades` command. ```shell theme={null} endorctl recommend dependency-upgrades --package-version-uuid=$UUID ``` ## Options The following flags and environment variables are available for the `endorctl recommend` command. \- Flag: \`package-version-uuid\` Environment_Variable: \`ENDOR_RECOMMEND_PACKAGE_VERSION_UUID\` Type: string Description: Set the UUID of the package version for which you want to recommend dependency upgrades. \- Flag: \`project-uuid\` Environment_Variable: \`ENDOR_RECOMMEND_PROJECT_UUID\` Type: string Description: Set to the UUID of the project to recommend dependency upgrades for. \- Flag: \`persist\` Environment_Variable: \`ENDOR_RECOMMEND_PERSIST\` Type: boolean Description: Store the dependency upgrade recommendations to the database for later retrieval. # rule-set Source: https://docs.endorlabs.com/developers-api/cli/commands/rule-set/index Use the rule-set command to import SAST rules into Endor Labs. The `endorctl rule-set` command manages SAST rules in your Endor Labs namespace. ## Usage ```bash theme={null} endorctl rule-set [subcommand] [flags] ``` ## rule-set import The `endorctl rule-set import` command imports SAST rules from a local `.tar` or `.gz` archive into your Endor Labs namespace. Endor Labs imports every `.yaml` and `.yml` file in the archive and tags each rule with the version you specify. ```bash theme={null} endorctl rule-set import \ --namespace \ --file-path \ --rule-version ``` ### Options \- Flag: \`-n\`, \`--namespace\` Environment_Variable: \`ENDOR_NAMESPACE\` Type: string Description: Namespace to import the rules into. Required. \- Flag: \`--file-path\` Environment_Variable: \`ENDOR_RULE_SET_FILE_PATH\` Type: string Description: Path to the \`.tar\` or \`.gz\` archive containing the rule YAML files. Required. \- Flag: \`--rule-version\` Environment_Variable: \`ENDOR_RULE_SET_VERSION\` Type: string Description: Semantic version to apply to all rules in the archive, for example \`v1.0.0\`. The import fails if any rule at this version already exists. Required. \- Flag: \`--dry-run\` Environment_Variable: \`ENDOR_RULE_SET_DRY_RUN\` Type: boolean Description: Parse and validate the rule set without persisting any rules to the namespace. ### How to use rule-set command * Validate a rule archive before importing it. ```bash theme={null} endorctl rule-set import \ --namespace my-org \ --file-path ./my-rules.tar.gz \ --rule-version v1.2.0 \ --dry-run ``` * Import rules into a namespace. ```bash theme={null} endorctl rule-set import \ --namespace my-org \ --file-path ./my-rules.tar.gz \ --rule-version v1.2.0 ``` ``` ``` # export Source: https://docs.endorlabs.com/developers-api/cli/commands/sbom/export/index Use the sbom export command to export an SBOM for a software package from Endor Labs. The `sbom export` command allows you to export an SBOM for a specified package from Endor Labs. ## Usage Run the following command to export an SBOM for a specified package version named `go://github.com/Dreamacro/clash@main` in Endor Labs. ```shell theme={null} endorctl sbom export --package-version-name=go://github.com/Dreamacro/clash@main ``` Run the following command to export an SBOM for a specified package version given its UUID with the UUID of `653c625cd44ec559e19349dc` to a file called `sbom.json` ```shell theme={null} endorctl sbom export --package-version-uuid=653c625cd44ec559e19349dc >> sbom.json ``` ## Options \- Flag: \`component-type\` Environment_Variable: \`ENDOR_SBOM_COMPONENT_TYPE\` Type: string Description: Set the SBOM component type to \`application\`, or \`library\` (default \`application\`). \- Flag: \`output-format\` Environment_Variable: \`ENDOR_SBOM_OUTPUT_FORMAT\` Type: string Description: Set the SBOM format to \`json\` or \`xml\` for CycloneDX, and \`json\` or \`tag-value\` for SPDX (\`json\` is the default for both). \- Flag: \`package-version-name\` Environment_Variable: \`ENDOR_SBOM_PACKAGE_VERSION_NAME\` Type: string Description: Name of the package version for which you want to generate an SBOM. \- Flag: \`package-version-uuid\` Environment_Variable: \`ENDOR_SBOM_PACKAGE_VERSION_UUID\` Type: string Description: The UUID of the package version for which you want to generate an SBOM. \- Flag: \`spec-version\` Environment_Variable: \`ENDOR_SBOM_SPEC_VERSION\` Type: string Description: Set the specification version the document conforms to. CycloneDX accepts \`1.5\`, \`1.6\`, or \`1.7\`, and SPDX accepts \`2.3\`. Defaults to CycloneDX \`1.5\` or SPDX \`2.3\`. \- Flag: \`timeout\` Environment_Variable: \`ENDOR_SBOM_TIMEOUT\` Type: string Description: Set the timeout for the SBOM generation (default \`120s\`). Use the Go duration format, for example, 30s, 1m. \- Flag: \`with-vex\` Environment_Variable: \`ENDOR_SBOM_WITH_VEX\` Type: boolean Description: Generate the corresponding VEX document along with the SBOM. \- Flag: \`include-test-dependencies\` Environment_Variable: \`ENDOR_SBOM_INCLUDE_TEST_DEPENDENCIES\` Type: boolean Description: Include test, development, build, and optional dependencies in the SBOM, and in the VEX document when you use \`with-vex\` (default \`false\`). \- Flag: \`project-uuid\` Environment_Variable: \`ENDOR_SBOM_PROJECT_UUID\` Type: string Description: The UUID of the project for which you want to generate an SBOM. \- Flag: \`project-name\` Environment_Variable: \`ENDOR_SBOM_PROJECT_NAME\` Type: string Description: Name of the project for which you want to generate an SBOM. \- Flag: \`app-name\` Environment_Variable: \`ENDOR_SBOM_APP_NAME\` Type: string Description: Name of the application or the library. Required for multi-package SBOM export. \- Flag: \`package-version-uuids\` Environment_Variable: \`ENDOR_SBOM_PACKAGE_VERSION_UUIDS\` Type: string Description: The list of package version UUIDs to export an SBOM. # import Source: https://docs.endorlabs.com/developers-api/cli/commands/sbom/import/index Use the SBOM import command to import SBOMs to Endor Labs The `sbom import` command allows you to import SBOMs to Endor Labs to track your third party risk. ## Usage To import an SBOM to Endor Labs use the following command: > [tab] CycloneDX Format > > ```bash theme={null} > endorctl sbom import --sbom-file-path=/path/to/your/sbom.json > ``` > [tab] SPDX Format > > ```bash theme={null} > endorctl sbom import --format=spdx --sbom-file-path=/path/to/your/sbom.json > ``` ## Options \- Flag: \`format\` Environment_Variable: \`ENDOR_SBOM_FORMAT\` Type: string Description: Set the SBOM format (\`cyclonedx\`, or \`SPDX\`) (default \`cyclonedx\`) \- Flag: \`sbom-file-path\` Environment_Variable: \`ENDOR_SBOM_FILE_PATH\` Type: string Description: Set the file path to the SBOM to import. # sbom Source: https://docs.endorlabs.com/developers-api/cli/commands/sbom/index Use the sbom command to import or export SBOMs to or from Endor Labs The `endorctl sbom` command allows you to import or export SBOMs to or from Endor Labs. ## Usage The syntax of `endorctl sbom` is as follows: `endorctl sbom [subcommand] [flags]` The `endorctl sbom` command supports the following subcommands: * `endorctl sbom import` imports an SBOM into Endor Labs. * `endorctl sbom export` allows you to export an SBOM from Endor Labs. ## Options \- Flag: \`format\` Environment_Variable: \`ENDOR_SBOM_FORMAT\` Type: string Description: Set the SBOM format (\`cyclonedx\`, or \`spdx\`) (default\`cyclonedx\`). # scan Source: https://docs.endorlabs.com/developers-api/cli/commands/scan/index Use the scan command to perform endorctl scan. Use the `scan` command to perform scans against a repository. ## Usage Run the following command to perform a full scan including reachability analysis for the open source packages you build in a repository. ```bash theme={null} endorctl scan ``` If your project contains multiple programming languages, you can specify them as a comma-separated list using the `--languages` flag. ```bash theme={null} endorctl scan --languages= ``` Provide `` as a comma-separated list using the supported languages: `c#,go,java,javascript,kotlin,php,python,ruby,rust,scala,swift,typescript,swifturl`. To scan for leaked secrets and monitor all results in the checked out version of your repository, run the following command. ```bash theme={null} endorctl scan --secrets ``` Run the following command to perform a regular scan for leaked secrets including the dependencies. ```bash theme={null} endorctl scan --secrets --dependencies ``` Run the following command to scan for leaked secrets in all branches of your repository. ```bash theme={null} endorctl scan --secrets --git-logs ``` The above command performs a scan of the repository's Git logs using the following logic: * If endorctl scans the repository's Git log history for the first time, it performs a full scan. * endorctl also performs a full rescan if you change any of the rules in the namespace. * In all other cases, endorctl runs an incremental scan based on the last scan time. If the system invalidates detected secrets and you want to re-validate them, force a full rescan with the following command. ```bash theme={null} endorctl scan --secrets --git-logs --force-rescan ``` To scan for misconfigurations in a GitHub repository such as [https://github.com/endorlabs/app-java-demo](https://github.com/endorlabs/app-java-demo), run the following commands. ```bash theme={null} export ENDOR_SCAN_SCM_TOKEN= endorctl scan --github --repository-http-clone-url=https://github.com/endorlabs/app-java-demo ``` To run a scan as a test in a pull request without monitoring the version of your code over time, run the following command. ```bash theme={null} endorctl scan --pr ``` To scan workflow files under `.github/workflows` and discover Actions used in your pipelines, run the following command. ```bash theme={null} endorctl scan --ghactions ``` For CI integration options including the GitHub App and the Endor Labs GitHub Action, see [GitHub Actions scanning](/scan/github-actions). The command performs regular dependency analysis on your repository. It also discovers GitHub Actions workflows in your CI/CD pipeline and maps them as GitHub action dependencies in your package. To scan binaries and artifacts, run the following command. ```bash theme={null} endorctl scan --package --path --project-name ``` You must provide the path of your file using `--path` and specify a name for your project using `--project-name`. To scan and discover AI/LLM models in your repository, run the following command. ```bash theme={null} endorctl scan --ai-models --dependencies ``` To run a scan in dry run mode with local scanning and read-only access, run the following command. Dry run mode does not store scan results for monitoring and is best when used by developers running local scans. ```bash theme={null} endorctl scan --dependencies --dry-run ``` You can also use `--dry-run` with `--secrets`, `--sast`, or `--ai-sast` flags. When you use `--dry-run` with `--ai-sast`, you must also set `--diff-scope` to scope the scan to changed files. Do not use `--dry-run` with container scanning. ## Options The command `endorctl scan` uses the following flags and environment variables. ### AI model discovery flags \- Flag: \`ai-models\` Environment_Variable: \`ENDOR_SCAN_AI_MODELS\` Type: boolean Description: Scan source code repository and discover usage of OSS AI models. ### Bazel flags \- Flag: \`bazel-exclude-targets\` Environment_Variable: \`ENDOR_SCAN_BAZEL_EXCLUDE_TARGETS\` Type: comma-separated string Description: Set this variable to exclude a list of exact Bazel target labels from a provided Bazel query. Target patterns such as \`//...\`, \`:all\`, or \`:\*\` are not supported. \- Flag: \`bazel-include-targets\` Environment_Variable: \`ENDOR_SCAN_BAZEL_INCLUDE_TARGETS\` Type: comma-separated string Description: Set this variable to scan a list of exact Bazel target labels. endorctl scans only the specified list of targets. Target patterns such as \`//...\`, \`:all\`, or \`:\*\` are not supported. Use \`bazel-targets-query\` for pattern-based selection. If you do not specify \`bazel-include-targets\`, you must identify targets using \`bazel-targets-query\`. If you specify targets, endorctl ignores the results from \`bazel-targets-query\`. \- Flag: \`bazel-show-internal-targets\` Environment_Variable: \`ENDOR_SCAN_BAZEL_SHOW_INTERNAL_TARGETS\` Type: boolean Description: Show internal targets as py_library, java_library and go_library as dependencies. Use \`--use-bazel\` with this flag. \- Flag: \`bazel-targets-query\` Environment_Variable: \`ENDOR_SCAN_BAZEL_TARGETS_QUERY\` Type: string Description: Set this variable to query for a list of Bazel targets to include in a scan. \- Flag: \`bazel-vendor-manifest-path\` Environment_Variable: \`ENDOR_SCAN_BAZEL_VENDOR_MANIFEST_PATH\` Type: string Description: Set this variable to specify the path of the \`go.mod\` file if you use Bazel with Gazelle in vendored mode for Go projects. \- Flag: \`bazel-workspace-path\` Environment_Variable: \`ENDOR_SCAN_BAZEL_WORKSPACE_PATH\` Type: string Description: Set this variable to specify the path of the Bazel workspace. \- Flag: \`use-bazel\` Environment_Variable: \`ENDOR_SCAN_USE_BAZEL\` Type: boolean Description: Use Bazel to perform the endorctl scan. \- Flag: \`bazel-rc-path\` Environment_Variable: \`ENDOR_SCAN_BAZEL_RC_PATH\` Type: string Description: Specify custom paths for Bazel configuration files. Specify comma-separated paths relative to the repository root. If you provide multiple \`.bazelrc\` files that contain conflicting configuration options, the configuration in the last file listed takes precedence. See \[Bazel documentation]\(https\://bazel.build/run/bazelrc#bazelrc-file-locations) for details about \`.bazel.rc\` file locations. \- Flag: \`bazel-flags\` Environment_Variable: \`ENDOR_SCAN_BAZEL_FLAGS\` Type: string Description: Specify additional command-line flags to pass to Bazel when running a scan. Specify comma-separated key-value pairs in the format \`key=value\`. endorctl applies these flags to \`bazel build\`. \- Flag: \`use-bazel-aspects\` Environment_Variable: \`ENDOR_SCAN_USE_BAZEL_ASPECTS\` Type: boolean Description: Enable the Bazel Aspects Framework for the scan. Use with \`--use-bazel\`. ### Pull request (CI) flags \- Flag: \`enable-pr-comments\` Environment_Variable: \`ENDOR_SCAN_ENABLE_PR_COMMENTS\` Type: boolean Description: Publish new findings as review comments. Set together with \`--scm-pr-id\`, \`--pr\`, and \`--scm-token\` (for GitHub and GitLab). Do not use with \`--pr-baseline\` since endorctl determines the baseline from the merge target of the PR. Note: You can continue to use \`--github-pr-id\` flag, but Endor Labs will deprecate and remove this flag in the future. \- Flag: \`scm-pr-id\` Environment_Variable: \`ENDOR_SCAN_SCM_PR_ID\` Type: string Description: Set the PR or MR ID corresponding to the scan. You need to use this flag with \`--pr\` and \`--scm-token\`. Also set \`--enable-pr-comments\` to publish new findings as review comments on the pull or merge request. \- Flag: \`pr\` Environment_Variable: \`ENDOR_SCAN_PR\` Type: boolean Description: Set if this is a PR scan. PR scans are not used for reporting or monitoring. Treat them as point-in-time policy and finding tests. \- Flag: \`pr-baseline\` Environment_Variable: \`ENDOR_SCAN_PR_BASELINE\` Type: string Description: Set to the Git reference that you are merging to, such as your default branch. Action policies only flag issues that do not exist in the baseline so that developers are only alerted to issues on the current changes. For example, \`--pr-baseline=main\`. \- Flag: \`pr-incremental\` Environment_Variable: \`ENDOR_SCAN_PR_INCREMENTAL\` Type: boolean Description: Only scan packages with dependencies that have changed compared to the baseline scan. Set together with \`--pr-baseline\` or \`--enable-pr-comments\`. Combine with \`--quick-scan\` to skip dependency resolution for languages and packages the pull request does not affect. See \[Skip unaffected packages during incremental PR scans]\(/scan/pr-scans/run-pr-scans-with-endorctl#skip-unaffected-packages-during-incremental-pr-scans). \- Flag: \`scm-token\` Environment_Variable: \`ENDOR_SCAN_SCM_TOKEN\` Type: string Description: Set the token used to authenticate with the SCM. The token takes priority over installation tokens. \- Flag: \`dry-run\` Environment_Variable: \`ENDOR_SCAN_DRY_RUN\` Type: boolean Description: Run the scan in dry run mode. When enabled, Endor Labs does not store scan results and needs only read-only access. Use this flag only with SCA (dependencies), SAST, AI SAST, or secrets scanning. When used with \`--ai-sast\`, you must also set \`--diff-scope\` to scope the scan to changed files. ### GitHub configuration flags \- Flag: \`github\` Environment_Variable: \`ENDOR_SCAN_GITHUB\` Type: boolean Description: Fetch information from GitHub and generate findings for any GitHub misconfigurations (see also \[RSPM policies]\(/platform-administration/policies/finding-policies/managing-scm-configuration)). \- Flag: \`github-api-url\` Environment_Variable: \`GITHUB_API_URL\` Type: string Description: Set the GitHub API URL used for API requests to GitHub Enterprise Cloud or GitHub Enterprise Server. Use this flag for self-hosted source control systems such as GitHub Enterprise Server. (default \`https\://api.github.com/\`) \- Flag: \`github-ca-path\` Environment_Variable: \`GITHUB_CA_PATH\` Type: string Description: Set the path to the CA certificate used by GitHub Enterprise Server if your system does not trust it. \- Flag: \`scm-token\` Environment_Variable: \`ENDOR_SCAN_SCM_TOKEN\` Type: string Description: Set the token used to authenticate with the SCM. \- Flag: \`repository-http-clone-url\` Environment_Variable: \`ENDOR_SCAN_GITHUB_REPOSITORY_HTTP_CLONE_URL\` Type: string Description: Set the GitHub repository HTTP clone URL for \`--github\` scans. ### Call graph flags \- Flag: \`build\` Environment_Variable: \`ENDOR_SCAN_BUILD\` Type: boolean Description: Enable the scan to build the project if needed. \- Flag: \`call-graph-languages\` Environment_Variable: \`ENDOR_SCAN_CALLGRAPH_LANGUAGES\` Type: strings Description: Set programming languages for call graph generation. Supported languages are C#, Go, Java, JavaScript, Kotlin, Python, Rust, Scala, and TypeScript. By default, endorctl generates call graphs for all supported languages. \- Flag: \`disable-private-package-analysis\` Environment_Variable: \`ENDOR_SCAN_DISABLE_PRIVATE_PACKAGE_ANALYSIS\` Type: boolean Description: Disable the call graph analysis of private dependencies that are not part of the repository. \- Flag: \`quick-scan\` Environment_Variable: \`ENDOR_SCAN_QUICK_SCAN\` Type: boolean Description: Perform a quick scan without call graph generation. In incremental PR scans, a quick scan also skips dependency resolution for languages and packages that the pull request does not affect. See \[Skip unaffected packages during incremental PR scans]\(/scan/pr-scans/run-pr-scans-with-endorctl#skip-unaffected-packages-during-incremental-pr-scans). ### Policy flags \- Flag: \`exit-on-policy-warning\` Environment_Variable: \`ENDOR_SCAN_EXIT_ON_POLICY_WARNING\` Type: boolean Description: Return a non-zero exit code if there are policy violation warnings. ### Secrets scan flags \- Flag: \`force-rescan\` Environment_Variable: \`ENDOR_SCAN_FORCE_RESCAN\` Type: boolean Description: Force a full rescan of the historical Git logs for all branches in the repository. Use with \`--secrets\`. \- Flag: \`git-logs\` Environment_Variable: \`ENDOR_SCAN_GIT_LOGS\` Type: boolean Description: Audit the historical Git logs of the repository for all branches in the repository. Use with \`--secrets\`. \- Flag: \`local\` Environment_Variable: \`ENDOR_SCAN_LOCAL\` Type: boolean Description: Scan the local filesystem. Use with \`--secrets\`. \- Flag: \`start-commit\` Environment_Variable: \`ENDOR_SCAN_START_COMMIT\` Type: string Description: The start commit of the Git logs of the repository to start scanning from. Use with \`--secrets\` and \`--end-commit\`. \- Flag: \`end-commit\` Environment_Variable: \`ENDOR_SCAN_END_COMMIT\` Type: string Description: The end commit of the Git logs of the repository to end scanning at. Use with \`--secrets\` and \`--start-commit\`. \- Flag: \`pre-commit-checks\` Environment_Variable: \`ENDOR_SCAN_PRE_COMMIT_CHECKS\` Type: boolean Description: Perform Git pre-commit checks on the changeset about to commit. Use with \`--secrets\`. \- Flag: \`secrets\` Environment_Variable: \`ENDOR_SCAN_SECRETS\` Type: boolean Description: Scan source code repository and generate findings for leaked secrets. See also \`--git-logs\`, \`--pre-commit-checks\`, and \`--diff-scope\`. \- Flag: \`secret-rules-file\` Environment_Variable: \`ENDOR_SCAN_SECRET_RULES_FILE\` Type: string Description: Path to a YAML file of secret rules to use instead of the built-in rules for \`--pre-commit-checks\` or \`--local\` scans. Use with \`--secrets\`. Generate the file with \`endorctl api list -r SecretRule -o yaml --list-all\`. ### SAST scan flags \- Flag: \`sast\` Environment_Variable: \`ENDOR_SCAN_SAST\` Type: boolean Description: Scan for weaknesses in your source code based on the enabled rules and generate results based on the configured finding policies. See also \`--disable-code-snippet-storage\`. See \[SAST scan]\(/scan/sast/run-a-sast-scan) for more information. \- Flag: \`disable-code-snippet-storage\` Environment_Variable: \`ENDOR_SCAN_DISABLE_CODE_SNIPPET_STORAGE\` Type: boolean Description: Do not store or display the source code related to a finding. \- Flag: \`ai-sast\` Environment_Variable: \`ENDOR_SCAN_AI_SAST\` Type: boolean Description: Enable the AI SAST detection agent to identify security vulnerabilities beyond traditional rule-based detection. See \[AI SAST detection agent]\(/scan/ai-sast/detection-agent) for more information. Requires an Endor Code Pro license. \- Flag: \`ai-sast-rescan\` Environment_Variable: \`ENDOR_SCAN_AI_SAST_RESCAN\` Type: boolean Description: Run a full AI SAST detection scan instead of an incremental one, ignoring cached results. A full detection scan deletes stored findings that it does not detect again. See \[When rules take effect]\(/scan/ai-sast/ai-context#when-rules-take-effect). Use with \`--ai-sast\`. \- Flag: \`diff-scope\` Environment_Variable: \`ENDOR_SCAN_DIFF_SCOPE\` Type: string Description: Limit SAST, secrets, and AI SAST scans to changed files only. Set to \`local\` to scan files with local edits compared to \`HEAD\`, including staged, unstaged, and untracked changes. Set to \`baseline\` to scan files that differ between the current checkout and the repository's default branch. Set together with \`--sast\`, \`--secrets\`, or \`--ai-sast\`. Cannot be combined with PR scan flags or other scope-defining flags such as \`--pre-commit-checks\`, \`--local\`, \`--git-logs\`, or \`--force-rescan\`. Available in endorctl v1.7.1040 and later. See \[AI SAST diff scans]\(/scan/ai-sast#ai-sast-diff-scans) and \[Scan changed files only]\(/scan/secrets/scan-secrets#scan-changed-files-only). \- Flag: Not applicable Environment_Variable: \`ENDOR_SCAN_SEMGREP_VERBOSE\` Type: boolean Description: Enable verbose output for SAST scans to show detailed information about rule execution, file parsing status, and scan progress. \- Flag: Not applicable Environment_Variable: \`ENDOR_SCAN_SEMGREP_DEBUG\` Type: boolean Description: Enable debug output for SAST scans, which includes all verbose information plus additional debugging details to help troubleshoot scan issues. Do not use! Draft content. Development in progress. The following AI SAST flags do not appear in `endorctl scan --help`. Use them for AI SAST rollouts, benchmarking, and advanced configurations. \- Flag: \`ai-sast-include-test-files\` Environment_Variable: \`ENDOR_SCAN_AI_SAST_INCLUDE_TEST_FILES\` Type: boolean Description: Include test files in AI SAST indexing and scanning. By default, AI SAST skips test files to reduce noise and cost. Use with \`--ai-sast\`. \- Flag: \`ai-sast-llm-config-paths\` Environment_Variable: \`ENDOR_SCAN_AI_SAST_LLM_CONFIG_PATHS\` Type: string slice Description: Additional repo-relative paths to LLM configuration files such as \`CLAUDE.md\`, \`SKILL.md\`, or agent rules to index alongside the auto-discovered ones. Repeat the flag or pass a comma-separated list. Use with \`--ai-sast\`. ### Sandbox flags \- Flag: \`install-build-tools\` Environment_Variable: \`ENDOR_SCAN_INSTALL_BUILD_TOOLS\` Type: boolean Description: Install build tools in a self-contained sandbox. \- Flag: \`use-scan-profile\` Environment_Variable: \`ENDOR_SCAN_USE_SCAN_PROFILE\` Type: boolean Description: Use a scan profile to run a scan in a self-contained sandbox. ### Miscellaneous flags \- Flag: \`as-default-branch\` Environment_Variable: \`ENDOR_SCAN_AS_DEFAULT_BRANCH\` Type: boolean Description: Set this as the default branch. \- Flag: \`dependencies\` Environment_Variable: \`ENDOR_SCAN_DEPENDENCIES\` Type: boolean Description: Scan Git commits and generate findings for all dependencies. \- Flag: \`dry-run\` Environment_Variable: \`ENDOR_SCAN_DRY_RUN\` Type: boolean Description: Run the scan in dry run mode. When enabled, Endor Labs does not store scan results and needs only read-only access. Use this flag only with SCA (dependencies), SAST, AI SAST, or secrets scanning. When used with \`--ai-sast\`, you must also set \`--diff-scope\` to scope the scan to changed files. \- Flag: \`detached-ref-name\` Environment_Variable: \`ENDOR_SCAN_DETACHED_REF_NAME\` Type: string Description: Set the name of the Git reference to a user-provided name. For example, \`--detached-ref-name="\$CI_DEFAULT_BRANCH"\`. Use with CI environments that checkout commits, such as GitLab. \- Flag: \`exclude-path\` Environment_Variable: \`ENDOR_SCAN_EXCLUDE_PATH\` Type: string Description: Specify one or more file paths or directories to exclude from the scan using Glob style expressions. For example, \`--exclude-path="src/java/\*\*"\` excludes all files under \`src/java\`, including any subdirectories, while \`--exclude-path="src/java/\*"\` only excludes the files directly under \`src/java\`. Paths must be relative to the root of the repository. Use quotes to ensure that your shell does not expand wild cards. \- Flag: \`finding-tags\` Environment_Variable: \`ENDOR_SCAN_FINDING_TAGS\` Type: string Description: Specify a list of user-defined tags to add to findings for objects in this scan scope. Use in combination with options such as \`--include-path\` or \`--exclude-path\`. Use finding tags to search and filter findings later. \- Flag: \`ghactions\` Environment_Variable: \`ENDOR_SCAN_GHACTIONS\` Type: boolean Description: Scan and discover GitHub action workflows in your CI/CD pipeline. \- Flag: \`include-path\` Environment_Variable: \`ENDOR_SCAN_INCLUDE_PATH\` Type: string Description: Limit the scan to the specified file paths or directories using Glob style expressions. For example, \`--include-path="src/java/\*\*"\` scans all the files under \`src/java\`, including any subdirectories, while \`--include-path="src/java/\*"\` only includes the files directly under \`src/java\`. Paths must be relative to the root of the repository. Use quotes to ensure that your shell does not expand wild cards. \- Flag: \`l\`, \`languages\` Environment_Variable: \`ENDOR_SCAN_LANGUAGES\` Type: string Description: Set programming languages to scan. Used to limit scanning to specific languages. \

If your project contains multiple programming languages, you can specify them as a comma-separated list as: \`c#,go,java,javascript,kotlin,php,python,ruby,rust,scala,swift,typescript,swifturl\`. \

See \`segment-match-languages\` to scan C and C++ projects.\

\- Flag: \`o\`, \`output-type\` Environment_Variable: \`ENDOR_SCAN_SUMMARY_OUTPUT_TYPE\` Type: string Description: Set output format to \`json\`, \`yaml\`, \`table\`, \`summary\`, or \`table-verbose\`. Summary only displays policy violations (default: \`table\`). \- Flag: \`package\` Environment_Variable: \`ENDOR_SCAN_PACKAGE\` Type: boolean Description: Scan binaries and artifacts. You must provide the path of your file using \`--path\` and specify a name for your project using \`--project-name\` parameters. \- Flag: \`p\`, \`path\` Environment_Variable: \`ENDOR_SCAN_PATH\` Type: string Description: Set path to local repository to scan. For example, \`--path=/Users/endorlabs/github/myrepo\`. \- Flag: \`project-name\` Environment_Variable: \`ENDOR_SCAN_PROJECT_NAME\` Type: string Description: Give a name for the project while scanning binaries and artifacts. Use with the \`--package\` parameter. \- Flag: \`project-tags\` Environment_Variable: \`ENDOR_SCAN_PROJECT_TAGS\` Type: string Description: Specify a list of user-defined tags to add to this project. \- Flag: \`registries\` Environment_Variable: \`ENDOR_SCAN_REGISTRIES\` Type: string Description: Registries to use along with public or namespace registries. Format - \`\\"user:password\@ecosystem://registry#priority\\"\`. \- Flag: \`s\`, \`sarif-file\` Environment_Variable: \`ENDOR_SCAN_SUMMARY_SARIF_FILE\` Type: string Description: Set the file path for saving scan results in SARIF format. \

SARIF output includes vulnerability aliases, such as CVE IDs, GHSA IDs, and other OSV identifiers, for SCA findings. \- Flag: \`segment-match-languages\` Environment_Variable: \`ENDOR_SCAN_SEGMENT_MATCH_LANGUAGES\` Type: string Description: Set programming languages to scan using segment-based analysis and to scan C/C++. Specify \`--segment-match-languages=c\` to scan C and C++. Using this flag clears the default scan languages. You can specify additional languages to scan using the \`--languages\` flag. \- Flag: \`tags\` Environment_Variable: \`ENDOR_SCAN_TAGS\` Type: string Description: Specify a list of user-defined tags to add to this scan. Use tags to search and filter scans later. \- Flag: \`use-local-repo-cache\` Environment_Variable: \`ENDOR_SCAN_USE_LOCAL_CACHE\` Type: boolean Description: Use the local cache for dependency resolution. \*Make sure that \`mvn install -U\` is successful and include \[\`mvn dependency\`]\(https\://mvnrepository.com/artifact/org.apache.maven.plugins/maven-dependency-plugin) and \[\`mvn help\`]\(https\://mvnrepository.com/artifact/org.apache.maven.plugins/maven-help-plugin) plugins in the local m2 cache. For Gradle complete \`gradle assemble --refresh-dependencies\`.\* \- Flag: \`uuid\` Environment_Variable: \`ENDOR_SCAN_UUID\` Type: string Description: Scan the specified project UUID. \- Flag: Not applicable Environment_Variable: \`ENDOR_SCAN_EMBEDDINGS\` Type: boolean Description: Controls the use of code segment embeddings during a scan. Set to \`false\` to turn off embeddings for a specific scan, or \`true\` to turn them on. This setting overrides the system-wide configuration. See \[Enable code segment embeddings]\(/scan/sca/c#enable-code-segment-embeddings) for more information. \- Flag: Not applicable Environment_Variable: \`ENDOR_SCAN_ENABLE_CONAN\` Type: boolean Description: Enable Conan package manager scanning. Conan scanning is disabled by default, and there is no \`endorctl\` flag to enable it. See \[Scan C/C++ projects with Conan]\(/scan/sca/c#scan-c/c++-projects-with-conan) for more information. # artifact sign Source: https://docs.endorlabs.com/developers-api/cli/commands/sign-artifacts/index Use the `artifact sign` command to sign container images and build artifacts in the CI pipeline. Use the `artifact [ sign \| verify ]` command to sign and verify container images and other build artifacts. ## Usage To sign an artifact, use the following command. ```bash theme={null} endorctl artifact sign --name --source-repository-ref --certificate-oidc-issuer ``` To verify a signed artifact, use the following command. ```bash theme={null} endorctl verify --name --certificate-oidc-issuer ` ``` To revoke a signature, use the following command. ```bash theme={null} endorctl artifact revoke-signature --name --source-repository-ref ``` ## Options You can use the following flags and environment variables: For `endorctl artifact sign` \- Flag: \`name\` Environment_Variable: \`ENDOR_ARTIFACT_NAME\` Type: string Description: Name of the artifact. For example, \`ghcr.io/org/image\@sha256:digest\`. \- Flag: \`build-config-digest\` Environment_Variable: \`ENDOR_ARTIFACT_BUILD_CONFIG_DIGEST\` Type: string Description: Specific version of the top-level build instructions. For example, \`workflow sha\`. \- Flag: \`build-config-name\` Environment_Variable: \`ENDOR_ARTIFACT_BUILD_CONFIG_NAME\` Type: string Description: Name of the top-level build instructions. For example, \`workflow\`. \- Flag: \`certificate-oidc-issuer\` Environment_Variable: \`ENDOR_ARTIFACT_CERTIFICATE_OIDC_ISSUER\` Type: string Description: OIDC issuer name from a valid certificate. \- Flag: \`certificate-identity\` Environment_Variable: \`ENDOR_ARTIFACT_CERTIFICATE_IDENTITY\` Type: string Description: Identity name from a valid certificate. \- Flag: \`runner-environment\` Environment_Variable: \`ENDOR_ARTIFACT_RUNNER_ENVIRONMENT\` Type: string Description: Name of the hosting platform or self-hosted infrastructure. For example, \`self-hosted\`. \- Flag: \`source-repository\` Environment_Variable: \`ENDOR_ARTIFACT_SOURCE_REPOSITORY\` Type: string Description: Source repository for the build. For example, \`org/repo\`. \- Flag: \`source-repository-digest\` Environment_Variable: \`ENDOR_ARTIFACT_SOURCE_REPOSITORY_DIGEST\` Type: string Description: Specific version of the source code for the build. For example, \`commit sha\`. \- Flag: \`source-repository-owner\` Environment_Variable: \`ENDOR_ARTIFACT_SOURCE_REPOSITORY_OWNER\` Type: string Description: Owner of the source repository for the build. For example, \`my-org\`. \- Flag: \`source-repository-ref\` (mandatory) Environment_Variable: \`ENDOR_ARTIFACT_SOURCE_REPOSITORY_REF\` Type: string Description: Source repository ref for the build run. For `endorctl artifact verify` \- Flag: \`name \\` Environment_Variable: \`ENDOR_ARTIFACT_NAME\` Type: string Description: The name of the artifact to verify. \- Flag: \`certificate-oidc-issuer \\` Environment_Variable: \`ENDOR_ARTIFACT_CERTIFICATE_OIDC_ISSUER\` Type: string Description: OIDC certificate issuer used to verify the artifact. For `endorctl artifact [revoke-signature]` \- Flag: \`name\` Environment_Variable: \`ENDOR_ARTIFACT_NAME\` Type: string Description: The name of the artifact whose signature you want to revoke. \- Flag: \`source-repository-ref\` (mandatory) Environment_Variable: \`ENDOR_ARTIFACT_SOURCE_REPOSITORY_REF\` Type: string Description: Reference to the source repository of the artifact. # sync-org Source: https://docs.endorlabs.com/developers-api/cli/commands/sync-org/index Use the sync-org command to sync all projects in a GitHub organization to Endor Labs. Use the `endorctl sync-org` command to create projects for all the unscanned repositories in your GitHub organization. This does not automatically scan the projects. It creates projects in Endor Labs, measures scan coverage across a GitHub organization, and gives you visibility into your source control repository. ## Usage To sync your GitHub organization to Endor Labs: * Export a GitHub token that can read all projects in your GitHub organization. To run the sync-org command you need at least `repo` and `read:org permissions`. ```bash theme={null} export GITHUB_TOKEN= ``` * Run the sync-org command. By default, the command skips archived repositories. ```bash theme={null} endorctl sync-org --name=endorlabs ``` > [!NOTE] > > The `sync-org` command deletes projects in Endor Labs when you archive their linked repositories on GitHub. Use the `--archived` flag to include archived repositories and prevent Endor Labs from deleting them. ## Options The `endorctl sync-org` command uses the following flags and environment variables: \- Flag: \`archived\` Environment_Variable: \`ENDOR_SYNC_ORG_ARCHIVED\` Type: boolean Description: Include archived repositories and prevent Endor Labs from deleting them. \- Flag: \`github-api-url\` Environment_Variable: \`ENDOR_SYNC_ORG_GITHUB_API_URL\` Type: string Description: Set the URL for API requests to GitHub Enterprise Cloud or GitHub Enterprise Server (default: \`https\://api.github.com/\`). \- Flag: \`name\` Environment_Variable: \`ENDOR_SYNC_ORG_NAME\` Type: string Description: Set the full name of the organization. For example: \`endorlabs\`. \- Flag: \`platform-source\` Environment_Variable: \`ENDOR_SYNC_ORG_PLATFORM_SOURCE\` Type: string Description: Set the platform source (default: \`github\`). \- Flag: \`uuid\` Environment_Variable: \`ENDOR_SYNC_ORG_UUID\` Type: string Description: Set the UUID of the GitHub installation. # toolchains Source: https://docs.endorlabs.com/developers-api/cli/commands/toolchains/index Use the toolchains command to detect tools in your repository or create a scan profile. Use the `endorctl toolchains` command to detect the current tools used in your repository or create a scan profile. > [!NOTE] > > Toolchain commands are not supported on Windows. ## Usage * Use the `help` argument to see the options associated with toolchains command. ```bash theme={null} endorctl toolchains --help ``` ### Detect tools in your repository Use `endorctl detect` to identify the tools currently used in your repository. The following arguments can help you refine your scan: * Use the `-p` argument to define the local filesystem path to the repository you want to scan. ```bash theme={null} endorctl toolchains detect -p ``` * Use the `--exclude-path` argument to exclude specific file paths or directories. ```bash theme={null} endorctl toolchains detect -p --exclude-path 'python/**' ``` * Use the `--include-path` argument to limit the scan to a specific file path or directory. ```bash theme={null} endorctl toolchains detect -p --include-path 'development/**' ``` ### Create a scan profile Use `endorctl generate` to create a scan profile. See [Configure build tools](/scan/scan-profiles/build-tools) for more details. * Use the `profile-name` argument to assign a name to your profile. This command creates a `.endorctl/scanprofile.yaml` file with the tools in the repository. ```bash theme={null} endorctl toolchains generate -p --profile-name ``` * Use the `output-type` argument to specify the format of the output file. ```bash theme={null} endorctl toolchains generate -p --profile-name --output-type ``` * Use the `--output-path` argument to set the output file location. ```bash theme={null} endorctl toolchains generate -p --profile-name --output-type json --output-path ``` * Use the `--create-profile` argument to create and save the scan profile using the specified options. ```bash theme={null} endorctl toolchains generate -p --profile-name --create-profile ``` Do not use! Draft content. Development in progress. **Detect toolchains in your repository and generate a Dockerfile** Use `endorctl toolchains docker` to auto detect toolchains and build tools in your repository and generate a Dockerfile pre-configured with endorctl and those tools for scanning your project with Endor Labs. This gives you a working scan environment quickly without manually identifying and installing language toolchains. * Navigate to the root of your repository and run the following command to generate a Dockerfile in the current directory. ```bash theme={null} endorctl toolchains docker ``` * Use the `-p` argument to specify the repository path to scan, and the `-o` argument to set where the Dockerfile is written. ```bash theme={null} endorctl toolchains docker -p -o ``` * Use the `-l` or `--languages` argument to limit auto-detection to specific languages. ```bash theme={null} endorctl toolchains docker -p -l -o ``` * Use the `--include-path` argument to limit toolchain auto detection to specific file paths or directories. The following example limits detection to the `development/` directory and its contents. ```bash theme={null} endorctl toolchains docker -p --include-path 'development/**' -o ``` * Use the `--exclude-path` argument to exclude specific paths from toolchain auto detection. The following example excludes the `python/` directory from auto detection. ```bash theme={null} endorctl toolchains docker -p --exclude-path 'python/**' -o ``` ## Options The `endorctl toolchains` command uses the following flags and environment variables. \- Flag: \`p\`, \`path\` Environment_Variable: \`ENDOR_TOOLCHAINS_PATH\` Type: string Description: Set the path on the local filesystem to the repository to scan. Default is \`.\`. \- Flag: \`arch\` Environment_Variable: \`ENDOR_TOOLCHAINS_ARCH\` Type: string Description: Set the toolchain architecture (\`amd64\` or \`arm64\`). \- Flag: \`os\` Environment_Variable: \`ENDOR_TOOLCHAINS_OS\` Type: string Description: Set the toolchain operating system (\`linux\` or \`darwin\`). \- Flag: \`exclude-path\` Environment_Variable: \`ENDOR_TOOLCHAINS_EXCLUDE_PATH\` Type: string Description: Specify one or more file paths or directories to exclude from the scan using Glob style expressions. For example, \`src/java/\*\*\` excludes all files under src/java. Paths must be relative to the root of the repository. Use quotes to ensure that your shell does not expand wild cards. \- Flag: \`include-path\` Environment_Variable: \`ENDOR_TOOLCHAINS_INCLUDE_PATH\` Type: string Description: Limit the scan to the specified file paths or directories using Glob style expressions. For example, \`src/java/\*\*\` includes all files under src/java. Paths must be relative to the root of the repository. Use quotes to ensure that your shell does not expand wild cards. \- Flag: \`o\`, \`output-path\` Environment_Variable: \`ENDOR_TOOLCHAINS_OUTPUT_PATH\` Type: string Description: Set the output path for the generated scan profile. Used with \`endorctl toolchains generate\`. Do not use! Draft content. Development in progress. * Flag: `o`, `output-path` Environment_Variable: `ENDOR_TOOLCHAINS_DOCKER_OUTPUT_PATH` Type: string Description: Set the output path for the generated Dockerfile. Default is `.`. Used with `endorctl toolchains docker`. * Flag: `l`, `languages` Environment_Variable: `ENDOR_TOOLCHAINS_LANGUAGES` Type: string Description: Limit toolchain auto detection to specific languages. Use with `endorctl toolchains docker`. # ignore Source: https://docs.endorlabs.com/developers-api/cli/commands/validate/ignore/index Validate a yaml ignore file. The `endorctl validate ignore` command validates that an ignore file follows the yaml schema and flags duplicates or invalid entries. ## Usage The syntax of the `endorctl validate ignore` command is: ```bash theme={null} endorctl validate ignore [flags] ``` ### Flags and variables The `endorctl validate ignore` command uses the following flags and environment variables: \- Flag: \`path\` Environment_Variable: \`ENDOR_VALIDATE_IGNORE_PATH\` Type: string Description: Path to the ignore file to validate (default: \`.endorignore.yaml\`). ### Example usage Validate an ignore file: ```shell theme={null} endorctl validate ignore --path .customignore.yaml ``` ### Example output ```shell theme={null} ERROR invalid-args: Duplicate ignore entry for 'Unmaintained Dependency org.webjars.bowergithub.webcomponents:shadycss@1.9.1': endorlabs/app-java-demo-2 ERROR invalid-args: Duplicate ignore entry for 'Unmaintained Dependency org.webjars.bowergithub.webcomponents:shadycss@1.9.1': endorlabs/app-java-demo-3 An invalid argument was provided. details: 2 errors detected ``` # validate Source: https://docs.endorlabs.com/developers-api/cli/commands/validate/index Use the validate command to validate policies and ignore files The `endorctl validate` command provides validation utilities for policy and ignore files. ## Usage The syntax of `endorctl validate` is: `endorctl validate [command]` The `endorctl validate` command supports the following subcommands: * `endorctl validate ignore` validates ignore file syntax and entries. * `endorctl validate policy` validates policies against project data. # policy Source: https://docs.endorlabs.com/developers-api/cli/commands/validate/policy/index Use this command to validate policies. ## Usage Use the `endorctl validate policy` command to validate one or more policies against data from one or more projects. If the policy is valid, the command returns all matches for the given projects, in the requested format, with the corresponding exit code. The syntax of the `endorctl validate policy` command is: ```bash theme={null} endorctl validate policy [policies] [flags] ``` ### Flags and variables The `endorctl validate policy` command uses the following flags and environment variables: \- Flag: \`all-releases\` Environment_Variable: \`ENDOR_VALIDATE_POLICY_ALL_RELEASES\` Type: boolean Description: Load data from all official releases of the project. \- Flag: \`filter\` Environment_Variable: \`ENDOR_VALIDATE_POLICY_PROJECT_FILTER\` Type: string Description: Filter projects to load data from. For example, \`"meta.tags contains sanity"\`. \- Flag: \`input\` Environment_Variable: \`ENDOR_VALIDATE_POLICY_INPUT_FILE_PATH\` Type: json Description: Path to a json file containing the input parameter values, if applicable. Input parameters are sometimes used for policy templates. \- Flag: \`output-type\` Environment_Variable: \`ENDOR_VALIDATE_POLICY_SUMMARY_OUTPUT_TYPE\` Type: string Description: Set output format (\`json\`, \`yaml\`, or \`table\`) (default \`table\`). \- Flag: \`policy\` Environment_Variable: \`ENDOR_VALIDATE_POLICY_FILE_PATH\` Type: string Description: Path to a file containing the policies to validate. Supported formats: Text (plain Rego rules), json (one or more policies), or yaml (one or more policies or policy templates). \- Flag: \`policy-uuid\` Environment_Variable: \`ENDOR_VALIDATE_POLICY_UUID\` Type: string Description: UUIDs of policies to validate. \- Flag: \`pr-baseline\` Environment_Variable: \`ENDOR_VALIDATE_POLICY_PR_BASELINE\` Type: string Description: Name of the baseline version from which to load data. For example, \`main\`. \- Flag: \`pr-uuid\` Environment_Variable: \`ENDOR_VALIDATE_POLICY_PR_UUID\` Type: string Description: PR scan from which to load data. \- Flag: \`query\` Environment_Variable: \`ENDOR_VALIDATE_POLICY_QUERY_STATEMENTS\` Type: string Description: Query statements for this policy (for example, \`data.packagename.match_finding\`). This option is only needed for plain text Rego rules. \- Flag: \`resource-kinds\` Environment_Variable: \`ENDOR_VALIDATE_POLICY_RESOURCE_KINDS\` Type: comma-separated string Description: Resource kinds required by this policy (for example, \`PackageVersion,Metric\`). This option is only needed for plain text Rego rules. \- Flag: \`uuid\` Environment_Variable: \`ENDOR_VALIDATE_POLICY_PROJECT_UUID\` Type: string Description: UUID of the project from which to load data. #### Specify one or more policies Use one of the following formats to specify one or more policies: \- Input_format: Plain text Rego Description: Provide the file path to a file containing just the Rego rules. Provide the query statement as a separate parameter. For example, \`endorctl validate policy --policy policy.txt --query data.example.match_package_version_score\`. \- Input_format: json Description: Provide the file path to a json file containing one or more \[Policy]\(/api-reference/policyservice/listpolicies) objects (see \`Policy\`, \`Policies\`, and \`ListPoliciesResponse\`). For example, \`endorctl validate policy --policy policy.json\`. \- Input_format: yaml Description: Provide the file path to a yaml file containing one or more policy or policy template definitions (see \`Policies\` and \`PolicyTemplates\`). For example, \`endorctl validate policy --policy policy.yaml\`. \- Input_format: UUID Description: Provide one or more UUIDs of existing \[Policy]\(/api-reference/policyservice/listpolicies) objects. For example, \`endorctl validate policy --policy-uuid 6418dc7a55afcfb7b0d0e025\`. #### Specify a project or a project filter Use one of the following formats to specify one or more projects from which to load data: \- Input_format: Filter Description: Load data from all projects matching a given \[filter]\(/developers-api/rest-api/using-the-rest-api/filters). For example, \`endorctl validate policy --policy policy.rego --query data.example.match_package_version_score --filter "meta.tags contains release"\`. \- Input_format: UUID Description: Provide the UUID of the project from which to load data. For example, \`endorctl validate policy --policy-uuid 6418dc7a55afcfb7b0d0e025 --uuid 6699c827cd89accb3a017536\`. \- Input_format: PR UUID Description: Provide the UUID of a PR from which to load data. Add the baseline version name to match only new findings. For example, \`endorctl validate policy --policy-uuid 6418dc7a55afcfb7b0d0e025 --uuid 6699c827cd89accb3a017536 --pr-uuid 43064105-1fd7-42fe-a380-bd5e36657d39 --pr-baseline main\`. #### Specify output format As with the other `endorctl` commands, you can specify if you prefer the output as a `table`, or in `json` or `yaml` format. If the output format is `json` or `yaml`, the matching findings appear under `"matching_findings"` and the results for all other resource kinds appear under `"matching_resources"`. For example, `endorctl validate policy --policy-uuid 6418dc7a55afcfb7b0d0e025 --uuid 6699c827cd89accb3a017536 --output-type json`. #### Exit Codes If the policy is valid and there are no matches the command returns 0. The following table lists the non-zero exit codes returned by the `endorctl validate policy` command: \- Value: 3 Exit_Code_Name: ENDORCTL_RC_INVALID_ARGS Description: The command received an invalid argument. \- Value: 18 Exit_Code_Name: ENDORCTL_RC_POLICY_ERROR Description: There was an error evaluating one or more policies. See log for details. \- Value: 128 Exit_Code_Name: ENDORCTL_RC_POLICY_VIOLATION Description: One or more policies had matching findings for the given projects. For a complete list of endorctl exit codes, see [endorctl CLI exit codes](/best-practices/troubleshooting/endorctl-exitcodes). ### Example Below is an example on how to verify that a Rego policy is correctly formatted. 1. First, define a Rego policy. Let's take the example policy below that searches for dependencies with an Endor Labs overall score of less than 7. You can save this to a file called "test_policy.rego". ```yaml theme={null} package example match_package_version_score[result] { some i data.resources.Metric[i].meta.name == "package_version_scorecard" data.resources.Metric[i].meta.parent_kind == "PackageVersion" data.resources.Metric[i].meta.parent_uuid == data.resources.PackageVersion[_].uuid score := data.resources.Metric[i].spec.metric_values.scorecard.score_card.overall_score score < 7 result = { "Endor" : { "PackageVersion" : data.resources.Metric[i].meta.parent_uuid }, "Score" : sprintf("%v", [score]) } } ``` 2. Next, validate that the policy is correctly formatted. ```shell theme={null} endorctl validate policy \ --policy test_policy.rego \ --query data.example.match_package_version_score ``` 3. Add a project UUID to validate the policy against real data. ```shell theme={null} endorctl validate policy \ --policy test_policy.rego \ --query data.example.match_package_version_score \ --uuid $PROJECT_UUID \ --output-type json > output.json ``` 4. Inspect the policy output. ```json theme={null} { "matching_resources": { "6553132357b462874261f054": { "Policy 1": { "PackageVersion": [ { "resource_name": "pypi://astunparse@1.6.3", "resource_uuid": "63f599e177cf1f3d7f286ea1", "result": { "None": [ { "Score": "6" } ] } }, ``` ### Troubleshooting * Set `--output-type` to `json` or `yaml` for formatted output * Add the `--verbose` flag for detailed output * Set `--log-level debug` for more information # Global flags and environment variables Source: https://docs.endorlabs.com/developers-api/cli/environment-variables/index Use global flags and environment variables to customize and configure endorctl. Includes an interactive wizard that generates export commands for your shell. Every command-line flag has a corresponding environment variable that you can set instead of the flag, either directly in your environment or in a dedicated configuration file. See `config-path` description in [Global flags](#global-flags) and [Set environment variables](#set-endorctl-environment-variables) for details. To set a command-line flag on the endorctl scan command you can specify the flag with a leading `--` for full flag names or a leading `-` for short flag aliases. If applicable, place input arguments after the flag and separate them with either a blank space or a `=` character. For example, to set the `output-type` specify `--output-type json` or `-o=json`. If the input argument is a list, use a `,` character to separate list elements, for example `--languages=go,python`. ## Global flags The following global flags apply to any `endorctl` command. Each flag has a corresponding environment variable that you can use in place of the flag. \- Flag: \`api\` Environment_Variable: \`ENDOR_API\` Type: string Description: Set the API URL for the Endor Labs Application (default \`https\://api.endorlabs.com\`). For EU tenants, set to \`https\://api.eu.endorlabs.com\`. \- Flag: \`api-key\` Environment_Variable: \`ENDOR_API_CREDENTIALS_KEY\` Type: string Description: Set the API key used to authenticate with Endor Labs. \- Flag: \`api-secret\` Environment_Variable: \`ENDOR_API_CREDENTIALS_SECRET\` Type: string Description: Set the secret corresponding to the API key used to authenticate with Endor Labs. \- Flag: \`aws-role-arn\` Environment_Variable: \`ENDOR_AWS_CREDENTIALS_ROLE_ARN\` Type: string Description: Set the target role ARN for AWS based authentication. Set this flag to enable AWS authentication. See our \[AWS Keyless Authentication Docs]\(/setup-deployment/ci-cd/keyless-authentication) for details. \- Flag: \`bypass-host-check\` Environment_Variable: \`ENDOR_BYPASS_HOST_CHECK\` Type: boolean Description: Bypass the check that verifies that the host machine is correctly set up to use endorctl. \- Flag: \`config-path\` Environment_Variable: \`ENDOR_CONFIG_PATH\` Type: string Description: Set the local file system path to the Endor Labs config directory containing your Endor Labs environment variables. By default, set to \`\$HOME/.endorctl/config.yaml\`. \- Flag: \`enable-azure-managed-identity\` Environment_Variable: \`ENDOR_AZURE_CREDENTIALS_MANAGED_IDENTITY_ENABLE\` Type: boolean Description: Enable keyless authentication using Azure VM managed identity system tokens. \- Flag: \`enable-github-action-token\` Environment_Variable: \`ENDOR_GITHUB_ACTION_TOKEN_ENABLE\` Type: boolean Description: Enable keyless authentication using GitHub Action OIDC tokens. See the \[GitHub documentation on configuring OpenID Connect in cloud providers]\(https\://docs.github.com/en/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-cloud-providers) for details. \- Flag: \`gcp-service-account\` Environment_Variable: \`ENDOR_GCP_CREDENTIALS_SERVICE_ACCOUNT\` Type: string Description: Set the target service account for GCP based authentication. Set this flag to enable GCP authentication. \- Flag: \`log-level\` Environment_Variable: \`ENDOR_LOG_LEVEL\` Type: string Description: Set the log level. Set to \`debug\` for debug logs. See also the \`--verbose\` flag. \- Flag: \`namespace\` Environment_Variable: \`ENDOR_NAMESPACE\` Type: string Description: Set to the namespace of the project that you are working with. \- Flag: \`token\` Environment_Variable: \`ENDOR_TOKEN\` Type: string Description: Set the authentication token used to authenticate with Endor Labs. \- Flag: \`verbose\` Environment_Variable: \`ENDOR_LOG_VERBOSE\` Type: boolean Description: Enable verbose logging. \- Flag: \`version\` Environment_Variable: Not applicable Description: Display the \`endorctl\` client version. > [!NOTE] > > If you use Endor Labs with an EU tenant, use `https://api.eu.endorlabs.com` instead of `https://api.endorlabs.com`. ## Environment variables that affect scan behavior The following environment variables configure scan behavior. They do not have corresponding command-line flags. Set them in your environment, in the scan profile, or in the [config file](#set-endorctl-environment-variables) before running `endorctl`. You can set them in a scan profile with `additional_environment_variables` so they apply automatically to every scan that uses that profile. See [Configure automated scan parameters](/scan/scan-profiles/build-tools#configure-automated-scan-parameters) for details. \- Environment_Variable: \`ENDOR_GRADLE_ADDITIONAL_PARAMETERS\` Type: Comma-separated string with key-value pairs Description: Set additional Gradle properties for dependency resolution in monitoring scans. endorctl adds parameters to \`gradle.properties\`. For example \`ENDOR_GRADLE_ADDITIONAL_PARAMETERS=org.gradle.jvmargs=-Xmx4096m,org.gradle.caching=true\`. \- Environment_Variable: \`ENDOR_JS_ENABLE_TSSERVER\` Type: boolean Description: Set to \`true\` to view call graphs for JavaScript/TypeScript projects. \- Environment_Variable: \`ENDOR_JS_PACKAGE_MANAGER\` Type: string Description: Set to \`npm\`, \`yarn\`, \`pnpm\`, or \`lerna\` to override auto detection and force \`endorctl\` to use a specific JavaScript package manager. \- Environment_Variable: \`ENDOR_JS_TSSERVER_TIMEOUT\` Type: integer (default:15) Description: Set the timeout in seconds for \`tsserver\` responses when generating JavaScript/TypeScript call graphs. The default timeout is 15 seconds. Increase this value if call graph generation times out for large or complex projects. \- Environment_Variable: \`ENDOR_MAVEN_ADDITIONAL_PARAMETERS\` Type: Comma-separated string Description: Set additional JVM options for Maven dependency resolution in monitoring scans. endorctl appends parameters to \`MAVEN_OPTS\`. \

For example \`ENDOR_MAVEN_ADDITIONAL_PARAMETERS=-Xmx4096m,-DskipTests=true\`. \- Environment_Variable: \`ENDOR_MVN_USE_WRAPPER\` Type: boolean (default: unset) Description: Set to \`true\` to prefer the Maven wrapper in your project root, or \`false\` to always run the \`mvn\` installation on your \`PATH\`. A \`true\` value still falls back to \`mvn\` when the wrapper is missing or is not executable. Setting either value turns off Maven toolchain selection, so a Maven version that your scan profile provisions no longer applies. When unset, Endor Labs prefers the wrapper and keeps toolchain selection. See \[Use the Maven wrapper]\(/scan/sca/java#use-the-maven-wrapper). \- Environment_Variable: \`ENDOR_SCAN_AI_SAST_REFRESH\` Type: boolean (default: true) Description: Set to \`false\` to stop re-evaluating stored AI SAST findings during scans of the default branch. See \[Refresh of findings]\(/scan/ai-sast/detection-agent#refresh-of-findings). \- Environment_Variable: \`ENDOR_SCAN_AI_SAST_REFRESH_INTERVAL\` Type: duration (default: 720h) Description: Set how long a stored AI SAST finding can go without a re-evaluation, for example \`168h\`. Code or guidance changes trigger a re-evaluation regardless of this interval. Has no effect when \`ENDOR_SCAN_AI_SAST_REFRESH\` is \`false\`. \- Environment_Variable: \`ENDOR_SCAN_ENABLE_PRECOMPUTED_CALLGRAPHS\` Type: boolean Description: Enable pre-computed reachability analysis to analyze your application based on analysis of how your direct dependencies interact with the software they rely on. This provides faster analysis and serves as a fallback when traditional reachability analysis fails. Supported all languages that support reachability except for Go and Ruby. \- Environment_Variable: \`ENDOR_SCAN_GIT_LFS\` Type: boolean Description: Set to \`true\` to fetch and scan Git LFS content when Endor Labs clones the repository. You can also configure it in a scan profile under \*\*additional_environment_variables\*\*. \- Environment_Variable: \`ENDOR_SCAN_GO_VERSION\` Type: string Description: Set the Go version used for Go standard library vulnerability scanning. See \[Go standard library vulnerability scanning]\(/scan/sca/golang#go-standard-library-vulnerability-scanning). \- Environment_Variable: \`ENDOR_SCAN_INCREMENTAL_DEP_RES\` Type: boolean Description: Set to \`false\` to turn off package-level dependency resolution skipping in incremental PR scans. Endor Labs enables this skipping by default for JVM, JavaScript, Python, Go, .NET, Swift, Ruby, PHP, and Rust projects when you set \`--pr-incremental\` and \`--quick-scan\`. See \[Skip unaffected packages during incremental PR scans]\(/scan/pr-scans/run-pr-scans-with-endorctl#skip-unaffected-packages-during-incremental-pr-scans) for the endorctl version per language or ecosystem. \- Environment_Variable: \`ENDOR_SCAN_MAVEN_PREPOP_CACHE\` Type: boolean Description: Enable pre-population of Maven local cache for large monorepos to speed up dependency resolution by running \`mvn dependency:collect\` in parallel before scanning modules. Recommended for projects with 100 or more \`pom.xml\` files and applies only to GitHub App or other hosted scans. \- Environment_Variable: \`ENDOR_SCAN_REMEDIATION_ACTION\` Type: boolean Description: Runs remediation actions, such as \[Remediation PRs]\(/risk-remediation/automated-pull-requests), for the remediation policies that match a project. The default is \`true\`. Set to \`false\` in a scan profile under \*\*additional_environment_variables\*\* to turn off remediation actions for the projects that use the profile. \- Environment_Variable: \`ENDOR_SCAN_RUBY_CALL_GRAPH\` Type: boolean Description: Set to \`true\` to generate call graphs for Ruby projects. This setting is enabled by default for automated scans. See \[Call graphs for Ruby]\(/scan/sca/ruby#call-graphs). \- Environment_Variable: \`ENDOR_SCAN_SAST_TIMEOUT\` Type: duration (default: 180m) Description: Set how long the SAST scanner can run before it stops and reports an error, for example \`240m\`. Set to \`0\` to remove the limit. \- Environment_Variable: \`ENDOR_SCAN_SHALLOW_CLONE\` Type: boolean Description: Enables shallow clone when Endor Labs clones the repository during CI and monitoring scans. Endor Labs downloads only recent commits instead of the full history, making scans run faster. You can also configure it in a scan profile under \*\*additional_environment_variables\*\*. \- Environment_Variable: \`ENDOR_SCAN_USE_GOMOD_VERSION\` Type: boolean Description: Set to \`true\` to use the Go version from the project's \`go.mod\` for Go standard library vulnerability scanning instead of detecting the system Go. See \[Go standard library vulnerability scanning]\(/scan/sca/golang#go-standard-library-vulnerability-scanning). ## Set `endorctl` environment variables Select your operating system and shell to generate the correct command. ### Shell Command Generator Select your operating system and shell to generate the correct export command for your environment. Operating system

Select your operating system. Shell Select the shell you use in your terminal. # endorctl CLI Source: https://docs.endorlabs.com/developers-api/cli/index Use the command-line interface to scan projects, manage SBOMs, and interact with the API. **endorctl** is a command line utility designed to bring the functionality of Endor Labs into your software delivery workflows. It allows you to scan and monitor your projects, import and export SBOMs, and interact with the API. > [card] [Install and configure endorctl](/developers-api/cli/install-and-configure) > > Learn how to install and configure endorctl. > [card] [Environment variables and global flags](/developers-api/cli/environment-variables) > > Learn how to use environment variables to configure endorctl. > [card] [Commands](/developers-api/cli/commands) > > Learn more about the available endorctl commands. # Install and configure endorctl Source: https://docs.endorlabs.com/developers-api/cli/install-and-configure/index Learn how to install, configure, and authenticate with Endor Labs Perform software composition analysis, dependency management, or detect secrets in your code using Endor Labs. ## Download and install endorctl Use one of the following methods to download and install endorctl on your local system. After you install endorctl, you must authenticate. Then you can start scanning your code. ### Install endorctl with Homebrew Use Homebrew to efficiently install endorctl on macOS and Linux operating systems making it easy to manage dependencies, and track installed packages with their versions. Install endorctl from the [Endor Labs tap](https://github.com/endorlabs/homebrew-tap) with Homebrew by running the following commands. Endor Labs updates the tap regularly with the latest endorctl release. ```bash theme={null} brew install endorlabs/tap/endorctl ``` ### Install endorctl with npm Use npm to efficiently install endorctl on macOS, Linux, and Windows operating systems making it easy to manage dependencies, track and update installed packages and their versions. 1. Make sure that you have npm installed in your local environment and use the following command to install endorctl. ```bash theme={null} npm install -g endorctl ``` 2. Run the following command to get the npm global bin directory. ```bash theme={null} npm config get prefix ``` 3. Edit your shell configuration file and insert the path you obtained from the previous command. ```bash theme={null} export PATH="/path/to/npm/global/bin:$PATH" ``` 4. Reload your shell configuration and confirm that endorctl runs. ```bash theme={null} endorctl --version ``` 5. To update your version of endorctl, run the following command. ```bash theme={null} npm update -g endorctl ``` [endorctl](https://www.npmjs.com/package/endorctl) is available as an npm package and Endor Labs updates it regularly with the latest endorctl release. ### Download and install the endorctl binary directly To download the endorctl binary directly use the following commands: > [tab] Linux > > ```bash theme={null} > # Download the latest CLI for Linux amd64 > curl https://api.endorlabs.com/download/latest/endorctl_linux_amd64 -o endorctl > > # Verify the checksum of the binary > echo "$(curl -s https://api.endorlabs.com/sha/latest/endorctl_linux_amd64) endorctl" | sha256sum -c > > # Modify the permissions of the binary to ensure it is executable > chmod +x ./endorctl > > # Create an alias endorctl of the binary to ensure it is available in other directory > alias endorctl="$PWD/endorctl" > ``` > [tab] Mac OS > > ```bash theme={null} > # Download the latest CLI for MacOS ARM64 > curl https://api.endorlabs.com/download/latest/endorctl_macos_arm64 -o endorctl > > # Verify the checksum of the binary > echo "$(curl -s https://api.endorlabs.com/sha/latest/endorctl_macos_arm64) endorctl" | shasum -a 256 -c > > # Modify the permissions of the binary to ensure it is executable > chmod +x ./endorctl > > # Create an alias endorctl of the binary to ensure it is available in other directory > alias endorctl="$PWD/endorctl" > ``` > [tab] Windows > > ```bash theme={null} > # Download the latest CLI for Windows amd64 > curl -O https://api.endorlabs.com/download/latest/endorctl_windows_amd64.exe > # Check the expected checksum of the binary file > curl https://api.endorlabs.com/sha/latest/endorctl_windows_amd64.exe > # Verify the expected checksum and the actual checksum of the binary match > certutil -hashfile .\endorctl_windows_amd64.exe SHA256 > # Rename the binary file > ren endorctl_windows_amd64.exe endorctl.exe > ``` > [!NOTE] > > If you use Endor Labs with an EU tenant, use `https://api.eu.endorlabs.com` instead of `https://api.endorlabs.com`. You can also view these instructions via the Endor Labs application user interface: 1. Sign in to Endor Labs. 2. Select **Projects** from the left sidebar. 3. Click **Add Project**. 4. Choose **CLI**. 5. Follow the on-screen instructions to download and install the appropriate version and architecture of `endorctl` for your system. You can keep track of endorctl release details by checking the [Endor Labs release notes](/releasenotes). ### Download a specific version of endorctl To pin your environment to a specific release, download a versioned binary instead of the `latest` URL. To find the latest available version number, run: ```bash theme={null} curl -s https://api.endorlabs.com/meta/version ``` Replace `` with the version string (for example, `v1.6.123`) and download the binary for your platform: > [tab] Linux > > ```bash theme={null} > curl https://api.endorlabs.com/download/endorlabs//binaries/endorctl__linux_amd64 -o endorctl > chmod +x ./endorctl > alias endorctl="$PWD/endorctl" > ``` > [tab] Mac OS > > ```bash theme={null} > curl https://api.endorlabs.com/download/endorlabs//binaries/endorctl__macos_arm64 -o endorctl > chmod +x ./endorctl > alias endorctl="$PWD/endorctl" > ``` > [tab] Windows > > ```bash theme={null} > curl -O https://api.endorlabs.com/download/endorlabs//binaries/endorctl__windows_amd64.exe > ren endorctl__windows_amd64.exe endorctl.exe > ``` ## Authenticate to Endor Labs You can authenticate to Endor Labs in the following ways: 1. [Using the init command](#login-with-the-init-command) 2. [With an API token](#login-with-an-api-key) ### Login with the init command Run `endorctl init` and your browser window will open automatically. Select your authentication provider from the available options and complete the authentication process. ![Init authentication through browser](https://mintcdn.com/endorlabs-b4795f4f/dHzwUrp_QbpzV9uv/images/developers-api/cli/init-auth-mode.webp?fit=max\&auto=format\&n=dHzwUrp_QbpzV9uv\&q=85\&s=f63fde25d5e52e50995a78a0fd7eb185) You can also specify your supported authentication provider manually: > [tab] Google > > ```bash theme={null} > endorctl init --auth-mode=google > ``` > [tab] GitHub > > ```bash theme={null} > endorctl init --auth-mode=github > ``` > [tab] GitLab > > ```bash theme={null} > endorctl init --auth-mode=gitlab > ``` > [tab] Email > > ```bash theme={null} > endorctl init --auth-email=`` > ``` > [tab] SSO > > ```bash theme={null} > endorctl init --auth-mode=sso --auth-tenant=`` > ``` To log in with your supported authentication provider in environments without a browser you can use headless mode: > [tab] Google > > ```bash theme={null} > endorctl init --auth-mode=google --headless-mode > ``` > [tab] GitHub > > ```bash theme={null} > endorctl init --auth-mode=github --headless-mode > ``` > [tab] GitLab > > ```bash theme={null} > endorctl init --auth-mode=gitlab --headless-mode > ``` > [tab] Email > > ```bash theme={null} > endorctl init --auth-email=`` --headless-mode > ``` > [tab] SSO > > ```bash theme={null} > endorctl init --auth-mode=sso --auth-tenant=`` --headless-mode > ``` ### Login with an API Key To log in with an API key you'll need to set the following environment variables: * **ENDOR_API_CREDENTIALS_KEY** - The API key used to authenticate against the Endor Labs API. * **ENDOR_API_CREDENTIALS_SECRET** - The API key secret used to authenticate against the Endor Labs API. * **ENDOR_NAMESPACE** - The Endor Labs namespace you would like to scan against. You can locate the namespace from the top left hand corner of the screen under the Endor Labs logo on the [Endor Labs application](https://app.endorlabs.com). > [!NOTE] > > If you use Endor Labs with an EU tenant, use `https://app.eu.endorlabs.com` instead of `https://app.endorlabs.com`. To get an API Key and secret for use with endorctl, see [Managing API Keys](/platform-administration/api-keys). To set your environment variables run the following commands and replace each example with the appropriate value. ```bash theme={null} export ENDOR_API_CREDENTIALS_KEY= export ENDOR_API_CREDENTIALS_SECRET= export ENDOR_NAMESPACE= ``` Once you've exported your environment variables you can test successful authentication by running the following command to list projects in your namespace. ```bash theme={null} endorctl api list -r Project --page-size=1 ``` > [!NOTE] > > If you do not have any projects in your namespace you will get an empty json output, which means you are successfully authenticated. ### Print your access token Once you have successfully initialized endorctl, you can print your access token with the following command. ```bash theme={null} endorctl auth --print-access-token ``` The token has an expiration time of 4 hours. ## Persistently set environment variables for endorctl To persistently set an environment variable, append the environment variable and the value to `~/.endorctl/config.yaml`. This configuration file is for CLI usage. For example, if your GitHub Enterprise Server URL was [https://api.github.com](https://api.github.com) you can set the variable to persist in your configuration using the following command. ```bash theme={null} echo "ENDOR_SCAN_SOURCE_GITHUB_API_URL: https://api.github.com" >> ~/.endorctl/config.yaml ``` See [endorctl commands for all supported commands and environment variables](/developers-api/cli/environment-variables). # Developers & API Source: https://docs.endorlabs.com/developers-api/index Programmatically interact with Endor Labs using the REST API, CLI, and MCP Server. Access Endor Labs programmatically through the REST API, command-line interface, or MCP Server for AI-assisted development. > [card] [endorctl CLI](/developers-api/cli) > > Install and use the endorctl command-line interface to run scans and manage your security posture. > [card] [REST API](/developers-api/rest-api) > > Use the Endor Labs REST API to query findings, projects, and integrate with your tooling. > [card] [MCP Server](/setup-deployment/mcp) > > Integrate Endor Labs into your IDE with the Model Context Protocol for AI-powered development. > [card] [API Query Builder](/developers-api/rest-api/api-query-builder) > > Use our API query builder to construct endorctl commands based on API operations and parameters. > [card] [API Reference](/api-reference) > > View the complete Endor Labs REST API reference. > [card] [Using the REST API](/developers-api/rest-api/using-the-rest-api) > > Learn how to use the API to build your solutions. > [card] Download REST API specifications > > You can download the Endor Labs REST API specifications directly from the docs site. Each file is served as a static asset. > > * [openapi.v3.json](https://docs.endorlabs.com/api-reference/openapi.v3.json): Compact OpenAPI 3.x specification that is suitable for most use cases. > * [openapi.full.v3.json](https://docs.endorlabs.com/api-reference/openapi.full.v3.json): Full OpenAPI 3.x specification that includes all schemas and operations. > * [openapiv2.swagger.json](https://docs.endorlabs.com/api-reference/openapiv2.swagger.json): Full Swagger 2.0 specification for tools that do not yet support OpenAPI 3.x. # About the REST API Source: https://docs.endorlabs.com/developers-api/rest-api/about/index Get oriented with the Endor Labs REST API documentation. ## Introduction You can use the Endor Labs API to build scripts and applications that automate processes, integrate with Endor Labs, and extend Endor Labs. For example, you can use the API to triage findings, build an analytics dashboard, or manage releases. The documentation covers each REST API endpoint individually and groups them by the resource they primarily affect. For example, you can find endpoints relating to findings in [FindingService](/api-reference/findingservice/listfindings). ## Getting started with the REST API If you are new to REST APIs, you may find it helpful to refer to the Quickstart or Getting Started guide for an introduction. For more information, see: * [Quickstart](/developers-api/rest-api/quickstart) * [Getting started](/developers-api/rest-api/using-the-rest-api/getting-started) If you are familiar with REST APIs but new to the Endor Labs REST API, you may find it helpful to refer to the authentication documentation. For more information, see: * [Authentication](/developers-api/rest-api/authentication) ## Further reading * [Best practices](/developers-api/rest-api/using-the-rest-api/best-practices) * [Troubleshooting](/developers-api/rest-api/using-the-rest-api/troubleshooting) # OpenAPI description Source: https://docs.endorlabs.com/developers-api/rest-api/about/open-api/index The Endor Labs REST API is fully described in an OpenAPI compliant document. ## About OpenAPI OpenAPI is a specification for describing REST API interfaces. It describes the API as an open standard to act as a dictionary for an API. OpenAPI enables developers to easily find and discover how to use your API. For more information, see the [OpenAPI specification documentation](https://spec.openapis.org/oas/v3.1.0). ## Using the Endor Labs OpenAPI description Because the OpenAPI description is machine readable, you can use it to do things like: * Generate libraries to facilitate using the REST API * Validate and test an integration that uses the REST API * Explore and interact with the REST API using third-party tools, such as [Postman](https://www.postman.com/downloads/) For example, Endor Labs uses the OpenAPI description to generate the REST API reference documentation for each endpoint. For more information, see the [Endor Labs OpenAPI documentation](/api-reference/). > [card] Download REST API specifications > > You can download the Endor Labs REST API specifications directly from the docs site. Each file is served as a static asset. > > * [openapi.v3.json](https://docs.endorlabs.com/api-reference/openapi.v3.json): Compact OpenAPI 3.x specification that is suitable for most use cases. > * [openapi.full.v3.json](https://docs.endorlabs.com/api-reference/openapi.full.v3.json): Full OpenAPI 3.x specification that includes all schemas and operations. > * [openapiv2.swagger.json](https://docs.endorlabs.com/api-reference/openapiv2.swagger.json): Full Swagger 2.0 specification for tools that do not yet support OpenAPI 3.x. # API Versions Source: https://docs.endorlabs.com/developers-api/rest-api/about/versions/index Learn how to specify which REST API version to use whenever you make a request to the Endor Labs REST API. ## About API versioning The Endor Labs REST API uses explicit versioning. Endor Labs ships breaking changes only in a new API version. New endpoints, fields, and enum values are backwards compatible within the same version. For every new API version that Endor Labs releases, the URL specifies the major version. For example, `https://api.endorlabs.com/v1/namespaces/my_namespace/projects` uses version 1 of the endpoint, per the **v1** path segment. Each resources have their versions specified in the field **meta.version**. For example the following resource has version 1 per the **v1** value for the field **meta.version**. ```json theme={null} { "meta": { "create_time": "2023-12-05T00:04:21.853Z", "kind": "Project", "name": "https://github.com/my_organization/my_repository.git", "update_time": "2024-05-01T16:50:03.830911988Z", "version": "v1" }, "uuid": "656e69058032bf0abaaeb681" } ``` When using the `endorctl` command-line tool to access the API, new endpoints, fields, or enum values are not available if your version of endorctl is older than the API version. Make sure to keep `endorctl` up-to-date to access the latest features and endpoints. For more information, see [Install and configure endorctl](https://docs.endorlabs.com/endorctl/install-and-configure/). ## Check latest API version using curl To check the latest API version using curl, run the following command: ```bash theme={null} curl -s https://api.endorlabs.com/meta/version | jq .ClientVersion ``` ### Example request using curl ```bash theme={null} curl -s https://api.endorlabs.com/meta/version | jq .ClientVersion "v1.6.322" ``` ## Check latest endorctl version To get both the current and the latest version of `endorctl`, run the following command: ```bash theme={null} endorctl --version ``` Along with your current version, you see a notification like the following if a newer `endorctl` version is available. ### Example request using endorctl ```bash theme={null} endorctl --version endorctl version v1.6.293 A newer version of endorctl is available v1.6.317 - currently v1.6.293 ``` # endorctl API Query Builder Source: https://docs.endorlabs.com/developers-api/rest-api/api-query-builder/index Beta
Use our API-based query builder to construct endorctl commands based on actual API operations and parameters. endorctl API is the most user-friendly way to interact with the Endor Labs REST API. It handles authentication automatically, provides built-in error handling with clear messages, and supports multiple output formats including json, yaml, and table. ## Prerequisites Ensure that you complete the following prerequisites before running the commands generated by the API query builder: * Install the latest version of [endorctl](/developers-api/cli/install-and-configure) before running the commands generated by the API query builder. * Run `endorctl init` to authenticate with Endor Labs. See [endorctl init](/developers-api/cli/commands/init) for more information. ## About the API query builder The API query builder allows you to construct [endorctl API](/developers-api/cli/commands/api) commands based on API operations and parameters. The tool currently supports all API operations available in [Top REST API Reference](https://docs.endorlabs.com/top-api/). You can refer to endorctl API command documentation to construct your own queries that are not supported by the API query builder. You can also refer to [Use Cases](/developers-api/rest-api/using-the-rest-api/use-cases) and [Advanced Use Cases](/developers-api/rest-api/using-the-rest-api/advanced-use-cases) to get examples of how you can use endorctl API commands. The tool includes options for timeouts, date filtering, and pagination. It also simplifies complex queries with easy filtering, sorting, and field selection. endorctl also supports grouping queries, which is not currently supported by the API query builder. See [Grouping](/developers-api/rest-api/using-the-rest-api/grouping) for more information. See the [Top REST API Reference](https://docs.endorlabs.com/top-api/) to get the details of request json for the operations that need a json request body. The request body appears in the API query builder for update operations, but you might need to modify it to fit your needs. # Authentication Source: https://docs.endorlabs.com/developers-api/rest-api/authentication/index Learn how to authenticate to the Endor Labs REST API. ## About Authentication Endor Labs supports multiple authentication methods. In all cases, clients use an Endor Labs specific API token to exchange their identity with Endor Labs. The token uses x509 signatures, and the Endor Labs private key signs it. You can initiate the authentication process through the authentication methods described below. The API authenticates the client and returns an Endor Identity Token (`ENDOR_TOKEN`) that it can apply to all its requests. The token validity depends on the authentication providers' [session duration](/platform-administration/rbac/authentication-providers#session-duration). After creating an API token, you can authenticate your requests by including the token in the Authorization header. For example, you can export it using the `ENDOR_TOKEN` variable and then use it in curl commands such as the following. If needed, replace `$ENDOR_NAMESPACE` with the name of your namespace. ```bash theme={null} curl --get \ --header "Authorization: Bearer $ENDOR_TOKEN" \ --url "https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/projects" \ ``` > [!NOTE] > > Basic authentication with curl -u is not supported. The following sections describe the different ways you can create an `ENDOR_TOKEN`. ## Headless mode 1. Paste the following URL in your preferred browser: > [tab] Google > > ```bash theme={null} > https://api.endorlabs.com/v1/auth/google?redirect=headless > ``` > [tab] GitHub > > ```bash theme={null} > https://api.endorlabs.com/v1/auth/github?redirect=headless > ``` > [tab] GitLab > > ```bash theme={null} > https://api.endorlabs.com/v1/auth/gitlab?redirect=headless > ``` > [tab] Email > > ```bash theme={null} > https://api.endorlabs.com/v1/auth/login?email=&redirect=headless > ``` > [tab] SSO > > ```bash theme={null} > https://api.endorlabs.com/v1/auth/sso?tenant=&redirect=headless > ``` 2. Use your browser window to authenticate 3. If authenticating with email, follow the link sent to the provided email 4. Once authenticated, copy the token displayed by the browser 5. Go back to your terminal and export it to your `ENDOR_TOKEN` environment variable ## API key and secret This method provides authentication using Endor Labs API keys. Any user of the system can create an API key under a namespace. The key consists of a key and a secret randomly generated by the system. ### Using endorctl If you [authenticate with Endor Labs using endorctl](/developers-api/cli/commands/init), it creates a `~/.endorctl/config.yaml` file in your environment containing essential details such as the API key, secret, and tenant namespace. Use the following command to export the value of your access token: ```bash theme={null} export ENDOR_TOKEN=$(endorctl auth --print-access-token) ``` ### Using the Endor Labs user interface Generating an API key and secret using the Endor Labs user interface enables you to select a custom expiration date and permissions. To generate an API key and secret via the Endor Labs user interface, follow these steps: 1. Select **User menu** > **Settings** > **Access Control**, then select **API Keys**. 2. Click **Generate API Key**. 3. Specify the following key details: * **Name:** Enter a descriptive name for the API key, identifying its purpose or user. * **Permission Level:** Choose the appropriate permission level for the API key. Options include: * **Admin:** Full access to all features and functionalities. * **Read-only:** View-only access, without the ability to modify or create resources. * **Code Scanner:** Access specifically for code scanning functionalities. * **Policy Editor:** Access to policy editing features. * **On-Prem Scheduler:** Access to manage [Outpost](/setup-deployment/outpost) and to use [monitoring scans](/setup-deployment/scm-integrations) across supported platforms when you enable Outpost. * **Package Firewall User:** Access to authenticate to the [Package Firewall](/package-firewall) and route package installation traffic through it. * **AI Audit User:** Access to submit agent session events and read the active policy snapshot for [Coding Agent Governance](/agent-governance) hooks on developer machines. 4. Select the desired expiry date for the API key, ranging from 30 to 90 days. 5. Click **Generate API Key** for confirmation. Under the **Advanced** section, you have the option to propagate the API key to all child namespaces. After generating your API key and secret, click **Copy API Key & Secret**. Make sure to securely store your API secret in a safe location, as it will not be accessible through the Endor Labs user interface later. The copied key and secret will look like this: ```bash theme={null} # Endor API Key: name # Expires: 2024-09-05T00:06:16.789Z ENDOR_API_CREDENTIALS_KEY=endr+foo ENDOR_API_CREDENTIALS_SECRET=endr+bar ``` You can then get a token by making a `POST` request with the API key and secret to the `https://api.endorlabs.com/v1/auth/api-key` endpoint. > [tab] curl > > The response contains both the token and the expiration time, so use `jq` to extract the token and export it directly to the `ENDOR_TOKEN` environment variable. > > ```bash theme={null} > export ENDOR_TOKEN=$(curl --request POST \ > --url "https://api.endorlabs.com/v1/auth/api-key" \ > --data "{ \"key\": \"$ENDOR_API_CREDENTIALS_KEY\", \"secret\": \"$ENDOR_API_CREDENTIALS_SECRET\" }" \ > | jq -r .token) > ``` > [tab] HTTP > > ```bash theme={null} > @baseUrl = https://api.endorlabs.com > > ### > POST {{baseUrl}}/v1/auth/api-key > content-type: application/json > > { > "key" : "endr+foo", "secret":"endr+bar" > } > ``` ## Authentication precedence If you have set up multiple ways to authenticate endorctl, the precedence is as follows: 1. **Arguments in the endorctl command** You can provide [authentication information in the endorctl command](/developers-api/cli/commands/init), and these credentials take the highest precedence during authentication. Even if authentication information is available in the `~/.endorctl/config.yaml` file or the `ENDOR_TOKEN` environment variable, the value you provide in the command takes precedence. 2. **Authentication information in `~/.endorctl/config.yaml`** If you [authenticate with Endor Labs using endorctl](/developers-api/cli/commands/init), the `~/.endorctl/config.yaml` file is created in your environment that contains authentication information (such as API key and tenant namespace). Even if you set a different authentication token as the `ENDOR_TOKEN` environment variable, the information in the `~/.endorctl/config.yaml` file takes precedence. 3. **ENDOR_TOKEN environment variable** If you do not provide authentication information in the endorctl command or if there is no authentication information in the `~/.endorctl/config.yaml` file, the authentication information specified in the `ENDOR_TOKEN` environment variable is used for authentication. To use the `ENDOR_TOKEN` variable, ensure that neither the command-line arguments nor the `~/.endorctl/config.yaml` file contain authentication information. ## Failed authentication If you try to use a REST API endpoint without an Endor Labs token, you will receive a 401 Unauthorized response. For more information, see [troubleshooting](/developers-api/rest-api/using-the-rest-api/troubleshooting). # REST API changelog Source: https://docs.endorlabs.com/developers-api/rest-api/changelog/index Version-by-version changes to the Endor Labs REST API. The Endor Labs REST API uses explicit versioning. Endor Labs ships breaking changes only in a new API version. New endpoints, fields, and enum values are backwards compatible within the same version. For more information, see [API versions](/developers-api/rest-api/about/versions). **v1.7.1256** November 9, 2026 No changes to public-facing endpoints or services in this release. **v1.7.1253** November 6, 2026 No changes to public-facing endpoints or services in this release. **v1.7.1248** November 4, 2026 The following updates have been made to the Endor Labs REST API as part of this release. Added the enum value `TYPE_SBOM_REPORT` at the following locations. \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/async-jobs\` Location: \`spec.type\` This value requests an SBOM report for the projects or package versions you select. One job produces one document, either the PDF presentation report set by `spec.request.sbom_report.report_type`, or the machine-readable CycloneDX or SPDX file set by the `kind` and `format` pair in the same request. Endor Labs returns a signed download URL in `spec.response.sbom_report.report_url`. For more information, see [Export SBOMs and VEX](/inventory-insights/sbom/exporting-sboms). **v1.7.1244** November 3, 2026 No changes to public-facing endpoints or services in this release. **v1.7.1239** November 2, 2026 The following updates have been made to the Endor Labs REST API as part of this release. Added the enum value `AVAILABLE_LLM_OPENAI_GPT_6_1_TERRA` at the following locations. \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/ai-provider-keys\` Location: \`spec.model_aliases\[].model\` \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/ai-provider-keys\` Location: \`spec.model_aliases\[].model\` Added the enum value `ENDORCTL_RC_NO_REMEDIATION_AVAILABLE` at the following locations. \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/scan-results\` Location: \`spec.exit_code\` \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/scan-workflow-results\` Location: \`spec.workflow_results\[].error.code\` \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/scan-results\` Location: \`spec.exit_code\` \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/scan-workflow-results\` Location: \`spec.workflow_results\[].error.code\` This value records the new endorctl return code `47`, which endorctl reports when no remediation is available for a finding. The error details name the finding and state the reason. For more information, see the [endorctl changelog](/developers-api/cli/changelog) and [endorctl CLI exit codes](/best-practices/troubleshooting/endorctl-exitcodes). Added the enum value `SYSTEM_ROLE_PACKAGE_FIREWALL_MANAGER` at the following locations. \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/authorization-policies\` Location: \`spec.permissions.roles\[]\` \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/api-keys\` Location: \`spec.permissions.roles\[]\` \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/authorization-policies\` Location: \`spec.permissions.roles\[]\` This role manages package firewall policies, upstreams, and notification targets. It also reads package firewall logs. For more information, see [Manage API keys](/platform-administration/api-keys). **v1.7.1233** October 31, 2026 No changes to public-facing endpoints or services in this release. **v1.7.1228** October 29, 2026 No changes to public-facing endpoints or services in this release. **v1.7.1220** October 27, 2026 No changes to public-facing endpoints or services in this release. **v1.7.1213** October 23, 2026 No changes to public-facing endpoints or services in this release. **v1.7.1208** October 22, 2026 No changes to public-facing endpoints or services in this release. **v1.7.1202** October 19, 2026 No changes to public-facing endpoints or services in this release. **v1.7.1201** October 17, 2026 No changes to public-facing endpoints or services in this release. **v1.7.1196** October 15, 2026 No changes to public-facing endpoints or services in this release. **v1.7.1192** October 14, 2026 The following updates have been made to the Endor Labs REST API as part of this release. Added the enum value `AVAILABLE_LLM_OPENAI_GPT_6_1_SOL` at the following locations. \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/ai-provider-keys\` Location: \`spec.model_aliases\[].model\` \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/ai-provider-keys\` Location: \`spec.model_aliases\[].model\` Added the enum value `SOURCE_NVD` at the following locations. > [accordion] View the 35 locations > > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/findings\` > Location: \`spec.finding_metadata.vulnerability.spec.affected\[].source\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_metadata.vulnerability.spec.affected\[].source\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_metadata.vulnerability.spec.affected\[].source\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_metadata.vulnerability.spec.affected\[].source\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_metadata.vulnerability.spec.affected\[].source\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_metadata.vulnerability.spec.affected\[].source\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_metadata.vulnerability.spec.affected\[].source\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_metadata.vulnerability.spec.affected\[].source\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_metadata.vulnerability.spec.affected\[].source\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_metadata.vulnerability.spec.affected\[].source\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_metadata.vulnerability.spec.affected\[].source\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_metadata.vulnerability.spec.affected\[].source\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_metadata.vulnerability.spec.affected\[].source\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_metadata.vulnerability.spec.affected\[].source\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_metadata.vulnerability.spec.affected\[].source\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_metadata.vulnerability.spec.affected\[].source\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_metadata.vulnerability.spec.affected\[].source\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/queries/vulnerabilities\` > Location: \`response.list.objects\[].spec.affected\[].source\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/queries/vulnerabilities\` > Location: \`responses.values.additionalProperties.list.objects\[].spec.affected\[].source\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_metadata.vulnerability.spec.affected\[].source\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_metadata.vulnerability.spec.affected\[].source\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_metadata.vulnerability.spec.affected\[].source\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_metadata.vulnerability.spec.affected\[].source\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_metadata.vulnerability.spec.affected\[].source\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_metadata.vulnerability.spec.affected\[].source\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_metadata.vulnerability.spec.affected\[].source\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_metadata.vulnerability.spec.affected\[].source\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_metadata.vulnerability.spec.affected\[].source\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_metadata.vulnerability.spec.affected\[].source\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_metadata.vulnerability.spec.affected\[].source\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_metadata.vulnerability.spec.affected\[].source\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_metadata.vulnerability.spec.affected\[].source\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_metadata.vulnerability.spec.affected\[].source\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_metadata.vulnerability.spec.affected\[].source\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_metadata.vulnerability.spec.affected\[].source\` > **v1.7.1184** October 8, 2026 No changes to public-facing endpoints or services in this release. **v1.7.1178** October 6, 2026 No changes to public-facing endpoints or services in this release. **v1.7.1177** October 3, 2026 No changes to public-facing endpoints or services in this release. **v1.7.1174** October 1, 2026 The following updates have been made to the Endor Labs REST API as part of this release. Added the enum value `STATUS_SKIPPED` at the following locations. > [accordion] View the 6 locations > > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/scan-results\` > Location: \`spec.status\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/scan-workflow-results\` > Location: \`spec.status\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/scan-workflow-results\` > Location: \`spec.workflow_results\[].status\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/scan-results\` > Location: \`spec.status\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/scan-workflow-results\` > Location: \`spec.status\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/scan-workflow-results\` > Location: \`spec.workflow_results\[].status\` > **v1.7.1169** September 28, 2026 The following updates have been made to the Endor Labs REST API as part of this release. Added the enum value `AVAILABLE_LLM_ENDOR_QWEN_3_8_27B` at the following locations. \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/ai-provider-keys\` Location: \`spec.model_aliases\[].model\` \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/ai-provider-keys\` Location: \`spec.model_aliases\[].model\` **v1.7.1167** September 24, 2026 The following updates have been made to the Endor Labs REST API as part of this release. Added the enum value `AVAILABLE_LLM_OPENAI_GPT_6_LUNA` at the following locations. \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/ai-provider-keys\` Location: \`spec.model_aliases\[].model\` \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/ai-provider-keys\` Location: \`spec.model_aliases\[].model\` Added the enum value `AVAILABLE_LLM_OPENAI_GPT_6_SOL` at the following locations. \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/ai-provider-keys\` Location: \`spec.model_aliases\[].model\` \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/ai-provider-keys\` Location: \`spec.model_aliases\[].model\` **v1.7.1158** September 16, 2026 No changes to public-facing endpoints or services in this release. **v1.7.1156** September 16, 2026 The following updates have been made to the Endor Labs REST API as part of this release. Added the enum value `ENDORCTL_RC_FAILED_PRECONDITION` at the following locations. \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/scan-results\` Location: \`spec.exit_code\` \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/scan-workflow-results\` Location: \`spec.workflow_results\[].error.code\` \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/scan-results\` Location: \`spec.exit_code\` \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/scan-workflow-results\` Location: \`spec.workflow_results\[].error.code\` This value records the new endorctl return code `46`, which endorctl reports when the server refuses a request because a precondition is not met. For more information, see the [endorctl changelog](/developers-api/cli/changelog) and [endorctl CLI exit codes](/best-practices/troubleshooting/endorctl-exitcodes). **v1.7.1152** September 11, 2026 No changes to public-facing endpoints or services in this release. **v1.7.1149** September 10, 2026 The following updates have been made to the Endor Labs REST API as part of this release. Added the enum value `CYCLONE_DX_SPEC_VERSION_1_6` at the following locations. \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/async-jobs\` Location: \`spec.request.sbom.cyclonedx_spec_version\` \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/async-jobs\` Location: \`spec.request.vex.cyclonedx_spec_version\` Added the enum value `CYCLONE_DX_SPEC_VERSION_1_7` at the following locations. \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/async-jobs\` Location: \`spec.request.sbom.cyclonedx_spec_version\` \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/async-jobs\` Location: \`spec.request.vex.cyclonedx_spec_version\` **v1.7.1143** September 7, 2026 No changes to public-facing endpoints or services in this release. **v1.7.1141** September 3, 2026 The following updates have been made to the Endor Labs REST API as part of this release. Added the enum value `FINDING_TAGS_POTENTIALLY_VALID_SECRET` at the following locations. > [accordion] View the 73 locations > > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/findings\` > Location: \`spec.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/policies\` > Location: \`spec.finding.tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/scan-results\` > Location: \`spec.all_findings.additionalProperties.tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/scan-results\` > Location: \`spec.deleted_findings.additionalProperties.tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/scan-results\` > Location: \`spec.exception_findings.additionalProperties.tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.other_finding_info.severity.additionalProperties.fixed_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.other_finding_info.severity.additionalProperties.introduced_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.vuln_finding_info.severity.additionalProperties.fixed_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.vuln_finding_info.severity.additionalProperties.introduced_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/policies\` > Location: \`spec.finding.tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/scan-results\` > Location: \`spec.all_findings.additionalProperties.tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/scan-results\` > Location: \`spec.deleted_findings.additionalProperties.tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/scan-results\` > Location: \`spec.exception_findings.additionalProperties.tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.other_finding_info.severity.additionalProperties.fixed_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.other_finding_info.severity.additionalProperties.introduced_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.vuln_finding_info.severity.additionalProperties.fixed_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.vuln_finding_info.severity.additionalProperties.introduced_summary.additionalProperties.finding_tags\[]\` > **v1.7.1133** August 27, 2026 The following updates have been made to the Endor Labs REST API as part of this release. Added the enum value `ENABLED_FEATURE_TYPE_AI_SAST_SCAN` at the following locations. \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/installations\` Location: \`spec.enabled_features\[]\` \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/installations\` Location: \`spec.enabled_features\[]\` Added the enum value `ENDORCTL_RC_CLONE_ERROR` at the following locations. \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/scan-results\` Location: \`spec.exit_code\` \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/scan-workflow-results\` Location: \`spec.workflow_results\[].error.code\` \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/scan-results\` Location: \`spec.exit_code\` \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/scan-workflow-results\` Location: \`spec.workflow_results\[].error.code\` Added the enum value `EXCEPTION_REASON_PRESENT_IN_BASELINE` at the following locations. > [accordion] View the 70 locations > > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/endor-ignore-entries\` > Location: \`spec.ignore_params.reason\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/findings\` > Location: \`spec.ignore.reason\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/findings\` > Location: \`spec.snooze.reason\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/policies\` > Location: \`spec.exception.reason\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.ignore.reason\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.snooze.reason\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.ignore.reason\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.snooze.reason\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.ignore.reason\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.snooze.reason\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.ignore.reason\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.snooze.reason\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.ignore.reason\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.snooze.reason\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.ignore.reason\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.snooze.reason\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.ignore.reason\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.snooze.reason\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.ignore.reason\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.snooze.reason\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.ignore.reason\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.snooze.reason\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.ignore.reason\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.snooze.reason\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.ignore.reason\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.snooze.reason\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.ignore.reason\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.snooze.reason\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.ignore.reason\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.snooze.reason\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.ignore.reason\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.snooze.reason\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.ignore.reason\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.snooze.reason\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.ignore.reason\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.snooze.reason\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/endor-ignore-entries\` > Location: \`spec.ignore_params.reason\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/policies\` > Location: \`spec.exception.reason\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.ignore.reason\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.snooze.reason\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.ignore.reason\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.snooze.reason\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.ignore.reason\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.snooze.reason\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.ignore.reason\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.snooze.reason\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.ignore.reason\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.snooze.reason\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.ignore.reason\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.snooze.reason\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.ignore.reason\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.snooze.reason\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.ignore.reason\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.snooze.reason\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.ignore.reason\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.snooze.reason\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.ignore.reason\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.snooze.reason\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.ignore.reason\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.snooze.reason\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.ignore.reason\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.snooze.reason\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.ignore.reason\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.snooze.reason\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.ignore.reason\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.snooze.reason\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.ignore.reason\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.snooze.reason\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.ignore.reason\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.snooze.reason\` > **v1.7.1128** August 24, 2026 No changes to public-facing endpoints or services in this release. **v1.7.1118** August 18, 2026 No changes to public-facing endpoints or services in this release. **v1.7.1115** August 17, 2026 No changes to public-facing endpoints or services in this release. **v1.7.1114** August 14, 2026 No changes to public-facing endpoints or services in this release. **v1.7.1113** August 14, 2026 The following updates have been made to the Endor Labs REST API as part of this release. Added the following endpoints. \- Method: GET Endpoint: \`/v1/namespaces/\{tenant_meta.namespace}/async-jobs/\{uuid}\` \- Method: POST Endpoint: \`/v1/namespaces/\{tenant_meta.namespace}/async-jobs\` Added the enum value `ACTION_TYPE_REMEDIATION_PR` at the following locations. \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/notification-targets\` Location: \`spec.action.action_type\` \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/batch/notifications\` Location: \`spec.notifications\[].spec.notification_action_data.additionalProperties.notification_target_type\` \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/notification-targets\` Location: \`spec.action.action_type\` **v1.7.1109** August 13, 2026 No changes to public-facing endpoints or services in this release. **v1.7.1104** August 11, 2026 No changes to public-facing endpoints or services in this release. **v1.7.1098** August 6, 2026 The following updates have been made to the Endor Labs REST API as part of this release. Added the following endpoints. \- Method: POST Endpoint: \`/v1/namespaces/\{tenant_meta.namespace}/queries/malware-exposure\` **v1.7.1093** August 4, 2026 No changes to public-facing endpoints or services in this release. **v1.7.1088** July 30, 2026 No changes to public-facing endpoints or services in this release. **v1.7.1085** July 29, 2026 No changes to public-facing endpoints or services in this release. **v1.7.1080** July 27, 2026 No changes to public-facing endpoints or services in this release. **v1.7.1076** July 23, 2026 No changes to public-facing endpoints or services in this release. **v1.7.1071** July 20, 2026 The following updates have been made to the Endor Labs REST API as part of this release. Added the following endpoints. \- Method: DELETE Endpoint: \`/v1/namespaces/\{tenant_meta.namespace}/malware-exposure/\{uuid}\` \- Method: GET Endpoint: \`/v1/namespaces/\{tenant_meta.namespace}/malware-exposure/\{uuid}\` \- Method: GET Endpoint: \`/v1/namespaces/\{tenant_meta.namespace}/malware-exposure\` \- Method: PATCH Endpoint: \`/v1/namespaces/\{object.tenant_meta.namespace}/malware-exposure\` \- Method: POST Endpoint: \`/v1/namespaces/\{tenant_meta.namespace}/malware-exposure\` **v1.7.1069** July 17, 2026 No changes to public-facing endpoints or services in this release. **v1.7.1060** July 13, 2026 The following updates have been made to the Endor Labs REST API as part of this release. Added the enum value `PACKAGE_FIREWALL_ACTION_CURATED` at the following locations. > [accordion] View the 10 locations > > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/system-config\` > Location: \`spec.package_firewall.cvss_severity_action\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/system-config\` > Location: \`spec.package_firewall.malware_action\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/system-config\` > Location: \`spec.package_firewall.min_age_action\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/system-config\` > Location: \`spec.package_firewall.notification_rules\[].on_actions\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/system-config\` > Location: \`spec.package_firewall.restricted_license_action\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/system-config\` > Location: \`spec.package_firewall.cvss_severity_action\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/system-config\` > Location: \`spec.package_firewall.malware_action\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/system-config\` > Location: \`spec.package_firewall.min_age_action\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/system-config\` > Location: \`spec.package_firewall.notification_rules\[].on_actions\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/system-config\` > Location: \`spec.package_firewall.restricted_license_action\` > Added the enum value `PACKAGE_FIREWALL_REASON_VERSIONS_CURATED` at the following locations. \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/system-config\` Location: \`spec.package_firewall.notification_rules\[].reasons\[]\` \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/system-config\` Location: \`spec.package_firewall.notification_rules\[].reasons\[]\` **v1.7.1053** July 9, 2026 No changes to public-facing endpoints or services in this release. **v1.7.1045** July 6, 2026 No changes to public-facing endpoints or services in this release. **v1.7.1037** June 30, 2026 No changes to public-facing endpoints or services in this release. **v1.7.1033** June 26, 2026 No changes to public-facing endpoints or services in this release. **v1.7.1024** June 24, 2026 No changes to public-facing endpoints or services in this release. **v1.7.1021** June 23, 2026 No changes to public-facing endpoints or services in this release. **v1.7.1013** June 18, 2026 No changes to public-facing endpoints or services in this release. **v1.7.1007** June 16, 2026 The following updates have been made to the Endor Labs REST API as part of this release. Added the enum value `TYPE_FINDING_REFRESH` at the following locations. \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/scan-results\` Location: \`spec.type\` \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/scan-results\` Location: \`spec.type\` **v1.7.1002** June 10, 2026 The following updates have been made to the Endor Labs REST API as part of this release. Added the enum value `ENDORCTL_RC_SCAN_CANCELLED` at the following locations. \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/scan-results\` Location: \`spec.exit_code\` \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/scan-workflow-results\` Location: \`spec.workflow_results\[].error.code\` \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/scan-results\` Location: \`spec.exit_code\` \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/scan-workflow-results\` Location: \`spec.workflow_results\[].error.code\` **v1.7.1001** June 9, 2026 No changes to public-facing endpoints or services in this release. **v1.7.998** June 8, 2026 The following updates have been made to the Endor Labs REST API as part of this release. Added the enum value `ACTION_TYPE_ADO_BOARDS` at the following locations. \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/notification-targets\` Location: \`spec.action.action_type\` \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/batch/notifications\` Location: \`spec.notifications\[].spec.notification_action_data.additionalProperties.notification_target_type\` \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/notification-targets\` Location: \`spec.action.action_type\` **v1.7.994** June 4, 2026 The following updates have been made to the Endor Labs REST API as part of this release. Added the enum value `ENDORCTL_RC_BASELINE_NOT_FOUND` at the following locations. \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/scan-results\` Location: \`spec.exit_code\` \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/scan-workflow-results\` Location: \`spec.workflow_results\[].error.code\` \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/scan-results\` Location: \`spec.exit_code\` \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/scan-workflow-results\` Location: \`spec.workflow_results\[].error.code\` **v1.7.990** June 2, 2026 No changes to public-facing endpoints or services in this release. **v1.7.988** June 1, 2026 No changes to public-facing endpoints or services in this release. **v1.7.980** May 26, 2026 No changes to public-facing endpoints or services in this release. **v1.7.978** May 22, 2026 No changes to public-facing endpoints or services in this release. **v1.7.976** May 19, 2026 No changes to public-facing endpoints or services in this release. **v1.7.973** May 14, 2026 No changes to public-facing endpoints or services in this release. **v1.7.968** May 11, 2026 No changes to public-facing endpoints or services in this release. **v1.7.967** May 8, 2026 The following updates have been made to the Endor Labs REST API as part of this release. Added the following endpoints. \- Method: DELETE Endpoint: \`/v1/namespaces/\{tenant_meta.namespace}/ai-sast-customer-contexts/\{uuid}\` \- Method: GET Endpoint: \`/v1/namespaces/\{tenant_meta.namespace}/ai-sast-customer-contexts/\{uuid}\` \- Method: GET Endpoint: \`/v1/namespaces/\{tenant_meta.namespace}/ai-sast-customer-contexts\` \- Method: PATCH Endpoint: \`/v1/namespaces/\{object.tenant_meta.namespace}/ai-sast-customer-contexts\` \- Method: POST Endpoint: \`/v1/namespaces/\{tenant_meta.namespace}/ai-sast-customer-contexts\` **v1.7.960** May 5, 2026 No changes to public-facing endpoints or services in this release. **v1.7.957** May 4, 2026 No changes to public-facing endpoints or services in this release. **v1.7.946** April 27, 2026 No changes to public-facing endpoints or services in this release. **v1.7.940** April 21, 2026 The following updates have been made to the Endor Labs REST API as part of this release. Added the enum value `FINDING_TAGS_SEGMENT_MATCH` at the following locations. > [accordion] View the 73 locations > > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/findings\` > Location: \`spec.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/policies\` > Location: \`spec.finding.tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/scan-results\` > Location: \`spec.all_findings.additionalProperties.tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/scan-results\` > Location: \`spec.deleted_findings.additionalProperties.tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/scan-results\` > Location: \`spec.exception_findings.additionalProperties.tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.other_finding_info.severity.additionalProperties.fixed_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.other_finding_info.severity.additionalProperties.introduced_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.vuln_finding_info.severity.additionalProperties.fixed_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.vuln_finding_info.severity.additionalProperties.introduced_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/policies\` > Location: \`spec.finding.tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/scan-results\` > Location: \`spec.all_findings.additionalProperties.tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/scan-results\` > Location: \`spec.deleted_findings.additionalProperties.tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/scan-results\` > Location: \`spec.exception_findings.additionalProperties.tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.other_finding_info.severity.additionalProperties.fixed_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.other_finding_info.severity.additionalProperties.introduced_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.vuln_finding_info.severity.additionalProperties.fixed_summary.additionalProperties.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_tags\[]\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.vuln_finding_info.severity.additionalProperties.introduced_summary.additionalProperties.finding_tags\[]\` > **v1.7.932** April 15, 2026 The following updates have been made to the Endor Labs REST API as part of this release. Added the enum value `SYSTEM_ROLE_AI_AUDIT` at the following locations. \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/authorization-policies\` Location: \`spec.permissions.roles\[]\` \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/api-keys\` Location: \`spec.permissions.roles\[]\` \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/authorization-policies\` Location: \`spec.permissions.roles\[]\` **v1.7.924** April 9, 2026 No changes to public-facing endpoints or services in this release. **v1.7.922** April 8, 2026 No changes to public-facing endpoints or services in this release. **v1.7.918** April 7, 2026 No changes to public-facing endpoints or services in this release. **v1.7.912** April 1, 2026 No changes to public-facing endpoints or services in this release. **v1.7.909** March 31, 2026 The following updates have been made to the Endor Labs REST API as part of this release. Added the following endpoints. \- Method: GET Endpoint: \`/v1/namespaces/\{tenant_meta.namespace}/hugging-face-organizations/\{uuid}\` \- Method: GET Endpoint: \`/v1/namespaces/\{tenant_meta.namespace}/hugging-face-organizations\` **v1.7.906** March 27, 2026 No changes to public-facing endpoints or services in this release. **v1.7.901** March 26, 2026 The following updates have been made to the Endor Labs REST API as part of this release. Added the enum value `MALWARE_SOURCE_INTERNAL` at the following locations. > [accordion] View the 35 locations > > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/findings\` > Location: \`spec.finding_metadata.malware.spec.source\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_metadata.malware.spec.source\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_metadata.malware.spec.source\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_metadata.malware.spec.source\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_metadata.malware.spec.source\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_metadata.malware.spec.source\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_metadata.malware.spec.source\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_metadata.malware.spec.source\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_metadata.malware.spec.source\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_metadata.malware.spec.source\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_metadata.malware.spec.source\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_metadata.malware.spec.source\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_metadata.malware.spec.source\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_metadata.malware.spec.source\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_metadata.malware.spec.source\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_metadata.malware.spec.source\` > \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_metadata.malware.spec.source\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/queries/malware\` > Location: \`response.list.objects\[].spec.source\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/queries/malware\` > Location: \`responses.values.additionalProperties.list.objects\[].spec.source\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_metadata.malware.spec.source\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_metadata.malware.spec.source\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_metadata.malware.spec.source\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.all_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_metadata.malware.spec.source\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_metadata.malware.spec.source\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_metadata.malware.spec.source\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_metadata.malware.spec.source\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.finding_fixing_upgrades.additionalProperties.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_metadata.malware.spec.source\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_metadata.malware.spec.source\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_metadata.malware.spec.source\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_metadata.malware.spec.source\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.prioritized_upgrades.upgrade_list\[].vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_metadata.malware.spec.source\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.other_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_metadata.malware.spec.source\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.other_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_metadata.malware.spec.source\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.vuln_finding_info.severity.additionalProperties.fixed.additionalProperties.spec.finding_metadata.malware.spec.source\` > \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/version-upgrades\` > Location: \`spec.upgrade_info.vuln_finding_info.severity.additionalProperties.introduced.additionalProperties.spec.finding_metadata.malware.spec.source\` > **v1.7.893** March 20, 2026 The following updates have been made to the Endor Labs REST API as part of this release. Added the enum value `ENDORCTL_RC_DEPENDENCY_SETUP_WARNING` at the following locations. \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/scan-results\` Location: \`spec.exit_code\` \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/scan-workflow-results\` Location: \`spec.workflow_results\[].error.code\` \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/scan-results\` Location: \`spec.exit_code\` \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/scan-workflow-results\` Location: \`spec.workflow_results\[].error.code\` **v1.7.887** March 18, 2026 No changes to public-facing endpoints or services in this release. **v1.7.882** March 16, 2026 The following updates have been made to the Endor Labs REST API as part of this release. Added the following endpoints. \- Method: DELETE Endpoint: \`/v1/namespaces/\{tenant_meta.namespace}/registry-ingestion-checkpoints/\{uuid}\` \- Method: GET Endpoint: \`/v1/namespaces/\{tenant_meta.namespace}/registry-ingestion-checkpoints/\{uuid}\` \- Method: GET Endpoint: \`/v1/namespaces/\{tenant_meta.namespace}/registry-ingestion-checkpoints\` \- Method: PATCH Endpoint: \`/v1/namespaces/\{object.tenant_meta.namespace}/registry-ingestion-checkpoints\` \- Method: POST Endpoint: \`/v1/namespaces/\{tenant_meta.namespace}/registry-ingestion-checkpoints\` **v1.7.870** March 10, 2026 The following updates have been made to the Endor Labs REST API as part of this release. Added the following endpoints. \- Method: POST Endpoint: \`/v1/namespaces/\{tenant_meta.namespace}/batch/notifications\` Added the enum value `AGGREGATION_TYPE_MANUAL` at the following locations. \- Endpoint: \`PATCH /v1/namespaces/\{object.tenant_meta.namespace}/policies\` Location: \`spec.notification.aggregation_type\` \- Endpoint: \`POST /v1/namespaces/\{tenant_meta.namespace}/policies\` Location: \`spec.notification.aggregation_type\` # REST API Source: https://docs.endorlabs.com/developers-api/rest-api/index Create integrations, retrieve data, and automate your workflows with the Endor Labs REST API. > [card] [About the REST API](/developers-api/rest-api/about) > > Get oriented with the Endor Labs REST API documentation. > [card] [Using the REST API](/developers-api/rest-api/using-the-rest-api) > > Learn how to use the API to build your solutions. > [card] [Authentication](/developers-api/rest-api/authentication) > > Learn how to authenticate to the Endor Labs REST API. > [card] [API Query Builder](/developers-api/rest-api/api-query-builder) > > Use our API query builder to construct endorctl commands based on API operations and parameters. > [card] [Use Cases](/developers-api/rest-api/using-the-rest-api/use-cases) > > Explore use cases with Endor Labs REST API. > [card] [Resource Kinds](/developers-api/rest-api/using-the-rest-api/data-model/resource-kinds) > > Learn about the Endor Labs data model. > [card] [Best Practices](/developers-api/rest-api/using-the-rest-api/best-practices) > > Best practices when using the Endor Labs REST API. > [card] [Troubleshooting](/developers-api/rest-api/using-the-rest-api/troubleshooting) > > Diagnose and resolve issues with the Endor Labs REST API. > [card] [API Reference](/api-reference) > > View the complete Endor Labs REST API reference. > [card] Download REST API specifications > > You can download the Endor Labs REST API specifications directly from the docs site. Each file is served as a static asset. > > * [openapi.v3.json](https://docs.endorlabs.com/api-reference/openapi.v3.json): Compact OpenAPI 3.x specification that is suitable for most use cases. > * [openapi.full.v3.json](https://docs.endorlabs.com/api-reference/openapi.full.v3.json): Full OpenAPI 3.x specification that includes all schemas and operations. > * [openapiv2.swagger.json](https://docs.endorlabs.com/api-reference/openapiv2.swagger.json): Full Swagger 2.0 specification for tools that do not yet support OpenAPI 3.x. # Quickstart Source: https://docs.endorlabs.com/developers-api/rest-api/quickstart/index Start using the Endor Labs REST API immediately. This article describes how to quickly get started with the Endor Labs REST API using the Endor Labs command line tool `endorctl` or `curl`. For a more detailed guide, see [Getting started with the REST API](/developers-api/rest-api/using-the-rest-api/getting-started). The following is an example request to get the number of findings in your namespace: > [tab] endorctl > > 1. Run `endorctl init` and your browser window will open automatically. Select your authentication provider from the available options and complete the authentication process. > > You can also specify your supported authentication provider manually. > > ```bash theme={null} > endorctl init --auth-mode google > ``` > > 2. Use the `endorctl` command-line tool to make your request. Note that you do not have to provide the namespace or access token when using `endorctl` to access the Endor Labs REST API. For more information, see the [Endor Labs CLI documentation](/developers-api/cli/commands/api). > > ```bash theme={null} > endorctl api list -r Finding --count > ``` > [tab] curl > > 1. Install `curl` if it isn't already installed on your machine. To check if `curl` is installed, execute `curl --version` on the command line. If the output provides information about the version of `curl`, that means `curl` is installed. If you get a message similar to command not found: curl, you need to download and install curl. For more information, see the [curl project download page](https://curl.se/download.html). > > 2. Run `endorctl init` and your browser window will open automatically. Select your authentication provider from the available options and complete the authentication process. > > You can also specify your supported authentication provider manually. > > ```bash theme={null} > endorctl init --auth-mode google > ``` > > 3. Create an access token. The access token produced below has the same scopes/permissions as the API key created through `endorctl init`. **Treat your access token like a password**. For more information, see [Authentication](/developers-api/rest-api/authentication). > > ```bash theme={null} > export ENDOR_TOKEN=$(endorctl auth --print-access-token) > ``` > > 4. Use the Curl command to make your request. Pass your token in an Authorization header. The following is an example request to get the number of findings in a given namespace. If needed, replace `$ENDOR_NAMESPACE` with the name of your namespace, or export it as a variable using `export ENDOR_NAMESPACE=`. > > ```bash theme={null} > curl --get \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --compressed \ > --url "https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/findings?list_parameters.count=true" > ``` > > For more information on HTTP headers and parameters, see [Getting Started](/developers-api/rest-api/using-the-rest-api/getting-started). For more examples of common use cases, see [Use cases](/developers-api/rest-api/using-the-rest-api/use-cases). # Using Audit Log API Source: https://docs.endorlabs.com/developers-api/rest-api/using-the-rest-api/advanced-use-cases/audit-log/index Learn how to use the audit log API in Endor Labs Audit logs help to monitor user actions and system operations, and generate audit trails for compliance requirements. You can use the [list AuditLog endpoint](/api-reference/auditlogservice/listauditlogs) to retrieve audit logs. You can retrieve audit logs for the following resources: * Tenants and namespaces * Projects * Users and user telemetry * Repositories and repository versions * Scan results * Authorization policies * Action policies * Remediation policies * Notification policies * Supported toolchains * Application telemetry * Endor Labs licenses Run the following command to fetch the entire audit log. ```bash theme={null} endorctl api list -r AuditLog -n ``` ### Audit log retention and archival Audit logs remain in the active database for 30 days before being automatically moved to archive storage, where they're retained for 3 years. Both active and archived logs support the same filters, pagination, and field masks. You can access archived logs older than 30 days using either of the following methods: 1. Using the `endorctl` command with the `--archive` flag: ```bash theme={null} endorctl api list -r AuditLog -n --archive ``` 2. Using a direct API request: ```bash theme={null} curl -X GET "https://api.endorlabs.com/v1/namespaces//audit-logs/archived" \ -H "Authorization: Bearer ${ENDOR_API_KEY}" \ -H "Content-Type: application/json" ``` > [!NOTE] > > Query audit logs from the last 30 days and archived logs separately. ## Operations with the audit log API You can pass the [`meta`](#meta-fields) and [`spec`](#spec-fields) fields with the `endorctl list AuditLog` command to refine the output based on your requirements. You can combine multiple filters in the same command and use multiple operators. See [Filters](/developers-api/rest-api/using-the-rest-api/filters) for more information on using filters and operators. The `meta` and `spec` options listed are not exhaustive. You can build your command based on the `meta` and `spec` fields in the [API specification](/api-reference/auditlogservice/listauditlogs). > [!NOTE] > > When retrieving archived audit logs, filter by `spec.message_kind` first, followed by `meta.create_time` for optimal query performance. Always pair the `meta.create_time` filter with `spec.message_kind`. ## Operators You can use the following operators with the filters. \- Operator: \`==\` Description: Matches objects where a specified field is equal to a specified value. \- Operator: \`!=\` Description: Matches objects where a specified field is NOT equal to a specified value. \- Operator: \`\<\` Description: Matches objects where a specified field is less than a specified value. \- Operator: \`\<=\` Description: Matches objects where a specified field is less than or equal to a specified value. \- Operator: \`>\` Description: Matches objects where a specified field is greater than a specified value. \- Operator: \`>=\` Description: Matches objects where a specified field is greater than or equal to a specified value. \- Operator: \`contains\` Description: Matches objects where a specified list contains one or more specified values. \- Operator: \`in\` Description: Matches objects where a specified field is equal to one or more specified values. \- Operator: \`matches\` Description: Matches objects where a specified field matches a specified regex pattern. \- Operator: \`exists\` Description: Matches objects where a specified field in a json payload exists. ### Meta fields You can use the following `meta` fields. \- Meta_Field: \`meta.create_time\` Description: Timestamp of the message creation. \- Meta_Field: \`meta.update_time\` Description: Timestamp of the message update. \- Meta_Field: \`meta.upsert_time\` Description: Timestamp of the message upsert. \- Meta_Field: \`meta.created_by\` Description: User that created the message. \- Meta_Field: \`meta.updated_by\` Description: User that updated the message. ### Spec fields \- Spec_Field: \`spec.message_kind\` Description: Message type on which the operations are performed. For example, \`internal.endor.ai.endor.v1.AuthorizationPolicy\` is the value of \`spec.message_kind\` for authorization policy. \- Spec_Field: \`spec.message_uuid\` Description: The UUID of the message. \- Spec_Field: \`spec.operation\` Description: The type of operation. \

The following types are supported: \

- OPERATION_CREATE \

- OPERATION_UPDATE \

- OPERATION_DELETE \

- OPERATION_UPSERT \- Spec_Field: \`spec.payload\` Description: The operation payload, which contains the message that is being created or updated. \- Spec_Field: \`spec.claims\` Description: Authentication claims array. \- Spec_Field: \`spec.remote_address\` Description: The source IP address. ### Timeout in AuditLog API Since querying audit logs might take more time in comparison with other API operations, you may face a timeout with the error message, `ERROR deadline-exceeded: context deadline exceeded`. If you face the error, provide a timeout override along with your API command to complete the API call. You can use the `--timeout` option and provide the override in seconds: `endorctl api --timeout=s`. For example, `endorctl api list -r AuthenticationLog --timeout=30s`. The default timeout is 20 seconds. ## Examples of using AuditLog API The following sections provide example scenarios for using the audit log API. ### Filter audit log by time range Audit logs grow over time. Restrict the date range to retrieve meaningful data for a specific timeframe. The following example retrieves the audit log for January 2025. ```bash theme={null} endorctl api list -r AuditLog -n demo \ --filter="meta.create_time>=date(2025-01-01T00:00:00Z) and meta.create_time<=date(2025-01-31T23:59:59Z)" ``` ### Filter audit log by users and time range You can retrieve logs for a specific user within a date range. The following example retrieves the audit log of a user with the name `Doe` in their claims token. ```bash theme={null} endorctl api list -r AuditLog -n demo \ --filter="meta.create_time>=date(2025-02-01T00:00:00Z) and meta.create_time<=date(2025-02-19T23:59:59Z) and spec.claims matches '.*firstname=Doe.*'" ``` The following example retrieves the audit log of all users with `endor.ai` as the domain in their claims token. ```bash theme={null} endorctl api list -r AuditLog -n demo \ --filter="meta.create_time>=date(2025-02-01T00:00:00Z) and meta.create_time<=date(2025-02-19T23:59:59Z) and spec.claims matches '.*domain=endor.ai.*'" ``` ### Filter audit log based on operation types You can retrieve the specific audit logs based on a particular operation. The following retrieves audit logs that pertain to create operation after August 18, 2024. ```bash theme={null} endorctl api list -r AuditLog -n demo \ --filter="spec.operation=='OPERATION_CREATE' and meta.create_time>=date(2024-08-18T00:00:00Z)" ``` ### Filter audit log based on message type You can retrieve audit logs based on the message type. You need to provide `internal.endor.ai.endor.v1.` followed by the message type with the `spec.message_kind` filter. The following example retrieves updates to scan results. ```bash theme={null} endorctl api list -r AuditLog -n demo \ --filter="spec.operation=='OPERATION_CREATE' and spec.message_kind=='internal.endor.ai.endor.v1.ScanResult'" ``` ### Filter audit log based on policy updates You can retrieve audit logs for the updates on policies. The following example retrieves updates to action, notification, and remediation policies made after August 18, 2024. ```bash theme={null} endorctl api list -r AuditLog -n demo \ --filter="spec.operation=='OPERATION_CREATE' and spec.message_kind=='internal.endor.ai.endor.v1.Policy' and meta.create_time>=date(2024-08-18T00:00:00Z)" ``` The following example retrieves changes to authorization policies made after August 18, 2024. ```bash theme={null} endorctl api list -r AuditLog -n demo \ --filter="spec.operation=='OPERATION_UPDATE' and spec.message_kind=='internal.endor.ai.endor.v1.AuthorizationPolicy' and meta.create_time>=date(2024-08-18T00:00:00Z)" ``` ### Filter audit log based on IP range You can retrieve audit logs based on an IP range to investigate activities originating from a particular geography or a particular service that uses your Endor Labs instance. The following example retrieves audit log for activities done from the IP range, `10.244.0.0` to `10.244.255.255`. ```bash theme={null} endorctl api list -r AuditLog -n demo \ --filter="spec.remote_address>='10.244.0.0' and spec.remote_address<='10.244.255.255'" ``` ### Retrieve the history of an object based on message UUID You can retrieve the history of an object based on the message UUID. ```bash theme={null} endorctl api list -r AuditLog -n demo \ --filter="spec.message_uuid==''" ``` The following example retrieves the history of an action policy with the UUID, `66axxxxxxxxxx4c15dc1`. ```bash theme={null} endorctl api list -r AuditLog -n demo \ --filter="spec.message_uuid=='66axxxxxxxxxx4c15dc1'" ``` # Advanced use cases Source: https://docs.endorlabs.com/developers-api/rest-api/using-the-rest-api/advanced-use-cases/index Examples of advanced use cases when interacting with the Endor Labs REST API. > [card] [Using the query service](/developers-api/rest-api/using-the-rest-api/advanced-use-cases/query-service) > > Learn how to use the Query Service for advanced use cases with the Endor Labs REST API. > [card] [Using saved queries](/developers-api/rest-api/using-the-rest-api/advanced-use-cases/saved-queries) > > Learn how to use saved queries for interacting with the Endor Labs REST API. > [card] [Using Audit Log API](/developers-api/rest-api/using-the-rest-api/advanced-use-cases/audit-log) > > Learn how to use the audit log API in Endor Labs. # Using the query service Source: https://docs.endorlabs.com/developers-api/rest-api/using-the-rest-api/advanced-use-cases/query-service/index Learn how to use the Query Service for advanced use cases with the Endor Labs REST API. Beyond REST API endpoints for individual [Resource Kinds](/developers-api/rest-api/using-the-rest-api/data-model/resource-kinds), the Endor Labs REST API exposes a generic graph API through the [Query Service](/api-reference/queryservice/createquery) endpoint. Use the Query Service to retrieve resources and their related resources in a single call. Send resource requests through the Query Service with a Query that specifies a [Resource Kind](/developers-api/rest-api/using-the-rest-api/data-model/resource-kinds) and optional [list parameters](/developers-api/rest-api/using-the-rest-api/getting-started#list-parameters) to control the returned data. The Query may also specify nested references, connecting related [Resource Kinds](/developers-api/rest-api/using-the-rest-api/data-model/resource-kinds), and returning all corresponding data in the response. ## List projects with package version counts The following Query returns the number of package versions in the default branch of each project. 1. Request a list of projects, but only return the `uuid`, `meta.name` and `processing_status` fields for each project. 2. Connect the project `uuid` to the corresponding child package version `spec.project_uuid` field. 3. Set additional parameters to filter to only resources from the project's default branch, and to return the count of resources.© > [tab] endorctl > > ```bash theme={null} > endorctl api create --resource Query \ > --data '{ > "meta": { > "name": "Projects with Package Version Counts" > }, > "spec": { > "query_spec": { > "kind": "Project", > "list_parameters": { > "mask": "uuid,meta.name,processing_status" > }, > "references": [ > { > "connect_from": "uuid", > "connect_to": "spec.project_uuid", > "query_spec": { > "kind": "PackageVersion", > "list_parameters": { > "filter": "context.type==CONTEXT_TYPE_MAIN", > "count": true > } > } > } > ] > } > } > }' > ``` > [tab] curl > > ```bash theme={null} > query_data=$(cat << EOF > { > "meta": { > "name": "Projects with Package Version Counts" > }, > "spec": { > "query_spec": { > "kind": "Project", > "list_parameters": { > "mask": "uuid,meta.name,processing_status" > }, > "references": [ > { > "connect_from": "uuid", > "connect_to": "spec.project_uuid", > "query_spec": { > "kind": "PackageVersion", > "list_parameters": { > "filter": "context.type==CONTEXT_TYPE_MAIN", > "count": true > } > } > } > ] > } > }, > "tenant_meta": { > "namespace": "$ENDOR_NAMESPACE" > } > } > EOF > ) > > curl "https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/queries" \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --request POST \ > --data "$query_data" > ``` > [tab] HTTP > > ```bash theme={null} > @baseUrl = https://api.endorlabs.com > @token = `` > @namespace = `` > > ### > POST {{baseUrl}}/v1/namespaces/{{namespace}}/queries HTTP/1.1 > Authorization: Bearer {{token}} > > { > "meta": { > "name": "Projects with Package Version Counts" > }, > "spec": { > "query_spec": { > "kind": "Project", > "list_parameters": { > "mask": "uuid,meta.name,processing_status" > }, > "references": [ > { > "connect_from": "uuid", > "connect_to": "spec.project_uuid", > "query_spec": { > "kind": "PackageVersion", > "list_parameters": { > "filter": "context.type==CONTEXT_TYPE_MAIN", > "count": true > } > } > } > ] > } > }, > "tenant_meta": { > "namespace": "{{namespace}}" > } > } > ``` The response includes the original query request along with the list response data under the `spec.query_response` field. For each project in the list response, each reference's data appears under the `meta.references` field. ```json expandable theme={null} { "meta": { "name": "Projects with Package Version Counts" }, "spec": { "query_spec": { "kind": "Project", "list_parameters": { "mask": "uuid,meta.name,processing_status" } }, "query_response": { "@type": "type.googleapis.com/internal.endor.ai.endor.v1.ListProjectsResponse", "list": { "objects": [ { "meta": { "name": "https://github.com/example/app.git", "references": { "PackageVersion": { "@type": "type.googleapis.com/internal.endor.ai.endor.v1.ListPackageVersionsResponse", "count_response": { "count": 12 } } } }, "processing_status": { "analytic_time": "2023-10-28T03:41:40.824366382Z", "disable_automated_scan": false, "scan_state": "SCAN_STATE_IDLE", "scan_time": "2024-06-03T17:43:33.994191285Z" }, "uuid": "633cbce48c4eb448a44d717b" }, { "meta": { "name": "https://github.com/example/go-uuid.git", "references": { "PackageVersion": { "@type": "type.googleapis.com/internal.endor.ai.endor.v1.ListPackageVersionsResponse", "count_response": { "count": 8 } } } }, "processing_status": { "analytic_time": "2023-06-21T02:06:43.081498151Z", "disable_automated_scan": false, "scan_state": "SCAN_STATE_IDLE", "scan_time": "2024-06-03T17:43:47.098976874Z" }, "uuid": "633cbce48c4eb448a44d717e" }, { "meta": { "name": "https://github.com/example/go-lru.git", "references": { "PackageVersion": { "@type": "type.googleapis.com/internal.endor.ai.endor.v1.ListPackageVersionsResponse", "count_response": { "count": 28 } } } }, "processing_status": { "analytic_time": "2023-06-21T02:08:44.727640782Z", "disable_automated_scan": false, "scan_state": "SCAN_STATE_IDLE", "scan_time": "2024-06-03T17:43:52.028934453Z" }, "uuid": "633cbce48c4eb448a44d7181" } ], "response": { "next_page_token": null } } } } } ``` ## List projects, with repository versions and CI/CD tool metrics The following query requests a list of projects, with a reference for the related RepositoryVersion resources for the default branch, and the corresponding CI/CD tool Metric resources. 1. Request a list of projects, but only return the `uuid` and `meta.name` fields for each project. 2. Connect the project `uuid` to the corresponding child RepositoryVersion `meta.parent_uuid` field. 3. Set additional parameters to filter to only resources from the project's default branch, and an additional nested reference for Metric objects related to the RepositoryVersions, with a filter to return only Metrics for the CI/CD tools. > [tab] endorctl > > ```bash theme={null} > endorctl api create --resource Query \ > --data '{ > "meta": { > "name": "Projects with RepositoryVersions and CI/CD Tool Metrics" > }, > "spec": { > "query_spec": { > "kind": "Project", > "list_parameters": { > "mask": "uuid,meta.name" > }, > "references": [ > { > "connect_from": "uuid", > "connect_to": "meta.parent_uuid", > "query_spec": { > "kind": "RepositoryVersion", > "list_parameters": { > "filter": "context.type==CONTEXT_TYPE_MAIN", > "mask": "uuid,meta.name,scan_object" > }, > "references": [ > { > "connect_from": "uuid", > "connect_to": "meta.parent_uuid", > "query_spec": { > "kind": "Metric", > "list_parameters": { > "filter": "spec.analytic==\"version_cicd_tools\"" > } > } > } > ] > } > } > ] > } > } > }' > ``` > [tab] curl > > ```bash theme={null} > query_data=$(cat << EOF > { > "meta": { > "name": "Projects with RepositoryVersions and CI/CD Tool Metrics" > }, > "spec": { > "query_spec": { > "kind": "Project", > "list_parameters": { > "mask": "uuid,meta.name" > }, > "references": [ > { > "connect_from": "uuid", > "connect_to": "meta.parent_uuid", > "query_spec": { > "kind": "RepositoryVersion", > "list_parameters": { > "filter": "context.type==CONTEXT_TYPE_MAIN", > "mask": "uuid,meta.name,scan_object" > }, > "references": [ > { > "connect_from": "uuid", > "connect_to": "meta.parent_uuid", > "query_spec": { > "kind": "Metric", > "list_parameters": { > "filter": "spec.analytic==\"version_cicd_tools\"" > } > } > } > ] > } > } > ] > } > }, > "tenant_meta": { > "namespace": "$ENDOR_NAMESPACE" > } > } > EOF > ) > > curl "https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/queries" \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --request POST \ > --data "$query_data" > ``` > [tab] HTTP > > ```bash theme={null} > @baseUrl = https://api.endorlabs.com > @token = `` > @namespace = `` > > ### > POST {{baseUrl}}/v1/namespaces/{{namespace}}/queries HTTP/1.1 > Authorization: Bearer {{token}} > > { > "meta": { > "name": "Projects with RepositoryVersions and CI/CD Tool Metrics" > }, > "spec": { > "query_spec": { > "kind": "Project", > "list_parameters": { > "mask": "uuid,meta.name" > }, > "references": [ > { > "connect_from": "uuid", > "connect_to": "meta.parent_uuid", > "query_spec": { > "kind": "RepositoryVersion", > "list_parameters": { > "filter": "context.type==CONTEXT_TYPE_MAIN", > "mask": "uuid,meta.name,scan_object" > }, > "references": [ > { > "connect_from": "uuid", > "connect_to": "meta.parent_uuid", > "query_spec": { > "kind": "Metric", > "list_parameters": { > "filter": "spec.analytic==\"version_cicd_tools\"" > } > } > } > ] > } > } > ] > } > }, > "tenant_meta": { > "namespace": "{{namespace}}" > } > } > ``` The response for the example above includes then related repository versions and metrics as nested references under their parent resources. ```json expandable theme={null} { "meta": { "name": "Projects with RepositoryVersions and CI/CD Tool Metrics" }, "spec": { "query_response": { "@type": "type.googleapis.com/internal.endor.ai.endor.v1.ListProjectsResponse", "list": { "objects": [ { "meta": { "name": "https://github.com/OWASP-Benchmark/BenchmarkJava.git", "references": { "RepositoryVersion": { "@type": "type.googleapis.com/internal.endor.ai.endor.v1.ListRepositoryVersionsResponse", "list": { "objects": [ { "meta": { "name": "master", "references": { "Metric": { "@type": "type.googleapis.com/internal.endor.ai.endor.v1.ListMetricsResponse", "list": { "objects": [ { "spec": { "analytic": "version_cicd_tools", "metric_values": { "CiCdTools": { "category": "CiCdTools", "ci_cd_tools": { "tools": [ // additional content from response not shown here ] } } } }, "uuid": "65b0287557d245d7a840220d" } ], "response": {} } } } }, "scan_object": { "scan_time": "2024-04-15T02:17:56.541640347Z", "status": "STATUS_SCANNED" }, "uuid": "65b02837f82e0aeecbf468df" } ], "response": {} } } } }, "uuid": "65b028374ab228de2903786e" } ], "response": {} } }, // additional content from response not shown here } ``` ## Find a project and related Finding counts The following query example requests the projects matching the given filter, with multiple references specified for the counts of related finding resources for the default branch. > Note: When using multiple references of the same resource kind, the field `return_as` serves as the key for identifying references in the response. > [tab] endorctl > > ```bash theme={null} > endorctl api create --resource Query \ > --data '{ > "meta": { > "name": "Project with Finding counts by category" > }, > "spec": { > "query_spec": { > "kind": "Project", > "list_parameters": { > "filter": "meta.name matches \"acme-monorepo\"", > "mask": "uuid,meta.name" > }, > "references": [ > { > "connect_from": "uuid", > "connect_to": "spec.project_uuid", > "query_spec": { > "return_as": "VulnerabilityFindingsCount", > "kind": "Finding", > "list_parameters": { > "count": true, > "filter": "context.type==CONTEXT_TYPE_MAIN and spec.finding_categories contains [FINDING_CATEGORY_VULNERABILITY]" > } > } > }, > { > "connect_from": "uuid", > "connect_to": "spec.project_uuid", > "query_spec": { > "return_as": "SecretsFindingsCount", > "kind": "Finding", > "list_parameters": { > "count": true, > "filter": "context.type==CONTEXT_TYPE_MAIN and spec.finding_categories contains [FINDING_CATEGORY_SECRETS]" > } > } > }, > { > "connect_from": "uuid", > "connect_to": "spec.project_uuid", > "query_spec": { > "return_as": "MalwareFindingsCount", > "kind": "Finding", > "list_parameters": { > "count": true, > "filter": "context.type==CONTEXT_TYPE_MAIN and spec.finding_categories contains [FINDING_CATEGORY_MALWARE]" > } > } > } > ] > } > } > }' > ``` > [tab] curl > > ```bash theme={null} > query_data=$(cat << EOF > { > "meta": { > "name": "Project with Finding counts by category" > }, > "spec": { > "query_spec": { > "kind": "Project", > "list_parameters": { > "filter": "meta.name matches \"acme-monorepo\"", > "mask": "uuid,meta.name" > }, > "references": [ > { > "connect_from": "uuid", > "connect_to": "spec.project_uuid", > "query_spec": { > "return_as": "VulnerabilityFindingsCount", > "kind": "Finding", > "list_parameters": { > "count": true, > "filter": "context.type==CONTEXT_TYPE_MAIN and spec.finding_categories contains [FINDING_CATEGORY_VULNERABILITY]" > } > } > }, > { > "connect_from": "uuid", > "connect_to": "spec.project_uuid", > "query_spec": { > "return_as": "SecretsFindingsCount", > "kind": "Finding", > "list_parameters": { > "count": true, > "filter": "context.type==CONTEXT_TYPE_MAIN and spec.finding_categories contains [FINDING_CATEGORY_SECRETS]" > } > } > }, > { > "connect_from": "uuid", > "connect_to": "spec.project_uuid", > "query_spec": { > "return_as": "MalwareFindingsCount", > "kind": "Finding", > "list_parameters": { > "count": true, > "filter": "context.type==CONTEXT_TYPE_MAIN and spec.finding_categories contains [FINDING_CATEGORY_MALWARE]" > } > } > } > ] > } > }, > "tenant_meta": { > "namespace": "$ENDOR_NAMESPACE" > } > } > EOF > ) > > curl "https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/queries" \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --request POST \ > --data "$query_data" > ``` > [tab] HTTP > > ```bash theme={null} > @baseUrl = https://api.endorlabs.com > @token = `` > @namespace = `` > > ### > POST {{baseUrl}}/v1/namespaces/{{namespace}}/queries HTTP/1.1 > Authorization: Bearer {{token}} > > { > "meta": { > "name": "Project with Finding counts by category" > }, > "spec": { > "query_spec": { > "kind": "Project", > "list_parameters": { > "filter": "meta.name matches \"acme-monorepo\"", > "mask": "uuid,meta.name" > }, > "references": [ > { > "connect_from": "uuid", > "connect_to": "spec.project_uuid", > "query_spec": { > "return_as": "VulnerabilityFindingsCount", > "kind": "Finding", > "list_parameters": { > "count": true, > "filter": "context.type==CONTEXT_TYPE_MAIN and spec.finding_categories contains [FINDING_CATEGORY_VULNERABILITY]" > } > } > }, > { > "connect_from": "uuid", > "connect_to": "spec.project_uuid", > "query_spec": { > "return_as": "SecretsFindingsCount", > "kind": "Finding", > "list_parameters": { > "count": true, > "filter": "context.type==CONTEXT_TYPE_MAIN and spec.finding_categories contains [FINDING_CATEGORY_SECRETS]" > } > } > }, > { > "connect_from": "uuid", > "connect_to": "spec.project_uuid", > "query_spec": { > "return_as": "MalwareFindingsCount", > "kind": "Finding", > "list_parameters": { > "count": true, > "filter": "context.type==CONTEXT_TYPE_MAIN and spec.finding_categories contains [FINDING_CATEGORY_MALWARE]" > } > } > } > ] > } > }, > "tenant_meta": { > "namespace": "{{namespace}}" > } > } > ``` The response for the above example includes the Finding counts as references on the project list response, using the values provided with `return_as` for the reference keys. ```json expandable theme={null} { "meta": { "name": "Project with Finding counts by category" }, "spec": { "query_response": { "@type": "type.googleapis.com/internal.endor.ai.endor.v1.ListProjectsResponse", "list": { "objects": [ { "meta": { "name": "https://github.com/example/acme-monorepo.git", "references": { "MalwareFindingsCount": { "@type": "type.googleapis.com/internal.endor.ai.endor.v1.ListFindingsResponse", "count_response": { "count": 1 } }, "SecretsFindingsCount": { "@type": "type.googleapis.com/internal.endor.ai.endor.v1.ListFindingsResponse", "count_response": { "count": 8 } }, "VulnerabilityFindingsCount": { "@type": "type.googleapis.com/internal.endor.ai.endor.v1.ListFindingsResponse", "count_response": { "count": 74 } } } }, "uuid": "65bbde52d70a7f64c70de4d6" } ], "response": {} } }, // additional content from response not shown here } ``` ## Pagination in Query Service endpoint The `page_size` field allows you to control the number of elements returned. By default, this value is 100, with a maximum of 500. A paginated response includes a value for the field, `next_page_token`. You can use this value to fetch additional pages of results. For example, the following query requests for vulnerability findings. ```bash expandable theme={null} endorctl api create --resource Query \ --data '{ "tenant_meta": { "namespace": "doe" }, "spec": { "query_spec": { "kind": "Finding", "list_parameters": { "page_size": 50, "filter": "meta.name == \'vulnerability\'" } } } }' ``` The response to the request contains `next_page_token`. ```json expandable theme={null} { "spec": { "query_response": { "@type": "type.googleapis.com/internal.endor.ai.endor.v1.ListFindingsResponse", "list": { "objects": [ { "meta": { "name": "vulnerability", "description": "Example vulnerability finding" }, "spec": { "level": "FINDING_LEVEL_CRITICAL", "finding_categories": ["FINDING_CATEGORY_VULNERABILITY"] } } // Additional findings up to page_size of 50 ], "response": { "next_page_token": 50, "next_page_id": "unique-id-for-next-page" } } } } } ``` Send the next request with the `next_page_token` to fetch the next set of results. ```bash expandable theme={null} endorctl api create --resource Query \ --data '{ "tenant_meta": { "namespace": "doe" }, "spec": { "query_spec": { "kind": "Finding", "list_parameters": { "page_size": 50, "page_token": 50, "filter": "meta.name == \'vulnerability\'" } } } }' ``` # Using saved queries Source: https://docs.endorlabs.com/developers-api/rest-api/using-the-rest-api/advanced-use-cases/saved-queries/index Learn how to use saved queries for interacting with the Endor Labs REST API. The Endor Labs REST API provides the [Query Service](/api-reference/queryservice/createquery) for flexible requests for resources. The Endor Labs REST API also provides the ability to save and manage queries for your own use cases through the [Saved Query Service](/api-reference/savedqueryservice/listsavedqueries). See [Using the Query Service](/developers-api/rest-api/using-the-rest-api/advanced-use-cases/query-service) for examples on using the Query Service to specify and request resources from the Endor Labs REST API. ## Creating a saved query To create a saved query, embed a Query object specifying the request in a SavedQuery object. > [tab] endorctl > > ```bash theme={null} > saved_query_data=$(cat << EOF > { > "meta": { > "name": "Saved Query for Recent Vulnerabilities" > }, > "spec": { > "query": { > "meta": { > "name": "Query for Recent Vulnerabilities" > }, > "spec": { > "query_spec": { > "kind": "Finding", > "list_parameters": { > "filter": "meta.create_time > now(-24h) and spec.finding_categories contains [FINDING_CATEGORY_VULNERABILITY]", > "mask": "uuid,meta.create_time,meta.update_time,meta.description,spec.level" > } > } > }, > "tenant_meta": { > "namespace": "$ENDOR_NAMESPACE" > } > } > } > } > EOF > ) > > endorctl api create --resource SavedQuery \ > --data "$saved_query_data" > ``` > [tab] curl > > ```bash theme={null} > saved_query_data=$(cat << EOF > { > "meta": { > "name": "Saved Query for Recent Vulnerabilities" > }, > "spec": { > "query": { > "meta": { > "name": "Query for Recent Vulnerabilities" > }, > "spec": { > "query_spec": { > "kind": "Finding", > "list_parameters": { > "filter": "meta.create_time > now(-24h) and spec.finding_categories contains [FINDING_CATEGORY_VULNERABILITY]", > "mask": "uuid,meta.create_time,meta.update_time,meta.description,spec.level" > } > } > }, > "tenant_meta": { > "namespace": "$ENDOR_NAMESPACE" > } > } > }, > "tenant_meta": { > "namespace": "$ENDOR_NAMESPACE" > } > } > EOF > ) > > curl "https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/saved-queries" \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --request POST \ > --data "$saved_query_data" > ``` > [tab] HTTP > > ```bash theme={null} > @baseUrl = https://api.endorlabs.com > @token = `` > @namespace = `` > > ### > POST {{baseUrl}}/v1/namespaces/{{namespace}}/saved-queries HTTP/1.1 > Authorization: Bearer {{token}} > > { > "meta": { > "name": "Saved Query for Recent Vulnerabilities" > }, > "spec": { > "query": { > "meta": { > "name": "Query for Recent Vulnerabilities" > }, > "spec": { > "query_spec": { > "kind": "Finding", > "list_parameters": { > "filter": "meta.create_time > now(-24h) and spec.finding_categories contains [FINDING_CATEGORY_VULNERABILITY]", > "mask": "uuid,meta.create_time,meta.update_time,meta.description,spec.level" > } > } > }, > "tenant_meta": { > "namespace": "{{namespace}}" > } > } > }, > "tenant_meta": { > "namespace": "{{namespace}}" > } > } > ``` ## Updating a saved query The following example updates the Query specified in the SavedQuery to add additional [list parameters](/developers-api/rest-api/using-the-rest-api/getting-started#list-parameters). > [tab] endorctl > > ```bash theme={null} > saved_query_uuid="``" > saved_query_data=$(cat << EOF > { > "spec": { > "query": { > "spec": { > "query_spec": { > "kind": "Finding", > "list_parameters": { > "filter": "meta.create_time > now(-24h) and spec.finding_categories contains [FINDING_CATEGORY_VULNERABILITY]", > "mask": "uuid,meta.create_time,meta.update_time,meta.description,spec.level", > "page_size": 10, > "sort": { > "order": "SORT_ENTRY_ORDER_DESC", > "path": "meta.create_time" > } > } > } > } > } > } > } > EOF > ) > > endorctl api update --resource SavedQuery \ > --uuid "$saved_query_uuid" \ > --field-mask "spec.query.spec.query_spec" \ > --data "$saved_query_data" > ``` > [tab] curl > > ```bash theme={null} > saved_query_uuid="``" > saved_query_data=$(cat << EOF > { > "request": { > "update_mask": "spec.query.spec.query_spec" > }, > "object": { > "uuid": "$saved_query_uuid", > "spec": { > "query": { > "spec": { > "query_spec": { > "kind": "Finding", > "list_parameters": { > "filter": "meta.create_time > now(-24h) and spec.finding_categories contains [FINDING_CATEGORY_VULNERABILITY]", > "mask": "uuid,meta.create_time,meta.update_time,meta.description,spec.level", > "page_size": 10, > "sort": { > "order": "SORT_ENTRY_ORDER_DESC", > "path": "meta.create_time" > } > } > } > } > } > } > } > } > EOF > ) > > curl "https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/saved-queries" \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --request PATCH \ > --data "$saved_query_data" > ``` > [tab] HTTP > > ```bash theme={null} > @baseUrl = https://api.endorlabs.com > @token = `` > @namespace = `` > @uuid = `` > > ### > PATCH {{baseUrl}}/v1/namespaces/{{namespace}}/saved-queries HTTP/1.1 > Authorization: Bearer {{token}} > > { > "request": { > "update_mask": "spec.query.spec.query_spec" > }, > "object": { > "uuid": "{{uuid}}", > "spec": { > "query": { > "spec": { > "query_spec": { > "kind": "Finding", > "list_parameters": { > "filter": "meta.create_time > now(-24h) and spec.finding_categories contains [FINDING_CATEGORY_VULNERABILITY]", > "mask": "uuid,meta.create_time,meta.update_time,meta.description,spec.level", > "page_size": 10, > "sort": { > "order": "SORT_ENTRY_ORDER_DESC", > "path": "meta.create_time" > } > } > } > } > } > } > } > } > ``` See also [interactive mode](/developers-api/cli/commands/api#endorctl-api-update-interactive-mode) for managing updates to a SavedQuery with `endorctl api update`: ```bash theme={null} endorctl api update --interactive --resource SavedQuery \ --name "Saved Query for Recent Vulnerabilities" ``` ## Evaluating saved queries After you create a Saved Query, you can evaluate the request specified by its Query on demand. > [tab] endorctl > > ```bash theme={null} > endorctl api get --resource SavedQuery --uuid `` > ``` > [tab] curl > > ```bash theme={null} > base_url="https://api.endorlabs.com" > uuid="``" > > curl "$base_url/v1/namespaces/$ENDOR_NAMESPACE/saved-queries/$uuid/evaluate" \ > --header "Authorization: Bearer $ENDOR_TOKEN" > ``` > [tab] HTTP > > ```bash theme={null} > @baseUrl = https://api.endorlabs.com > @token = `` > @namespace = `` > @uuid = `` > > ### > GET {{baseUrl}}/v1/namespaces/{{namespace}}/saved-queries/{{uuid}}/evaluate HTTP/1.1 > Authorization: Bearer {{token}} > ``` The response returns the resulting data in a nested field under the Query specification. Use the `jq` command to extract the nested data. For the example queries given above, the following command will evaluate the given saved query, and extract the list of Finding objects from the Query response: ```bash theme={null} endorctl api get --resource SavedQuery --uuid \ | jq '.spec.query.spec.query_response.list.objects[]' ``` # Best practices Source: https://docs.endorlabs.com/developers-api/rest-api/using-the-rest-api/best-practices/index Follow these best practices when using the Endor Labs REST API. ## Using endorctl * Enable [tab-completion](/developers-api/cli/commands/completion). * Use [interactive mode](/developers-api/cli/commands/api#endorctl-api-update-interactive-mode) for creates and updates. ## Optimize queries * Use the [count](/developers-api/rest-api/using-the-rest-api/getting-started#list-parameters) flag if you only need the total number of objects matching the query. * Use [grouping](/developers-api/rest-api/using-the-rest-api/grouping) if you only need the number of objects per unique value of a given field, or a set of fields. * Use [field-masks](/developers-api/rest-api/using-the-rest-api/masks) to return only the fields you need. * [Filter](/developers-api/rest-api/using-the-rest-api/filters) on [common fields](/developers-api/rest-api/using-the-rest-api/data-model/common-fields) such as `uuid` or `meta.name` before resource kind specific fields. # Common fields Source: https://docs.endorlabs.com/developers-api/rest-api/using-the-rest-api/data-model/common-fields/index Learn about the common fields for all objects in the Endor Labs data model. All objects adhere to the same high-level structure as outlined below. Object specific fields are defined in **Spec**. For more information, see [Resource kinds](/developers-api/rest-api/using-the-rest-api/data-model/resource-kinds). ## UUID All objects have a unique **UUID**. You can use UUID to retrieve objects individually through the API. ## Meta All objects include a common nested object called **Meta**. Meta is a mandatory object that contains the common fields for each object, including the following fields. \- Field_name: \`name\` Description: The name of the object. \- Field_name: \`description\` Description: A description of the object. \- Field_name: \`kind\` Description: The resource kind of the object (for example, \`RepositoryVersion\`). \- Field_name: \`version\` Description: The version of the object, used to differentiate between different versions if needed. \- Field_name: \`parent_uuid\` Description: The UUID of the parent object. \- Field_name: \`parent_kind\` Description: The resource kind of the parent object (for example, \`Project\`). \- Field_name: \`create_time\` Description: The time the object was created. \- Field_name: \`update_time\` Description: The time the object was last updated (HTTP PATCH). \- Field_name: \`upsert_time\` Description: The time the object was last updated or created (HTTP POST). \- Field_name: \`created_by\` Description: The name and authentication source of the user who created the object. Example: \`ewok\@endor.ai\@google\@api-key\` \- Field_name: \`updated_by\` Description: The name and authentication source of the last user who updated the object. Example: \`vulnerabilityingestor\@endor.ai\@x509\` \- Field_name: \`tags\` Description: A list of custom tags attached to the object. Tags can be used to organize objects and find collections of objects that satisfy certain conditions. A tag must be 255 characters or fewer. Tags may contain alphanumeric characters, \`@\`, \`\_\`, \`.\`, and \`-\`. An optional prefix must be separated with \`=\` (for example, \`my_tag=my_value\`). \- Field_name: \`annotations\` Description: Map of additional metadata for the object. Annotation keys may contain alphanumeric characters, \`\_\`, \`.\`, and \`-\`. Annotation values can be structured or unstructured and may include characters not permitted by tags. Values must be 16384 bytes or smaller. ## TenantMeta Most objects include a common nested object called **TenantMeta**. TenantMeta contains the following field. \- Field_name: \`namespace\` Description: Name of the namespace the object belongs to. Organizes organizational units into virtual groupings of objects. Namespaces must be fully qualified names (for example, the child namespace of \`endor.prod\` called \`app\` is \`endor.prod.app\`). ### OSS tenant There is a common tenant for all OSS projects called `oss`, to which customers have read access. ## Spec All objects include a common nested object called **Spec**. This mandatory object contains the specification of the object, representing its current state. For more information, see [Resource kinds](/developers-api/rest-api/using-the-rest-api/data-model/resource-kinds). ## Context Most objects include a common nested object called **Context**. Contexts keep objects from different scans separated. The context object has the following fields. \- Field_name: \`type\` Description: The \[type]\(#context-types) of context, defined based on how endorctl is being used. \- Field_name: \`id\` Description: The ID of the context, such as a pull request ID or branch reference. \- Field_name: \`will_be_deleted_at\` Description: The time when the object will be automatically deleted by the system. \- Field_name: \`tags\` Description: A list of tags applied to a context. Used primarily for CI and SBOM contexts. ### Context types Each context has a type and an id. For example, objects created during a scan of the default branch belong to the **main** context, while objects for non-default branches have the context type **ref**. \- Context_type: \`CONTEXT_TYPE_MAIN\` Description: Objects from a scan of the default branch. All objects in the OSS namespace are in the main context. The context ID is always \`default\`. \- Context_type: \`CONTEXT_TYPE_REF\` Description: Objects from a scan of a specific branch. The context ID is the branch reference name. \- Context_type: \`CONTEXT_TYPE_CI_RUN\` Description: Objects from a PR scan. The context ID is the PR UUID. Objects in this context are deleted after three weeks. \- Context_type: \`CONTEXT_TYPE_SBOM\` Description: Objects from an SBOM scan. The context ID is the SBOM serial number or some other unique identifier. \- Context_type: \`CONTEXT_TYPE_EXTERNAL\` Description: Indicates that this object is a copy/temporary value of an object in another project. Used for same-tenant dependencies. In source code reference this is equivalent to "vendor" folders. Package versions in the external context are only scanned for call graphs. No other operations are performed on them. ## Processing status **Project** and **PackageVersion** objects include a common nested object called **ProcessingStatus**, which contains fields about the processing status of the object (when it was/will be scanned). The processing status object has the following fields: \- Field_name: \`scan_state\` Description: The \[state]\(#scan-state) of the scan. \- Field_name: \`scan_time\` Description: The last time the object was scanned. Projects onboarded via the GitHub App are scanned every 24 hours. \- Field_name: \`analytic_time\` Description: The last time the object was analyzed. Analytics are run automatically every 24 hours. \- Field_name: \`disable_automated_scan\` Description: A boolean used to disable automatic scanning by the system. ### Scan state The following scan states are supported. \- Scan_state: \`SCAN_STATE_NOT_PROCESSED\` Description: The object has not yet been processed by the system. \- Scan_state: \`SCAN_STATE_IDLE\` Description: The object has been scanned at least once. \- Scan_state: \`SCAN_STATE_INGESTING\` Description: The object is being scanned. \- Scan_state: \`SCAN_STATE_ANALYTIC\` Description: The object is being analyzed. \- Scan_state: \`SCAN_STATE_UNREACHABLE\` Description: The object is not reachable from the scheduler. \- Scan_state: \`SCAN_STATE_REQUEST_FULL_RESCAN\` Description: The object is marked for a complete rescan. This only applies to OSS projects. \- Scan_state: \`SCAN_STATE_REQUEST_INCREMENTAL_RESCAN\` Description: The object is marked for an incremental rescan, where only new packages discovered in the scan are added. ## Example The following is an example of a **Project** object. ```json expandable theme={null} { "meta": { "create_time": "2023-12-05T00:04:21.853Z", "kind": "Project", "name": "https://github.com/my_organization/my_repository.git", "update_time": "2024-05-01T16:50:03.830911988Z", "version": "v1" }, "processing_status": { "analytic_time": "2024-05-01T16:45:06.483972413Z", "disable_automated_scan": true, "scan_state": "SCAN_STATE_IDLE", "scan_time": "2024-03-18T14:38:31.899249002Z" }, "spec": { "git": { "full_name": "endorlabs/monorepo", "git_clone_url": "git@github.com:my_organization/my_repository.git", "http_clone_url": "https://github.com/my_organization/my_repository.git", "organization": "endorlabs", "path": "monorepo", "web_url": "https://api.github.com/my_organization/my_repository" }, "internal_reference_key": "https://github.com/my_organization/my_repository.git", "platform_source": "PLATFORM_SOURCE_GITHUB" }, "tenant_meta": { "namespace": "my_namespace" }, "uuid": "656e69058032bf0abaaeb681" } ``` # Data model Source: https://docs.endorlabs.com/developers-api/rest-api/using-the-rest-api/data-model/index Learn about the Endor Labs data model. Objects are persistent entities within the Endor Labs system that represent the results of your scans. Specifically, they can describe: * The projects and package versions that Endor Labs scanned. * The results of the scans, including **ScanResults**, **Findings**, and **Metrics**. * The context used for the scan (for example, main branch vs. pull request). * The policies used for the scans. To create, modify, or delete objects, you need to use the Endor Labs REST API - Either indirectly with the endorctl command-line tool or directly with the REST API. * [Common fields](/developers-api/rest-api/using-the-rest-api/data-model/common-fields): Learn about the common fields for all objects in the Endor Labs data model. * [Resource kinds](/developers-api/rest-api/using-the-rest-api/data-model/resource-kinds): Learn about the resource kinds in the Endor Labs data model. # Resource kinds Source: https://docs.endorlabs.com/developers-api/rest-api/using-the-rest-api/data-model/resource-kinds/index Learn about the resource kinds in the Endor Labs data model. The following diagram shows the Endor Labs data model for the most commonly used resource kinds. Solid arrows point from a parent to its child through `meta.parent_uuid`, and the dotted arrow is a reference through `spec.project_uuid`. Lighter boxes are objects that are re-computed on every scan. flowchart TD P\[Project] SR\[ScanResult] R\[Repository] RV\[RepositoryVersion] PV\[PackageVersion] DM\[DependencyMetadata] M\[Metric] F\[Finding] LR\[LinterResult] P -->|0..\*| SR P -->|0..1| R P -->|0..\*| RV P -.->|spec.project_uuid| PV PV -->|0..\*| DM R --> M R --> F RV --> M RV --> F RV --> LR PV --> M PV --> F PV --> LR classDef persistent fill:\{\{endorColor}},stroke:\{\{endorBorder}},color:#000000 classDef perScan fill:\{\{managedColor}},stroke:\{\{managedBorder}},color:#000000 class P,R,RV,PV persistent class SR,DM,M,F,LR perScan This section describes the most commonly used resource kinds. For a complete list of supported resource kinds, see the [Endor Labs OpenAPI documentation](/api-reference/). All objects contain a reference to the project UUID, either as the parent object (`meta.parent_uuid`) or a specific field in the object-specific data if the project is not the direct parent (`spec.project_uuid` if not specified otherwise). Use the following command to get a list of all objects of a given resource kind in your tenant. Here are a few useful options: * `--count` * `--page-size=1` * `--list-all` * `--filter="meta.parent_uuid=="` * `--filter="spec.project_uuid=="` ```bash theme={null} endorctl api list -r ``` ## Project * This is the logical root of all the other information for a given project. * Contains information about the source code location of a project, such as a Git repository, or a package manager package name. * Does not have a parent and is not associated with a context. * The object name is the HTTP clone URL, for example: `"https://github.com/definitelytyped/definitelytyped.git"`. For more information, see the [ProjectService REST API documentation](/api-reference/projectservice/listprojects). ## Repository * Contains information about the source code for a project. * Child of a Project and, just like the Project, does not belong to a context. * There is at most one Repository per Project, but a Project may not have a Repository if there is no source code. * The object name is the same as the Project. For more information, see the [RepositoryService REST API documentation](/api-reference/repositoryservice/listrepositories). ## RepositoryVersion * Contains information about a specific version of a Repository. * Has the Project as the parent. * There are often multiple RepositoryVersions per project. * Each RepositoryVersion is associated with a [Context](/developers-api/rest-api/using-the-rest-api/data-model/common-fields#context). * The object name is the corresponding branch name, tag, or SHA, for example: `"main"`. For more information, see the [RepositoryVersionService REST API documentation](/api-reference/repositoryversionservice/listrepositoryversions). ## PackageVersion * Contains information about a specific version of a package and its dependencies. * Does not have a parent (for historical reasons), but is associated with a [Context](/developers-api/rest-api/using-the-rest-api/data-model/common-fields#context) and connected to the Project through `spec.project_uuid`. * The object name is the corresponding package version name in the format `://@`, for example: `"mvn://org.webjars.npm:types__json-schema@1.2.3"`. For more information, see the [PackageVersionService REST API documentation](/api-reference/packageversionservice/listpackageversions). ### Resolution errors Details about any dependency resolution or call graph generation errors for a package version are stored in `spec.resolution_errors`. There are three categories of resolution errors, each with a separate field that can contain up to one resolution error: 1. **Unresolved** - Details in `spec.resolution_errors.unresolved` if there was an error computing the unresolved dependencies. 2. **Resolved** - Details in `spec.resolution_errors.resolved` if there was an error resolving the dependency versions. 3. **Call graph** - Details in `spec.resolution_errors.call_graph` if there was an error generating the call graph. Each resolution error has a `status_error` field and may also contain details about the `target`, the `operation` that failed, and a `description` of the error. The following status errors are supported: \- Status_Error: STATUS_ERROR_BUILD Description: Indicates that the plugin failed to build the package version. This status error is only used for unresolved dependencies. \- Status_Error: STATUS_ERROR_CALL_GRAPH Description: Indicates that the system failed to create the call graph. This status error is only used for call graph computation. \- Status_Error: STATUS_ERROR_DEPENDENCY Description: Indicates that the system failed to resolve a dependency. In most cases, this happens when a manifest contains bad associations of dependencies and versions. This status error is only used for resolved dependencies. \- Status_Error: STATUS_ERROR_INTERNAL Description: Indicates that there was an internal system failure such as a data stream error. \- Status_Error: STATUS_ERROR_MANIFEST_LOAD Description: Indicates that the system is unable to find the manifest of the language (pom.xml, packages.json, etc). This status error is only used for unresolved dependencies. \- Status_Error: STATUS_ERROR_MANIFEST_PARSE Description: Indicates that the system failed to parse the manifest. This status error is only used for unresolved dependencies. \- Status_Error: STATUS_ERROR_MISSING_ARTIFACT Description: Indicates that the system failed to compute the call graph because the package is not built. This status error is only used for call graph computation. \- Status_Error: STATUS_ERROR_NO_CODE_ARTIFACT Description: Indicates that the package version does not have any source code. This status error is only used for call graphs. \- Status_Error: STATUS_ERROR_PACKAGE_VERSION_UNAVAILABLE Description: Indicates that the package version is not available from the package manager. This status error is only used for unresolved dependencies. \- Status_Error: STATUS_ERROR_UNSUPPORTED Description: Indicates that a package version with an unsupported language was scanned. \- Status_Error: STATUS_ERROR_VENV Description: Indicates that the system failed to create the virtual environment required to generate the call graph. This status error is only applicable to Python projects. Below is an example resolution error in the **Resolved** category: ```json theme={null} { "spec": { "resolution_errors": { "resolved": { "description": "failed to discover dependency: unable to resolve dependencies for 'requirements': unable to get direct dependencies: unable to install modules to extract dependencies: unable to resolve package version: ResolveModuleVersion: error in pypi json api for: torch, exact version: 1.9.0+cpu, err: package not found in the repository: unable to resolve dependency version: unable to discover dependencies, unable to discover dependencies", "operation": "python:resolvedDependencies:discover", "status_error": "STATUS_ERROR_DEPENDENCY", "target": "pypi://requirements@main" } } } } ``` ## DependencyMetadata * Different from other common resource kinds as it represents the *relationship* between two PackageVersions: The **importer** and the **dependency**. * There is one DependencyMetadata object for every dependency for every PackageVersion. * Has the **importer** PackageVersion as the parent and exists in the same [Namespace](/developers-api/rest-api/using-the-rest-api/data-model/common-fields#tenantmeta) and [Context](/developers-api/rest-api/using-the-rest-api/data-model/common-fields#context) as the parent. * The object name is the same as the **dependency** PackageVersion. * Combine the object name (`meta.name`) and the parent UUID (`meta.parent_uuid`) to get a unique key. * Connected to the Project through `spec.importer_data.project_uuid`. * Details about the relationship are stored in `spec.dependency_data`. For example: * `spec.dependency_data.direct` * `spec.dependency_data.reachable` * `spec.dependency_data.scope` * `spec.dependency_data.native_scope`, for example: `"provided"` * `spec.dependency_data.native_scope` records the dependency scope as the package manager reports it, such as Maven `"provided"` or npm `"devDependencies"`. When the resolver reports no native scope, the value mirrors the normalized scope as `normal`, `test`, or `build`. `spec.dependency_data.scope` stays Normal, Test, or Build. An empty value means the resolver supplied no scope, or the record predates this field. For more information, see the [DependencyMetadataService REST API documentation](/api-reference/dependencymetadataservice/listdependencymetadata). ## LinterResult * Contains the results of scans using third-party programs such as Gitleaks or Semgrep. * Has a RepositoryVersion or PackageVersion as the parent. * Belongs to the same [Context](/developers-api/rest-api/using-the-rest-api/data-model/common-fields#context) as the parent. * Connected to the Project through `spec.project_uuid`. * The object name is the name of the rule that created the result, for example: `"gen-shady-links"`. * The result origin is stored in `spec.origin`, for example: `"LINTER_RESULT_ORIGIN_SECRETS_SCANNER"`. For more information, see the [LinterResultService REST API documentation](/api-reference/linterresultservice/listlinterresults). ## Metric * Contains the output of the analytics processing. * Has a PackageVersion, RepositoryVersion, or Repository as the parent. * Belongs to the same [Context](/developers-api/rest-api/using-the-rest-api/data-model/common-fields#context) as the parent. * Connected to the Project through `spec.project_uuid`. * The object name is the name of the analytic that created the metric, for example: `"package_version_scorecard"`. For more information, see the [MetricService REST API documentation](/api-reference/metricservice/listmetrics). ### Metric types There are many different types of Metrics. The specifics are stored under `spec.metric_values..`, for example: `spec.metric_values.scorefactor.score_factor_list`. Some Metrics have more than one key-value field under `spec.metric_values`. The following table lists all supported Metric types along with the corresponding paths to the Metric specific data under `spec.metric_values`. \- Metric_Name: \`github_workflow_posture\` Metric_Values_Paths: \`GHWorkflowPosture.github_workflows\` Description: Posture management of GitHub Actions workflow yaml files for a repository version. \- Metric_Name: \`model_scorecard\` Metric_Values_Paths: \`scorecard.score_card\`, \`scorefactor.score_factor_list\` Description: Scorecard for a model repository. \- Metric_Name: \`package_version_scorecard\` Metric_Values_Paths: \`scorecard.score_card\`, \`scorefactor.score_factor_list\` Description: Scorecard for a package version. \- Metric_Name: \`pkg_version_info_for_license\` Metric_Values_Paths: \`licenseInfoType.license_info\` Description: License information for a package version. \- Metric_Name: \`pkg_version_stats_for_dependency\` Metric_Values_Paths: \`dependencyStatsType.dependency_stats\` Description: Dependency related statistics for a package version. \- Metric_Name: \`pkg_version_stats_for_linter\` Metric_Values_Paths: \`linterStats.linter_stats\` Description: Linter related statistics for a package version. \- Metric_Name: \`pkg_version_stats_for_secret\` Metric_Values_Paths: \`secretStats.secret_stats\` Description: Secret related statistics for a package version. \- Metric_Name: \`pkg_version_stats_for_vuln\` Metric_Values_Paths: \`vulnerabilityStatsType.vulnerability_stats\`, \`publishedVulnerabilitiesStatsType.time_tracker\` Description: Vulnerability related statistics for a package version. \- Metric_Name: \`repo_activity_for_commit\` Metric_Values_Paths: \`locationActivityTrackerType.time_tracker\`, \`locationActivityCountType.tag_counts\` Description: Commit activity for a repository. \- Metric_Name: \`repo_activity_for_issue\` Metric_Values_Paths: \`locationActivityTrackerType.time_tracker\`, \`locationActivityCountType.tag_counts\` Description: Issue activity for a repository. \- Metric_Name: \`repo_activity_for_pr\` Metric_Values_Paths: \`allActivityTrackerType.time_tracker\`, \`accountActivityTrackerType.time_tracker\`, \`locationActivityTrackerType.time_tracker\`, \`locationActivityCountType.tag_counts\` Description: PR activity for a repository. \- Metric_Name: \`repo_scorecard\` Metric_Values_Paths: \`scorecard.score_card\`, \`scorefactor.score_factor_list\` Description: Scorecard for a repository. \- Metric_Name: \`repo_scpm_data\` Metric_Values_Paths: \`ScpmDataType.scpm_data\` Description: RSPM data for a repository. \- Metric_Name: \`repo_stats_for_dependency\` Metric_Values_Paths: \`dependencyStatsType.dependency_stats\` Description: Dependency related statistics for a repository version. \- Metric_Name: \`repo_stats_for_file\` Metric_Values_Paths: \`fileStats.file_stats\` Description: File related statistics for a repository version. \- Metric_Name: \`version_activity_for_commit\` Metric_Values_Paths: \`locationActivityTrackerType.time_tracker\`, \`locationActivityCountType.tag_counts\` Description: Commit activity of a repository version. \- Metric_Name: \`version_activity_for_issue\` Metric_Values_Paths: \`locationActivityTrackerType.time_tracker\`, \`locationActivityCountType.tag_counts\` Description: Issue activity of a repository version. \- Metric_Name: \`version_activity_for_pr\` Metric_Values_Paths: \`allActivityTrackerType.time_tracker\`, \`accountActivityTrackerType.time_tracker\`, \`locationActivityTrackerType.time_tracker\`, \`locationActivityCountType.tag_counts\` Description: PR activity of a repository version. \- Metric_Name: \`version_cicd_tools\` Metric_Values_Paths: \`CiCdTools.ci_cd_tools\` Description: List of CI/CD Tools for a repository version. \- Metric_Name: \`version_scorecard\` Metric_Values_Paths: \`scorecard.score_card\`, \`scorefactor.score_factor_list\` Description: Scorecard for a repository version. \- Metric_Name: \`version_stats_for_dependency\` Metric_Values_Paths: \`dependencyStatsType.dependency_stats\` Description: Dependency related statistics for a repository version. \- Metric_Name: \`version_stats_for_file\` Metric_Values_Paths: \`fileStats.file_stats\` Description: File related statistics for a repository version. \- Metric_Name: \`version_stats_for_vuln\` Metric_Values_Paths: \`vulnerabilityStatsType.vulnerability_stats\`, \`publishedVulnerabilitiesStatsType.time_tracker\` Description: Vulnerability related statistics for a package version. ## Finding * Contains details of a problem that needs to be fixed. * Has a PackageVersion, RepositoryVersion, or Repository as the parent. * Belongs to the same [Context](/developers-api/rest-api/using-the-rest-api/data-model/common-fields#context) as the parent. * Connected to the Project through `spec.project_uuid`. * There are many different types of Findings and new types can be created by custom [Finding Policies](/platform-administration/policies/finding-policies). * The object name is the Finding type, for example: `"outdated_release"`. For more information, see [Finding names and metadata](#finding-names-and-metadata) below. * The object description contains a more specific description of the Finding, for example: `"Outdated Dependency @babel/plugin-syntax-async-generators@7.8.4"`. * Additional finding type specific data is stored in `spec.finding_metadata`, for example: `spec.finding_metadata.vulnerability`. * PackageVersion Findings often involve both the root PackageVersion and a dependency PackageVersion. The following details about the dependency PackageVersion are available directly in the Finding object: * `spec.target_dependency_name`, for example: `"@babel/plugin-syntax-async-generators"` * `spec.target_dependency_package_name`, for example: `"npm://@babel/plugin-syntax-async-generators@7.8.4"` * `spec.target_dependency_version`, for example: `"7.8.4"` * `spec.target_dependency_native_scope`, for example: `"provided"` * `spec.finding_metadata.dependency_package_version_metadata` * The UUID of the DependencyMetadata for the dependency is stored in `spec.target_uuid`. * There is one Finding object for every PackageVersion that includes a dependency with a given problem. If 10 PackageVersions include a dependency with a vulnerability then there will be 10 findings for the vulnerability. For more information, see the [FindingService REST API documentation](/api-reference/findingservice/listfindings). ### Finding names and metadata The following table lists all supported values for the Finding `meta.name` field along with an example value for the corresponding `meta.description` and an explanation. \- Finding_Name: \`archived_source_code_repo\` Example_Description: \`Unmaintained Dependency derive-error-chain\@0.10.1\` Explanation: The source code repository for this package is archived. There is no additional metadata for this finding type. \- Finding_Name: \`bad_license\` Example_Description: \`License Risk in Dependency org.codehaus.plexus:plexus-io\@2.0.3\` Explanation: The repository for this package is either missing a license or the license found is problematic. There is no additional metadata for this finding type. \- Finding_Name: \`dependency_with_critical_vulnerabilities\` Example_Description: \`GHSA-65fg-84f6-3jq3: SQL Injection in Log4j 1.2.x\` Explanation: A critical severity known vulnerability has been assessed against this version of the software package according to the information in \`OSV.dev\`. Additional information about the vulnerability is stored in \`spec.finding_metadata.vulnerability\`. \- Finding_Name: \`dependency_with_high_severity_vulnerabilities\` Example_Description: \`GHSA-w9p3-5cr8-m3jj: Deserialization of Untrusted Data in Log4j 1.x\` Explanation: This package version contains a vulnerability that has been marked as high severity according to the information in \`OSV.dev\`. Additional information about the vulnerability is stored in \`spec.finding_metadata.vulnerability\`. \- Finding_Name: \`dependency_with_low_activity_score\` Example_Description: \`Dependency tempdir\@0.3.7 With Low Activity Score\` Explanation: This package may be unmaintained, as determined by multiple factors contributing to a low activity score. Reliance on packages that are no longer maintained can make it costly or unreasonable to fix significant security risks, or quality issues. This may render the package obsolete over time. By relying on an unmaintained software package, organizations may assume the cost of maintenance and have a longer lead time for fixes on any security issues, if they are fixed at all. Additional information about the score is stored in \`spec.finding_metadata.dependency_score_card\` and \`spec.finding_metadata.dependency_score_factor_list\`. \- Finding_Name: \`dependency_with_low_popularity_score\` Example_Description: \`Dependency unicode-canonical-property-names-ecmascript\@2.0.0 With Low Popularity Score\` Explanation: Popularity is a social proxy for quality. Popular packages are more likely to remain maintained and thoroughly tested. Relying on lesser known packages for critical functions may increase operational risk. Additional information about the score is stored in \`spec.finding_metadata.dependency_score_card\` and \`spec.finding_metadata.dependency_score_factor_list\`. \- Finding_Name: \`dependency_with_low_quality_score\` Example_Description: \`Dependency org.slf4j:slf4j-api\@1.7.6 With Low Quality Score\` Explanation: This package may have an increased risk of bugs and quality issues as determined by multiple factors contributing to a low-quality score. A low quality score indicates a project may have an immature software development practice. Relying on packages that do not follow code development best practices can result in an increased risk of security and operational problems. Additional information about the score is stored in \`spec.finding_metadata.dependency_score_card\` and \`spec.finding_metadata.dependency_score_factor_list\`. \- Finding_Name: \`dependency_with_low_severity_vulnerabilities\` Example_Description: \`GHSA-5mg8-w23w-74h3: Information Disclosure in Guava\` Explanation: This package version contains a vulnerability that has been marked as low severity according to the information in \`OSV.dev\`. Additional information about the vulnerability is stored in \`spec.finding_metadata.vulnerability\`. \- Finding_Name: \`dependency_with_malicious_package\` Example_Description: \`MAL-2023-462: Malicious code in fsevents (npm)\` Explanation: This version of the software package is considered malware according to \`OSV.dev\`. Additional information about the malware advisory is stored in \`spec.finding_metadata.vulnerability\`. \- Finding_Name: \`dependency_with_medium_severity_vulnerabilities\` Example_Description: \`GHSA-269g-pwp5-87pp: TemporaryFolder on unix-like systems does not limit access to created files\` Explanation: This package version contains a vulnerability that has been marked as medium severity according to the information in \`OSV.dev\`. Additional information about the vulnerability is stored in \`spec.finding_metadata.vulnerability\`. \- Finding_Name: \`dependency_with_multiple_low_scores\` Example_Description: \`Dependency esformatter-remove-trailing-commas\@1.0.1 With Multiple Low Scores\` Explanation: This package version has received low scores across more than one categories. This is stronger indication that the package may be problematic and presents an increased risk for security and operational problems. Additional information about the scores is stored in \`spec.finding_metadata.dependency_score_card\` and \`spec.finding_metadata.dependency_score_factor_list\`. \- Finding_Name: \`dependency_with_very_low_activity_score\` Example_Description: \`Dependency is-finite\@1.1.0 With Very Low Activity Score\` Explanation: This package is very likely to be unmaintained, as determined by multiple factors contributing to a very low activity score. Reliance on packages that are no longer maintained can make it costly or unreasonable to fix significant security risks, or quality issues. This may render the dependency obsolete over time. By relying on an unmaintained software package, organizations may assume the cost of maintenance and have a longer lead time for fixes on any security issues, if they are fixed at all. Additional information about the score is stored in \`spec.finding_metadata.dependency_score_card\` and \`spec.finding_metadata.dependency_score_factor_list\`. \- Finding_Name: \`dependency_with_very_low_popularity_score\` Example_Description: \`Dependency http-range-header\@0.3.0 With Very Low Popularity Score\` Explanation: Popularity is a social proxy for quality. Popular packages are more likely to remain maintained and thoroughly tested. Relying on lesser known packages for critical functions may increase operational risk. Additional information about the score is stored in \`spec.finding_metadata.dependency_score_card\` and \`spec.finding_metadata.dependency_score_factor_list\`. \- Finding_Name: \`dependency_with_very_low_quality_score\` Example_Description: \`Dependency org.apache.sis.core:sis-utility\@1.1 With Very Low Quality Score\` Explanation: This package is likely to have an increased risk of bugs and quality issues as determined by multiple factors contributing to a very low-quality score. A low quality score indicates a project may have an immature software development practice. Relying on packages that do not follow code development best practices can result in an increased risk of security and operational problems. Additional information about the score is stored in \`spec.finding_metadata.dependency_score_card\` and \`spec.finding_metadata.dependency_score_factor_list\`. \- Finding_Name: \`missing_source_code\` Example_Description: \`Missing Source Code Repository for Dependency commons-dbcp:commons-dbcp\@1.4\` Explanation: The package versions source code reference is not currently available. As a result, automated analysis of the package's activity, popularity, code quality and security have not been performed. Manual assessment is required to assess the operational and security risk of this package. There is no additional metadata for this finding type. \- Finding_Name: \`outdated_release\` Example_Description: \`Outdated Dependency @babel/plugin-syntax-async-generators\@7.8.4\` Explanation: This package has had multiple later releases or a significant period of time has passed since the release of the version currently in use. Relying on outdated dependencies can result in missing important bug fixes or security patches and make upgrades more difficult. There is no additional metadata for this finding type. A dependency is considered outdated if it is older than 10 months and at least 5 releases behind the latest release. \- Finding_Name: \`policy_finding\` Example_Description: \`Code owner approval is not required\` Explanation: The finding was created by a \[Rego policy]\(/platform-administration/policies/finding-policies). The policy UUID is stored in \`spec.finding_metadata.source_policy_info.uuid\`. \- Finding_Name: \`recently_released_dependency\` Example_Description: \`Recently Released Dependency chalk\@5.6.1\`. Explanation: This package version is using a recent release of a dependency. Recently released versions of dependencies are more likely to introduce supply chain risk and breaking changes. \- Finding_Name: \`typosquatted_dependency\` Example_Description: \`Dependency serverles\@3.27.1 is a Potential Typosquat\` Explanation: The name of the dependency is very similar to another package which is more popular and widely used. It is possible that this is a malicious package in the package manager with malware inserted. Additional information about the typosquatted dependency is stored in \`spec.finding_metadata.typosquatted_dependency_version_metadata\`. \- Finding_Name: \`unpinned_direct_dependency\` Example_Description: \`Unpinned Direct Dependency num-integer\@0.1.45\` Explanation: This package version has not pinned one of its direct dependencies. Dependencies that are not pinned to a specified version decrease the likelihood of build reproducibility and can be unexpectedly updated, which may introduce operational or security issues into your application. Unpinned dependencies expose organizations to the risk of software supply chain attacks where attackers compromise the upstream software dependency and publish a malicious version of the code. There is no additional metadata for this finding type. \- Finding_Name: \`unreachable_direct_dependency\` Example_Description: \`Unused Direct Dependency org.typelevel:macro-compat_2.11\@1.1.1\` Explanation: Static analysis of this software package indicates that this direct dependency is unused. Unused direct dependencies unnecessarily increase the size of executables, application resource utilization and, increase build time and as a result may decrease developer productivity and application performance. There is no additional metadata for this finding type. ### Finding categories The following finding categories are supported as possible values in the `spec.finding_categories` list. All findings must have at least one category. \- Finding_Category: \`FINDING_CATEGORY_AI_MODELS\` UI_Category: AI Models Description: AI model findings \- Finding_Category: \`FINDING_CATEGORY_CICD\` UI_Category: CI/CD Description: CI/CD pipeline findings \- Finding_Category: \`FINDING_CATEGORY_CONTAINER\` UI_Category: Container Description: Container findings \- Finding_Category: \`FINDING_CATEGORY_GHACTIONS\` UI_Category: GitHub Actions Description: GitHub action findings \- Finding_Category: \`FINDING_CATEGORY_LICENSE_RISK\` UI_Category: License Risk Description: License issues \- Finding_Category: \`FINDING_CATEGORY_MALWARE\` UI_Category: Malware Description: Malware findings \- Finding_Category: \`FINDING_CATEGORY_OPERATIONAL\` UI_Category: Operational Description: Operational issues \- Finding_Category: \`FINDING_CATEGORY_SAST\` UI_Category: SAST Description: SAST findings \- Finding_Category: \`FINDING_CATEGORY_SCA\` UI_Category: SCA Description: Software Composition Analysis issues \- Finding_Category: \`FINDING_CATEGORY_SCPM\` UI_Category: RSPM Description: Repository security posture management issues \- Finding_Category: \`FINDING_CATEGORY_SECRETS\` UI_Category: Secrets Description: Exposed secrets \- Finding_Category: \`FINDING_CATEGORY_SECURITY\` UI_Category: Security Description: Security issues \- Finding_Category: \`FINDING_CATEGORY_SUPPLY_CHAIN\` UI_Category: Supply Chain Description: Supply chain specific problems (malicious packages, typosquats) \- Finding_Category: \`FINDING_CATEGORY_TOOLS\` UI_Category: Tools Description: Tool-related findings \- Finding_Category: \`FINDING_CATEGORY_VULNERABILITY\` UI_Category: Vulnerability Description: Vulnerability findings ### Finding tags The following system defined finding tags are supported as possible values in the `spec.finding_tags` list and referred to as "attributes" in the Endor Labs user interface. These are different from the free-form custom tags that are stored in the [Meta](/developers-api/rest-api/using-the-rest-api/data-model/common-fields#meta) field. \- Finding_Tag: \`FINDING_TAGS_CI_BLOCKER\` UI_Attribute: Blocker Description: Finding was marked as blocking by one or more action policies. The policy UUIDs are stored in \`spec.actions.policy_uuids\`. \- Finding_Tag: \`FINDING_TAGS_CI_WARNING\` UI_Attribute: Warning Description: Finding triggered a warning based on one or more action policies. The policy UUIDs are stored in \`spec.actions.policy_uuids\`. \- Finding_Tag: \`FINDING_TAGS_DIRECT\` UI_Attribute: Direct Description: Finding applies to a direct dependency. \- Finding_Tag: \`FINDING_TAGS_DISPUTED\` UI_Attribute: Disputed Description: The CVE reported in this finding has been marked as 'disputed'. \- Finding_Tag: \`FINDING_TAGS_EXCEPTION\` UI_Attribute: Exception Description: Finding was marked as exempt from action policies by one or more exception policies. The policy UUIDs are stored in \`spec.exceptions.policy_uuids\`. \- Finding_Tag: \`FINDING_TAGS_EXPLOITED\` UI_Attribute: Exploited Description: The CVE reported in this finding is actively exploited and is listed in the Known Exploited Vulnerabilities (KEV) database. \- Finding_Tag: \`FINDING_TAGS_FIX_AVAILABLE\` UI_Attribute: Fix Available Description: There is a fix available for the CVE reported in this finding. \- Finding_Tag: \`FINDING_TAGS_INVALID_SECRET\` UI_Attribute: Invalid Secret Description: Finding applies to an invalid secret. \- Finding_Tag: \`FINDING_TAGS_MALWARE\` UI_Attribute: Malware Description: Finding applies to a malicious package. \- Finding_Tag: \`FINDING_TAGS_NAMESPACE_INTERNAL\` UI_Attribute: First Party Description: Finding applies to a dependency that belongs to the same namespace. \- Finding_Tag: \`FINDING_TAGS_NORMAL\` UI_Attribute: Normal Description: Finding applies to a normal, non-test, dependency. \- Finding_Tag: \`FINDING_TAGS_NOTIFICATION\` UI_Attribute: Notification Description: Finding triggered a notification based on one or more action policies. The policy UUIDs are stored in \`spec.actions.policy_uuids\`. \- Finding_Tag: \`FINDING_TAGS_PATH_EXTERNAL\` UI_Attribute: External Path Only Description: Finding applies to a transitive dependency that can only be reached through external, non-OSS, project paths. \- Finding_Tag: \`FINDING_TAGS_PHANTOM\` UI_Attribute: Phantom Description: Finding applies to a phantom dependency. \- Finding_Tag: \`FINDING_TAGS_SEGMENT_MATCH\` UI_Attribute: Segment Match Description: Finding applies to a dependency discovered through segment-matching. \- Finding_Tag: \`FINDING_TAGS_POTENTIALLY_REACHABLE_DEPENDENCY\` UI_Attribute: Potentially Reachable Dependency Description: Finding applies to a potentially reachable dependency. \- Finding_Tag: \`FINDING_TAGS_POTENTIALLY_REACHABLE_FUNCTION\` UI_Attribute: Potentially Reachable Function Description: Finding applies to a potentially reachable function. \- Finding_Tag: \`FINDING_TAGS_PROJECT_INTERNAL\` UI_Attribute: Same Repository Description: Finding applies to a dependency that belongs to the same project. \- Finding_Tag: \`FINDING_TAGS_REACHABLE_DEPENDENCY\` UI_Attribute: Reachable Dependency Description: Finding applies to a reachable dependency. \- Finding_Tag: \`FINDING_TAGS_REACHABLE_FUNCTION\` UI_Attribute: Reachable Function Description: Finding applies to a reachable function. \- Finding_Tag: \`FINDING_TAGS_SELF\` UI_Attribute: Self Description: Finding applies only to the analyzed package version, there is no dependency involved. \- Finding_Tag: \`FINDING_TAGS_SNOOZED\` UI_Attribute: Snoozed Description: Finding has been manually snoozed. The details are stored in \`spec.snooze\` and \`spec.dismiss\` is set to \`true\`. \- Finding_Tag: \`FINDING_TAGS_TEST\` UI_Attribute: Test Description: Finding applies to a dependency that is not in production code. \- Finding_Tag: \`FINDING_TAGS_TRANSITIVE\` UI_Attribute: Transitive Description: Finding applies to a transitive (indirect) dependency. \- Finding_Tag: \`FINDING_TAGS_UNDER_REVIEW\` UI_Attribute: Under Review Description: Finding applies to suspicious package under review. \- Finding_Tag: \`FINDING_TAGS_UNFIXABLE\` UI_Attribute: Unfixable Description: There is no fix available for the CVE reported in this finding. \- Finding_Tag: \`FINDING_TAGS_UNREACHABLE_DEPENDENCY\` UI_Attribute: Unreachable Dependency Description: Finding applies to an unreachable dependency. \- Finding_Tag: \`FINDING_TAGS_UNREACHABLE_FUNCTION\` UI_Attribute: Unreachable Function Description: Finding applies to an unreachable function. \- Finding_Tag: \`FINDING_TAGS_VALID_SECRET\` UI_Attribute: Valid Secret Description: Finding applies to a valid secret. \- Finding_Tag: \`FINDING_TAGS_WITHDRAWN\` UI_Attribute: Withdrawn Description: The CVE reported in this finding has been marked as 'withdrawn'. ### Exceptions A finding can be exempt from triggering action policies (such as admission and notification policies) if it is matched and marked as dismissed by an exception policy. [Exception policies](/platform-administration/policies/exception-policies) allow you to set any criteria you want to mark findings as dismissed. You can apply an exception policy across all projects, a sub-set of projects, or a specific project, within a tenant. Based on the criteria you set, the exception can persist across multiple package versions. Findings dismissed by one or more exception policies have the `spec.dismiss` field set to `true` and the corresponding policy object UUIDs are listed under the `spec.exceptions.policy_uuids` field. They also carry the `FINDING_TAGS_EXCEPTION` tag. ### Action policies Findings matched by one or more action policies (a.k.a. admission and notification policies) contain the corresponding policy object UUIDs in `spec.actions.policy_uuids`. They also carry a tag corresponding to the specific action, for example, `FINDING_TAGS_CI_WARNING`, `FINDING_TAGS_CI_BLOCKER`, or `FINDING_TAGS_NOTIFICATION`. ## ScanResult * Contains details of a scan such as: * Configuration * Host environment details * Runtime statistics * Findings * Policies triggered * Error logs * [Exit code](/best-practices/troubleshooting/endorctl-exitcodes) * [Scan status](#scan-status) * Has the Project as the parent. * Belongs to the same [Context](/developers-api/rest-api/using-the-rest-api/data-model/common-fields#context) as the scan. For more information, see the [ScanResultService REST API documentation](/api-reference/scanresultservice/listscanresults). ### Scan status The following scan statuses are supported: \- Status: \`STATUS_SUCCESS\` Description: Scan completed successfully. \- Status: \`STATUS_PARTIAL_SUCCESS\` Description: Scan completed, but with critical warnings or errors. See \`spec.logs\` for more information. \- Status: \`STATUS_FAILURE\` Description: Scan failed. See \`spec.exit_code\` and the \[exit code documentation]\(/best-practices/troubleshooting/endorctl-exitcodes) for more information. \- Status: \`STATUS_RUNNING\` Description: Scan is running. # Errors Source: https://docs.endorlabs.com/developers-api/rest-api/using-the-rest-api/errors/index Learn about the Endor Labs REST API error codes and how to handle them Endor Labs uses conventional gRPC and HTTP response codes to indicate the success or failure of an API request. > [!NOTE] > > When making API requests, always implement proper error handling to gracefully manage these response codes. ## gRPC status codes \- Value: 0 Code_Name: OK Description: Not an error; returned on success. \- Value: 1 Code_Name: CANCELLED Description: The caller typically cancelled the operation. \- Value: 2 Code_Name: UNKNOWN Description: Unknown error; typically indicates an unexpected error. \- Value: 3 Code_Name: INVALID_ARGUMENT Description: The client specified an invalid argument. \- Value: 4 Code_Name: DEADLINE_EXCEEDED Description: The deadline expired before the operation could complete. \- Value: 5 Code_Name: NOT_FOUND Description: The API did not find the requested entity, such as a file or directory. \- Value: 6 Code_Name: ALREADY_EXISTS Description: The entity that a client attempted to create already exists. \- Value: 7 Code_Name: PERMISSION_DENIED Description: The caller does not have permission to execute the specified operation. \- Value: 8 Code_Name: RESOURCE_EXHAUSTED Description: Some resource no longer has capacity, perhaps a per-user quota, or the entire file system is out of space. \- Value: 9 Code_Name: FAILED_PRECONDITION Description: The system is not in a state required for the operation's execution. \- Value: 10 Code_Name: ABORTED Description: A concurrency issue like a sequencer check failure typically aborted the operation. \- Value: 11 Code_Name: OUT_OF_RANGE Description: The client attempted the operation beyond the valid range, such as seeking past the end of a file. \- Value: 12 Code_Name: UNIMPLEMENTED Description: The operation is not implemented or is not supported or enabled in this service. \- Value: 13 Code_Name: INTERNAL Description: Internal errors; the underlying system broke invariants it expected to hold. \- Value: 14 Code_Name: UNAVAILABLE Description: The service is currently unavailable. This is most likely a transient condition; retry with a backoff to recover. \- Value: 15 Code_Name: DATA_LOSS Description: Unrecoverable data loss or corruption. \- Value: 16 Code_Name: UNAUTHENTICATED Description: The request does not have valid authentication credentials for the operation. Refer to the [gRPC status code documentation](https://grpc.io/docs/guides/status-codes/) for more information. ## HTTP status codes \- Value: 200 Code_Name: OK Description: Everything worked as expected. \- Value: 400 Code_Name: Bad Request Description: The request was unacceptable, often due to missing a required parameter. \- Value: 401 Code_Name: Unauthorized Description: No valid API key provided. \- Value: 402 Code_Name: Request Failed Description: The parameters were valid but the request failed. \- Value: 403 Code_Name: Forbidden Description: The API key doesn't have permissions to perform the request. \- Value: 404 Code_Name: Not Found Description: The requested resource doesn't exist. \- Value: 409 Code_Name: Conflict Description: The request conflicts with another request, possibly due to using the same key. \- Value: 429 Code_Name: Too Many Requests Description: You sent too many API requests to Endor Labs in a short time. We recommend using an exponential backoff strategy for your requests. \- Value: "500, 502, 503, 504" Code_Name: Server Errors Description: Something went wrong on the Endor Labs side (these are rare). > [!NOTE] > > When receiving a 429 status code, implement an exponential backoff strategy to avoid overwhelming the API. # Filters Source: https://docs.endorlabs.com/developers-api/rest-api/using-the-rest-api/filters/index Learn how to use filters with the Endor Labs REST API. Filters allow you to specify a subset of objects that a request returns, for example: > [tab] endorctl > > ```bash theme={null} > endorctl api list --resource Finding \ > --filter "meta.name==dependency_with_critical_vulnerabilities" \ > --count > ``` > [tab] curl > > ```bash theme={null} > curl --get \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --data-urlencode "list_parameters.filter=meta.name==dependency_with_critical_vulnerabilities" \ > --data-urlencode "list_parameters.count=true" \ > https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/findings > ``` > [tab] HTTP > > ```bash theme={null} > @baseUrl = https://api.endorlabs.com > @token = `` > @namespace = `` > > ### > GET {{baseUrl}}/v1/namespaces/{{namespace}}/findings?list_parameters.filter=meta.name==dependency_with_critical_vulnerabilities&list_parameters.count=true HTTP/1.1 > Authorization: Bearer {{token}} > ``` ## Keys A filter key specifies the field of the object to match against using a dot-delimited path. For example, given an object: ```json expandable theme={null} { "uuid": "63ef202d090b62ecf3f6655b", "meta": { "name": "Example Object", "tags": ["dev"] }, "spec": { "dependencies": [ { "name": "mvn://org.slf4j:slf4j-api@2.0.0", }, { "name": "mvn://ch.qos.logback:logback-access@1.3.0", } ], "version": { "ref": "v1.6.333", "timestamp": "2024-05-31TT21:04:55.799Z" } } } ``` * `uuid` specifies the root field with the value `"63ef202d090b62ecf3f6655b"` * `meta.name` specifies the nested field with the value `"Example Object"` * `meta.tags` specifies the nested list field containing the values `["dev"]` * `spec.dependencies.name` specifies the nested fields within the list with the values: `"mvn://org.slf4j:slf4j-api@2.0.0"` and `"mvn://ch.qos.logback:logback-access@1.3.0"` * `spec.version.ref` specifies the nested field with the value `"v1.6.333"` For more information, see [Data model](/developers-api/rest-api/using-the-rest-api/data-model). ## Operators The API supports the following filter operators. \- Operator: \`==\` Description: Matches objects where a specified field is equal to a specified value. \- Operator: \`!=\` Description: Matches objects where a specified field is NOT equal to a specified value. \- Operator: \`\<\` Description: Matches objects where a specified field is less than a specified value. \- Operator: \`\<=\` Description: Matches objects where a specified field is less than or equal to a specified value. \- Operator: \`>\` Description: Matches objects where a specified field is greater than a specified value. \- Operator: \`>=\` Description: Matches objects where a specified field is greater than or equal to a specified value. \- Operator: \`contains\` Description: Matches objects where a specified list contains one or more specified values. \- Operator: \`in\` Description: Matches objects where a specified field is equal to one or more specified values. \- Operator: \`matches\` Description: Matches objects where a specified field matches a specified regex pattern. \- Operator: \`exists\` Description: Matches objects where a specified field in a json payload exists. ### Contains Use `contains` or `not contains` to filter on the content of a list field. The filter treats multiple values as an OR operation, for example: * To get all findings for vulnerabilities that have a fix available OR are in a reachable function use: `spec.finding_tags contains [FINDING_TAGS_FIX_AVAILABLE, FINDING_TAGS_REACHABLE_FUNCTION]` * To get all findings for vulnerabilities that have a fix available AND are in a reachable function use: `spec.finding_tags contains [FINDING_TAGS_FIX_AVAILABLE] and spec.finding_tags contains [FINDING_TAGS_REACHABLE_FUNCTION]` * To get all projects that do not have the meta tags "sanity" or "test" use: `meta.tags not contains [sanity, test]` ### In Use `in` or `not in` to filter on the value of a field against one or more given values. The filter treats multiple values as an OR operation, for example: * To get all findings with a "Critical" or "High" severity level use: `spec.finding_level in [FINDING_LEVEL_CRITICAL, FINDING_LEVEL_HIGH]` * To get all findings that are not from the "Maven" or "npm" ecosystems use: `spec.ecosystem not in [ECOSYSTEM_MAVEN, ECOSYSTEM_NPM]` ### Matches Use `matches` to filter on a regex pattern. Due to the nature of regex evaluation, this is much slower than using for example `==` or `!=`. Also due to the nature of regex evaluation, `not matches` is not supported. ### Exists If a field does not exist then it can't be equal to anything, so we use `exists` and `not exists` instead of `!= null` or `== null`. This also covers `{}`, `[]`, etc. ## Values A filter value works with the operator to match against the values at the specified field. Use double quotes to escape string or regex values in a filter, for example: * `uuid in ["64a3b8326dda5fb62bfcceea", "658323c91aa208f231cc7eff", "658323c963ca516ef02d1b02"]` * `meta.name matches "validation bypass"` > [!NOTE] > > Filters are case-sensitive by default. To filter with case-insentive values, you can use a regex modifier, for example: * `meta.description matches "(?i)django"` ### Date/Time Values Use `date` to encode date values in a filter, for example: * To filter for objects created after a given date, use a date value with the format `YYYY-MM-DD`: `meta.update_time >= date(2024-05-01)` * To filter for objects created between specific times, use a timestamp values with the [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339) format: `meta.create_time >= date(2024-05-01T13:30:00.000Z) and meta.create_time < date(2024-05-01T23:30:00.000Z)` Use `now` to encode relative date values in a filter by a given duration offset, for example: * To filter for objects created in the last 15 minutes, use: `meta.create_time >= now(-12h)` * To filter for objects created in the last 72 hours, use: `meta.create_time >= now(-72h)` ## Combinations Use `and` or `or` to combine multiple filters, for example: * `spec.finding_categories contains [FINDING_CATEGORY_VULNERABILITY] and meta.create_time >= date(2024-05-31)` * `meta.name==archived_source_code_repo or meta.name==outdated_release` ### Nesting filters You can also nest multiple filters together into a single filter with parentheses `()`, for example: * `(spec.finding_categories contains [FINDING_CATEGORY_VULNERABILITY] and spec.level==FINDING_LEVEL_CRITICAL) or (spec.finding_categories contains [FINDING_CATEGORY_SECRETS] and spec.level in [FINDING_LEVEL_CRITICAL, FINDING_LEVEL_HIGH])` # Getting started Source: https://docs.endorlabs.com/developers-api/rest-api/using-the-rest-api/getting-started/index Learn how to use the Endor Labs REST API. ## Introduction This article describes how to use the Endor Labs REST API. For a quickstart guide, see [Quickstart for Endor Labs REST API](/developers-api/rest-api/quickstart). The Endor Labs command line tool `endorctl` wraps the REST API and lets you interact with Endor Labs without managing REST protocol details. For more information, see [Making a request](#making-a-request) below and the [Endor Labs CLI documentation](/developers-api/cli/commands/api). For a complete list of Endor Labs REST API endpoints, see the [Endor Labs OpenAPI documentation](/api-reference/). ## About requests to the REST API This section describes the elements that make up an API request: * [HTTP method](#http-method) * [Path](#path) * [Headers](#headers) * [Parameters](#parameters) Every request to the REST API includes an HTTP method and a path. Depending on the REST API endpoint, you might also need to specify request headers, authentication information, list parameters, or body parameters. The REST API reference documentation describes the HTTP method, path, and parameters for every endpoint. It also displays example requests and responses for each endpoint. For more information, see the [Endor Labs REST API documentation](/developers-api/rest-api/using-the-rest-api/getting-started/..). ## HTTP method The HTTP method of an endpoint defines the type of action it performs on a given resource. Some common HTTP methods are GET, POST, DELETE, and PATCH. The REST API reference documentation provides the HTTP method for every endpoint. For example, the HTTP method for the [List Findings](/api-reference/findingservice/listfindings) endpoint is GET. Where possible, the Endor Labs REST API strives to use an appropriate HTTP method for each action. \- Action: GET Description: Used for retrieving resources. \- Action: POST Description: Used for creating resources. \- Action: PATCH Description: Used for updating properties of resources. \- Action: DELETE Description: Used for deleting resources. ## Path Each endpoint has a path. The [Endor Labs REST API reference documentation](/api-reference/) gives the path for every endpoint. For example, the path for the [List Findings](/api-reference/findingservice/listfindings) endpoint is `https://api.endorlabs.com/v1/namespaces/{tenant_meta.namespace}/findings` and the path for the [Get Finding](/api-reference/findingservice/getfinding) endpoint is `https://api.endorlabs.com/v1/namespaces/{tenant_meta.namespace}/findings/{uuid}`. The curly brackets in a path denote path parameters that you need to specify. Path parameters modify the endpoint path, and your request must include them. For example, the path parameter for the [List Findings](/api-reference/findingservice/listfindings) endpoint is `{tenant_meta.namespace}`. To use this path in your API request, replace `{tenant_meta.namespace}` with the name of the namespace where you want to request a list of findings. To get a specific finding object, add the object UUID to the end of the path. ## Headers Headers provide extra information about the request and the desired response. Following are some examples of headers that you can use in your requests to the Endor Labs REST API. For an example of a request that uses headers, see [Making a request](#making-a-request). ### Authentication All endpoints require authentication. Use the `endorctl init` command to authenticate with Endor Labs. For more information, see [Authentication](/developers-api/rest-api/authentication). For examples, see [Making a request](#making-a-request). ### Accept-Encoding You may optionally use the `Accept-Encoding` header to enable compression of HTTP responses for performance optimization. Endor Labs supports the following encodings: `gzip`, `br` (`Brotli`), and `zstd`. If you specify multiple encodings, gzip takes priority. Ensure that the client can correctly handle the specified encoding. You can provide the `Accept-Encoding` header in the following format: `Accept-Encoding: gzip, br, zstd`. ### Content-Type To improve API performance, set the `Content-Type` header to `application/jsoncompact`. This prevents Endor Labs APIs from returning null or empty values, which is the default behavior. ### Request-timeout Use the `Request-timeout` header to specify the amount of time, in seconds, that you are willing to wait for a server response. For example: `--header "Request-Timeout: 10"`. The corresponding option for `endorctl` requests is `-t/--timeout`, for example: `-t 10s`. ## Parameters Many API methods require or allow you to send additional information in parameters in your request. There are a few different types of parameters: Path parameters, list parameters, and body parameters. ### Path parameters Path parameters modify the endpoint path. These parameters are required in your request. For more information, see [Path](#path). ### List parameters List parameters allow you to control what data is returned for a request. In most cases, these parameters are optional. The documentation for each Endor Labs REST API endpoint describes any list parameters that it supports. For example, all Endor Labs endpoints return one hundred objects by default. You can set `page_size=2` to return two objects instead of 100. You can set `count=true` to just return the number of objects. You can use the `filter` list parameter to only list objects that match a specified list of criteria (see [filters](/developers-api/rest-api/using-the-rest-api/filters)). For examples of requests that use list parameters, see [Making a request](#making-a-request) and [Use cases](/developers-api/rest-api/using-the-rest-api/use-cases). \- List_Parameter: \`ci_run_uuid\` Description: Only list objects from a specific PR scan. Example: \`list_parameters.ci_run_uuid=ee4a914c-8d6d-4b65-8b0e-9755e8a6cb3a\` \- List_Parameter: \`count\` Description: Get the number of items in the list. Example: \`list_parameters.count=true\` \- List_Parameter: \`filter\` Description: Specify the field names and values used to filter results. Example: \`list_parameters.filter=meta.parent_kind==Project\` \- List_Parameter: \`group.aggregation_paths\` Description: Specify one or more fields to group objects by. Example: \`list_parameters.group.aggregation_paths=meta.name\` \- List_Parameter: \`group.show_aggregation_uuids\` Description: Get the UUIDs of the objects in each group as specified by \`group.aggregation_paths\`. Example: \`list_parameters.group.aggregation_paths=meta.name\&list_parameters.group.show_aggregation_uuids=true\` \- List_Parameter: \`group.unique_count_paths\` Description: Count the number of unique values, for these fields, in the group. Example: \`list_parameters.group.aggregation_paths=meta.name\&list_parameters.group.unique_count_paths=spec.ecosystem\` \- List_Parameter: \`group.unique_value_paths\` Description: Get the unique values, for these fields, in the group. Example: \`list_parameters.group.aggregation_paths=meta.name\&list_parameters.group.unique_value_paths=meta.name\` \- List_Parameter: \`group_by_time.aggregation_paths\` Description: Group the list based on this time field. Example: \`list_parameters.group_by_time.aggregation_paths=meta.create_time\` \- List_Parameter: \`group_by_time.end_time\` Description: End of the time period to group objects. Example: \`list_parameters.group_by_time.end_time=2023-12-31T23:59:59Z\` \- List_Parameter: \`group_by_time.group_size\` Description: The time interval size to group the objects by. Example: \`list_parameters.group_by_time.interval=GROUP_BY_TIME_INTERVAL_WEEK\&list_parameters.group_by_time.group_size=2\` \- List_Parameter: \`group_by_time.interval\` Description: The time interval to group the objects by. Example: \`list_parameters.group_by_time.interval=GROUP_BY_TIME_INTERVAL_DAY\` \- List_Parameter: \`group_by_time.show_aggregation_uuids\` Description: Get the UUIDs of the objects in each group as specified by \`group_by_time.aggregation_paths\`. Example: \`list_parameters.group_by_time.show_aggregation_uuids=true\` \- List_Parameter: \`group_by_time.start_time\` Description: Beginning of the time period to group objects. Example: \`list_parameters.group_by_time.start_time=2023-01-01T00:00:00Z\` \- List_Parameter: \`mask\` Description: Set the list of fields to return with a request. If no mask is given, all fields are returned by the API. Example: \`list_parameters.mask=uuid,meta.name\` \- List_Parameter: \`page_id\` Description: Set the object UUID to start from. Example: \`list_parameters.page_id=66073889a6cfeb5e24e72abf\` \- List_Parameter: \`page_size\` Description: Set the page size to limit the number of results returned (default \`100\`). Example: \`list_parameters.page_size=10\` \- List_Parameter: \`page_token\` Description: Set the page token to start from (default \`0\`). Example: \`list_parameters.page_token=5\` \- List_Parameter: \`sort.order\` Description: Order of the sort. (default \`SORT_ENTRY_ORDER_ASC\`). Example: \`list_parameters.sort.order=SORT_ENTRY_ORDER_DESC\` \- List_Parameter: \`sort.path\` Description: Field to sort objects by. Example: \`list_parameters.sort.path=meta.name\` \- List_Parameter: \`traverse\` Description: Get data from any child namespaces as well. Example: \`list_parameters.traverse=true\` ### Body parameters Body parameters allow you to pass additional data to the API. These parameters can be optional or required, depending on the endpoint. The documentation for each Endor Labs REST API endpoint describes the body parameters that it supports. For more information, see the [Endor Labs OpenAPI documentation](/api-reference/). For example, the [Create Policy](/api-reference/policyservice/createpolicy) endpoint requires that you specify a name, rule, query statement, and resource kinds for the new policy in your request. It also allows you to optionally specify other information, such as a description, actions, or tags to apply to the new policy. For an example of a request that uses body parameters, see [Making a request](#making-a-request). ## Making a request The following example retrieves all findings for reachable functions. For more examples, see [Use cases](/developers-api/rest-api/using-the-rest-api/use-cases). > [tab] endorctl > > 1. **Setup** > > Install the Endor Labs CLI on macOS, Windows, or Linux. For more information, see [Install Endor Labs on your local system](/developers-api/cli/install-and-configure#download-and-install-endorctl). > > 2. **Authenticate** > > Run `endorctl init` and your browser window will open automatically. Select your authentication provider from the available options and complete the authentication process. > > You can also specify your supported authentication provider manually. > > `endorctl init --auth-mode google` > > 3. **Make a request** > > `endorctl api list --resource Finding --filter "spec.finding_tags contains FINDING_TAGS_REACHABLE_FUNCTION"` > > Note that you do not have to provide the access token or the namespace when using `endorctl` to access the Endor Labs REST API. > [tab] curl > > 1. **Setup** > > 2. You must have curl installed on your machine. To check if curl is already installed, run `curl --version`- on the command line. > * If the output provides information about the version of curl, that means curl is installed. > * If you get a message similar to command not found: curl, that means curl is not installed. Download and install curl. For more information, see the [curl download page](https://curl.se/download.html). > > 3. Install the Endor Labs CLI on macOS, Windows, or Linux. For more information, see [Install Endor Labs on your local system](/developers-api/cli/install-and-configure#download-and-install-endorctl). > > 4. **Authenticate** > > 5. Run `endorctl init` and your browser window will open automatically. Select your authentication provider from the available options and complete the authentication process. > > You can also specify your supported authentication provider manually. > > `endorctl init --auth-mode google` > > 6. Store the Endor Labs access token > > Run the following command from your terminal to get the Endor Labs access token. > > `endorctl auth --print-access-token` > > 7. **Choose an endpoint for your request** > > Choose an endpoint to make a request to. You can explore the Endor Labs REST API documentation to discover endpoints that you can use to interact with Endor Labs. > > Identify the HTTP method and path of the endpoint. You will send these with your request. For more information, see [HTTP method](#http-method) and [Path](#path). > > For example, the [List Findings](/api-reference/findingservice/listfindings) endpoint uses the HTTP method POST and the path `/v1/namespaces/{tenant_meta.namespace}/findings`. > > Identify any required path parameters. Required path parameters appear in curly brackets in the path of the endpoint. Replace each parameter placeholder with the desired value. For more information, see [Path](#path). > > For example, the [List Findings](/api-reference/findingservice/listfindings) endpoint uses the path `/v1/namespaces/{tenant_meta.namespace}/findings`, and the path parameter is `{tenant_meta.namespace}`. To use this path in your API request, replace `{tenant_meta.namespace}` with the name of the namespace where you want to list the findings. > > 4. **Choose options for your request** > > Use the curl command to make your request. For more information, see the [curl documentation](https://curl.se/docs/manpage.html). > > Specify the following options and values in your request: > > * `--request` or `-X` followed by the HTTP method as the value. For more information, see [HTTP method](#http-method). > > > Note: You can also use the shorthand curl options `--get` and `--post` for GET and POST requests respectively. > > * `--header` or `-H`: > * `Authorization`: Pass your authentication token in an Authorization header. You must use `Authorization: Bearer` with the Endor Labs REST API. For more information, see [Authentication](#authentication). > * `Accept-Encoding`: Provide the `Accept-Encoding` header in the following format: `Accept-Encoding: gzip` to avoid performance bottlenecks. For more information, see [Accept-Encoding](#accept-encoding). > * `Content-Type`: Set the header as `Content-Type: application/jsoncompact` to prevent Endor Labs APIs from returning null or empty value. For more information, see [Content-Type](#content-type). > * `Request-timeout`: Specify the amount of time, in seconds, that you are willing to wait for a server response. For more information, see [Request-timeout](#request-timeout). > > * `--url` followed by the full path as the value. The full path is a URL that includes the base URL for the Endor Labs REST API (`https://api.endorlabs.com`) and the path of the endpoint, like this: `https://api.endorlabs.com/{PATH}`. Replace `{PATH}` with the path of the endpoint. For more information, see [Path](#path). > > To use list parameters, add a `?` to the end of the path, then append your list parameter name and value in the form `list_parameter.parameter_name=value`. Separate multiple list parameters with `&`. For example, to count the number of "Outdated Release" findings, use `?list_parameters.filter=meta.name==outdated_release&list_parameters.count=true`. For more information, see [List parameters](#list-parameters). > > > Note: Filters with spaces must be encoded when using curl. Replace spaces with `%20` or use the `--data-urlencode` option for filters containing spaces. > > * `--data` or `-d` followed by any body parameters within a json object. If you do not need to specify any body parameters in your request, omit this option. For more information, see [Body parameters](#body-parameters). > > 5. **Make request** > > 6. Using `--url` > > ```bash theme={null} > curl --request GET \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --compressed \ > --header "Content-Type: application/jsoncompact" \ > --url "https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/findings?list_parameters.filter=spec.finding_tags%20contains%20FINDING_TAGS_REACHABLE_FUNCTION" > ``` > > 7. Using `--data-urlencode` > > ```bash theme={null} > curl --request GET \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --compressed \ > --header "Content-Type: application/jsoncompact" \ > --data-urlencode "spec.finding_tags contains FINDING_TAGS_REACHABLE_FUNCTION" \ > "https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/findings" > ``` > [tab] HTTP > > 1. **Setup** > > Install the Endor Labs CLI on macOS, Windows, or Linux. For more information, see [Install Endor Labs on your local system](/developers-api/cli/install-and-configure#download-and-install-endorctl). > > 2. **Authenticate** > > 3. Run `endorctl init` and your browser window will open automatically. Select your authentication provider from the available options and complete the authentication process. > > You can also specify your supported authentication provider manually. > > `endorctl init --auth-mode google` > > 4. Store the Endor Labs access token > > Run the following command from your terminal to get the Endor Labs access token. > > `endorctl auth --print-access-token` > > 5. **Choose an endpoint for your request** > > Choose an endpoint to make a request to. You can explore the Endor Labs REST API documentation to discover endpoints that you can use to interact with Endor Labs. > > Identify the HTTP method and path of the endpoint. You will send these with your request. For more information, see [HTTP method](#http-method) and [Path](#path). > > For example, the [List Findings](/api-reference/findingservice/listfindings) endpoint uses the HTTP method POST and the path `/v1/namespaces/{tenant_meta.namespace}/findings`. > > Identify any required path parameters. Required path parameters appear in curly brackets in the path of the endpoint. Replace each parameter placeholder with the desired value. For more information, see [Path](#path). > > For example, the [List Findings](/api-reference/findingservice/listfindings) endpoint uses the path `/v1/namespaces/{tenant_meta.namespace}/findings`, and the path parameter is `{tenant_meta.namespace}`. To use this path in your API request, replace `{tenant_meta.namespace}` with the name of the namespace where you want to list the findings. > > 4. **Make a request** > > ```bash theme={null} > @baseUrl = https://api.endorlabs.com > @token = > @namespace = > > ### > GET {{baseUrl}}/v1/namespaces/{{namespace}}/findings?spec.finding_tags contains FINDING_TAGS_REACHABLE_FUNCTION HTTP/1.1 > Authorization: Bearer {{token}} > ``` # Grouping Source: https://docs.endorlabs.com/developers-api/rest-api/using-the-rest-api/grouping/index Learn how to group results from the Endor Labs REST API. There are many scenarios where it is useful to group the objects returned by the Endor Labs REST API in different ways. Like [filter keys](/developers-api/rest-api/using-the-rest-api/filters#keys), a group-aggregation-paths key specifies the field, or fields, by which to group the objects, using a dot-delimited path. For example, the following request returns the count of findings for each severity level: > [tab] endorctl > > ```bash theme={null} > endorctl api list --resource Finding \ > --filter "spec.finding_categories contains FINDING_CATEGORY_VULNERABILITY" \ > --group-aggregation-paths "spec.level" \ > --timeout 60s > ``` > [tab] curl > > ```bash theme={null} > curl --get \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --header "Request-Timeout: 60" \ > --data-urlencode "list_parameters.filter=spec.finding_categories contains FINDING_CATEGORY_VULNERABILITY" \ > --data-urlencode "list_parameters.group.aggregation_paths=spec.level" \ > https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/findings \ > | jq '.' > ``` > [tab] HTTP > > ```bash theme={null} > @baseUrl = https://api.endorlabs.com > @token = `` > @namespace = `` > > ### > GET {{baseUrl}}/v1/namespaces/{{namespace}}/findings?list_parameters.filter=spec.finding_categories contains FINDING_CATEGORY_VULNERABILITY&list_parameters.group.aggregation_paths=spec.level HTTP/1.1 > Content-type: application/json > Authorization: Bearer {{token}} > Request-Timeout: 60 > ``` ```bash expandable theme={null} { "group_response": { "groups": { "[{\"key\":\"spec.level\",\"value\":\"FINDING_LEVEL_CRITICAL\"}]": { "aggregation_count": { "count": 49 } }, "[{\"key\":\"spec.level\",\"value\":\"FINDING_LEVEL_HIGH\"}]": { "aggregation_count": { "count": 166 } }, "[{\"key\":\"spec.level\",\"value\":\"FINDING_LEVEL_LOW\"}]": { "aggregation_count": { "count": 31 } }, "[{\"key\":\"spec.level\",\"value\":\"FINDING_LEVEL_MEDIUM\"}]": { "aggregation_count": { "count": 202 } } } } } ``` ## Group by path The following options are available to group objects based on the value of a field in a given path. > [tab] endorctl > > \- Option: \`group-aggregation-paths\` > Description: Specify one or more fields to group objects by. > \- Option: \`group-show-aggregation-uuids\` > Description: Get the UUIDs of the objects in each group as specified by \`--group-aggregation-paths\`. > \- Option: \`group-unique-count-paths\` > Description: Count the number of unique values, for these fields, in the group. > \- Option: \`group-unique-value-paths\` > Description: Get the unique values, for these fields, in the group. > > For the complete list of all `endorctl api list` options, see [flags and variables](/developers-api/cli/commands/api#endorctl-api-list-flags-and-variables). > [tab] curl / HTTP > > \- List_Parameter: \`group.aggregation_paths\` > Description: Specify one or more fields to group objects by. > \- List_Parameter: \`group.show_aggregation_uuids\` > Description: Get the UUIDs of the objects in each group as specified by \`group.aggregation_paths\`. > \- List_Parameter: \`group.unique_count_paths\` > Description: Count the number of unique values, for these fields, in the group. > \- List_Parameter: \`group.unique_value_paths\` > Description: Get the unique values, for these fields, in the group. > > For the complete list of all HTTP list parameters, see [list parameters](/developers-api/rest-api/using-the-rest-api/getting-started#list-parameters). ### Group by path example The following example uses all options to group package versions by call graph [resolution error](/developers-api/rest-api/using-the-rest-api/data-model/resource-kinds#resolution-errors). For each group, it lists the UUIDs, counts the ecosystems, and shows the unique ecosystems: > [tab] endorctl > > ```bash theme={null} > endorctl api list --resource PackageVersion \ > --filter "spec.resolution_errors.call_graph exists" \ > --group-aggregation-paths "spec.resolution_errors.call_graph.status_error" \ > --group-show-aggregation-uuids \ > --group-unique-count-paths "spec.ecosystem" \ > --group-unique-value-paths "spec.ecosystem" \ > --timeout 60s > ``` > [tab] curl > > ```bash theme={null} > curl --get \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --header "Request-Timeout: 60" \ > --data-urlencode "list_parameters.filter=spec.resolution_errors.call_graph exists" \ > --data-urlencode "list_parameters.group.aggregation_paths=spec.resolution_errors.call_graph.status_error" \ > --data-urlencode "list_parameters.group.show_aggregation_uuids=true" \ > --data-urlencode "list_parameters.group.unique_value_paths=spec.ecosystem" \ > --data-urlencode "list_parameters.group.unique_count_paths=spec.ecosystem" \ > https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/package-versions \ > | jq '.' > ``` > [tab] HTTP > > ```bash theme={null} > @baseUrl = https://api.endorlabs.com > @token = `` > @namespace = `` > > ### > GET {{baseUrl}}/v1/namespaces/{{namespace}}/package-versions?list_parameters.filter=spec.resolution_errors.call_graph exists&list_parameters.group.aggregation_paths=spec.resolution_errors.call_graph.status_error&list_parameters.group.show_aggregation_uuids=true&list_parameters.group.unique_value_paths=spec.ecosystem&list_parameters.group.unique_count_paths=spec.ecosystem HTTP/1.1 > Content-type: application/json > Authorization: Bearer {{token}} > Request-Timeout: 60 > ``` ```bash expandable theme={null} { "group_response": { "groups": { "[{\"key\":\"spec.resolution_errors.call_graph.status_error\",\"value\":\"STATUS_ERROR_CALL_GRAPH\"}]": { "aggregation_count": { "count": 10 }, "aggregation_uuids": [ "6494c13cdcb266d2af02804f", "64ace2dd05228d0041488208", "64ace2dc05228d00414881eb", "64af3a042efc155e48304bf2", "65b86b4a0f460309eac456b5", "64ace2dc832ee78dd03d85b0", "64c190aa17e6bfc2548f7a48", "64af39d2bebf530905411327", "64c190a817e6bfc2548f7a19", "64cc2b68727cd13ec36860c8" ], "unique_counts": { "spec.ecosystem": { "count": 2 } }, "unique_values": { "spec.ecosystem": [ "ECOSYSTEM_MAVEN", "ECOSYSTEM_PYPI" ] } }, "[{\"key\":\"spec.resolution_errors.call_graph.status_error\",\"value\":\"STATUS_ERROR_INTERNAL\"}]": { "aggregation_count": { "count": 2 }, "aggregation_uuids": [ "6632e2d6b7765d736fac1865", "664ba7986fafc782b3cda1f6" ], "unique_counts": { "spec.ecosystem": { "count": 1 } }, "unique_values": { "spec.ecosystem": [ "ECOSYSTEM_NPM" ] } }, "[{\"key\":\"spec.resolution_errors.call_graph.status_error\",\"value\":\"STATUS_ERROR_MISSING_ARTIFACT\"}]": { "aggregation_count": { "count": 23 }, "aggregation_uuids": [ "65c3e90ae2dd352a18b6f852", "64b99a3b3d5f8dc732555200", "64c190a921d68642091aa015", "650a2457204ab859367160a2", "650a245780113616f95f770e", "65d6840edb5cf8c9839c3d47", "65e8c21647aae08e2a4e5f5c", "64c190a921d68642091aa027", "64c190a958d2eff448df09e1", "650a2457204ab859367160a6", "64c190aa58d2eff448df09f0", "64af0879c41c606cbcef6288", "64c190ab17e6bfc2548f7a4d", "64c190aa17e6bfc2548f7a41", "64c190a958d2eff448df09ec", "64c190ab21d68642091aa033", "64c190ab58d2eff448df09f3", "64b99a3b6883c0ec1c456c3a", "64c190aa21d68642091aa02f", "64b99a3ce3b06b2f8a465bdc", "64c190a917e6bfc2548f7a35", "64b99a3b6883c0ec1c456c39", "650a24573e183ec1be29adc6" ], "unique_counts": { "spec.ecosystem": { "count": 1 } }, "unique_values": { "spec.ecosystem": [ "ECOSYSTEM_MAVEN" ] } }, "[{\"key\":\"spec.resolution_errors.call_graph.status_error\",\"value\":\"STATUS_ERROR_VENV\"}]": { "aggregation_count": { "count": 10 }, "aggregation_uuids": [ "64c41863da2fbc7700d12a0e", "64c845aca83e181b82ef9041", "64dd4f61177264d779e203f3", "64c418647146e5738bf0af2d", "64c845ac41f581de1a6592d1", "64c845ac41f581de1a6592d0", "664be4bc6fafc782b363d8e3", "652e0bcb1d4d2ceedc87a376", "66311e48bf25e232ab24b68c", "64d6ce776e5804222a2726de" ], "unique_counts": { "spec.ecosystem": { "count": 1 } }, "unique_values": { "spec.ecosystem": [ "ECOSYSTEM_PYPI" ] } } } } } ``` ## Group by time The Endor Labs REST API also provides options to group objects by a given time interval. Common time fields include `meta.create_time` and `meta.update_time`, but you can sort objects based on any time field. For example, to group objects based on create time in 2 week intervals, set the aggregation path to `meta.create_time`, the time interval to `GROUP_BY_TIME_INTERVAL_WEEK` and the group size to `2`. The following options are available to group objects based on the value of a time field in a given path. > [tab] curl / HTTP > > \- List_Parameter: \`group_by_time.aggregation_paths\` > Description: Group the objects based on this time field. > \- List_Parameter: \`group_by_time.interval\` > Description: The \[time interval]\(#time-intervals) to group the objects by. > \- List_Parameter: \`group_by_time.group_size\` > Description: The time interval size to group the objects by. > \- List_Parameter: \`group_by_time.start_time\` > Description: Beginning of the time period to group objects. > \- List_Parameter: \`group_by_time.end_time\` > Description: End of the time period to group objects. > \- List_Parameter: \`group_by_time.show_aggregation_uuids\` > Description: Get the UUIDs of the objects in each group. > > For the complete list of all HTTP list parameters, see [list parameters](/developers-api/rest-api/using-the-rest-api/getting-started#list-parameters). ### Time intervals The following time intervals are supported. > [tab] curl / HTTP > > \- Value: \`GROUP_BY_TIME_INTERVAL_YEAR\` > Description: Year > \- Value: \`GROUP_BY_TIME_INTERVAL_QUARTER\` > Description: Quarter > \- Value: \`GROUP_BY_TIME_INTERVAL_MONTH\` > Description: Month > \- Value: \`GROUP_BY_TIME_INTERVAL_WEEK\` > Description: Week > \- Value: \`GROUP_BY_TIME_INTERVAL_DAY\` > Description: Day > \- Value: \`GROUP_BY_TIME_INTERVAL_HOUR\` > Description: Hour > \- Value: \`GROUP_BY_TIME_INTERVAL_MINUTE\` > Description: Minute > \- Value: \`GROUP_BY_TIME_INTERVAL_SECOND\` > Description: Second ### Group by time example The following example requests the UUIDs of all critical findings, grouped by create time in two-week intervals: > [tab] curl > > ```bash theme={null} > curl --get \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --header "Request-Timeout: 60" \ > --data-urlencode "list_parameters.filter=spec.level==FINDING_LEVEL_CRITICAL" \ > --data-urlencode "list_parameters.group_by_time.aggregation_paths=meta.create_time" \ > --data-urlencode "list_parameters.group_by_time.interval=GROUP_BY_TIME_INTERVAL_WEEK" \ > --data-urlencode "list_parameters.group_by_time.group_size=2" \ > --data-urlencode "list_parameters.group_by_time.show_aggregation_uuids=true" \ > https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/findings \ > | jq '.' > ``` > [tab] HTTP > > ```bash theme={null} > @baseUrl = https://api.endorlabs.com > @token = `` > @namespace = `` > > ### > GET {{baseUrl}}/v1/namespaces/{{namespace}}/findings?list_parameters.filter=spec.level==FINDING_LEVEL_CRITICAL&list_parameters.group_by_time.aggregation_paths=meta.create_time&list_parameters.group_by_time.interval=GROUP_BY_TIME_INTERVAL_WEEK&list_parameters.group_by_time.group_size=2&list_parameters.group_by_time.show_aggregation_uuids=true HTTP/1.1 > Content-type: application/json > Authorization: Bearer {{token}} > Request-Timeout: 60 > ``` ```bash expandable theme={null} { "group_response": { "groups": { "\"2024-01-28T00:00:00Z\"": { "aggregation_count": { "count": 7 }, "aggregation_uuids": [ "65c02da021a5d767fc147ec0", "65c02da021a5d767fc147ec3", "65c02da0aa4b66fa5009eaec", "65c02da0056f94b6129aa209", "65c02da021a5d767fc147eca", "65c02da1aa4b66fa5009eaf9", "65c02daa056f94b6129aa46f" ], "unique_counts": {}, "unique_values": {} }, "\"2024-03-10T00:00:00Z\"": { "aggregation_count": { "count": 2 }, "aggregation_uuids": [ "65faf8ec357952c8eda2d36b", "65fcdcedd40334d9e0065748" ], "unique_counts": {}, "unique_values": {} }, "\"2024-03-24T00:00:00Z\"": { "aggregation_count": { "count": 2 }, "aggregation_uuids": [ "660728d190fdb066027d07bb", "660728d8bddd7358d570ce9c" ], "unique_counts": {}, "unique_values": {} }, "\"2024-04-07T00:00:00Z\"": { "aggregation_count": { "count": 15 }, "aggregation_uuids": [ "6615c531bb58b077e43cbb16", "6615c531e2a0c32733a7d50b", "6615c531e2a0c32733a7d514", "66216bb723ebef7ca3f4571a", "66216bb7c28c6f37b51cd0e8", "66216bb723ebef7ca3f4571d", "66216bc62c21fa9407eda175", "66216bc6c28c6f37b51cd2d4", "66216bc62c21fa9407eda17b", "66216bd72c21fa9407eda210", "66216bd823ebef7ca3f459a8", "66216bd823ebef7ca3f459ab", "66216bd8c28c6f37b51cd381", "66216be623ebef7ca3f45a8a", "66216be6c28c6f37b51cd465" ], "unique_counts": {}, "unique_values": {} }, "\"2024-04-21T00:00:00Z\"": { "aggregation_count": { "count": 1 }, "aggregation_uuids": [ "66341d55f9aa19f4b730a74c" ], "unique_counts": {}, "unique_values": {} }, "\"2024-05-19T00:00:00Z\"": { "aggregation_count": { "count": 19 }, "aggregation_uuids": [ "664be2cc6fafc782b35fdc89", "664be2cc6fafc782b35fdceb", "664be2d56fafc782b35ff0d8", "664be2d56fafc782b35ff0e0", "664be2d5f420988edd47792d", "664be2dd67636bf844aedcae", "664be2dd6fafc782b36000a8", "664be2dd6fafc782b36000aa", "664be2ddf420988edd4788eb", "664be2e867636bf844aef4e9", "664be2e8f420988edd47a140", "664be2e8f420988edd47a148", "6656ababd2d288f1981ea2ba", "6656ababce82b72012f10bbc", "6656ababce82b72012f10bbd", "6656abab252554c986334a6b", "6656ababd2d288f1981ea2bd", "6656abab252554c986334a6d", "6656abacce82b72012f10bbf" ], "unique_counts": {}, "unique_values": {} }, "\"2024-06-02T00:00:00Z\"": { "aggregation_count": { "count": 5 }, "aggregation_uuids": [ "665fa482c980f9f8157e08c3", "6660a9f0e238ad93ad92089e", "6660a9f05728ef99cf0c8535", "6660a9f0b70974e544ccd05a", "6660a9f05728ef99cf0c853f" ], "unique_counts": {}, "unique_values": {} } } } } ``` # Using the REST API Source: https://docs.endorlabs.com/developers-api/rest-api/using-the-rest-api/index Learn how to use the Endor Labs REST API to create integrations, retrieve data, troubleshoot problems, and automate your workflows. The following sections provide information on using the Endor Labs REST API. > [card] [Getting started](/developers-api/rest-api/using-the-rest-api/getting-started) > > Learn how to use the Endor Labs REST API. > [card] [Data model](/developers-api/rest-api/using-the-rest-api/data-model) > > Learn about the Endor Labs data model. > [card] [Filters](/developers-api/rest-api/using-the-rest-api/filters) > > Learn how to use filters with the Endor Labs REST API. > [card] [Masks](/developers-api/rest-api/using-the-rest-api/masks) > > Learn how to use field masks with the Endor Labs REST API. > [card] [Pagination](/developers-api/rest-api/using-the-rest-api/pagination) > > Learn how to navigate through paginated responses from the Endor Labs REST API. > [card] [Sorting](/developers-api/rest-api/using-the-rest-api/sorting) > > Learn how to sort results from the Endor Labs REST API. > [card] [Grouping](/developers-api/rest-api/using-the-rest-api/grouping) > > Learn how to group results from the Endor Labs REST API. > [card] [Use cases](/developers-api/rest-api/using-the-rest-api/use-cases) > > Examples of common use cases for interacting with the Endor Labs REST API. > [card] [Advanced use cases](/developers-api/rest-api/using-the-rest-api/advanced-use-cases) > > Examples of advanced use cases when interacting with the Endor Labs REST API. > [card] [Best practices](/developers-api/rest-api/using-the-rest-api/best-practices) > > Follow these best practices when using the Endor Labs REST API. > [card] [Postman](/developers-api/rest-api/using-the-rest-api/postman) > > Learn how to use Endor Labs REST API with Postman. > [card] [Troubleshooting](/developers-api/rest-api/using-the-rest-api/troubleshooting) > > Learn how to diagnose and resolve common problems for the Endor Labs REST API. > [card] [Errors](/developers-api/rest-api/using-the-rest-api/errors) > > Learn about the Endor Labs REST API error codes and how to handle them. # Masks Source: https://docs.endorlabs.com/developers-api/rest-api/using-the-rest-api/masks/index Learn how to use field masks with the Endor Labs REST API. Field masks allow you to specify a subset of fields that each returned object includes. Similar to [filter keys](/developers-api/rest-api/using-the-rest-api/filters#keys), a field-mask key specifies the field to return, using a dot-delimited path. The following example shows how to get just the description and severity for all findings: > [tab] endorctl > > ```bash theme={null} > endorctl api list --resource Finding \ > --field-mask "meta.description,spec.level" > ``` > [tab] curl > > ```bash theme={null} > curl --get \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --url "https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/findings?list_parameters.mask=meta.description,spec.level" > ``` > [tab] HTTP > > ```bash theme={null} > @baseUrl = https://api.endorlabs.com > @token = `` > @namespace = `` > > ### > GET {{baseUrl}}/v1/namespaces/{{namespace}}/findings?list_parameters.mask=meta.description,spec.level HTTP/1.1 > Authorization: Bearer {{token}} > ``` ## jq The Endor Labs REST API returns results in json format so it is often convenient to use the `jq` command-line json processor to parse or format the results. The following example shows how to use `jq` to extract just the description value from the above request: > [tab] endorctl > > ```bash theme={null} > endorctl api list --resource Finding \ > --field-mask "meta.description,spec.level" \ > | jq '.list.objects[].meta.description' > ``` > [tab] curl > > ```bash theme={null} > curl --get \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --url "https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/findings?list_parameters.mask=meta.description,spec.level" \ > | jq '.list.objects[].meta.description' > ``` > [!NOTE] > > Lists of objects are always nested under `.list.objects[]`, but `endorctl api get` returns a single object directly. > To extract the object UUID from an object returned by an `endorctl api get` command, the `jq` command is `jq '.uuid'`, as opposed to `jq '.list.objects[].uuid'`. For more information, see the [jq documentation](https://jqlang.github.io/jq/tutorial/). # Pagination Source: https://docs.endorlabs.com/developers-api/rest-api/using-the-rest-api/pagination/index Learn how to navigate through paginated responses from the Endor Labs REST API. ## About Pagination When a response from the REST API includes many results, Endor Labs paginates the results and returns a subset of the results. For example, GET `/v1/namespaces/{tenant_meta.namespace}/findings` only returns 100 findings from the given namespace even if the namespace has more than 100 findings. This makes the response easier to handle for servers and for people. You can use the additional data from the list response to request additional pages of data. This article explains how to request additional pages of results for paginated responses and how to change the number of results returned on each page. ## Fetch all resources with `--list-all` The `endorctl` CLI provides the `--list-all` flag that allows you to fetch all results. Internally, `endorctl` handles the pagination through multiple requests. ```bash theme={null} endorctl api list --resource Finding --list-all ``` ## Using `page_size` The `page_size` field allows you to control the number of elements returned. By default, this value is 100, with a maximum of 500. The higher this value is, the longer it may take to get a result. > [tab] endorctl > > ```bash theme={null} > endorctl api list --resource Finding \ > --page-size=50 > ``` > [tab] curl > > ```bash theme={null} > curl --get \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --url "https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/findings?list_parameters.page_size=50" > ``` ## Iterating through results You can iterate through results using the `page_id` or `page_token` fields. ### Using `page_id` When a response spans multiple pages, it includes a `next_page_id` value. Use this value to fetch additional pages of results. For example, the response to the above request contains the first 50 elements in the `objects` field along with the following values in the `response` field: ```json theme={null} { "list": { "objects": [ ... ], "response": { "next_page_id": "633dd86976186a89d64628c1", "next_page_token": 50 } } } ``` To access the next page of results, you can use the `next_page_id` value as the value of `page_id` in the next request. For example: > [tab] endorctl > > ```bash theme={null} > endorctl api list --resource Finding \ > --page-size=50 \ > --page-id=633dd86976186a89d64628c1 > ``` > [tab] curl > > ```bash theme={null} > curl --get \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --url "https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/findings?list_parameters.page_size=50&list_parameters.page_id=633dd86976186a89d64628c1" > ``` This returns the next 50 elements, starting after the last element of the previous page. ### Using `page_token` `page_token` and `next_page_token` provide the same pagination capability as `page_id` and `next_page_id`, using a numeric offset instead of a cursor. However, we recommend using `page_id` and `next_page_id` as they offer better performance for the request. # Postman Source: https://docs.endorlabs.com/developers-api/rest-api/using-the-rest-api/postman/index Learn how to use Endor Labs REST API with Postman ## Download Postman Download Postman from [here](https://www.postman.com/downloads/). You can also use [Postman on the web](https://go.postman.co/home). ## Download the Endor Labs OpenAPI json > [card] Download REST API specifications > > You can download the Endor Labs REST API specifications directly from the docs site. Each file is served as a static asset. > > * [openapi.v3.json](https://docs.endorlabs.com/api-reference/openapi.v3.json): Compact OpenAPI 3.x specification that is suitable for most use cases. > * [openapi.full.v3.json](https://docs.endorlabs.com/api-reference/openapi.full.v3.json): Full OpenAPI 3.x specification that includes all schemas and operations. > * [openapiv2.swagger.json](https://docs.endorlabs.com/api-reference/openapiv2.swagger.json): Full Swagger 2.0 specification for tools that do not yet support OpenAPI 3.x. ## Import Endor Labs API json file in Postman 1. Open the Postman application. 2. Click **Import** and select the downloaded API specification file. 3. Select **OpenAPI 3.0 with Postman Collection** and click **Import**. Postman adds the Endor REST API collection to your workspace. It may take a couple of minutes to load the entire collection because of the size. ## Configure Endor REST API collection To use the Endor Labs APIs effectively with Postman you need to set the appropriate variables and configure authentication. Before you proceed further, get your API Key and API Secret from the Endor Labs user interface or endorctl. See [REST API authentication](/developers-api/rest-api/authentication#api-key-and-secret) for more information. Endor Labs APIs require a bearer token from the `POST /v1/auth/api-key` endpoint. You need to add a pre-request script to obtain this token in the collection. The pre-request script runs when you initiate an API request and fetches the bearer token for your API request. The pre-request script also adds the following headers to the request: * `'Content-Type': 'application/jsoncompact'` * `'Accept-Encoding': 'gzip, deflate, br, zstd'` The following diagram shows how the pre-request script obtains the bearer token and how the collection uses it. %%steps A, e1, B | When you send a request, the pre-request script posts your API key and secret to the token endpoint. e2, C | The script stores the returned token in the bearerToken environment variable. e3, D | The collection Authorization tab sends the token as a bearer token with your request. %% flowchart LR A\[Pre-request script] e1\@--> B\["POST /v1/auth/api-key"] B e2\@-->|token| C\[bearerToken variable] C e3\@--> D\[Endor Labs REST API request] classDef endor fill:\{\{endorColor}},stroke:\{\{endorBorder}},color:#000000 class B,D endor We recommend that you create a new environment in Postman to run the APIs. You can save your variables in the environment and not the collection so that secrets are not exposed if you want to export and share the collection. You can also save the variables in the collection and modify the pre-request script to run the APIs without creating an environment. ### Create an environment in Postman 1. Click **Environments** in the left sidebar. 2. Click **Create New Environment**. 3. Enter a name for your environment. ### Configure variables in the environment 1. Click **Environments** in the left sidebar. 2. Select your Endor Labs API environment. 3. Create a variable with the name, `baseUrl` and enter `https://api.endorlabs.com` as the value. 4. Create the following variables with information that your API Key and API Secret. * `apiKey` : Your API key * `apiSecret` : Your API secret 5. Create a variable with the name, `bearerToken` and leave it as empty. ![Postman Variables](https://mintcdn.com/endorlabs-b4795f4f/TVudXwCdR2gZhdvv/images/developers-api/rest-api/PostmanEnvVars.webp?fit=max\&auto=format\&n=TVudXwCdR2gZhdvv\&q=85\&s=f686e25ae97fe3b61f3f44ccd36f7c48) 6. Save the changes. ### Configure authentication in the Endor REST API collection 1. Select Endor REST API collection and select the **Authorization** tab. 2. Select Bearer Token as the **Auth Type**. 3. Enter `{{bearerToken}}` in the **Bearer Token** field. ![Postman Authentication](https://mintcdn.com/endorlabs-b4795f4f/dHzwUrp_QbpzV9uv/images/developers-api/rest-api/PostmanAuth.webp?fit=max\&auto=format\&n=dHzwUrp_QbpzV9uv\&q=85\&s=106e16e2a137d04425c4309f76a22bd4) 4. Save the changes. ## Add the pre-request script to the Endor REST API collection 1. Select Endor REST API collection and select the **Scripts** tab. 2. Select **Pre-request**. 3. Enter the following JavaScript code as the pre-request script. ```javascript theme={null} const getTokenEndpoint = pm.environment.get("baseUrl") + '/v1/auth/api-key'; const apiKey = pm.environment.get("apiKey"); const apiSecret = pm.environment.get("apiSecret"); const requestOptions = { method: 'POST', url: getTokenEndpoint, header: { 'Content-Type': 'application/jsoncompact', 'Accept-Encoding': 'gzip, deflate, br, zstd' }, body: { mode: 'raw', raw: JSON.stringify({ "key": apiKey, "secret": apiSecret }) } }; pm.sendRequest(requestOptions, function(err, response) { if (err) { console.log(err); } else { const jsonResponse = response.json(); pm.environment.set("bearerToken", jsonResponse.token); // Set headers for the main request pm.request.headers.add({ key: 'Content-Type', value: 'application/jsoncompact' }); pm.request.headers.add({ key: 'Accept-Encoding', value: 'gzip, deflate, br, zstd' }); } }); ``` 4. Save the changes. ## Run Endor Labs API from Postman 1. Click **Collections** in the left sidebar. 2. Expand Endor REST API collection and select the API that you want to run. 3. Configure the parameters in the **Params** tab. 4. Select the Endor Labs API environment from the Environments drop-down list. 5. Enter the name of your namespace in the `:tenant_meta.namespace` or `:target_namespace` if your API request applies to a namespace. 6. Click **Send** to send the API request. ## Customize and share Postman collection You can configure parameters for multiple APIs according to your requirements, save the collection, and share the collection to quickly distribute API requests tailored for your organization. For example, you might want to create multiple collections that apply to different namespaces and use different parameters for the namespaces. You can customize the parameters for each use case and export the collection for distribution in your development team. ## Endor Labs API with Postman: An Example Consider a scenario where you need to fetch findings that have a CVSS score of more than 9.7. You need to run the `ListFindings` API, which is available under `Endor REST API > V1 > Namespaces > {tenant_meta.namespace} > findings` in the collection. In the **Params** tab, select only `list_parameters.filter` as the key and enter `spec.finding_metadata.vulnerability.spec.cvss_v3_severity.score > 9.7` as the value. Replace `:tenant_meta.namespace` with the name of your namespace and click Send. ![Postman Example Request](https://mintcdn.com/endorlabs-b4795f4f/dHzwUrp_QbpzV9uv/images/developers-api/rest-api/PostmanExampleRequest.webp?fit=max\&auto=format\&n=dHzwUrp_QbpzV9uv\&q=85\&s=40645d820bda79f309466c3e120bc936) The response contains the list of findings that are vulnerabilities with CVSS score greater than 9.7. ![Postman Example Response](https://mintcdn.com/endorlabs-b4795f4f/dHzwUrp_QbpzV9uv/images/developers-api/rest-api/PostmanExampleRsponse.webp?fit=max\&auto=format\&n=dHzwUrp_QbpzV9uv\&q=85\&s=66de26eb7b29b9ed2944437501756684) # Sorting Source: https://docs.endorlabs.com/developers-api/rest-api/using-the-rest-api/sorting/index Learn how to sort results from the Endor Labs REST API. Sort allows you to sort objects in ascending (default) or descending order. Similar to [filter keys](/developers-api/rest-api/using-the-rest-api/filters#keys), a sort-path key specifies the field to sort the objects by, using a dot-delimited path. The following example shows how to sort findings based on create time, in descending order: > [tab] endorctl > > ```bash theme={null} > endorctl api list --resource Finding \ > --sort-path "meta.create_time" \ > --sort-order descending > ``` > [tab] curl > > ```bash theme={null} > curl --get \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --url "https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/findings?list_parameters.sort.path=meta.create_time&list_parameters.sort.order=SORT_ENTRY_ORDER_DESC" > ``` > [tab] HTTP > > ```bash theme={null} > @baseUrl = https://api.endorlabs.com > @token = `` > @namespace = `` > > ### > GET {{baseUrl}}/v1/namespaces/{{namespace}}/findings?list_parameters.sort.path=meta.create_time&list_parameters.sort.order=SORT_ENTRY_ORDER_DESC HTTP/1.1 > Authorization: Bearer {{token}} > ``` ### Sort order The following sort orders are supported: > [tab] endorctl > > \- Option: \`sort-path\` > Description: Specify the field to sort the objects by. > \- Option: \`sort-order\` > Description: Specify the sort order. > [tab] curl / HTTP > > \- Value: \`SORT_ENTRY_ORDER_ASC\` > Description: Ascending order (default) > \- Value: \`SORT_ENTRY_ORDER_DESC\` > Description: Descending order # Troubleshooting Source: https://docs.endorlabs.com/developers-api/rest-api/using-the-rest-api/troubleshooting/index Learn how to diagnose and resolve common problems for the Endor Labs REST API. For a full list of error code descriptions, see [Errors](/developers-api/rest-api/using-the-rest-api/errors). ## Invalid authorization If Endor Labs can't verify your access token (for example, it's empty or expired), Endor Labs terminates the request and returns an invalid authorization response. ```json theme={null} { "code": 16, "message": "Invalid authorization header: Bearer", "details": [ { "@type": "type.googleapis.com/internal.endor.ai.rpc.v1.HTTPErrorInfo", "status_code": 401 } ] } ``` ### Remediation Try creating a new token or, if you have a valid API key and secret in your `~/.endorctl/config.yaml` file, unsetting the environment variable (`unset ENDOR_TOKEN`). For more information, see [Authentication](/developers-api/rest-api/authentication). ## Permission Denied If your access token lacks the required permissions for a namespace or operation, Endor Labs terminates the request and returns an unauthorized response. ```json theme={null} { "code": 7, "message": "Unauthorized request for given endpoint", "details": [ { "@type": "type.googleapis.com/internal.endor.ai.rpc.v1.HTTPErrorInfo", "status_code": 403 } ] } ``` ### Remediation Check the value of the `ENDOR_NAMESPACE` environment variable, the variable with the same name in the `~/.endorctl/config.yaml file`, or the API endpoint URL. For more information, see [Authentication](/developers-api/rest-api/authentication). ## Context deadline exceeded If it takes too long to process an API request, Endor Labs will terminate the request and you will receive a timeout response and a "context deadline exceeded" message. ```json theme={null} { "code": 4, "message": "context deadline exceeded", "details": [] } ``` Endor Labs reserves the right to change the timeout window to protect the speed and reliability of the API. ### Remediation You can [increase the request timeout limit](/developers-api/rest-api/using-the-rest-api/getting-started#request-timeout) or you can try to [simplify your request](/developers-api/rest-api/using-the-rest-api/getting-started#list-parameters). For instance, if you are requesting 100 items per page, try requesting fewer items. For more information, see [Best practices](/developers-api/rest-api/using-the-rest-api/best-practices). ## Invalid argument If a request is missing a required field, or includes a non-existent field, Endor Labs will return an "invalid argument" response. The response `message` field contains details about the error, such as the field name and the specific problem with it. For example, Endor Labs returns the following response if you request findings with the field mask `uui` instead of `uuid`: ```json theme={null} { "code": 3, "message": "mask: proto: invalid path "uui" for message "internal.endor.ai.endor.v1.Finding"", "details": [ { "@type": "type.googleapis.com/internal.endor.ai.rpc.v1.HTTPErrorInfo", "status_code": 400 } ] } ``` ### PATCH requests Here is an example response to an PATCH (update) request that sent a Finding as the payload instead of an [UpdateFinding](/api-reference/findingservice/updatefinding): ```json theme={null} { "code": 3, "message": "invalid Finding.Meta: value is required; invalid Finding.Spec: value is required", "details": [ { "@type": "type.googleapis.com/internal.endor.ai.rpc.v1.HTTPErrorInfo", "status_code": 400 } ] } ``` #### Remediation Make sure to use the right data structure as the payload for your PATCH requests. For example: ```json theme={null} { "request" : { "update_mask": "meta.tags" }, "object" : { "uuid" : "", "meta" : { "tags": [ "" ] } } } ``` # Use cases Source: https://docs.endorlabs.com/developers-api/rest-api/using-the-rest-api/use-cases/index Examples of common use cases for interacting with the Endor Labs REST API. See also [Best practices](/developers-api/rest-api/using-the-rest-api/best-practices) for tips on how to optimize queries. ## Get list of projects > [tab] endorctl > > ```bash theme={null} > endorctl api list --resource Project > ``` > [tab] curl > > ```bash theme={null} > curl --get \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --compressed \ > --url "https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/projects" > ``` > [tab] HTTP > > ```bash theme={null} > @baseUrl = https://api.endorlabs.com > @token = > @namespace = > > ### > GET {{baseUrl}}/v1/namespaces/{{namespace}}/projects HTTP/1.1 > Authorization: Bearer {{token}} > ``` Add one or more [field-masks](/developers-api/rest-api/using-the-rest-api/masks) to limit the fields returned for each object. For example, set the field-mask to `meta.name` to only get the name and UUID of all projects. The UUID is always returned. > [tab] endorctl > > ```bash theme={null} > endorctl api list --resource Project --field-mask meta.name > ``` > [tab] curl > > ```bash theme={null} > curl --get \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --compressed \ > --url "https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/projects?list_parameters.mask=meta.name" \ > | jq '.list.objects[].uuid' > ``` > [tab] HTTP > > ```bash theme={null} > @baseUrl = https://api.endorlabs.com > @token = > @namespace = > > ### > GET {{baseUrl}}/v1/namespaces/{{namespace}}/projects?list_parameters.mask=meta.name HTTP/1.1 > Authorization: Bearer {{token}} > ``` ## Get project UUID The project UUID connects all the objects for a given project. One way to get the project UUID is to extract it from the `uuid` field in the Project object. For more information, see [Resource kinds](/developers-api/rest-api/using-the-rest-api/data-model/resource-kinds). > [tab] endorctl > > ```bash theme={null} > endorctl api get --resource Project --name | jq '.uuid' > ``` > [tab] curl > > ```bash theme={null} > curl --get \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --compressed \ > --url "https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/projects?list_parameters.filter=meta.name==" \ > | jq '.list.objects[].uuid' > ``` > [tab] HTTP > > ```bash theme={null} > @baseUrl = https://api.endorlabs.com > @token = > @namespace = > > ### > GET {{baseUrl}}/v1/namespaces/{{namespace}}/projects?list_parameters.filter=meta.name== HTTP/1.1 > Authorization: Bearer {{token}} > ``` ## Get list of findings for a project Use the following [filter](/developers-api/rest-api/using-the-rest-api/filters) to get a list of findings for a given project: `spec.project_uuid==` > [tab] endorctl > > ```bash theme={null} > endorctl api list --resource Finding --filter "spec.project_uuid==" > ``` > [tab] curl > > ```bash theme={null} > curl --get \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --compressed \ > --data-urlencode "list_parameters.filter=spec.project_uuid==" \ > https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/findings > ``` > [tab] HTTP > > ```bash theme={null} > @baseUrl = https://api.endorlabs.com > @token = > @namespace = > > ### > GET {{baseUrl}}/v1/namespaces/{{namespace}}/findings?list_parameters.filter=spec.project_uuid== HTTP/1.1 > Authorization: Bearer {{token}} > ``` ## Get number of findings for a project Add the `--count` flag to just get the number of findings. This is much faster than retrieving the objects. > [tab] endorctl > > ```bash theme={null} > endorctl api list --resource Finding --filter "spec.project_uuid==" --count > ``` > [tab] curl > > ```bash theme={null} > curl --get \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --compressed \ > --data-urlencode "list_parameters.filter=spec.project_uuid==" \ > --data-urlencode "list_parameters.count=true" \ > https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/findings > ``` > [tab] HTTP > > ```bash theme={null} > @baseUrl = https://api.endorlabs.com > @token = > @namespace = > > ### > GET {{baseUrl}}/v1/namespaces/{{namespace}}/findings?list_parameters.filter=spec.project_uuid==&list_parameters.count=true HTTP/1.1 > Authorization: Bearer {{token}} > ``` ## Get number of findings for a project by severity Use [grouping](/developers-api/rest-api/using-the-rest-api/grouping) to get the number of findings by severity. > [tab] endorctl > > ```bash theme={null} > endorctl api list --resource Finding \ > --filter "spec.project_uuid==" \ > --group-aggregation-paths "spec.level" > ``` > [tab] curl > > ```bash theme={null} > curl --get \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --data-urlencode "list_parameters.filter=spec.project_uuid==" \ > --data-urlencode "list_parameters.group.aggregation_paths=spec.level" \ > https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/findings \ > | jq '.' > ``` > [tab] HTTP > > ```bash theme={null} > @baseUrl = https://api.endorlabs.com > @token = > @namespace = > > ### > GET {{baseUrl}}/v1/namespaces/{{namespace}}/findings?list_parameters.filter=spec.project_uuid==&list_parameters.group.aggregation_paths=spec.level HTTP/1.1 > Content-type: application/json > Authorization: Bearer {{token}} > ``` ## Get list of findings for reachable functions Use the following filter to get a list of findings for reachable functions: `spec.finding_tags contains FINDING_TAGS_REACHABLE_FUNCTION` For a list of all finding attributes, see [Finding tags](/developers-api/rest-api/using-the-rest-api/data-model/resource-kinds#finding-tags). > [tab] endorctl > > ```bash theme={null} > endorctl api list --resource Finding \ > --filter "spec.finding_tags contains FINDING_TAGS_REACHABLE_FUNCTION" > ``` > [tab] curl > > ```bash theme={null} > curl --get \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --compressed \ > --data-urlencode "list_parameters.filter=spec.finding_tags contains FINDING_TAGS_REACHABLE_FUNCTION" \ > https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/findings > ``` > [tab] HTTP > > ```bash theme={null} > @baseUrl = https://api.endorlabs.com > @token = > @namespace = > > ### > GET {{baseUrl}}/v1/namespaces/{{namespace}}/findings?list_parameters.filter=spec.finding_tags contains FINDING_TAGS_REACHABLE_FUNCTION HTTP/1.1 > Authorization: Bearer {{token}} > ``` ## Get list of findings for reachable functions for a project Combine the previous filters to get a list of findings for reachable functions for a given project: `spec.project_uuid== and spec.finding_tags contains FINDING_TAGS_REACHABLE_FUNCTION` > [tab] endorctl > > ```bash theme={null} > endorctl api list --resource Finding \ > --filter "spec.project_uuid== and spec.finding_tags contains FINDING_TAGS_REACHABLE_FUNCTION" > ``` > [tab] curl > > ```bash theme={null} > curl --get \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --compressed \ > --data-urlencode "list_parameters.filter=spec.project_uuid== and spec.finding_tags contains FINDING_TAGS_REACHABLE_FUNCTION" \ > https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/findings > ``` > [tab] HTTP > > ```bash theme={null} > @baseUrl = https://api.endorlabs.com > @token = > @namespace = > > ### > GET {{baseUrl}}/v1/namespaces/{{namespace}}/findings?list_parameters.filter=spec.project_uuid== and spec.finding_tags contains FINDING_TAGS_REACHABLE_FUNCTION HTTP/1.1 > Authorization: Bearer {{token}} > ``` ## Get list of findings in a category Use the following filter to get a list of findings in the RSPM category: `spec.finding_categories contains FINDING_CATEGORY_SCPM` For a list of all finding categories, see [Finding categories](/developers-api/rest-api/using-the-rest-api/data-model/resource-kinds#finding-categories). > [tab] endorctl > > ```bash theme={null} > endorctl api list --resource Finding \ > --filter "spec.finding_categories contains FINDING_CATEGORY_SCPM" > ``` > [tab] curl > > ```bash theme={null} > curl --get \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --compressed \ > --data-urlencode "list_parameters.filter=spec.finding_categories contains FINDING_CATEGORY_SCPM" \ > https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/findings > ``` > [tab] HTTP > > ```bash theme={null} > @baseUrl = https://api.endorlabs.com > @token = > @namespace = > > ### > GET {{baseUrl}}/v1/namespaces/{{namespace}}/findings?list_parameters.filter=spec.finding_categories contains FINDING_CATEGORY_SCPM HTTP/1.1 > Authorization: Bearer {{token}} > ``` ## Get list of findings for a vulnerability Use the following filter to get a list of findings for a given vulnerability, for example `"CVE-2024-53677"` or `"GHSA-43mq-6xmg-29vm"`: `spec.finding_metadata.vulnerability.spec.aliases contains CVE-2024-53677` > Note: You can replace the CVE ID in the example with any other vulnerability ID type, such as GHSA, BIT, GO, PYSEC, or OVAL. > [tab] endorctl > > ```bash theme={null} > endorctl api list --resource Finding \ > --filter "spec.finding_metadata.vulnerability.spec.aliases contains CVE-2024-53677" > ``` > [tab] curl > > ```bash theme={null} > curl --get \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --compressed \ > --data-urlencode "list_parameters.filter=spec.finding_metadata.vulnerability.spec.aliases contains CVE-2024-53677" \ > https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/findings > ``` > [tab] HTTP > > ```bash theme={null} > @baseUrl = https://api.endorlabs.com > @token = > @namespace = > > ### > GET {{baseUrl}}/v1/namespaces/{{namespace}}/findings?list_parameters.filter=spec.finding_metadata.vulnerability.spec.aliases contains CVE-2024-53677 HTTP/1.1 > Authorization: Bearer {{token}} > ``` ## Get list of findings for a code owner Use the `spec.code_owners.owners` field to filter findings based on code owner. > Note: Code owners are automatically assigned based on the [**CodeOwners**](/api-reference/codeownersservice/listcodeowners) object for the project, which Endor Labs generates from the CODEOWNERS file in the default branch. For projects without a CODEOWNERS file, manage the CodeOwners object through the API. > [tab] endorctl > > ```bash theme={null} > endorctl api list --resource Finding \ > --filter "spec.code_owners.owners contains " \ > --timeout 100s > ``` > [tab] curl > > ```bash theme={null} > curl --get \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --compressed \ > --header "Request-Timeout: 100" \ > --data-urlencode "list_parameters.filter=spec.code_owners.owners contains " \ > https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/findings > ``` > [tab] HTTP > > ```bash theme={null} > @baseUrl = https://api.endorlabs.com > @token = > @namespace = > > ### > GET {{baseUrl}}/v1/namespaces/{{namespace}}/findings?list_parameters.filter=spec.code_owners.owners contains HTTP/1.1 > Authorization: Bearer {{token}} > ``` ## Group findings by code owner Use the `spec.code_owners.owners` field to group findings based on code owner. > Note: Code owners are automatically assigned based on the [**CodeOwners**](/api-reference/codeownersservice/listcodeowners) object for the project, which Endor Labs generates from the CODEOWNERS file in the default branch. For projects without a CODEOWNERS file, manage the CodeOwners object through the API. > [tab] endorctl > > ```bash theme={null} > endorctl api list --resource Finding \ > --group-aggregation-paths "spec.code_owners.owners" \ > --timeout 100s > ``` > [tab] curl > > ```bash theme={null} > curl --get \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --header "Request-Timeout: 100" \ > --data-urlencode "list_parameters.group.aggregation_paths=spec.code_owners.owners" \ > https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/findings \ > | jq '.' > ``` > [tab] HTTP > > ```bash theme={null} > @baseUrl = https://api.endorlabs.com > @token = > @namespace = > > ### > GET {{baseUrl}}/v1/namespaces/{{namespace}}/findings?list_parameters.group.aggregation_paths=spec.code_owners.owners HTTP/1.1 > Content-type: application/json > Authorization: Bearer {{token}} > ``` ## Get finding snooze history Endor Labs captures snooze updates as **FindingLog** objects. > [tab] endorctl > > ```bash theme={null} > endorctl api list --resource FindingLog \ > --filter "spec.finding_uuid== and spec.operation==OPERATION_UPDATE" \ > --field-mask "meta.create_time,meta.created_by,spec.snooze" > ``` > [tab] curl > > ```bash theme={null} > curl --get \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --compressed \ > --data-urlencode "list_parameters.filter=spec.finding_uuid== and spec.operation==OPERATION_UPDATE" \ > --data-urlencode "list_parameters.mask=meta.create_time,meta.created_by,spec.snooze" \ > https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/finding-logs > ``` > [tab] HTTP > > ```bash theme={null} > @baseUrl = https://api.endorlabs.com > @token = > @namespace = > > ### > GET {{baseUrl}}/v1/namespaces/{{namespace}}/finding-logs?list_parameters.filter=spec.finding_uuid== and spec.operation==OPERATION_UPDATE&list_parameters.mask=meta.create_time,meta.created_by,spec.snooze HTTP/1.1 > Authorization: Bearer {{token}} > ``` ## Get Endor Labs scores for an OSS package 1. Set the namespace to `"oss"` because the OSS tenant stores data for OSS packages. 2. Endor Labs stores package version scores in the `"package_version_scorecard"` **Metric** object, in the `spec.metric_values.scorecard.score_card.category_scores` field, so you need to get this Metric object for the given OSS package. For more information, see the [Metric resource kind documentation](/developers-api/rest-api/using-the-rest-api/data-model/resource-kinds#metric). 3. To get Metric objects belonging to a given package version, get the UUID of the corresponding **PackageVersion** object. The PackageVersion object name must be in the format `://@`, for example: `"mvn://ch.qos.logback:logback-core@1.3.3"`. For more information, see the [PackageVersion resource kind documentation](/developers-api/rest-api/using-the-rest-api/data-model/resource-kinds#packageversion). Once you have the PackageVersion object, use the following `jq` command to extract the UUID: `jq '.list.object[].uuid'` 4. Get the Metric object corresponding to the PackageVersion UUID using the following two filters: 1. `meta.name==package_version_scorecard` 2. `meta.parent_uuid==` 5. Use the following `jq` command to extract just the Endor Labs scores from the Metric object: `jq '.list.objects[].spec.metric_values.scorecard.score_card.category_scores'` > [tab] endorctl > > ```bash theme={null} > # Get the PackageVersion and extract the uuid > UUID=$(endorctl api list \ > --namespace oss \ > --resource PackageVersion \ > --filter "meta.name==mvn://ch.qos.logback:logback-core@1.3.3" \ > | jq '.list.objects[].uuid') > > # Get the Metric and extract the Endor Labs scores > endorctl api list \ > --namespace oss \ > --resource Metric \ > --filter "meta.name==package_version_scorecard and meta.parent_uuid==$UUID" \ > | jq '.list.objects[].spec.metric_values.scorecard.score_card.category_scores' > ``` > [tab] curl > > ```bash theme={null} > # Get the PackageVersion and extract the uuid > UUID=$(curl --get \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --compressed \ > --data-urlencode "list_parameters.filter=meta.name==mvn://ch.qos.logback:logback-core@1.3.3" \ > https://api.endorlabs.com/v1/namespaces/oss/package-versions \ > | jq '.list.objects[].uuid') > > # Get the Metric and extract the Endor Labs scores > curl --get \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --compressed \ > --data-urlencode "list_parameters.filter=meta.name==package_version_scorecard and meta.parent_uuid==$UUID" \ > https://api.endorlabs.com/v1/namespaces/oss/metrics \ > | jq '.list.objects[].spec.metric_values.scorecard.score_card.category_scores' > ``` > [tab] HTTP > > ```bash theme={null} > @baseUrl = https://api.endorlabs.com > @token = > > ### > GET {{baseUrl}}/v1/namespaces/oss/package-versions?list_parameters.filter=meta.name==mvn://ch.qos.logback:logback-core@1.3.3 HTTP/1.1 > Authorization: Bearer {{token}} > > ### > GET {{baseUrl}}/v1/namespaces/oss/metrics?list_parameters.filter=meta.name==package_version_scorecard and meta.parent_uuid== HTTP/1.1 > Authorization: Bearer {{token}} > ``` Below is an example response to the request. ```json expandable theme={null} [ { "category": "SCORE_CATEGORY_ACTIVITY", "centered_score": 6.956522, "description": "Captures the level of activity associated with the repository. Activity information is based on GitHub metadata. Higher levels of activity can mean that the repository is well maintained and will continue to be in the future.", "raw_score": 7.0212765, "score": 7 }, { "category": "SCORE_CATEGORY_POPULARITY", "centered_score": 8.076923, "description": "Captures how popular is the repository. Popularity information is based on GitHub metadata. Popular repositories are more likely to be maintained.", "raw_score": 7.368421, "score": 9 }, { "category": "SCORE_CATEGORY_CODE_QUALITY", "centered_score": 4.2105265, "description": "Provides a view of code quality and adherence to best practices in a repository. This information is based on from both GitHub metadata and the source code in the repository.", "raw_score": 4.848485, "score": 4 }, { "category": "SCORE_CATEGORY_SECURITY", "centered_score": 4.7297297, "description": "Captures the level of compliance with security best practices as well as vulnerability information for the repository including currently open as well as fixed vulnerabilities. Analysis only considers vulnerabilities associated with this repository and not its dependencies. Vulnerability information is based on OSV.dev data and Endor's vulnerability database", "raw_score": 8.333333, "score": 4 } ] ``` ## Get license text from a license finding 1. Look up a license-related **Finding** object for a dependency using the following filter: `spec.finding_categories contains [FINDING_CATEGORY_LICENSE_RISK] and spec.finding_tags not contains [FINDING_TAGS_SELF]` 2. Get the name of the corresponding **PackageVersion** object from the `spec.target_dependency_package_name` field. If we have a list of Finding objects, we can use the following `jq` command to get the PackageVersion name: `jq '.list.objects[].spec.target_dependency_package_name'` 3. Look up the PackageVersion object and store the UUID. > Note: If this is an OSS dependency we must use the "`oss`" namespace. 4. Look up the corresponding `pkg_version_info_for_license` **Metric** object using the following filter: `meta.name==pkg_version_info_for_license&meta.parent_uuid==$UUID` > Note: The Metric is in the same namespace as the PackageVersion. 5. Use the following `jq` command to extract the license text from the Metric object: `jq '.list.objects[].spec.metric_values.licenseInfoType.license_info.all_licenses[].matched_text'` For more information, see the [Metric resource kind documentation](/developers-api/rest-api/using-the-rest-api/data-model/resource-kinds#metric). > [tab] endorctl > > ```bash theme={null} > # Get the target dependency PackageVersion name from a license-related finding > NAME=$(endorctl api list --resource Finding \ > --filter "spec.finding_categories contains [FINDING_CATEGORY_LICENSE_RISK] and spec.finding_tags not contains [FINDING_TAGS_SELF]" \ > --page-size 1 \ > | jq '.list.objects[].spec.target_dependency_package_name') > > # Get the target dependency PackageVersion uuid > UUID=$(endorctl api list --resource PackageVersion \ > --namespace oss \ > --filter "meta.name==$NAME" \ > | jq '.list.objects[].uuid') > > # Get the corresponding pkg_version_info_for_license Metric and extract the license text > endorctl api list --resource Metric \ > --namespace "oss" \ > --filter "meta.name==pkg_version_info_for_license and meta.parent_uuid==$UUID" \ > | jq '.list.objects[].spec.metric_values.licenseInfoType.license_info.all_licenses[].matched_text' > ``` > [tab] curl > > ```bash theme={null} > # Get the target dependency PackageVersion name from a license-related finding > NAME=$(curl --get \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --compressed \ > --data-urlencode "list_parameters.filter=spec.finding_categories contains [FINDING_CATEGORY_LICENSE_RISK] and spec.finding_tags not contains [FINDING_TAGS_SELF]" \ > --data-urlencode "list_parameters.page_size=1" \ > https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/findings \ > | jq '.list.objects[].spec.target_dependency_package_name') > > # Get the target dependency PackageVersion uuid > UUID=$(curl --get \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --compressed \ > --data-urlencode "list_parameters.filter=meta.name==$NAME" \ > https://api.endorlabs.com/v1/namespaces/oss/package-versions \ > | jq '.list.objects[].uuid') > > # Get the corresponding pkg_version_info_for_license Metric and extract the license text > curl --get \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --compressed \ > --data-urlencode "list_parameters.filter=meta.name==pkg_version_info_for_license and meta.parent_uuid==$UUID" \ > https://api.endorlabs.com/v1/namespaces/oss/metrics \ > | jq '.list.objects[].spec.metric_values.licenseInfoType.license_info.all_licenses[].matched_text' > ``` ## Get list of projects using a tool 1. Endor Labs stores CI/CD tool metrics in the `version_cicd_tools` **Metric** object, in the `spec.metric_values.CiCdTools.ci_cd_tools.tools` list. Use the following filter to get all such Metrics with entries for the given tool name (GitHub Actions in this example). For more information, see the [Metric resource kind documentation](/developers-api/rest-api/using-the-rest-api/data-model/resource-kinds#metric). `meta.name==version_cicd_tools and spec.metric_values.CiCdTools.ci_cd_tools.tools.name=='GitHub Actions'` 2. Use the following `jq` command to get the UUIDs of the corresponding **Project** objects: `.list.objects[].spec.project_uuid` 3. Remove duplicate Project UUIDs (a Project can have multiple repository versions). 4. Use the UUIDs to get the corresponding Project objects. > [tab] endorctl > > ```bash theme={null} > # Get list of Project UUIDs > PROJECT_UUIDS=$(endorctl api list --resource Metric \ > --filter "meta.name==version_cicd_tools and spec.metric_values.CiCdTools.ci_cd_tools.tools.name=='GitHub Actions'" \ > | jq -r '.list.objects[].spec.project_uuid') > > # Remove duplicate UUIDs > UNIQUE_UUIDS=$(echo $PROJECT_UUIDS | sort | uniq) > > # Get Project for each uuid and extract the name > for uuid in $UNIQUE_UUIDS > do > endorctl api get --resource Project --uuid $uuid | jq '.meta.name' > done > ``` > [tab] curl > > ```bash theme={null} > # Get list of Project UUIDs > PROJECT_UUIDS=$(curl --get \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --compressed \ > --data-urlencode "list_parameters.filter=meta.name==version_cicd_tools and spec.metric_values.CiCdTools.ci_cd_tools.tools.name=='GitHub Actions'" \ > https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/metrics \ > | jq -r '.list.objects[].spec.project_uuid') > > # Remove duplicate UUIDs > UNIQUE_UUIDS=$(echo $PROJECT_UUIDS | sort | uniq) > > # Get Project for each uuid and extract the name > for uuid in $UNIQUE_UUIDS > do > curl --get \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --compressed \ > --url https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/projects/$uuid \ > | jq '.meta.name' > done > ``` See also [List Projects, with Repository Versions and CI/CD Tool Metrics](/developers-api/rest-api/using-the-rest-api/advanced-use-cases/query-service#list-projects-with-repository-versions-and-ci/cd-tool-metrics) for a Query Service example that retrieves CI/CD tool Metrics for a list of projects. ## Get the latest scan result 1. To get the latest object, first sort the objects in descending order, based on the `meta.create_time` field: `list_parameters.sort.order=SORT_ENTRY_ORDER_DESC&list_parameters.sort.path=meta.create_time` 2. Then, to get only the latest object, set the page size to 1: `list_parameters.page_size=1` > [tab] endorctl > > ```bash theme={null} > endorctl api list --resource ScanResult \ > --sort-order descending \ > --sort-path meta.create_time \ > --page-size=1 > ``` > [tab] curl > > ```bash theme={null} > curl --get \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --compressed \ > --url "https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/scan-results?list_parameters.sort.order=SORT_ENTRY_ORDER_DESC&list_parameters.sort.path=meta.create_time&list_parameters.page_size=1" > ``` > [tab] HTTP > > ```bash theme={null} > @baseUrl = https://api.endorlabs.com > @token = > @namespace = > > ### > GET {{baseUrl}}/v1/namespaces/{{namespace}}/scan-results?list_parameters.sort.order=SORT_ENTRY_ORDER_DESC&list_parameters.sort.path=meta.create_time&list_parameters.page_size=1 HTTP/1.1 > Authorization: Bearer {{token}} > ``` ## Create a policy The following example uses the [Create Policy](/api-reference/policyservice/createpolicy) endpoint to create a new policy. > [tab] endorctl > > ```bash theme={null} > endorctl api create --resource Policy \ > --data '{ > "meta": { > "description": "Disable action policies for CVE-2020-7677", > "kind": "Policy", > "name": "Ignore CVE-2020-7677" > }, > "propagate": true, > "spec": { > "exception": { > "reason": "EXCEPTION_REASON_RISK_ACCEPTED" > }, > "policy_type": "POLICY_TYPE_EXCEPTION", > "query_statements": [ > "data.exceptions.match_finding" > ], > "resource_kinds": [ > "Finding" > ], > "rule": "package exceptions\n\nmatch_finding[result] {\n\tsome i\n data.resources.Finding[i].spec.finding_metadata.vulnerability.spec.aliases[_] = \"CVE-2020-7677\"\n result = { \"Endor\" : { \"Finding\" : data.resources.Finding[i].uuid } }\n}" > }, > "tenant_meta": { > "namespace": "$ENDOR_NAMESPACE" > } > }' > ``` > [tab] curl > > ```bash theme={null} > curl --request POST \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --compressed \ > --url "https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/policies" \ > --data '{ > "meta": { > "description": "Disable action policies for CVE-2020-7677", > "kind": "Policy", > "name": "Ignore CVE-2020-7677" > }, > "propagate": true, > "spec": { > "exception": { > "reason": "EXCEPTION_REASON_RISK_ACCEPTED" > }, > "policy_type": "POLICY_TYPE_EXCEPTION", > "query_statements": [ > "data.exceptions.match_finding" > ], > "resource_kinds": [ > "Finding" > ], > "rule": "package exceptions\n\nmatch_finding[result] {\n\tsome i\n data.resources.Finding[i].spec.finding_metadata.vulnerability.spec.aliases[_] = \"CVE-2020-7677\"\n result = { \"Endor\" : { \"Finding\" : data.resources.Finding[i].uuid } }\n}" > }, > "tenant_meta": { > "namespace": "$ENDOR_NAMESPACE" > } > }' | jq '.' > ``` > [tab] HTTP > > ```bash theme={null} > @baseUrl = https://api.endorlabs.com > @token = > @namespace = > > ### > POST {{baseUrl}}/v1/namespaces/{{namespace}}/policies HTTP/1.1 > Authorization: Bearer {{token}} > > { > "meta": { > "name": "Detect Apache-2.0 License", > "description": "Raise findings for dependencies using the Apache-2.0 license" > }, > "spec": { > "policy_type": "POLICY_TYPE_USER_FINDING", > "finding_level": "FINDING_LEVEL_CRITICAL", > "finding": { > "explanation": "One or more of the licenses associated with this package or package dependency violates organizational license policy.", > "external_name": "License Compliance Violation", > "level": "FINDING_LEVEL_CRITICAL", > "remediation": "Please consult with legal for further instructions or to request an exception.", > "summary": "Package uses the \"Apache-2.0\" license." > }, > "query_statements": [ > "data.license.match_license" > ], > "resource_kinds": [ > "Metric", > "PackageVersion" > ], > "rule": "package license\n\nmatch_license[result] {\n some i\n data.resources.Metric[i]\n data.resources.Metric[i].meta.name == \"pkg_version_info_for_license\"\n data.resources.Metric[i].meta.parent_kind == \"PackageVersion\"\n lower(data.resources.Metric[i].spec.metric_values.licenseInfoType.license_info.all_licenses[_].name) == lower(\"Apache-2.0\")\n data.resources.PackageVersion[_].uuid == data.resources.Metric[i].meta.parent_uuid\n\n result = {\n \"Endor\": {\n \"PackageVersion\": data.resources.Metric[i].meta.parent_uuid,\n }\n }\n}" > }, > "tenant_meta": { > "namespace": "{{namespace}}" > } > } > ``` ## Update a policy to include a project The following example uses the [Update Policy](/api-reference/policyservice/updatepolicy) endpoint to apply a policy to a given project by updating the `spec.project_selector` tag list. > [!WARNING] > > This overrides the existing `project_selector` list, so you must pass in all the project inclusion tags that you want to keep for this policy along with the new tag. > [tab] endorctl > > ```bash theme={null} > endorctl api update --resource Policy --uuid \ > --field-mask "spec.project_selector" \ > --data '{ "spec" : { "project_selector" : [ "$uuid=" ] } }' > ``` > [tab] curl > > ```bash theme={null} > curl --request PATCH \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --compressed \ > --url "https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/policies" \ > --data '{ > "request" : { > "update_mask": "spec.project_selector" > }, > "object" : { > "uuid" : "", > "spec" : { > "project_selector": [ > "$uuid=" > ] > } > } > }' | jq '.' > ``` > [tab] HTTP > > ```bash theme={null} > @baseUrl = https://api.endorlabs.com > @token = > @namespace = > > ### > PATCH {{baseUrl}}/v1/namespaces/{{namespace}}/policies HTTP/1.1 > Authorization: Bearer {{token}} > > { > "request" : { > "update_mask": "spec.project_selector" > }, > "object" : { > "uuid" : "", > "spec" : { > "project_selector": [ > "$uuid=" > ] > } > } > } > ``` ## Update a policy to exclude a project The following example uses the [Update Policy](/api-reference/policyservice/updatepolicy) endpoint to exclude a given project from a policy by updating the `spec.project_exceptions` tag list. > [!WARNING] > > This overrides the existing `project_exceptions` list, so you must pass in all project exception tags that you want to keep for this policy along with the new tag. > [tab] endorctl > > ```bash theme={null} > endorctl api update --resource Policy --uuid \ > --field-mask "spec.project_exceptions" \ > --data '{ "spec" : { "project_exceptions" : [ "$uuid=" ] } }' > ``` > [tab] curl > > ```bash theme={null} > curl --request PATCH \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --compressed \ > --url "https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/policies" \ > --data '{ > "request" : { > "update_mask": "spec.project_exceptions" > }, > "object" : { > "uuid" : "", > "spec" : { > "project_exceptions": [ > "$uuid=" > ] > } > } > }' | jq '.' > ``` > [tab] HTTP > > ```bash theme={null} > @baseUrl = https://api.endorlabs.com > @token = > @namespace = > > ### > PATCH {{baseUrl}}/v1/namespaces/{{namespace}}/policies HTTP/1.1 > Authorization: Bearer {{token}} > > { > "request" : { > "update_mask": "spec.project_exceptions" > }, > "object" : { > "uuid" : "", > "spec" : { > "project_exceptions": [ > "$uuid=" > ] > } > } > } > ``` ## Update an exception policy to apply custom tags to matching findings The following example uses the [Update Policy](/api-reference/policyservice/updatepolicy) endpoint to specify a list of custom tags to apply to findings matching a given exception policy. > [!WARNING] > > This overrides the existing `spec.exception.tags` list, so you must pass in all tags that you want to keep for this policy along with the new tag. > [tab] endorctl > > ```bash theme={null} > endorctl api update --resource Policy --uuid \ > --field-mask "spec.exception.tags" \ > --data '{ "spec" : { "exception" : { "tags" : [ , ] } } }' > ``` > [tab] curl > > ```bash theme={null} > curl --request PATCH \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --compressed \ > --url "https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/policies" \ > --data '{ > "request" : { > "update_mask": "spec.exception.tags" > }, > "object" : { > "uuid" : "", > "spec" : { > "exception": { > "tags" : [ > "", > "" > ] > } > } > } > }' | jq '.' > ``` > [tab] HTTP > > ```bash theme={null} > @baseUrl = https://api.endorlabs.com > @token = > @namespace = > > ### > PATCH {{baseUrl}}/v1/namespaces/{{namespace}}/policies HTTP/1.1 > Authorization: Bearer {{token}} > > { > "request" : { > "update_mask": "spec.exception.tags" > }, > "object" : { > "uuid" : "", > "spec" : { > "exception": { > "tags" : [ > "", > "" > ] > } > } > } > } > ``` ## Upgrade a policy to use the latest template version The following example uses the [Update Policy](/api-reference/policyservice/updatepolicy) endpoint to upgrade a given policy to use the latest template version. > [tab] endorctl > > ```bash theme={null} > endorctl api update --resource Policy --uuid \ > --field-mask "spec.template_version" \ > --data '{ "spec" : { "template_uuid" : "", "template_version" : "2.0.0" } }' > ``` > [tab] curl > > ```bash theme={null} > curl --request PATCH \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --compressed \ > --url "https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/policies" \ > --data '{ > "request" : { > "update_mask": "spec.template_version" > }, > "object" : { > "uuid" : "", > "spec" : { > "template_uuid" : "", > "template_version" : "2.0.0" > } > } > }' | jq '.' > ``` > [tab] HTTP > > ```bash theme={null} > @baseUrl = https://api.endorlabs.com > @token = > @namespace = > > ### > PATCH {{baseUrl}}/v1/namespaces/{{namespace}}/policies HTTP/1.1 > Authorization: Bearer {{token}} > > { > "request" : { > "update_mask": "spec.template_version" > }, > "object" : { > "uuid" : "", > "spec" : { > "template_uuid" : "", > "template_version" : "2.0.0" > } > } > } > ``` ## Delete a policy The following example uses the [Delete Policy](/api-reference/policyservice/deletepolicy) endpoint to delete a policy. > [tab] endorctl > > ```bash theme={null} > endorctl api delete --resource Policy --uuid > ``` > [tab] curl > > ```bash theme={null} > curl --request DELETE \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --compressed \ > --url "https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/policies/" > ``` > [tab] HTTP > > ```bash theme={null} > @baseUrl = https://api.endorlabs.com > @token = > @namespace = > > ### > DELETE {{baseUrl}}/v1/namespaces/{{namespace}}/policies/ HTTP/1.1 > Authorization: Bearer {{token}} > ``` ## Add meta tags to an object The following example uses the [Update Finding](/api-reference/findingservice/updatefinding) endpoint to add custom tags to a finding by updating the `meta.tags` field. > [!WARNING] > > This overrides the existing `meta.tags` list, so you must pass in all tags that you want to keep for this object along with the new tag. > [tab] endorctl > > ```bash theme={null} > endorctl api update --resource Finding --uuid \ > --field-mask "meta.tags" \ > --data '{ "meta" : { "tags" : [ "tag1", "tag2", "tag3" ] } }' > ``` > [tab] curl > > ```bash theme={null} > curl --request PATCH \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --compressed \ > --url "https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/findings" \ > --data '{ > "request" : { > "update_mask": "meta.tags" > }, > "object" : { > "uuid" : "", > "meta" : { > "tags": [ > "tag1", > "tag2", > "tag3" > ] > } > } > }' | jq '.' > ``` > [tab] HTTP > > ```bash theme={null} > @baseUrl = https://api.endorlabs.com > @token = > @namespace = > > ### > PATCH {{baseUrl}}/v1/namespaces/{{namespace}}/findings HTTP/1.1 > Authorization: Bearer {{token}} > > { > "request" : { > "update_mask": "meta.tags" > }, > "object" : { > "uuid" : "", > "meta" : { > "tags": [ > "tag1", > "tag2", > "tag3" > ] > } > } > } > ``` ## Get data from child namespaces Use the `traverse` option to include data from child namespaces as well as the parent namespace. > [tab] endorctl > > ```bash theme={null} > endorctl api list --resource Project --traverse > ``` > [tab] curl > > ```bash theme={null} > curl --get \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --compressed \ > --url "https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/projects?list_parameters.traverse=true" > ``` > [tab] HTTP > > ```bash theme={null} > @baseUrl = https://api.endorlabs.com > @token = > @namespace = > > ### > GET {{baseUrl}}/v1/namespaces/{{namespace}}/projects?list_parameters.traverse=true HTTP/1.1 > Authorization: Bearer {{token}} > ``` # Threat Center Source: https://docs.endorlabs.com/discover/index Threat Center gives you a tenant-wide view of emerging threats, independent of any single project, covering newly discovered malware, open-source packages, vulnerabilities, and AI models. For malware, it helps you stay ahead by tracking malicious packages as they're identified. It highlights which monitored projects may be affected, so you can investigate and take action before the risk reaches your project-level scans. Open-source packages are invaluable as they not only reduce costs but also foster community-driven improvements, enabling users to customize solutions to fit specific needs. By discovering these open-source frameworks, users can tap into a wealth of resources to enhance their projects, streamline workflows, and contribute to the broader open-source community. Endor Labs Vulnerability Database is a comprehensive database of vulnerabilities in open-source packages. It is updated daily and provides a wealth of information on vulnerabilities. The following sections provide information on how to review malware, discover open-source packages, and research vulnerabilities. > [card] [Review Malware](/discover/review-malware) > > Track newly discovered malicious packages and see whether your monitored projects are affected. > [card] [Search for open source packages](/discover/open-source-packages) > > Search for open source packages by their ecosystem. > [card] [Endor Labs Vulnerability Database](/discover/vulnerability-db) > > Search for vulnerabilities in open source packages. > [card] [Search for AI models](/secure-ai-coding/ai-model-discovery) > > Search and evaluate AI models from Hugging Face with security, activity, and quality scores. # Search for Open Source Packages Source: https://docs.endorlabs.com/discover/open-source-packages/index Search open source packages and review the security, dependency, and license details of a specific package version. Open source packages provide flexible, customizable software solutions that can reduce development costs and time, while also fostering innovation through community collaboration. To search for open source packages: 1. Select **Discovery** > **Open Source Packages** from the left sidebar. 2. Type in the search bar to look for open source packages and click **Search Open Source Packages**. ![Open source packages search and list](https://mintcdn.com/endorlabs-b4795f4f/CCJbTl6bj0DZMtnG/images/discover/open-source-packages/oss-package-list.webp?fit=max\&auto=format\&n=CCJbTl6bj0DZMtnG\&q=85\&s=83e36771ca85700c83e098a0ac38da47) 3. Choose the **Ecosystem** and click **Search Open Source Packages** to look for packages by their ecosystem. 4. Select a search result to review the list of package versions, their dependencies, and Endor security scores. ![OSS packages table](https://mintcdn.com/endorlabs-b4795f4f/deISr2DfATZg293W/images/discover/open-source-packages/oss-packages-table.webp?fit=max\&auto=format\&n=deISr2DfATZg293W\&q=85\&s=c9420c135c09e0cdef16cf00d306bbfe) 5. Select a package version to open its details page. ## Review package version details The package version details page shows the package name and version, Endor security score, and a link to the source repository when available. Use the version selector next to the package name to switch to another version of the same package. See [Endor scores](/scan/sca/scores) to learn how Endor Labs calculates these scores. The package version details page organizes information into the following tabs: 1. Select **Overview** to review the following information: * **Package Version Scores**: The **Security**, **Activity**, **Popularity**, and **Quality** Endor Scores for the version. * **Score Factors**: The factors that contribute to each score. Click **All Score Factors** to see the complete list. * **Finding Risk Matrix**: The package version's findings mapped by severity and finding category. Use the category selector to filter the matrix. * **Top Metadata**: Dependency counts, dependency pinning, dependency scopes, and declared and discovered licenses. 2. Select **Findings** to review the security findings for the package version. You can filter findings by severity, finding category, or other criteria, and save frequently used filters for later. 3. Select **Dependencies** to review the packages this version depends on. Choose **Packages** or **AI Models** to switch between dependency types. 4. Select **Dependency Graph** to see a visual graph of how the package version's dependencies connect. ## Export an SBOM or VEX for a package version You can generate a software bill of materials (SBOM) or a Vulnerability Exploitability eXchange (VEX) document for a single package version directly from its details page. > [tab] SBOM > > 1. Click **Export** in the top right corner. > > 2. Select **SBOM**. > > 3. Optionally, click **All packages included** to select specific packages instead. If you leave it as is, Endor Labs includes every package in the export. > > 4. Choose a **Format** from **CycloneDX** or **SPDX**. > > > [accordion] CycloneDX > > > > * Choose whether to export as an **Application** or a **Library**. If you choose **Application**, enter an **Application Name**. > > * Choose a **File Format** from **JSON** or **XML**. > > > [accordion] SPDX > > > > * Enter an **Application Name**. > > * Choose a **File Format** from **JSON** or **Tag-Value**. > > 5. Optionally, select **Include test dependencies**. > > 6. Click **Export** to download the SBOM. > [tab] VEX > > 1. Click **Export** in the top right corner. > > 2. Select **VEX**. > > 3. Optionally, click **All packages included** to select specific packages instead. If you leave it as is, Endor Labs includes every package in the export. > > 4. Choose whether to export as an **Application** or a **Library**. > > If you choose **Application**, enter an **Application Name**. > > 5. Choose a **File Format** from **JSON** or **XML**. > > 6. Optionally, select **Include test dependencies**. > > 7. Click **Export** to download the VEX document. See [Export SBOMs and VEX](/inventory-insights/sbom/exporting-sboms) to learn about each export field and format in detail. # Review Malware Source: https://docs.endorlabs.com/discover/review-malware/index Beta
Track newly discovered malicious packages and see whether they affect your monitored projects, in one tenant-wide view. Malicious packages can reach your projects through the open source dependencies you already rely on, sometimes before a routine scan catches them. Review newly discovered malicious packages, so you can see which of your monitored projects might be affected and investigate before the risk spreads further. Access **Threat Center** from the left sidebar and select **Malware** to review newly detected malicious packages and how they relate to your monitored projects. * **Potential Malware**: New malicious package versions that potentially affect at least one of your projects, for the selected time range. Select this card to jump to the list, filtered to **Potentially affected: Yes** and grouped by package. * **Potentially Affected Projects**: Projects that have at least one dependency that could resolve to a new malicious package version at build time, for the selected time range. Select this card to jump to the list, filtered to **Potentially affected: Yes** and grouped by project. * **Malicious Packages**: A chart showing the number of malicious packages found each day over the selected time range. Each bar represents a day, with the date shown along the bottom and the number of malicious packages shown by the bar’s height. Each bar stacks a gray segment for packages **Found in public registries** with a red segment for the subset of these packages also **Found in your projects**. See [Determine malware exposure](/scan/malware#determine-malware-exposure) to learn the difference between potentially and definitely affected dependencies. Potentially affected and definitely affected dependencies are displayed the same way in the counts, chart, and list. ![Threat center](https://mintcdn.com/endorlabs-b4795f4f/pjATargiG1kb3Ham/images/discover/review-malware/threat-center.webp?fit=max\&auto=format\&n=pjATargiG1kb3Ham\&q=85\&s=89c5aed8c35ddfbfed28c9d1b0bc75d0) ## Filter and search malicious packages Use the following controls to narrow the list of malicious packages: * Enter a package name to find a specific package. * Select **Potentially affected** to show only packages that could affect a monitored project. * Select **Ecosystem** to filter by package ecosystem. * Select a time range, such as **Last 30 Days**, to limit results to malware Endor Labs detected within that window. The default is **Last Week**. * Select **Group by** to organize the list. **None** lists each malicious package version on its own row. **Package** groups versions under their package. **Project** groups results by which of your monitored projects they affect. * Click **Clear Filters** to reset all filters and your search. > [!TIP] > > Identifying potentially affected projects requires checking every dependency across every project. The results may take longer to load for large tenants. To improve load times, select a shorter time range, filter by **Ecosystem**, or, at the namespace, enable **All child namespaces excluded** to limit results to your current namespace. Each malicious package is listed with its name, version, number of potentially affected projects, and published date. The **Published** date indicates when the package version was published to its registry, not when it was identified as malicious. You can sort the list by any of these values. ## Review a malicious package Select a package to see whether it's potentially affecting a monitored project, and if so, how many, along with the following information: * **Reasoning**: An AI-generated explanation of why Endor Labs classified the package as malicious. Depending on the package, this can include several points of evidence: the reachability path, the observed harmful effect, whether a suspicious dependency the package introduces is actually used anywhere in its code, and signs that the maintainer account itself was compromised, such as an email change or a new version published immediately after another version from the same account was flagged as malicious. Select **more reasons** to see the full explanation. * **Timeline**: The package's release date and the date Endor Labs detected the malware. * **Metadata**: Identifiers for the finding, such as the CWE ID, OSV ID, and GHSA ID, when available. Click **Open registry** to view the package on its public registry. ## Review potentially affected projects When a package potentially affects one or more monitored projects, you can review which projects and how the malicious dependency reaches each one. Set the Malware finding policy's **Potentially Affected Finding Severity** to a severity other than **None** to raise findings for potentially affected dependencies. See [Determine malware exposure](/scan/malware#determine-malware-exposure) to configure the 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) Select **Potentially Affected Projects** to see which of your monitored projects the package affects. If you open the package from a project already expanded in the **Group by: Project** view, the list is pre-filtered to that project. * Enter a name in the search bar to find a specific project, or use the page controls at the bottom of the list when there are many results. * Select a project to see the dependency paths that introduce the package: the branch, the root package that depends on it, the version constraints, and attributes such as whether the dependency is direct or transitive, pinned, or if it's a phantom dependency. * Select the branch name to go to the dependency in the project's inventory. * Click **Details** to see the full dependency path and links to the manifest file and lock file, when available. See [Dependencies](/inventory-insights/dependencies) to learn more about these attributes. * Select the finding link to see the findings Endor Labs raised for that dependency, in that repository version, in that project. > [!NOTE] > > This list includes every dependency in the project that matches the package name, not only the one that's potentially affected. For example, a project might depend on the same package three times: one dependency pinned to a safe version, one constrained to a safe range, and one with no version constraint. Only the dependency with no version constraint could resolve to the malicious version, so it's the only one flagged as potentially affected, and the only one that gets a finding if potentially affected findings are enabled. ![Malicious package detail with its Timeline and Metadata, and the potentially affected projects with their dependency paths](https://mintcdn.com/endorlabs-b4795f4f/pjATargiG1kb3Ham/images/discover/review-malware/threat-center-details.webp?fit=max\&auto=format\&n=pjATargiG1kb3Ham\&q=85\&s=99e373ab1438a09f1498e867ab61b304) # Endor Labs Vulnerability Database Source: https://docs.endorlabs.com/discover/vulnerability-db/index Understand how to search, analyze, and navigate vulnerabilities. A vulnerability is a security weakness in a software package that attackers can exploit to compromise systems, steal data, or disrupt operations. Open-source software often contains vulnerabilities that can introduce risks to your organization, if not managed properly. Endor Labs vulnerability database is a comprehensive compilation of known software vulnerabilities. You can search the vulnerability database to identify and discover vulnerabilities within your software dependencies. You can use the following vulnerability IDs to search within the Endor Labs platform: \- Identifier_type: CVE ID Example: CVE-2023-45678 Description: The most common global identifier for vulnerabilities. MITRE manages it and it is widely used. \- Identifier_type: GHSA ID Example: GHSA-xxxx-xxxx-xxxx Description: GitHub Security Advisory ID for vulnerabilities reported by GitHub. \- Identifier_type: PySEC ID Example: PYSEC-2023-123 Description: Identifier for vulnerabilities in Python packages, sourced from the Python Packaging Advisory Database. \- Identifier_type: MAL ID Example: MAL-xxxx-xxxx Description: Identifier for malware advisories. OSV supplies the data and flags packages linked to malicious activity. > [!NOTE] > > Endor Labs supports vulnerability searches only for identifiers included in the `meta.name` or `spec.aliases` fields. ## Search for a vulnerability Search for vulnerabilities using supported security identifiers across your software dependencies. 1. Select **Discovery** from the left sidebar. 2. Select **Vulnerabilities**. 3. Type a search query using a vulnerability ID, for example, CVE, GHSA, and click **Search Vulnerabilities**. ![Vulnerability Search](https://mintcdn.com/endorlabs-b4795f4f/deISr2DfATZg293W/images/discover/vulnerability-db/vulnerability-db.webp?fit=max\&auto=format\&n=deISr2DfATZg293W\&q=85\&s=ccebb7ab9e49880b42e8cf93a7521438) You can view detailed information including the name of the vulnerability, CVE ID, vulnerability's severity, description, and metadata to help users quickly identify important details about a vulnerability. 4. Select **Affected Packages** to view a list of all software packages impacted by the identified vulnerability, including their names, introduced and fixed versions, and the source of the vulnerability data. 5. Select a package to view its details. * **Overview**: Shows affected and fixed versions, severity, available patches, impacted classes, and a link to the fix commit. It helps users understand the issue and take necessary remediation steps. ![Affected packages overview](https://mintcdn.com/endorlabs-b4795f4f/deISr2DfATZg293W/images/discover/vulnerability-db/affected-packages-overview.webp?fit=max\&auto=format\&n=deISr2DfATZg293W\&q=85\&s=9373383312445c6e174a307a645d4980) * **Endor Details**: Shows affected call paths and file paths to help identify where the vulnerable code runs and what can trigger it in the project ![Affected Packages details](https://mintcdn.com/endorlabs-b4795f4f/deISr2DfATZg293W/images/discover/vulnerability-db/affected-packages-details.webp?fit=max\&auto=format\&n=deISr2DfATZg293W\&q=85\&s=211226e50c0434e4a40fc1ebe21f0353) * **Impact**: Shows each package version, along with the number of findings, how many projects use it, and how many other packages depend on it ![Affected Packages Impact](https://mintcdn.com/endorlabs-b4795f4f/deISr2DfATZg293W/images/discover/vulnerability-db/affected-packages-impact.webp?fit=max\&auto=format\&n=deISr2DfATZg293W\&q=85\&s=fcf20e554cd5a0e21ab32a745f03724a) 6. Select **Containers** to see all container images in your organization with known vulnerabilities. It lists the affected packages, where each issue entered, whether fixes are available, and the severity of the issues. ![affected packages container](https://mintcdn.com/endorlabs-b4795f4f/deISr2DfATZg293W/images/discover/vulnerability-db/affected-package-container.webp?fit=max\&auto=format\&n=deISr2DfATZg293W\&q=85\&s=c7bff4d4149848b6695d7646c8dbc476) # About Endor Labs Source: https://docs.endorlabs.com/index Endor Labs is a unified application security platform that helps you ship secure code by default, whether humans or agents write the code. We address your software security needs with the following key features: * **Unified platform:** A single platform for SAST, secrets detection, SCA, malicious package detection, [Package Firewall](/package-firewall), [Coding Agent Governance](/agent-governance), and container scanning. * **Prioritization & noise reduction:** Reachability analysis cuts through the noise by identifying which vulnerabilities actually affect your code. * **Fix, not just find:** Go beyond detection with actionable remediation guidance, upgrade impact analysis, and automated patching. * **Embrace AI confidently:** Discover AI models in your codebase, govern their usage, and leverage AI-powered assistance for security analysis and code fixes. > [card] [Getting started](/introduction/getting-started) > > Ready to go? Start your journey with Endor Labs and begin your first project scan. > [card] [Documentation MCP server](/introduction/doc-tools/docs-mcp-server) > > Connect the Endor Labs docs to your AI tools and get accurate answers about Endor Labs in Cursor, VS Code, Claude, and more. ## How Endor Labs works Endor Labs provides a prescriptive, outcome-focused workflow that guides you from initial setup to continuous security improvement. > [card] Step 1: Scan > > Automatically discover dependencies, vulnerabilities, secrets, and AI models across your entire codebase with a single integration. > [card] Step 2: Triage > > Cut through the noise with reachability analysis and risk scoring. Focus only on the vulnerabilities that actually impact your application. > [card] Step 3: Remediate > > Fix issues faster with AI-powered remediation, upgrade impact analysis, and automated patching, not just alerts. ## Your journey with Endor Labs \- Stage: Day 0: Onboard Goal: Connect your repositories and run your first scan. Get immediate visibility into your security posture. \- Stage: Day 1: Prioritize Goal: Review reachable vulnerabilities and high-risk findings. Set up policies to automate triage. \- Stage: Day 2+: Optimize Goal: Integrate into CI/CD pipelines, enable developer workflows, and continuously improve your security baseline. ## What makes us different The Endor Labs platform blends advanced static analysis techniques, meticulous research, and thoughtful AI use to surface relevant, reliable threats and actionable remediations. Granular policies combined with a suite of integrations help you control risk across your SDLC. > [card] [AI-powered developer assistance](/secure-ai-coding) > > Endor Labs provides AI-powered developer assistance to identify and help you fix vulnerabilities in your code. > [card] [Reachability analysis](/scan/sca/reachability-analysis) > > Endor Labs analyzes your first-party code, software packages, and containers to provide context on how attackers could exploit each vulnerability in your application. > [card] [Endor scores](/scan/sca/scores) > > Endor Labs collects and analyzes a large amount of metadata about AI models and open-source packages and uses it to compute risk scores. > [card] [Coding Agent Governance](/agent-governance) > > Endor Labs inventories the AI coding agents, MCP servers, and skills your developers use, and enforces policies on risky agent actions in real time. > [card] [Package Firewall](/package-firewall) > > Endor Labs blocks known-malicious packages and controls package installations in real time, before they reach developer machines or CI. > [card] [Policies and Risk Management](/platform-administration/policies) > > Endor Labs policies give you control of risk in your environment. When combined with integrations into platforms like GitHub and GitLab, you can choose which risks to block and which to flag as warnings. > [card] [Licenses](/introduction/licenses) > > Understand Endor Labs licensing, SKUs, per-seat scan credit allocations, and fair-usage limits. # Set up Azure Boards integration Source: https://docs.endorlabs.com/integrations/azure-boards/index Configure Azure Boards as a notification target to automatically create, update, and resolve work items for findings. Integrate Endor Labs with Azure Boards to automatically create, update, and resolve work items for findings that violate an action policy or that have a remediation available. Endor Labs creates the work item in the Azure DevOps project associated with the repository. This gives teams that run entirely on Azure DevOps a way to triage findings alongside the rest of their backlog. > [!NOTE] > > Endor Labs supports Azure Boards on Azure DevOps Cloud only. You can set up the integration in the following ways: * [Endor Labs user interface](#add-an-azure-boards-integration-using-the-endor-labs-user-interface) * [endorctl or the REST API](#create-an-azure-boards-notification-target) ## Prerequisites Ensure the following prerequisites are in place before you set up the Azure Boards integration. * You need a personal access token (PAT) with the required scopes. You can generate a new PAT or reuse the PAT from an existing [Azure DevOps SCM integration](/setup-deployment/scm-integrations/azure-app) if you add the required scope to it. * For each Azure DevOps project you configure, choose a parent work item type that includes a **Description** field. The default `Epic`, `Issue`, and `Task` types include this field, but a custom work item type might not. * Know the name of each Azure DevOps project you want to map to a repository in Endor Labs. ## Generate a personal access token Generate a PAT in Azure DevOps to authenticate the notification target. 1. Sign in to Azure DevOps and select **User settings** > **Personal access tokens**. 2. Click **New Token**. 3. Enter a name for the token and select the organization it applies to. 4. Under **Scopes**, select **Custom defined**, then grant the following: * **Project and Team**: **Read** * **Work Items**: **Read & write** 5. Click **Create** and copy the token. You can't view the token again after you close this page. The account that generates the token must have the Contributor role on the target projects. To reuse the PAT from an existing Azure DevOps SCM integration, add the **Work Items: Read & write** scope to that token first. If the token doesn't have this scope, requests to create the notification target fail with an error that the PAT is missing the Work Item scope. ## Add an Azure Boards integration using the Endor Labs user interface You enter the organization details, select the Azure DevOps projects to connect, and then set the work item types for each project. **1. Open the ADO Boards integrations** To create a new Azure Boards integration: 1. Select **User menu** > **Integrations** from the left sidebar. 2. Under **Notifications**, click **Manage** for **ADO Boards**. The list shows each existing integration with its **Name**, **Organization**, **Projects**, and **Policies**. 3. Click **Add Notification Integration**. **2. Enter the organization details** Name the integration and connect your Azure DevOps organization. 1. In **Name of ADO board**, enter a name for the integration. The name can be up to 255 characters. 2. Choose how Endor Labs connects to your Azure DevOps organization. * To reuse an Azure DevOps SCM integration that's already configured in this namespace, toggle **I want to add the board via an already integrated Azure DevOps SCM** and select the organization in **Organization URL**. * To connect an organization directly, enter the organization URL in **Organization URL**. The URL must be in the form `https://dev.azure.com/` or `https://.visualstudio.com`. You can append a project name to either form. 3. Optionally, enter your personal access token. * When you reuse an Azure DevOps SCM integration, the token is optional and labeled **Enter a different PAT from SCM integration (optional)**. Leave it empty to use the token from that SCM integration. * When you connect an organization directly, enter the token in **Enter a PAT**. The token is required and can be up to 256 characters. 4. Click **Next**. Endor Labs uses the credentials to load the organization's Azure DevOps projects. If the lookup fails, you stay on this step and Endor Labs shows the reason. **3. Select projects** Endor Labs lists the Azure DevOps projects in the organization you connected. Select the projects where Endor Labs creates work items. 1. In **Search projects**, enter a project name. 2. Select each Azure DevOps project you want to connect. Endor Labs shows how many of the available projects you selected. 3. Click **Next**. You must select at least one project to continue. Click **Back** to return to the organization details with your selection intact. Changing the organization or the token clears the selection, because Endor Labs loads the projects again. **4. Set up work item types** Endor Labs lists the projects you selected with their **ADO Project name**, **Primary work item**, **Child work item**, and **Tags**. 1. Click the vertical three dots for a project and select **Edit work items**. 2. In **Primary work item type**, choose the work item type to create for the project. 3. In **Child work item type**, choose the work item type to create under the parent. 4. Optionally, enter one or more values in **Tags** to apply to every work item created for this project. 5. Click **Update**. 6. Repeat steps 1 through 5 for each project you selected. 7. Click **Save Integration**. A project counts as configured only when it has both a primary and a child work item type, and Endor Labs saves only the configured projects. If you leave some projects unconfigured, Endor Labs asks you to confirm with **Save with unconfigured projects?** before saving. You can return later and configure the rest. If the work item types for a project fail to load, click the vertical three dots and select **Refetch work items**. To drop a project, select **Remove project**, which also clears it from your selection. ### Manage an Azure Boards integration You can edit an existing Azure Boards integration to update its configuration, or delete it when you no longer need it. #### Edit an integration Edit an integration to change its name, token, selected projects, or work item setup. **Organization URL** and the credential source are locked, so create a new integration to point at a different organization. 1. Select **User menu** > **Integrations** from the left sidebar. 2. Under **Notifications**, click **Manage** for **ADO Boards**. 3. Click the vertical three dots for the integration and select **Edit Notification Integration**. 4. Change the name, the token, the selected projects, or the work item setup. 5. Click **Save Integration**. Keep the following in mind as you edit. * Endor Labs doesn't display the stored token. If you enter a new token, it replaces the stored one and must have access to every project you configured. * Projects you already configured are selected and marked **Configured**. Clearing one removes its work item setup. * Projects that Azure DevOps no longer returns are marked **No longer supported**. You can't select them, and Endor Labs drops them when you save. * A warning names any work item type that no longer exists in Azure DevOps. That project counts as unconfigured until you choose another type. #### Delete an integration Delete an integration to stop Endor Labs from creating work items through it. Existing work items in Azure DevOps remain. 1. Select **User menu** > **Integrations** from the left sidebar. 2. Under **Notifications**, click **Manage** for **ADO Boards**. 3. Click the vertical three dots for the integration and select **Delete Notification Integration**. Endor Labs blocks deletion when the integration is still referenced by an action policy, a remediation policy, or a package firewall notification rule. Remove it from all referencing policies and rules, then try again. ## Create an Azure Boards notification target An Azure Boards notification target uses `ACTION_TYPE_ADO_BOARDS`. Every target requires at least one project mapping that specifies the parent work item type and, optionally, a child work item type and tags. A target authenticates with Azure DevOps in one of two ways: * [Provide credentials directly](#provide-credentials-directly): You supply the organization URL and a PAT in `user_config`, and the target stores them. Use this if you don't have an Azure DevOps installation in Endor Labs, or if you want a dedicated PAT for this target. * [Reuse an Azure DevOps installation](#reuse-an-azure-devops-installation): You supply the UUID of an existing installation in `installation_uuid`, and Endor Labs resolves the organization URL and PAT from it. The PAT on that installation must include the Work Items scope. The following are the `ado_boards_config` fields. \- Field: spec.action.ado_boards_config.user_config.org_url Description: The Azure DevOps organization URL, for example https\://dev.azure.com/MyOrg. \- Field: spec.action.ado_boards_config.user_config.auth.pat.token Description: The personal access token used to authenticate with Azure DevOps. \- Field: spec.action.ado_boards_config.installation_uuid Description: UUID of an existing Azure DevOps installation to resolve credentials from, instead of user_config. \- Field: spec.action.ado_boards_config.projects\[].project_name Description: The name of the Azure DevOps project to create work items in. \- Field: spec.action.ado_boards_config.projects\[].work_item_type Description: The parent work item type to create, for example Issue or Epic. \- Field: spec.action.ado_boards_config.projects\[].child_work_item_type Description: Optional. The work item type to create under the parent for dependency aggregations. The Endor Labs user interface requires this value. \- Field: spec.action.ado_boards_config.projects\[].tags Description: Optional. Tags applied to work items created for this project. ### Provide credentials directly Create the target with the organization URL and PAT in `user_config`. > [tab] endorctl > > ```bash theme={null} > endorctl api create -r NotificationTarget -n -d '{ > "meta": { "name": "azure-boards-notifications" }, > "spec": { > "action": { > "action_type": "ACTION_TYPE_ADO_BOARDS", > "public": true, > "ado_boards_config": { > "user_config": { > "org_url": "https://dev.azure.com/", > "auth": { > "pat": { "token": "" } > } > }, > "projects": [ > { > "project_name": "", > "work_item_type": "Issue", > "child_work_item_type": "Task", > "tags": ["security", "endorlabs"] > } > ] > } > } > }, > "propagate": true > }' > ``` > [tab] curl > > ```bash theme={null} > curl --request POST \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --header "Content-Type: application/json" \ > --url "https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/notification-targets" \ > --data '{ > "meta": { "name": "azure-boards-notifications" }, > "spec": { > "action": { > "action_type": "ACTION_TYPE_ADO_BOARDS", > "public": true, > "ado_boards_config": { > "user_config": { > "org_url": "https://dev.azure.com/", > "auth": { > "pat": { "token": "" } > } > }, > "projects": [ > { > "project_name": "", > "work_item_type": "Issue", > "child_work_item_type": "Task", > "tags": ["security", "endorlabs"] > } > ] > } > } > }, > "propagate": true > }' > ``` ### Reuse an Azure DevOps installation Create the target with the UUID of an existing installation in place of `user_config`. 1. Find the installation UUID. > [tab] endorctl > > ```bash theme={null} > endorctl api list -r Installation -n \ > | jq '.list.objects[] | select(.spec.platform_type=="PLATFORM_SOURCE_AZURE") | {uuid: .uuid, name: .meta.name}' > ``` > [tab] curl > > ```bash theme={null} > curl --get \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --data-urlencode "list_parameters.filter=spec.platform_type==PLATFORM_SOURCE_AZURE" \ > --url "https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/installations" \ > | jq '.list.objects[] | {uuid: .uuid, name: .meta.name}' > ``` 2. Create the notification target with the installation UUID. > [tab] endorctl > > ```bash theme={null} > endorctl api create -r NotificationTarget -n -d '{ > "meta": { "name": "azure-boards-notifications" }, > "spec": { > "action": { > "action_type": "ACTION_TYPE_ADO_BOARDS", > "public": true, > "ado_boards_config": { > "installation_uuid": "", > "projects": [ > { > "project_name": "", > "work_item_type": "Issue", > "child_work_item_type": "Task", > "tags": ["security"] > } > ] > } > } > }, > "propagate": true > }' > ``` > [tab] curl > > ```bash theme={null} > curl --request POST \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --header "Content-Type: application/json" \ > --url "https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/notification-targets" \ > --data '{ > "meta": { "name": "azure-boards-notifications" }, > "spec": { > "action": { > "action_type": "ACTION_TYPE_ADO_BOARDS", > "public": true, > "ado_boards_config": { > "installation_uuid": "", > "projects": [ > { > "project_name": "", > "work_item_type": "Issue", > "child_work_item_type": "Task", > "tags": ["security"] > } > ] > } > } > }, > "propagate": true > }' > ``` You can add multiple projects to a single notification target. When a finding triggers a notification, Endor Labs matches the repository's Azure DevOps clone URL to a configured project by name. If the project was renamed in Azure DevOps, Endor Labs falls back to matching by project GUID. ### Manage Azure Boards notification targets You can list the existing Azure Boards notification targets, update one to change its configuration, or delete one when you no longer need it. #### List notification targets List every Azure Boards notification target in a namespace. > [tab] endorctl > > ```bash theme={null} > endorctl api list -r NotificationTarget -n \ > -f "spec.action.action_type==ACTION_TYPE_ADO_BOARDS" > ``` > [tab] curl > > ```bash theme={null} > curl --get \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --data-urlencode "list_parameters.filter=spec.action.action_type==ACTION_TYPE_ADO_BOARDS" \ > --url "https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/notification-targets" \ > | jq '.list.objects' > ``` #### Update a notification target Updates use a field mask to specify which fields to change. Endor Labs changes only the fields listed in the mask. For example, to rotate the PAT on an existing target without changing its projects: > [tab] endorctl > > ```bash theme={null} > endorctl api update -r NotificationTarget -n \ > --uuid \ > --field-mask "spec.action.ado_boards_config.user_config.auth.pat.token" \ > -d '{ > "uuid": "", > "tenant_meta": { "namespace": "" }, > "spec": { > "action": { > "action_type": "ACTION_TYPE_ADO_BOARDS", > "ado_boards_config": { > "user_config": { > "org_url": "https://dev.azure.com/", > "auth": { > "pat": { "token": "" } > } > } > } > } > } > }' > ``` > [tab] curl > > ```bash theme={null} > curl --request PATCH \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --header "Content-Type: application/json" \ > --url "https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/notification-targets" \ > --data '{ > "request": { > "update_mask": "spec.action.ado_boards_config.user_config.auth.pat.token" > }, > "object": { > "uuid": "", > "tenant_meta": { "namespace": "" }, > "spec": { > "action": { > "action_type": "ACTION_TYPE_ADO_BOARDS", > "ado_boards_config": { > "user_config": { > "org_url": "https://dev.azure.com/", > "auth": { > "pat": { "token": "" } > } > } > } > } > } > } > }' > ``` > [!NOTE] > > To switch a target from `user_config` to `installation_uuid` or back, the organization URL of the new credential source must match the organization URL already stored on the target. If the URLs differ, the update fails and you must create a new notification target instead. #### Delete a notification target Delete a target by its UUID. > [tab] endorctl > > ```bash theme={null} > endorctl api delete -r NotificationTarget -n --uuid > ``` > [tab] curl > > ```bash theme={null} > curl --request DELETE \ > --header "Authorization: Bearer $ENDOR_TOKEN" \ > --url "https://api.endorlabs.com/v1/namespaces/$ENDOR_NAMESPACE/notification-targets/" > ``` Endor Labs blocks deletion when the target is still referenced by an action policy, a remediation policy, or a package firewall notification rule. Remove the target from all referencing policies and rules, then retry the delete. ## Associate a policy with Azure Boards Endor Labs doesn't create any work items until a policy references your Azure Boards configuration. Create an action policy or remediation policy that references your Azure Boards configuration. While creating the policy, configure the following settings: * Select **Choose an Action** as **Send Notification**. * From **SELECT NOTIFICATION TARGETS**, choose the Azure Boards notification target that you created. From **Select aggregation type**, choose how findings are grouped into notifications. * **None (Notify for each Finding)** sends a separate notification for each finding. * **Project** sends a single notification for all findings in a project. * **Dependency** sends a notification for every dependency. * **Dependency per Package Version** sends a notification for every unique combination of dependency and package version. See [Create an action policy](/platform-administration/policies/action-policies) to configure a policy that sends notifications. See [Manage work items in Azure Boards](/integrations/azure-boards/manage-work-items) to learn how Endor Labs creates, updates, and resolves work items. # Manage work items in Azure Boards Source: https://docs.endorlabs.com/integrations/azure-boards/manage-work-items/index Learn how Endor Labs creates, updates, and resolves Azure Boards work items, and where to track them. Endor Labs creates work items in Azure Boards for the findings that violate an action policy or that have a remediation available, and keeps them up to date as those findings change. See [Set up Azure Boards integration](/integrations/azure-boards) to configure the integration and the policy that sends notifications to it. ## Work item lifecycle After a scan produces matching findings, Endor Labs creates a parent work item in the mapped Azure DevOps project, using the work item type you configured. When you configure a child work item type, findings tied to a dependency create a child work item under the parent. During later scans, Endor Labs adds a comment to the work item when findings change. When the findings resolve, Endor Labs transitions the work item to its completed state and adds a resolution comment. ## View work items in Azure DevOps Track the work items Endor Labs created from the mapped project in Azure DevOps. 1. Sign in to your Azure DevOps organization. 2. Select **Boards** > **Work items** for the mapped project. 3. Select the work item to view its details, including tags and comments added by Endor Labs. ## View Azure Boards notifications in Endor Labs Track the notifications that created your Azure Boards work items, including the policy that triggered each one and the number of violations. 1. Select **User menu** > **Notifications** from the left sidebar. 2. Select **Open**, **Resolved**, **Dismissed**, or **All** to view the notifications listed under them. 3. From **Channels**, select **ADO Boards** to show only the notifications delivered to Azure Boards. 4. From **Table Preferences**, turn on **Ticket ID** to show the work item ID for each notification. This column is hidden by default, because only Jira and Azure Boards targets report a ticket ID. 5. Search by policy name or ticket ID to find a notification. 6. Select a notification, then select **Overview** to see the work item Endor Labs opened and its parent. 7. Click the vertical three dots on the notification, then select one of the following: * **Dismiss Notification**: Stop all further processing and updates for the notification. The notification moves to **Dismissed**. * **Go to Policy**: View configuration details of the policy that created this work item. Azure Boards work item IDs appear as plain text. Endor Labs can't link to the work item in Azure DevOps, because Azure DevOps doesn't return a deep link with the work item. A notification that failed to reach Azure Boards is flagged with an error. Select the notification, then select **Issues** to see the delivery error. ## FAQs > [accordion] Can Endor Labs link directly to a work item in Azure DevOps? > > No. Azure DevOps doesn't return a deep link with the work item, so Endor Labs stores and displays the work item ID as plain text. Use the ID to find the work item in your Azure DevOps project. > [accordion] What happens to the work items when I delete an integration? > > The work items remain in Azure DevOps. Deleting an integration stops Endor Labs from creating and updating work items through it, and it doesn't change the work items it already created. > [accordion] Can I change the Azure DevOps organization for an existing integration? > > No. **Organization URL** and the credential source are locked after you create an integration. Add a new integration for a different organization. > [accordion] Why didn't Endor Labs create a work item for a finding? > > Check that an action policy or remediation policy references the Azure Boards notification target, that the repository maps to a configured Azure DevOps project, and that the personal access token has the **Work Items: Read & write** scope. Select the notification, then select **Issues** to see any delivery error. > [accordion] Which aggregation types create a parent work item? > > Endor Labs creates a shared parent work item only for dependency aggregations. With **Dependency** or **Dependency per Package Version**, each finding in the aggregation becomes a child work item under one parent, and findings in the same aggregation reuse that parent. Endor Labs completes the parent when the last child resolves, and a dismissed child keeps the parent open. > > With any other aggregation type, such as **None (Notify for each Finding)** or **Project**, Endor Labs creates a single work item with no parent and doesn't use the child work item type. > [accordion] Can I use a custom work item type? > > Yes. Choose a parent work item type that includes a **Description** field. The default `Epic`, `Issue`, and `Task` types include this field, but a custom work item type might not. # Export findings to GitHub Advanced Security Source: https://docs.endorlabs.com/integrations/data-exporters/export-to-ghas/index Learn how to export findings to GitHub Advanced Security. You can export the findings generated by Endor Labs to GitHub Advanced Security so that you can view the findings in the GitHub. Endor Labs exports the findings in the SARIF format and uploads them to GitHub. You can view the findings under **Security** > **Vulnerability Alerts** > **Code Scanning** in GitHub. > [!WARNING] > > GitHub has multiple limitations for SARIF files, so you may not be able to experience the full benefits on Endor Labs. For example, GitHub limits the number of results in a SARIF file. It allows a maximum of 25000 results per file but displays the first 5000 results ranked by severity. GitHub also limits the number of tags on a code scanning rule. See [Filter findings by tags in GitHub](#filter-findings-by-tags-in-github) to learn which tags Endor Labs exports. Refer to [GitHub SARIF support for code scanning](https://docs.github.com/en/code-security/code-scanning/integrating-with-code-scanning/sarif-support-for-code-scanning#validating-your-sarif-file) for the complete list of SARIF file limitations in GitHub Advanced Security. ## Prerequisites Ensure that you meet the following prerequisites before exporting findings to GitHub Advanced Security: * Endor Labs GitHub App (Pro) installed in your GitHub repository. See [Deploy Endor Labs GitHub App (Pro)](/setup-deployment/scm-integrations/github-app-pro) for more information. * Turn on code scanning in your GitHub repository. Refer to [Enabling code scanning](https://docs.github.com/en/code-security/code-scanning/introduction-to-code-scanning/about-code-scanning) for more information. * Download and install endorctl. See [Install endorctl](/introduction/getting-started) for more information. ## Create a GHAS SARIF exporter GHAS SARIF exporter allows you to export the findings generated by Endor Labs in the SARIF format. See [Understanding SARIF files](/scan/sca/scanning-strategies#understand-sarif-files) for more information on the SARIF format and Endor-specific extensions. You can create a GHAS SARIF exporter using the Endor Labs API. Run the following command to create a GHAS SARIF exporter. ```bash expandable theme={null} endorctl api create -n -r Exporter -d '{ "meta": { "name": "" }, "tenant_meta": { "namespace": "" }, "spec": { "exporter_type": "EXPORTER_TYPE_GHAS", "message_type_configs": [ { "message_type": "MESSAGE_TYPE_FINDING", "message_export_format": "MESSAGE_EXPORT_FORMAT_SARIF" } ] }, "propagate": true }' ``` For example, to create a GHAS SARIF exporter named `ghas-exporter` in the namespace `doe.deer`, run the following command. ```bash expandable theme={null} endorctl api create -n doe.deer -r Exporter -d '{ "meta": { "name": "ghas-exporter" }, "tenant_meta": { "namespace": "doe.deer" }, "spec": { "exporter_type": "EXPORTER_TYPE_GHAS", "message_type_configs": [ { "message_type": "MESSAGE_TYPE_FINDING", "message_export_format": "MESSAGE_EXPORT_FORMAT_SARIF" } ] }, "propagate": true }' ``` ## Configure scan profile and project to use the GHAS SARIF exporter You can configure the scan profile to use the GHAS SARIF exporter and associate it with your project. You can also set the scan profile as the default scan profile so that all the projects in the namespace use the scan profile by default. See [Scan profiles](/scan/scan-profiles) for more information. ### Configure the scan profile Ensure that you select the GHAS SARIF exporter in the **Export** section of the scan profile. 1. Select **User menu** > **Settings** from the left sidebar. 2. Select **Scan Profiles**. 3. Select the scan profile you want to configure and click **Edit Scan Profile**. 4. Select the GHAS SARIF exporter under **Exporters** and click **Save Scan Profile**. ![Scan profile](https://mintcdn.com/endorlabs-b4795f4f/deISr2DfATZg293W/images/integrations/data-exporters/scan-profile-ghas-exporter.webp?fit=max\&auto=format\&n=deISr2DfATZg293W\&q=85\&s=ea93eb1e4bf80d2c7636e7bcc70558a8) ### Configure the project to use the scan profile Ensure that you choose the scan profile with the GHAS SARIF exporter for the project. 1. Go to the **Projects** page and select the project you want to configure. 2. Select **Settings** and select the scan profile you want to use under **Scan Profile**. ![Scan profile for projects](https://mintcdn.com/endorlabs-b4795f4f/deISr2DfATZg293W/images/integrations/data-exporters/scan-profile-for-projects.webp?fit=max\&auto=format\&n=deISr2DfATZg293W\&q=85\&s=4630f29722dae973a31f07d9914df0fd) ## Scan projects to use the GHAS SARIF exporter After the configuration is complete, your subsequent scans will export the findings in the SARIF format and upload them to GitHub. You can rescan the project immediately instead of waiting for the next scheduled scan. See [Rescan projects](/setup-deployment/scm-integrations/github-app/re-scan-projects) for more information. If you have enabled pull request scans in your GitHub App, the GHAS SARIF exporter exports the findings for each pull request. ## View findings in GitHub 1. Navigate to your GitHub repository. 2. Select **Security**. 3. Select **Code scanning** under **Vulnerability Alerts**. ![View findings in GitHub](https://mintcdn.com/endorlabs-b4795f4f/dHzwUrp_QbpzV9uv/images/integrations/data-exporters/view-findings-in-ghas.webp?fit=max\&auto=format\&n=dHzwUrp_QbpzV9uv\&q=85\&s=79556a3c87dec9f8f0bc9affa163304e) You can use the search bar to filter the findings. You can also view findings for a specific branch and other filter criteria. You can also view the findings specific to a pull request if you have enabled pull request scans. You can filter the findings by the pull request number and view findings associated with the pull request. You can select a finding and view the commit history behind the finding. ![Filter findings in GitHub](https://mintcdn.com/endorlabs-b4795f4f/dHzwUrp_QbpzV9uv/images/integrations/data-exporters/filter-findings-in-ghas.webp?fit=max\&auto=format\&n=dHzwUrp_QbpzV9uv\&q=85\&s=df2c1de9f2411d25913841c8cac89258) 4. Select **Campaigns** to view and create security campaigns that coordinate remediation efforts across multiple repositories. See [GitHub security campaign](/best-practices/github-security-campaign) for more information. ### Filter findings by tags in GitHub After you export findings to GHAS, Endor Labs includes finding tags and categories as searchable tags in the SARIF output. These tags appear in the GitHub code scanning interface, and you can filter and identify specific types of findings. GitHub displays only the first 10 tags on a code scanning rule and rejects an upload that carries more than 20, so this keeps the most useful tags from being dropped.The GHAS SARIF exporter sends a fixed set of 10 tags in a fixed priority order. Tags outside this set, including CWE identifiers, are no longer exported to GHAS. You can use the search bar to filter findings by tags. Use the `tag:` prefix followed by the tag name to search for specific Endor Labs tags. The following table lists the tags that Endor Labs exports to GHAS, in the order they appear on a rule. \- Available_Filter: \`SCA\` Tag_Type: Finding category Description: Show software composition analysis findings. \- Available_Filter: \`CONTAINER\` Tag_Type: Finding category Description: Show container findings. \- Available_Filter: \`SECRETS\` Tag_Type: Finding category Description: Show exposed secrets findings. \- Available_Filter: \`MALWARE\` Tag_Type: Finding category Description: Show malware findings. \- Available_Filter: \`SAST\` Tag_Type: Finding category Description: Show SAST findings. \- Available_Filter: \`LICENSE_RISK\` Tag_Type: Finding category Description: Show license risk findings. \- Available_Filter: \`REACHABLE_DEPENDENCY\` Tag_Type: Finding tag Description: Show findings in dependencies that your code reaches. \- Available_Filter: \`REACHABLE_FUNCTION\` Tag_Type: Finding tag Description: Show findings with reachable vulnerable functions. \- Available_Filter: \`FIX_AVAILABLE\` Tag_Type: Finding tag Description: Show findings where a fix is available. \- Available_Filter: \`CI_BLOCKER\` Tag_Type: Finding tag Description: Show findings marked as blockers by action policies. You can combine multiple filters to narrow down your results. For example, to find reachable vulnerabilities with available fixes: ``` tag:REACHABLE_FUNCTION tag:FIX_AVAILABLE ``` ![Filter findings by tags in GitHub](https://mintcdn.com/endorlabs-b4795f4f/dHzwUrp_QbpzV9uv/images/integrations/data-exporters/filter-findings-by-tags-in-ghas.webp?fit=max\&auto=format\&n=dHzwUrp_QbpzV9uv\&q=85\&s=356fb77cb11f791cb4cbefedf0156625) ### Filter findings exported to GitHub You can control which findings you export to GHAS by using action policies. Only findings from projects within the scope of your configured action policies reach GitHub Advanced Security. To filter findings using action policies: 1. Create an [action policy](/platform-administration/policies/action-policies) that defines the criteria for findings you want to export, or use an existing action policy. 2. Assign specific projects to the scope of the action policy you want to use. 3. Run the following command to create a GHAS SARIF exporter that exports only findings from projects in the scope of your action policies. > [!NOTE] > > Use `MESSAGE_TYPE_ADMISSION_POLICY_FINDING` as the `message_type` to filter findings based on your action policies. ```bash theme={null} endorctl api create -n -r Exporter -d '{ "meta": { "name": "" }, "tenant_meta": { "namespace": "" }, "spec": { "exporter_type": "EXPORTER_TYPE_GHAS", "message_type_configs": [ { "message_type": "MESSAGE_TYPE_ADMISSION_POLICY_FINDING", "message_export_format": "MESSAGE_EXPORT_FORMAT_SARIF" } ] }, "propagate": true }' ``` # Export findings to S3 Source: https://docs.endorlabs.com/integrations/data-exporters/export-to-s3/index Learn how to export findings and scan data to an AWS S3 storage bucket using the Endor Labs export framework. Export scan data generated by Endor Labs to an AWS S3 storage bucket. This enables long-term data retention for compliance requirements, integration with security information and event management (SIEM) systems, and custom analytics workflows. The export framework supports exporting findings in JSON or SARIF format, allowing flexible integration with your existing toolchain. Amazon S3 is an object storage service provided by Amazon Web Services (AWS). It offers high durability, availability, and scalability for storing and retrieving any amount of data. S3 integrates with other AWS services and third-party tools, making it ideal for data archival, backup, and analytics workflows. ## Prerequisites Ensure that you meet the following prerequisites before exporting data to S3: * An AWS account with permissions to create IAM roles, identity providers, and S3 buckets. * An S3 bucket to store the exported data. See [Create an S3 bucket](#create-an-s3-bucket). * An OIDC identity provider configured to allow Endor Labs access. See [Create access through the Console](#create-access-through-the-console). * An IAM role with permissions for Endor Labs to write to your S3 bucket. See [Create access through the Console](#create-access-through-the-console). * Download and install endorctl. See [Install endorctl](/introduction/getting-started). ## Create an S3 bucket An S3 bucket is a container for storing objects in Amazon S3. Each bucket has a globally unique name, and you create it in a specific AWS region. You can create a general purpose S3 bucket or reuse an existing bucket to store the exported data. Disable access control lists (ACLs) on the bucket so IAM policies and bucket policies control access, preventing unintended public access. Refer to [Creating a bucket](https://docs.aws.amazon.com/AmazonS3/latest/userguide/create-bucket-overview.html) for detailed instructions on creating an S3 bucket. ![S3 buckets](https://mintcdn.com/endorlabs-b4795f4f/dHzwUrp_QbpzV9uv/images/integrations/data-exporters/exporter-s3/s3-buckets.webp?fit=max\&auto=format\&n=dHzwUrp_QbpzV9uv\&q=85\&s=7fc051e35954059203439afa45b64ee6) #### Configure bucket lifecycle You can configure S3 lifecycle rules to automatically delete exported data after a specified retention period. Exported objects do not expire unless you configure lifecycle rules. 1. In the AWS management console, navigate to **Amazon S3** > **Buckets**. 2. Select your bucket. 3. Select **Management** and click **Create lifecycle rule**. 4. Enter a **Lifecycle rule name**, for example, `endor-exports-expiry`. 5. Under **Filter type**, select **Limit the scope of this rule using one or more filters** and enter `endor/` as the prefix to apply the rule only to exported data. 6. Under **Lifecycle rule actions**, select **Expire current versions of objects**. 7. Under **Expire current versions of objects**, enter the number of days after which S3 deletes objects. 8. Review the rule and click **Create rule**. ## Configure access for Endor Labs Endor Labs uses OIDC federation to assume an IAM role in your AWS account to access the S3 bucket. To allow Endor Labs to write to the bucket, configure OIDC and IAM using one of the following methods: * Use the [CFT template](#create-aws-resources-using-a-cft-template) to create the OIDC identity provider, IAM role, and S3 write policy. * Use the [AWS Management console](#create-access-through-the-console) to create access by adding the OIDC identity provider and IAM role. ### Create AWS resources using a CFT template Use an AWS CloudFormation Template (CFT) to create the IAM role and S3 `PutObject` policy for the S3 exporter. The template can create a new OIDC identity provider for Endor Labs or reuse an existing provider in your account. The following table lists the parameters you can set when deploying the CFT template. > [!NOTE] > > If you use Endor Labs with an EU tenant, use `https://api.eu.endorlabs.com` instead of `https://api.endorlabs.com`. \- Parameter: \`OIDCUrl\` Description: Endor Labs OIDC issuer URL. \- Parameter: \`ExistingOidcProviderArn\` Description: Set this to the ARN of your existing OIDC provider for \`api.endorlabs.com\`. The template will reuse it and will not create a new OIDC provider. \- Parameter: \`OidcAudience\` Description: Audience for the OIDC trust policy. Use the same value for \`allowed_audience\` when creating the S3 exporter. \- Parameter: \`TenantNamespace\` Description: Your Endor Labs tenant namespace. \- Parameter: \`BucketName\` Description: Name of the existing S3 bucket that will receive exports. \- Parameter: \`RoleName\` Description: IAM role name that Endor Labs will assume via web identity. \- Parameter: \`PolicyName\` Description: IAM managed policy name for S3 PutObject permission. 1. Create a `.cft` file with the following template. You can use the following template and set the parameters according to your OIDC audience, tenant namespace, bucket name, role name, and optionally an existing OIDC provider ARN. ```yaml expandable theme={null} AWSTemplateFormatVersion: "2010-09-09" Description: > Endor Labs S3 Exporter - creates IAM OIDC provider (optional), role, and minimal S3 PutObject policy. Parameters: OIDCUrl: Type: String Default: "https://api.endorlabs.com" Description: "Endor Labs OIDC issuer URL." ExistingOidcProviderArn: Type: String Default: "" Description: > Optional. If your AWS account already has an OIDC provider for https://api.endorlabs.com, set this to its ARN (for example, arn:aws:iam:::oidc-provider/api.endorlabs.com). When set, this template will NOT create a new OIDC provider. It will reuse the existing provider and ensure the OidcAudience is present in its ClientIdList. OidcAudience: Type: String Default: "s3-exporter" Description: "Specify the audience name to use in the OIDC trust policy. Set the same value in allowed_audience while creating the Endor exporter configuration." TenantNamespace: Type: String Description: "Root Endor Labs tenant namespace (for example, acme-corp)." BucketName: Type: String Description: "Existing S3 bucket name to receive exports." RoleName: Type: String Default: "EndorS3ExporterRole" Description: "IAM role name Endor will assume via web identity." PolicyName: Type: String Default: "EndorS3ExporterPolicy" Description: "IAM managed policy name for S3 PutObject permission." Conditions: CreateOidcProvider: !Equals [!Ref ExistingOidcProviderArn, ""] UseExistingOidcProvider: !Not [!Equals [!Ref ExistingOidcProviderArn, ""]] Resources: EndorOidcProvider: Type: AWS::IAM::OIDCProvider DeletionPolicy: Delete UpdateReplacePolicy: Delete Condition: CreateOidcProvider Properties: Url: !Ref OIDCUrl ClientIdList: - !Ref OidcAudience EndorS3PutObjectPolicy: Type: AWS::IAM::ManagedPolicy DeletionPolicy: Delete UpdateReplacePolicy: Delete Properties: ManagedPolicyName: !Ref PolicyName PolicyDocument: Version: "2012-10-17" Statement: - Sid: PutObjectToBucket Effect: Allow Action: - s3:PutObject Resource: !Sub "arn:${AWS::Partition}:s3:::${BucketName}/*" EndorS3ExporterRole: Type: AWS::IAM::Role DeletionPolicy: Delete UpdateReplacePolicy: Delete Properties: RoleName: !Ref RoleName AssumeRolePolicyDocument: Version: "2012-10-17" Statement: - Sid: EndorWebIdentity Effect: Allow Principal: Federated: !If - CreateOidcProvider - !Ref EndorOidcProvider - !Ref ExistingOidcProviderArn Action: sts:AssumeRoleWithWebIdentity Condition: StringEquals: "api.endorlabs.com:aud": !Ref OidcAudience StringLike: "api.endorlabs.com:sub": - !Sub "${TenantNamespace}/*" - !Sub "${TenantNamespace}.*/*" ManagedPolicyArns: - !Ref EndorS3PutObjectPolicy Outputs: OidcProviderArn: Description: "OIDC provider ARN." Value: !If - CreateOidcProvider - !Ref EndorOidcProvider - !Ref ExistingOidcProviderArn RoleArn: Description: "Role ARN to set as assume_role_arn in Endor exporter config." Value: !GetAtt EndorS3ExporterRole.Arn OidcAudienceOut: Description: "Audience to set as allowed_audience in Endor exporter config." Value: !Ref OidcAudience ``` 2. Save this file with an appropriate name such as `endorlabs-s3-export.cft`. 3. Sign into AWS CloudFormation and search for **Stacks**. 4. Click **Create Stack** and select **With new resources**. 5. From **Template source**, select **Upload a template file**. 6. Click **Choose file**, select the file you saved, and click **Next**. 7. In **Specify stack details**, enter a **Stack name**, verify the **Parameters** you entered in the script and click **Next**. 8. Select the acknowledgement from **Configure stack options** and click **Next**. 9. From **Review and Create**, review the details and click **Submit**. Check the progress of the creation of your resources from **Stacks**. After AWS creates the stack, you can see the status as **CREATE_COMPLETE**. ### Create access through the Console Create the OIDC identity provider and IAM role manually in the AWS Management Console. The IAM role is what Endor Labs assumes to write to your S3 bucket. **1. Add an OIDC identity provider** OpenID Connect (OIDC) federation allows Endor Labs to access AWS resources without requiring long-lived credentials. This reduces the risk of credential exposure and simplifies secret rotation. 1. In the AWS management console, navigate to **IAM** > **Access Management** > **Identity providers**. 2. Click **Add provider**. 3. Under **Provider details**, select **OpenID Connect**. 4. For **Provider URL**, enter `https://api.endorlabs.com`. > [!NOTE] > > If you use Endor Labs with an EU tenant, use `https://api.eu.endorlabs.com` instead of `https://api.endorlabs.com`. 5. For **Audience**, specify a unique identifier to validate incoming OIDC tokens from Endor Labs. 6. Optionally, add tags to help identify the provider. 7. Click **Add provider**. ![Create identity provider](https://mintcdn.com/endorlabs-b4795f4f/dHzwUrp_QbpzV9uv/images/integrations/data-exporters/exporter-s3/create-identity-provider-for-s3.webp?fit=max\&auto=format\&n=dHzwUrp_QbpzV9uv\&q=85\&s=b6009360c19a93a8f3a7bd095dd849d8) **2. Create a permissions policy** 1. In the AWS management console, navigate to **IAM** > **Access Management** > **Policies**. 2. Click **Create policy**. 3. Under **Specify permissions**, toggle the **Policy editor** to **JSON**. 4. Enter the following policy: ```json theme={null} { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "s3:PutObject" ], "Resource": "arn:aws:s3:::/*" } ] } ``` Replace `` with the name of your S3 bucket. 5. Click **Next**. 6. Under **Review and create**, enter a **Policy name**. For example, `EndorLabsS3ExportPolicy`. 7. Review the **Permissions defined in this policy section** to confirm that this policy lists the expected Amazon S3 write actions. 8. Optionally, add a description and tags to your policy. 9. Click **Create policy**. ![Policy permissions](https://mintcdn.com/endorlabs-b4795f4f/dHzwUrp_QbpzV9uv/images/integrations/data-exporters/exporter-s3/review-and-create-iam-policy.webp?fit=max\&auto=format\&n=dHzwUrp_QbpzV9uv\&q=85\&s=3affcdeb1adf648fce286402283f431e) **3. Create the IAM role** 1. In the AWS management console, navigate to **IAM** > **Access Management** > **Roles**. 2. Click **Create role**. 3. Under **Select trusted entity**, select **Custom trust policy**. 4. Enter the following trust policy: > [!NOTE] > > If you use Endor Labs with an EU tenant, use `https://api.eu.endorlabs.com` instead of `https://api.endorlabs.com`. ```json expandable theme={null} { "Version": "2012-10-17", "Statement": [ { "Sid": "EndorWebIdentity", "Effect": "Allow", "Principal": { "Federated": "arn:aws:iam:::oidc-provider/api.endorlabs.com" }, "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { "api.endorlabs.com:aud": "" }, "StringLike": { "api.endorlabs.com:sub": [ "/*", ".*" ] } } } ] } ``` Replace the placeholders with your values: * ``: Your AWS account ID * ``: The audience value you configured in the OIDC provider * ``: Your Endor Labs namespace ![Create IAM role](https://mintcdn.com/endorlabs-b4795f4f/dHzwUrp_QbpzV9uv/images/integrations/data-exporters/exporter-s3/create-iam-role.webp?fit=max\&auto=format\&n=dHzwUrp_QbpzV9uv\&q=85\&s=4e1b3a332d481ae9d6174ab251a073d4) 5. Click **Next**. 6. Under **Add permissions**, search for and select the IAM policy you created. ![IAM role permissions](https://mintcdn.com/endorlabs-b4795f4f/dHzwUrp_QbpzV9uv/images/integrations/data-exporters/exporter-s3/iam-role-permissions.webp?fit=max\&auto=format\&n=dHzwUrp_QbpzV9uv\&q=85\&s=df50735625f9682171c87a0dd2054026) 7. Click **Next**. 8. Under **Name, review, and create**, enter a **Role name** for the S3 exporter role. For example, `EndorLabsS3ExporterRole`. ![IAM role name](https://mintcdn.com/endorlabs-b4795f4f/dHzwUrp_QbpzV9uv/images/integrations/data-exporters/exporter-s3/iam-role-name.webp?fit=max\&auto=format\&n=dHzwUrp_QbpzV9uv\&q=85\&s=78fe9835d6db5ce3982651c9f1537239) 9. Optionally, add tags to help identify the role. 10. Click **Create role**. ## Create an S3 exporter Create an S3 exporter using the Endor Labs API to configure the export destination and data types. The following table lists the configuration options required to create the exporter. \- Parameter: \`\\` Description: Your Endor Labs namespace \- Parameter: \`\\` Description: A descriptive name for the exporter \- Parameter: \`\\` Description: The name of your S3 bucket \- Parameter: \`\\` Description: The AWS region that hosts your bucket, for example \`us-east-1\`. Refer to \[AWS regions]\(https\://docs.aws.amazon.com/global-infrastructure/latest/regions/aws-regions.html) for a list of region codes. \- Parameter: \`\\` Description: The ARN of the IAM role you created \- Parameter: \`\\` Description: The audience value that you configured in the OIDC provider \- Parameter: \`compression_format\` Description: (Optional) The key suffix and content type of the exported objects. Set \`COMPRESSION_FORMAT_ZIP\` to write \`.zip\` objects or \`COMPRESSION_FORMAT_GZIP\` to write \`.gz\` objects. Endor Labs compresses the data with gzip in both cases. If you omit this parameter, Endor Labs writes \`.zip\` objects. See \[Choose a compression format]\(#choose-a-compression-format). Run the following command to create an S3 exporter. ```bash expandable theme={null} endorctl api create \ --namespace= \ --resource=Exporter \ --data '{ "meta": { "name": "" }, "propagate": true, "spec": { "exporter_type": "EXPORTER_TYPE_S3", "s3_config": { "bucket_name": "", "region": "", "assume_role_arn": "", "allowed_audience": "", "compression_format": "COMPRESSION_FORMAT_ZIP" }, "message_type_configs": [ { "message_type": "MESSAGE_TYPE_FINDING", "message_export_format": "MESSAGE_EXPORT_FORMAT_JSON" } ] } }' ``` For example, to create an S3 exporter named `s3-findings-exporter` in the namespace `doe.deer` that exports findings in JSON format, run the following command. ```bash expandable theme={null} endorctl api create \ --namespace=doe.deer \ --resource=Exporter \ --data '{ "meta": { "name": "s3-findings-exporter" }, "propagate": true, "spec": { "exporter_type": "EXPORTER_TYPE_S3", "s3_config": { "bucket_name": "my-endorlabs-exports", "region": "us-west-2", "assume_role_arn": "arn:aws:iam::123456789012:role/EndorLabsS3ExportRole", "allowed_audience": "s3-exporter" }, "message_type_configs": [ { "message_type": "MESSAGE_TYPE_FINDING", "message_export_format": "MESSAGE_EXPORT_FORMAT_JSON" } ] } }' ``` ### Choose a compression format Endor Labs compresses every exported object with gzip to reduce storage and transfer costs. Use the `compression_format` parameter in `s3_config` to choose the key suffix and content type that Endor Labs writes to your bucket. \- Compression_Format: \`COMPRESSION_FORMAT_ZIP\` Object_Extension: \`.zip\` Content_Type: \`application/zip\` Description: Stores the gzip-compressed export under a \`.zip\` key. Endor Labs uses this format when you omit \`compression_format\`. \- Compression_Format: \`COMPRESSION_FORMAT_GZIP\` Object_Extension: \`.gz\` Content_Type: \`application/gzip\` Description: Stores the same gzip-compressed export under a \`.gz\` key, so standard tools and data pipelines decompress it natively without an unzip step. Both values produce the same gzip payload. Only the key suffix and the content type differ. An object written under a `.zip` key is a gzip stream and not a zip archive, so decompress it with a gzip tool such as `gunzip`. Choose `COMPRESSION_FORMAT_GZIP` when the tools in your pipeline rely on the file extension or the content type to decompress the object. Each exported object holds one document. A JSON export is a single array of findings, and a SARIF export is a single SARIF document. Neither is line-delimited, so query engines such as Amazon Athena cannot read an object as rows until you reshape the payload into a line-delimited format. Existing exporters that do not set `compression_format` continue to write `.zip` objects, so your current exports and any downstream processing remain unchanged. > [!NOTE] > > You need endorctl `v1.7.1239` or later to write gzip objects. Earlier versions ignore `compression_format` and write `.zip` objects. To change the format of an existing exporter, update it with the field mask `spec.s3_config.compression_format` and set `compression_format` to the value you want. See [Manage the S3 exporter](#manage-the-s3-exporter) to run the update command. The new format applies to subsequent scans. Objects already in your bucket keep the format they were written with. ## Configure scan profile to use the S3 exporter After creating the exporter, associate it with your scan profile. You can also set the scan profile as the default for your namespace so all projects use it automatically. See [Scan profiles](/scan/scan-profiles) for more information. ### Configure the scan profile 1. Select **User menu** > **Settings** from the left sidebar. 2. Select **Scan Profiles**. 3. Select the scan profile you want to configure and click **Edit Scan Profile**. 4. Select your exporter under **Exporters** and click **Save Scan Profile**. ### Configure the project to use the scan profile Associate your project with a scan profile to enable automatic export of scan data. 1. Select **Projects** from the left sidebar and select the project you want to configure. 2. Select **Settings** and select the scan profile you want to use under **Scan Profile**. ## Scan projects to export data After configuration, subsequent scans automatically export data to your S3 bucket. You can trigger a rescan immediately. See [Rescan projects](/setup-deployment/scm-integrations/github-app/re-scan-projects) for more information. To validate that the S3 exporter ran successfully for a scan: 1. Select **Projects** from the left sidebar and select the project associated with your exporter. 2. Select **Scan History** and select a record to view its information. 3. Select **Logs** to view the scan log and set the log level to **All** The following message confirms that the S3 export is successful. `INFO: Successfully completed S3 export` ### Exported file structure Endor Labs exports data to S3 using a hierarchical folder structure: ```text theme={null} endor/ └── -/ └── / └── -/ └── / └── / └── _.. ``` The following table explains each path segment: \- Level: Root Example: \`endor/\` Description: Fixed prefix for all Endor exports \- Level: Exporter Example: \`abc123-prod-exporter/\` Description: \`\-\\` - unique per exporter \- Level: Namespace Example: \`acme-corp/\` Description: Your Endor Labs namespace \- Level: Project Example: \`def456-my-service/\` Description: \`\-\\` \- Level: Scan Type Example: \`schedule/\` or \`pr/\` Description: Type of scan that triggered export \- Level: Ref or PR Number Example: \`\/\` or \`\\` Description: Name of the branch or PR number \- Level: File Example: \`20251215T143025Z_xyz789.json.zip\` Description: \`\\_\.\.\\`, where format is \`json\` or \`sarif\`, and extension is \`zip\` or \`gz\` depending on the compression format of the exporter #### Example file path An exporter that uses the default `COMPRESSION_FORMAT_ZIP` writes the following object. ```text theme={null} my-bucket/endor/abc123-prod-exporter/acme-corp/6efgh-pythonrepo/schedule/main/20251215T143025Z_xyz789.json.zip ``` An exporter that sets `COMPRESSION_FORMAT_GZIP` writes the same data under a `.gz` key. ```text theme={null} my-bucket/endor/abc123-prod-exporter/acme-corp/6efgh-pythonrepo/schedule/main/20251215T143025Z_xyz789.json.gz ``` ## Manage the S3 exporter You can list, update, and delete S3 exporters using the Endor Labs API. > [accordion] List exporters > > Run the following command to list all exporters in your namespace. > > ```bash theme={null} > endorctl api list --namespace= --resource=Exporter > ``` > [accordion] Update an exporter > > Run the following command to update an existing exporter. Use the `--field-mask` parameter to specify the fields to update. > > ```bash theme={null} > endorctl api update \ > --namespace= \ > --resource=Exporter \ > --name= \ > --field-mask "spec.s3_config.region" \ > --data '{ > "spec": { > "s3_config": { > "region": "us-west-2" > } > } > }' > ``` > [accordion] Delete an exporter > > > [!NOTE] > > > > You must dissociate the exporter from any linked scan profiles before deletion. > > Run the following command to delete an exporter. > > ```bash theme={null} > endorctl api delete --namespace= --resource=Exporter --name= > ``` # Export findings to Wiz Source: https://docs.endorlabs.com/integrations/data-exporters/export-to-wiz/index Learn how to export findings from Endor Labs to Wiz to enable code-to-cloud correlation in the Wiz Security Graph. Endor Labs provides a holistic view of your code and software supply chain security so you can focus on the findings that matter most. Endor Labs pushes findings to Wiz after every scheduled scan on the default branch and maps them to Wiz’s enrichment schemas. Export findings from Endor Labs to Wiz by establishing a secure connection with Wiz API endpoints. The integration sends SCA and SAST findings identified during repository scans to Wiz, and Wiz ingests them into the Wiz Security Graph. > [!NOTE] > > **Branch restrictions** > > Wiz exports apply only to the default branch. Currently, you cannot export pull request scans and non-default branch scans. ## Prerequisites Ensure that the following prerequisites are complete: * To use the Endor Labs integration, your Wiz tenant must have the **Wiz Code License**. * Connect your source code manager to Wiz so that Wiz scans repositories and findings become available. Wiz currently supports the following providers: * GitHub * GitLab * Bitbucket * Azure DevOps This connection ensures that `REPOSITORY_BRANCH` assets exist in Wiz's inventory. Without this connection, Wiz accepts findings but **SKIPS** them during ingestion because Wiz cannot resolve the repository. * Add the [Endor Labs integration](https://app.wiz.io/settings/automation/integrations) from the Wiz Integration Network. When you create the integration, Wiz shows the required API scopes for the service account. Save the following values because you will need them when creating the Wiz exporter in Endor Labs: * Client ID * Client Secret * API Endpoint URL * Authentication URL * Download and install endorctl. See [Install endorctl](/introduction/getting-started). ## Create a Wiz exporter Create a Wiz exporter with the Endor Labs API to configure the export destination and data types. The following table lists the configuration options required to create the exporter. \- Parameter: \`\\` Description: Your Endor Labs namespace. \- Parameter: \`\\` Description: A descriptive name for the exporter. \- Parameter: \`\\` Description: Your Wiz tenant's region-specific GraphQL endpoint. For example, \`https\://api.us18.app.wiz.io/graphql\`. \- Parameter: \`\\` Description: The Wiz authentication endpoint. For example, \`https\://auth.app.wiz.io/oauth/token\`. \- Parameter: \`\\` Description: The Client ID from your Wiz service account. \- Parameter: \`\\` Description: The Client Secret from your Wiz service account. Run the following command to create a Wiz exporter. ```bash expandable theme={null} endorctl api create \ --namespace= \ --resource=Exporter \ --data '{ "meta": { "name": "" }, "propagate": true, "spec": { "exporter_type": "EXPORTER_TYPE_WIZ", "wiz_config": { "api_endpoint_url": "", "oauth_client_credentials": { "auth_endpoint_url": "", "client_id": "", "client_secret": "" } }, "message_type_configs": [ { "message_type": "MESSAGE_TYPE_FINDING", "message_export_format": "MESSAGE_EXPORT_FORMAT_JSON" } ] } }' ``` For example, to create a Wiz exporter named `wiz-findings-export` in the namespace `doe.deer` that exports findings to Wiz: ```bash expandable theme={null} endorctl api create \ --namespace=doe.deer \ --resource=Exporter \ --data '{ "meta": { "name": "wiz-findings-export" }, "propagate": true, "spec": { "exporter_type": "EXPORTER_TYPE_WIZ", "wiz_config": { "api_endpoint_url": "https://api.us18.app.wiz.io/graphql", "oauth_client_credentials": { "auth_endpoint_url": "https://auth.app.wiz.io/oauth/token", "client_id": "your-wiz-client-id", "client_secret": "your-wiz-client-secret" } }, "message_type_configs": [ { "message_type": "MESSAGE_TYPE_FINDING", "message_export_format": "MESSAGE_EXPORT_FORMAT_JSON" } ] } }' ``` ## Configure the scan profile to use the Wiz exporter After creating the exporter, associate it with your scan profile. You can also set the scan profile as the default for your namespace so all projects use it automatically. See [Scan profiles](/scan/scan-profiles) for more information. ### Configure the scan profile 1. Select **User menu** > **Settings** from the left sidebar. 2. Select **Scan Profiles**. 3. Select the scan profile you want to configure and click **Edit Scan Profile**. 4. Select your exporter under **Exporters** and click **Save Scan Profile**. ### Configure the project to use the scan profile Associate your project with a scan profile to enable automatic export of scan data. 1. Select **Projects** from the left sidebar and select the project you want to configure. 2. Select **Settings** and select the scan profile you want to use under **Scan Profile**. ## View findings in Wiz Once Wiz successfully ingests findings, you can view them directly in the Wiz **Findings** dashboard. Wiz correlates these findings with your cloud assets and repositories in the Wiz Security Graph. You can filter by origin to easily locate findings from Endor Labs. ## Finding lifecycle in Wiz Endor Labs exports findings to Wiz after every scheduled scan on the default branch. Wiz manages finding state based on data sources: * **Full state snapshot**: Each upload represents the complete current state of findings for a project and branch. Wiz treats it as a full replacement. * **Upload limit**: Wiz allows up to three uploads per branch per day. Wiz may not process additional uploads for the same branch within 24 hours. * **Automatic resolution**: If a finding was present in a previous upload but is absent in the current upload for the same scope, Wiz automatically marks it as resolved and closes any associated Wiz Issues. * **Staleness**: Findings not refreshed within 7 days are automatically removed by Wiz. Wiz recommends uploading at least every 24 hours to align with their scanning cycle. ## Ingestion status When an upload completes, Wiz processes the results asynchronously. The following table lists the ingestion outcomes. \- Status: \`PENDING\` Meaning: Upload is queued; processing has not started. \- Status: \`IN_PROGRESS\` Meaning: Wiz is still processing the file. \- Status: \`SUCCESS\` Meaning: Wiz ingested all findings and linked them to assets. \- Status: \`SKIPPED\` Meaning: Wiz parsed findings but could not resolve assets (repository not connected to Wiz). \- Status: \`FAILURE\` Meaning: Schema validation failed or an error occurred. > [!NOTE] > > Even when the system activity status is SUCCESS, Wiz ingests the payload at its own pace. We recommend waiting up to 24 hours for findings to appear in Wiz. ## FAQs > [accordion] Why are findings SKIPPED in Wiz? > > Wiz links findings only to existing `REPOSITORY_BRANCH` assets in Wiz. Connect the SCM to Wiz so that repositories exist in Wiz's inventory. If the repository is not connected to Wiz, the upload succeeds but Wiz skips the ingestion of the upload. > [accordion] Can Wiz data be pulled back into Endor Labs? > > No, this is a one-way integration that only supports pushing findings from Endor Labs to Wiz. > [accordion] How long do findings stay in Wiz? > > Wiz automatically removes findings that are not refreshed within seven days. To keep your findings current, schedule scans to run regularly. Wiz limits uploads to a maximum of three per branch per day. > [accordion] When do findings appear in Wiz after an upload? > > Even when the system activity status is `SUCCESS`, Wiz ingests the payload at its own pace. We recommend waiting up to 24 hours for findings to reflect in Wiz. > [accordion] What happens if a repository has multiple branches? > > Endor Labs exports findings to Wiz only from the repository’s default branch. Scans on other branches do not export findings to Wiz. # Data exporters Source: https://docs.endorlabs.com/integrations/data-exporters/index Learn how to export findings and scan data from Endor Labs to external storage and security platforms using the export framework. Endor Labs provides an export framework that enables you to export scan data to external platforms for archival, compliance, or integration with other security tools. You can configure exporters to automatically send data to supported destinations after each scan. ## Supported export destinations The export framework supports the following destinations. \- Destination: \[AWS S3]\(/integrations/data-exporters/export-to-s3) Description: Export data to an Amazon S3 storage bucket for archival or integration with data analytics tools. \- Destination: \[GitHub Advanced Security]\(/integrations/data-exporters/export-to-ghas) Description: Export findings in SARIF format to GitHub Advanced Security for viewing in the GitHub security dashboard. \- Destination: \[Wiz]\(/integrations/data-exporters/export-to-wiz) Description: Export findings to Wiz for code-to-cloud correlation in the Wiz Security Graph. ## Supported data types You can configure exporters to export different types of data: \- Data_Type: Findings Description: Security findings from scans including vulnerabilities, secrets, and SAST issues Message_Type: \`MESSAGE_TYPE_FINDING\` Exporters: S3, GHAS, Wiz \- Data_Type: Action policy findings Description: Findings that match your configured action policies (blocked or warning) Message_Type: \`MESSAGE_TYPE_ADMISSION_POLICY_FINDING\` Exporters: GHAS ## Supported export formats \- Format: JSON Description: Export data in JSON format for flexibility and compatibility with external tools Format_Type: \`MESSAGE_EXPORT_FORMAT_JSON\` Exporters: S3 \- Format: SARIF Description: Export findings in Static Analysis Results Interchange Format for security tools integration Format_Type: \`MESSAGE_EXPORT_FORMAT_SARIF\` Exporters: S3, GHAS # Set up email integration Source: https://docs.endorlabs.com/integrations/email/index Learn how to integrate your email addresses with Endor Labs and receive finding notifications Integrate your email address with Endor Labs and automatically receive policy violations as email notifications. * [Configure email integration](#configure-email-integration) * [Associate an action policy with the email notification](#associate-an-action-policy-with-the-email-notification) * [Customize email notification templates](#customize-email-notification-templates) * [Data model](#data-model) * [Run a scan](#run-a-scan) ## Configure email integration To configure an email integration, follow these steps: 1. Select **User menu** > **Integrations** from the left sidebar. 2. Under **Notifications**, click **Add** on the **Email** card. If you already have an email integration, click **Manage** instead. 3. Click **Add Notification Integration** to open the **Send Notifications to Email** dialog. 4. Enter a **Name** and **Description** for this integration. 5. In **Email addresses**, enter up to eight email addresses separated by commas. 6. Optional: select **Propagate this notification target to all child namespaces** to make this integration available in child namespaces. 7. Click **Add Notification Integration** to save the integration. ### Associate an action policy with the email notification Users can create action policies to send an email notification when a scan matches policy conditions. For example, if there is a critical or high vulnerability, send an email notification. To send an email when a scan produces matching findings, create an action policy with a **Send Notification** action that targets your email integration. For the full procedure, see [Create an action policy](/platform-administration/policies/action-policies). The email-specific choices are: * Under **Choose an Action**, select **Send Notification**. * From **Select notification targets**, choose the email integration you created. From **Select aggregation type**, choose how findings are grouped into notifications. * **None (Notify for each Finding)** sends a separate notification for each finding. * **Project** sends a single notification for all findings in a project. * **Dependency** sends a notification for every dependency. * **Dependency per Package Version** sends a notification for every unique combination of dependency and package version. ### Customize email notification templates Endor Labs provides a default template with standard information for the email. You can use the default template or you can choose to edit and customize this template to fit your organization's specific requirements. You can also create custom templates using [Go Templates](https://pkg.go.dev/text/template). 1. Select **User menu** > **Integrations** from the left sidebar. 2. Under **Notifications**, click **Manage** on the **Email** card to view the configured notification integrations. 3. Choose a notification integration, click the ellipsis on the right side, and click **Edit Template**. 4. Make required changes to any of the following templates and click **Save Template**. * **Open** - This template applies when Endor Labs raises new notifications. * **Update** - This template applies when an existing notification updates, such as when findings change. * **Resolve** - This template applies when all findings reported by the notification resolve. 5. Click **Restore to Default** to revert the changes. 6. Use the download icon on the top right corner to download this template. 7. Use the copy icon to copy the information in the template. ### Data model To create custom templates for email notifications, you must understand the data supplied to the template. See the `EmailData` message used for **Open** and **Update** templates. See the `ResolvedEmailData` message used for **Resolve** template. See the following protobuf specification for the `NotificationData` message referenced by `EmailData`. To understand Project, Finding, PackageVersion and RepositoryVersion definitions in this protobuf specification, see: * [Project resource kind](/developers-api/rest-api/using-the-rest-api/data-model/resource-kinds#project) * [Finding resource kind](/developers-api/rest-api/using-the-rest-api/data-model/resource-kinds#finding) * [PackageVersion resource kind](/developers-api/rest-api/using-the-rest-api/data-model/resource-kinds#packageversion) * [RepositoryVersion resource kind](/developers-api/rest-api/using-the-rest-api/data-model/resource-kinds#repositoryversion) See the following specification to understand a few additional functions available to the template. You can access these functions by using their corresponding keys. ## Run a scan Run the endorctl scan on your configured projects. See [endorctl scan commands](/developers-api/cli/commands/scan) for more information. You can view email notifications of policy violations in your inbox. # Integrations Source: https://docs.endorlabs.com/integrations/index Connect Endor Labs to source control, package repositories, ticketing, messaging, and other services. Learn how to integrate Endor Labs with third-party services. Endor Labs provides multiple out-of-the-box integrations for continuous monitoring, ticketing, and messaging workflows in your environment. > [card] [SCM](/integrations/scm) > > Connect source code management platforms for continuous monitoring. > [card] [Package managers](/integrations/package-managers) > > Learn how to configure custom package repositories for dependency resolution. > [card] [Webhooks](/integrations/webhooks) > > Learn how to create webhooks and enable custom integrations with Endor Labs application > [card] [Jira](/integrations/jira) > > Learn how to implement ticketing workflows for JIRA. > [card] [Slack](/integrations/slack) > > Learn how to integrate Slack with Endor Labs and receive finding notifications > [card] [Email](/integrations/email) > > Learn how to integrate your email addresses with Endor Labs and receive finding notifications > [card] [Microsoft Defender for Cloud](/integrations/microsoft-defender-for-cloud) > > Learn how to integrate Defender for Cloud with Endor Labs to close the gap between Application and Cloud security. > [card] [Vanta](/integrations/vanta) > > Learn how to integrate Vanta with Endor Labs and automate compliance requirements > [card] [Data exporters](/integrations/data-exporters) > > Export scan findings and data to external storage and security platforms. > [card] [Anthropic Compliance API](/agent-governance/claude-code/compliance-api) > > Connect the Anthropic Compliance API so Coding Agent Governance can match Claude Code sessions to organization roles and groups. > [card] [Third-party integrations](/integrations/third-party-integrations) > > Integrate Endor Labs with third-party security and vulnerability management platforms. # Set up Jira integration with Endor Labs Source: https://docs.endorlabs.com/integrations/jira/index Learn how to implement ticketing workflows for Jira. Integrate Endor Labs with Jira to automatically create tickets in specified projects when scans violate configured policies, aligning with your organization’s existing security workflow. The integration supports both Jira Cloud and Jira Data Center. You can configure the integration with a dedicated service account so credentials are limited to only the required permissions and are not tied to any individual user. This helps maintain consistent access and simplifies credential management. We recommend that the Jira account used for this integration includes only the following minimum required permissions: * Create Issues * Transition Issues * Edit Issues * Resolve Issues * Add Comments To integrate Endor Labs with Jira: * [Generate Jira API token](#generate-jira-api-token) * [Configure Jira Integration on Endor Labs](#configure-jira-integration-on-endor-labs) * [Manage Endor Labs Jira notifications](#manage-endor-labs-jira-notifications) * [Associate an action policy with a Jira notification](#associate-an-action-policy-with-a-jira-notification) * [View ticket details in Jira](#view-ticket-details-in-jira) * [View Jira notification in Endor Labs](#view-jira-notification-in-endor-labs) ## Generate Jira API token Generate Jira API credentials to sign in to Endor Labs. Endor Labs supports both classic and scoped API tokens. Refer to [Create an API token](https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/#Create-an-API-token) to create a classic API token or [Create API token with scopes](https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/#Create-an-API-token-with-scopes) to create a scoped API token. For scoped API tokens, select only the `read:jira-work` and `write:jira-work` permissions. > [!NOTE] > > You cannot view the token after you close the form. Copy it to a secure location and have it handy. Do not share the token. ## Configure Jira Integration on Endor Labs Set up Jira integration on the Endor Labs application. 1. Select **User menu** > **Integrations** from the left sidebar. 2. Under **Notifications**, click **Manage** for Jira. 3. Click **Add Notification Integrations**. 4. Enter a name and description for the integration. 5. Enter a Jira username. The user account appears as the reporter for all the tasks or bugs created in Jira for this notification. We recommend creating a new user account for receiving Jira notifications from Endor Labs. 6. In **API Key**, enter the API token that you generated from Jira. 7. In **Jira URL**, enter the HTTPS endpoint of your Jira instance. 8. Select one of the following In **Authentication Method**: * **Basic Authentication**: If you are using Jira cloud, enter your Jira user name in **Username** and the API token that you generated from Jira in **API Key**. * **Personal Access Token \[PAT]**: If you are using Jira Data Center, enter the personal access token (PAT) in **Access Token**. 9. In **Project Key**, enter the project key of your Jira project in which you want to create the notifications. The project key is the prefix of the bug or task ID. For example, if the project key is `ENG`, Jira creates the task or bug with an ID in the format `ENG-352`. 10. In **Parent ticket issue type**, enter the issue type for the parent ticket, such as `Task`, `Bug`, `Story`, or `Epic`. The issue type is case-sensitive. Make sure to match with an exact issue type on your Jira board. > [!NOTE] > > Make sure the endorctl version is `1.6.547` or higher to use **Parent ticket issue type**. 11. In **Child ticket issue type**, enter the issue type for the child tickets that Endor Labs creates under the parent ticket. This applies when you use Dependency or Dependency per package version aggregation. The issue type must follow the [Jira issue type hierarchy](https://support.atlassian.com/jira-cloud-administration/docs/what-are-issue-types/), where the child type is one level below the parent. If you leave this blank, Endor Labs creates child tickets with the project's default sub-task type. > [!NOTE] > > Endor Labs supports configuring the child ticket issue type for Jira Cloud only. 12. In **Resolved Status**, specify the resolved status used in your Jira projects. For example, if you enter the value as `Completed`, after you resolve the findings, Endor Labs updates the Jira ticket to this status. If you don't specify a status, Endor Labs attempts to determine your project's resolution status. It defaults to one of the following in priority order: `Done`, `Resolved`, `Closed`, or `Fixed`. > [!WARNING] > > If you do not provide a resolved status and your project's resolved status does not match `Done`, `Resolved`, `Closed`, or `Fixed`, you will be unable to configure the integration. 13. In **Labels**, enter a label to associate it with your Jira notifications. 14. For [company-managed Jira project](https://support.atlassian.com/jira-software-cloud/docs/what-are-team-managed-and-company-managed-projects/#Company-managed-projects), enter one or more component values in **Components**. These values are automatically populated in the **Components** field of the created Jira ticket. 15. Click **Add Custom Field** to add custom `key-value` pairs in the created Jira ticket. Use this to create a **Components** field in your team managed Jira project. For example, you can add `Source` as **Key** and associate it to `Endor Labs` in **Value**, so that every notification created will now have the information `Source = Endor Labs` associated with the ticket. For [team-managed Jira project](https://support.atlassian.com/jira-software-cloud/docs/what-are-team-managed-and-company-managed-projects/#Team-managed-projects), use **Add Custom Field** to create a **Components** field in your Jira ticket. In **Key** enter `Components` and enter the component value in **Value**. > [!NOTE] > > Ensure that the endorctl version is `1.6.567` or higher to use **Custom Fields**. Check that the **Key** you enter matches an existing custom field in your Jira project. Otherwise, you cannot save the notification and the key-value pair will not appear in your Jira ticket. 16. Click **Propagate this notification target to all child namespaces** to apply this Jira notification target to all child namespaces within the hierarchy. 17. Click **Add Notification Integration**. ### Manage Endor Labs Jira notifications You can view and manage the Endor Labs Jira notifications created for a project. 1. Select **User menu** > **Integrations** from the left sidebar. 2. Under **Notifications**, click **Manage** for Jira. 3. To edit a notification, click the vertical three dots and choose **Edit Notification Integration**. 4. To delete a notification, click the vertical three dots and choose **Delete Notification Integration**. ## Associate an action policy with a Jira notification Users can create action policies to execute a recommended action when a scan violates a policy. For example, if there is a license compliance violation, you can create a Jira ticket and notify the required personnel. While creating an action policy, configure the following settings: * Select **Choose an Action** as **Send Notification**. * From **SELECT NOTIFICATION TARGETS**, choose the Jira integration notification that you created. * Choose an **Aggregation type** for Jira notifications. * Choose **None (Notify for each Finding)** to trigger a separate notification for each finding. This can result in a high volume of Jira tickets. * Choose **Project** to trigger a single notification for all findings. * Choose **Dependency** to trigger a notification for every dependency. * Choose **Dependency per package version** to trigger notifications for every unique combination of dependency and package version. See [Aggregation types](/platform-administration/policies/action-policies#aggregation-types-for-notifications) for more details. ### View ticket details in Jira Endor Labs creates a parent ticket named after your project, using the parent issue type you selected. Under it, each dependency gets its own child ticket named after the project and dependency, and findings without a dependency are grouped into a separate child ticket. During future scans, Endor Labs updates these tickets, marks them resolved when their findings are fixed, and creates a new ticket for each new dependency identified. 1. Sign into your Jira account. 2. Navigate to **Projects** drop down menu in the top bar and select your project. 3. Click on the issue to view its details. ![Jira ticket](https://mintcdn.com/endorlabs-b4795f4f/dHzwUrp_QbpzV9uv/images/integrations/jira/Jiraticket.webp?fit=max\&auto=format\&n=dHzwUrp_QbpzV9uv\&q=85\&s=6c21ac8fd540337a83d807364cafa71e) Endor Labs adds the following labels to a Jira ticket: * `endorlabs-scan`: Indicates that an Endor Labs scan created the ticket. * `endor-severity`: The `endor-severity` label has an associated value, `critical`, `high`, `medium`, or `low`, that reflects the severity of the associated Endor Labs finding. If a ticket includes multiple findings with different severities, the label represents the highest severity among them. > [!NOTE] > > For Dependency and Dependency per package version aggregation types, Endor Labs includes the `endor-severity` label in the sub-task. ![Jira Parent Ticket](https://mintcdn.com/endorlabs-b4795f4f/iRIkxUU_mP9fxuwX/images/integrations/jira/jira-with-endor-labs/jiraticketwithlabel.webp?fit=max\&auto=format\&n=iRIkxUU_mP9fxuwX\&q=85\&s=167578bb53d7bc58a827c0f7c49e749f) During future scans, Endor Labs updates the status of the findings as comments on your Jira ticket. * If Endor Labs detects new findings, it adds a comment with their details. ![New findings Jira comment](https://mintcdn.com/endorlabs-b4795f4f/iRIkxUU_mP9fxuwX/images/integrations/jira/jira-with-endor-labs/jira-comments-1.webp?fit=max\&auto=format\&n=iRIkxUU_mP9fxuwX\&q=85\&s=69506dde1ab1e833c4a41ed816bd34dd) * If existing findings resolve, Endor Labs adds a comment with their details. ![Resolved findings Jira comment](https://mintcdn.com/endorlabs-b4795f4f/iRIkxUU_mP9fxuwX/images/integrations/jira/jira-with-endor-labs/jira-comments-2.webp?fit=max\&auto=format\&n=iRIkxUU_mP9fxuwX\&q=85\&s=c2ccc9f925e05e9602bc3f057c7b9c7c) ### View Jira notification in Endor Labs View created Jira tickets in Endor Labs, including their status (open or closed), associated action policy, and number of violations. 1. Click the bell icon in the top right section of the screen to view **Notifications**. 2. Navigate across **Open**, **Resolved**, **Dismissed**, or **All** to view the issues listed under them. 3. You can view specific details such as created date of the ticket, the name of the policy, the name of the project, the number of violations, and any labels associated with the projects. 4. Choose a notification and click the vertical three dots on the far right side and choose: * **Dismiss Notification**: Stop all further processing and updates for the notification. The notification moves to **Dismissed**. * **Show Details**: View the Jira ticket number and you can also navigate to Jira. * **Go to Policy**: View configuration details of the policy that created this Jira ticket. # Manage security findings in Jira Source: https://docs.endorlabs.com/integrations/jira/jira-with-endor-labs/index Learn how Endor Labs creates and manages Jira tickets for security findings, and choose the right notification aggregation type for your workflow. Explore how to effectively use Endor Labs with Jira to manage security findings within your organization's software development workflows. This integration analyzes your software dependencies, generates security findings, and automatically creates Jira tickets to track and resolve these issues. Each ticket links to your project and contains specific details about the detected vulnerabilities. Ensure you have completed [Jira integration setup](/integrations/jira) before proceeding. ## Track findings in Jira A **finding** is a security vulnerability in your source code. When Endor Labs scans a project, it analyzes its **dependencies**, which are the software packages the project relies on and generates findings. A **package version** is a specific release of a dependency, identified by a version number (for example, `jwx v1.0.5`). Endor Labs automatically creates a Jira ticket to track and address the issue when it identifies a finding. The ticket includes the project URL, branch, details about findings such as: * Finding: A link to the identified vulnerability. * Explanation: A brief description of the issue. * Summary: Technical details about the vulnerability, versions affected, and packages impacted. * Remediation: Recommended actions, such as upgrading to a secure version. * Location: Exact file, package, dependency, and repository where Endor Labs identified the vulnerability. ![Findings in Jira](https://mintcdn.com/endorlabs-b4795f4f/iRIkxUU_mP9fxuwX/images/integrations/jira/jira-with-endor-labs/jira-findings-columns.webp?fit=max\&auto=format\&n=iRIkxUU_mP9fxuwX\&q=85\&s=98710576b4e30ee3f005fa31ce5683a9) You can assign the ticket to an individual for remediation. Based on the selected issue type and the aggregation type, it can be one of the following: * Task * Sub-Task * Bug Jira organizes findings and their tickets within a project. A project serves as a centralized space for managing all related issues. To learn more about setting up a project, refer to the [Jira documentation.](https://confluence.atlassian.com/jira061/jira-administrator-s-guide/project-management/defining-a-project) ### Choose the right notification aggregation type Choose the appropriate notification aggregation type to organize security findings in Jira effectively. See [Aggregation Types](/platform-administration/policies/action-policies#aggregation-types-for-notifications) for more information. #### Project Use **Project** aggregation to receive a single Jira notification for all findings in a project. This groups all findings into one Jira ticket. It is ideal for teams that prefer a high-level view of issues. For example, the back-end team relies on libraries such as `archiver` and `jwx`. Endor Labs compiles all findings from these libraries into a single Jira **Task**. This approach helps the teams: * Avoid excessive notifications and streamline remediation efforts. * Manage all security related issues within their designated Jira project. * Improve tracking and collaboration. ![Project Aggregation Type](https://mintcdn.com/endorlabs-b4795f4f/iRIkxUU_mP9fxuwX/images/integrations/jira/jira-with-endor-labs/project-aggregation.webp?fit=max\&auto=format\&n=iRIkxUU_mP9fxuwX\&q=85\&s=14a93b7895d8fa2f91fee2ea5054696c) #### Dependency Use **Dependency** aggregation to receive separate notifications for each affected dependency in a project. Endor Labs creates a parent Jira ticket, with each dependency tracked as a **Sub-Task** with its findings. This approach is ideal for teams prioritizing security management at the dependency level. For example, the back-end team developing a `Go` application relies on libraries like `archiver` and `jwx`. When Endor Labs scans the project: * Findings for `archiver` are present in its **Sub-Task**. * Findings for `jwx` are present in its **Sub-Task**. This approach ensures: * A clear division of responsibilities for efficient vulnerability tracking. * Focused issue resolution without overwhelming teams. * Granular visibility into security risks for targeted management. ![Dependency Aggregation](https://mintcdn.com/endorlabs-b4795f4f/iRIkxUU_mP9fxuwX/images/integrations/jira/jira-with-endor-labs/dependency-aggregation-example.webp?fit=max\&auto=format\&n=iRIkxUU_mP9fxuwX\&q=85\&s=7340c73599061721c009c6a1aa6ced41) #### Dependency per package version Use this to receive separate notifications for each affected package version. Each version has its own **Sub-Task** under a parent Jira ticket, with its findings present in the respective **Sub-Task**. For example, a `Go` project using the `jwx` library has multiple versions in use. Endor Labs creates a parent Jira ticket, with each affected version tracked as **Sub-Tasks**: * Findings for `jwx v2.0.13` are present in its **Sub-Task**. * Findings for `jwx v1.0.5` are present in its **Sub-Task**. This approach helps the teams: * Apply security fixes precisely without triggering unnecessary updates. * Reduce notification noise and focus on resolving issues in their specific dependencies. * Maintain stability in machine learning workflows while managing vulnerabilities effectively. ![Dependency Per Package Version Aggregation](https://mintcdn.com/endorlabs-b4795f4f/iRIkxUU_mP9fxuwX/images/integrations/jira/jira-with-endor-labs/dependency-per-package-version-example.webp?fit=max\&auto=format\&n=iRIkxUU_mP9fxuwX\&q=85\&s=285799877b3e08851a77e04002c3f629) #### None (Notify for each Finding) Use this to receive a separate notification for every finding and create an individual Jira ticket for each finding. This aggregation type can produce a high volume of Jira tickets when many findings match the policy. This approach also provides granular tracking so teams can monitor and remediate each issue independently. For example, when you scan the `app-java-demo` project with this aggregation type configured on the action policy, Endor Labs creates a separate Jira **Task** ticket for each finding detected in the project. This approach helps the teams: * Track the remediation status of each vulnerability individually. * Assign findings to different team members for parallel resolution. * Enable clear audit and compliance reporting with one-to-one mapping between findings and tickets. ![No Aggregation](https://mintcdn.com/endorlabs-b4795f4f/iRIkxUU_mP9fxuwX/images/integrations/jira/jira-with-endor-labs/no-aggregation.webp?fit=max\&auto=format\&n=iRIkxUU_mP9fxuwX\&q=85\&s=9cf2725da9bfecb5411cccb459ec3189) > [!NOTE] > > Ensure you have a Jira instance set up on Jira Cloud or Jira Data Center before integrating with Endor Labs. ## Jira tickets Each Jira ticket contains specific labels, comments, and custom fields to provide context and streamline tracking. ### Labels Endor Labs automatically assigns labels to Jira tickets to simplify the management of security issues. These labels appear in the right sidebar of the Jira ticket under **Details**. Endor Labs provides the following labels: `endorlabs-scan`: Assigned to every Jira ticket that an Endor Labs scan generates. `endor-severity`: Indicates the severity of the associated finding, such as `critical`, `high`, `medium`, or `low`. If a ticket includes multiple findings with different severities, the label represents the highest severity among them. > [!TIP] > > For Dependency and Dependency per package version aggregation types, Endor Labs applies the `endor-severity` label to the **Sub-Task** and not the parent ticket. In the following example, the ticket titled "Findings with no dependencies" includes the following labels: `endorlabs-scan`: Identifies the ticket as part of an Endor Labs scan. `endor-severity:medium`: Represents the severity of the detected finding. ![Example of Jira label](https://mintcdn.com/endorlabs-b4795f4f/iRIkxUU_mP9fxuwX/images/integrations/jira/jira-with-endor-labs/jiraticketwithlabel.webp?fit=max\&auto=format\&n=iRIkxUU_mP9fxuwX\&q=85\&s=167578bb53d7bc58a827c0f7c49e749f) ### Comments During future scans, Endor Labs updates the status of the findings in comments on your Jira ticket. When Endor Labs detects new findings, it adds a comment with their details. ![New findings comment](https://mintcdn.com/endorlabs-b4795f4f/iRIkxUU_mP9fxuwX/images/integrations/jira/jira-with-endor-labs/jira-comments-1.webp?fit=max\&auto=format\&n=iRIkxUU_mP9fxuwX\&q=85\&s=69506dde1ab1e833c4a41ed816bd34dd) When Endor Labs resolves existing findings, it adds a comment with their details. ![Update findings comment](https://mintcdn.com/endorlabs-b4795f4f/iRIkxUU_mP9fxuwX/images/integrations/jira/jira-with-endor-labs/jira-comments-2.webp?fit=max\&auto=format\&n=iRIkxUU_mP9fxuwX\&q=85\&s=c2ccc9f925e05e9602bc3f057c7b9c7c) ### Components Endor Labs automatically sets the **Components** field using values from your Jira project configured during the Jira integration with Endor Labs. * For a [team-managed Jira project](https://support.atlassian.com/jira-software-cloud/docs/what-are-team-managed-and-company-managed-projects/#Team-managed-projects), Endor Labs applies the configured component value to each ticket it creates. In the following example, `Test DEPR Component` is the assigned components value. ![Team managed project components](https://mintcdn.com/endorlabs-b4795f4f/iRIkxUU_mP9fxuwX/images/integrations/jira/jira-with-endor-labs/team-managed-components.webp?fit=max\&auto=format\&n=iRIkxUU_mP9fxuwX\&q=85\&s=6c28d68f1376bb9e4922dc6eaea31092) * For a [company-managed Jira project](https://support.atlassian.com/jira-software-cloud/docs/what-are-team-managed-and-company-managed-projects/#Company-managed-projects), Endor Labs applies all configured component values to each ticket it creates. In the following example, `Test DEPR Component` and `Test UI Component` are the assigned components values. ![Company managed project components](https://mintcdn.com/endorlabs-b4795f4f/iRIkxUU_mP9fxuwX/images/integrations/jira/jira-with-endor-labs/company-managed-components.webp?fit=max\&auto=format\&n=iRIkxUU_mP9fxuwX\&q=85\&s=bfad654a7f8cba98ff0489e69615310e) ### Considerations Ensure your Jira board has a designated resolution state like **Done**, **Fixed**, etc. for Endor Labs to mark tickets as resolved. If no such state exists, the ticket remains unresolved. Ensure that tickets can transition from a beginning state, such as **To Do**, to a resolution state like **Done** without requiring intermediate states such as **In Progress**. If the workflow restricts direct movement, Endor Labs cannot move tickets between states, and you must update the status manually on your Jira board. ### FAQs > [accordion] What permissions are required for Jira integration? > > Jira integration requires only the minimum project-level permissions, such as: create issues, transition issues, assign issues, resolve issues, and add comments. > [accordion] What happens if a Jira ticket is manually marked as Resolved in Jira? > > If you manually mark a Jira ticket as **Resolved**, Endor Labs skips that finding in future scans and removes it from the ticket. > [accordion] What happens if we fix the security vulnerability? > > Endor Labs marks the ticket as resolved in your Jira board after the next scan. > [accordion] Can I change the project that I initially configured? > > No. You must add a new Jira integration and then configure Endor Labs to the new project with a new API key. > [accordion] What happens if I change the aggregation type? > > Jira updates the grouping of findings in the board based on changes to the action policy's aggregation type. > > * Changing from **Project** to **Dependency** splits findings into separate **Sub-tasks** by dependency type. > * Changing from **Project** to **Dependency per package version** splits findings into **Sub-tasks** by package version. > * Changing from **Dependency** or **Dependency per package version** to **Project** merges all findings into a single Jira ticket. # Set up Microsoft Defender for Cloud integration with Endor Labs Source: https://docs.endorlabs.com/integrations/microsoft-defender-for-cloud/index Learn how to integrate Defender for Cloud with Endor Labs to close the gap between Application and Cloud security. Defender for Cloud, a Cloud-Native Application Protection Platform (CNAPP), provides comprehensive security for hybrid-cloud and multi-cloud environments. It offers advanced threat protection, security posture management, and seamless integration with development workflows. Integrate Defender for Cloud with Endor Labs to mature your security programs. With reachability analysis available directly within the Defender for Cloud console, you can prioritize what to fix based on exploitability without needing to switch tools. And with attack paths showing everywhere vulnerable code is running throughout the SDLC and in the cloud, you have a new way prioritize which vulnerabilities to remediate first. You can correlate SCA findings with runtime alerts to view code-to-runtime attack paths. You can trace vulnerabilities found in open source software (OSS) dependencies directly to potential exploit paths in cloud environments. This allows you to prioritize remediation efforts more effectively and reduce risk across the entire software development lifecycle. Code-to-runtime context also reveals toxic combinations of security issues. For example, there is a reachable vulnerability in an open source package, which runs on an internet-reachable cloud workload. You can see a full attack path, from code committed to Azure DevOps, GitHub, or GitLab, to runtime workloads deployed on Azure, AWS, or Google Cloud Platform. ## Prerequisites Complete the prerequisites in Endor Labs and Defender for Cloud before you can configure the integration. ## Prerequisites in Endor Labs Complete the prerequisites in Endor Labs to prepare your environment to provide findings to Defender for Cloud. * [Create a namespace in which you want to manage the repositories.](/platform-administration/namespaces) You can also use an existing namespace in Endor Labs. * [Deploy Endor Labs in your environment so that your namespace contains the repositories that you want to monitor using Defender for Cloud.](/setup-deployment) * [Create an API key and secret that you can use in the Defender for Cloud integration.](/platform-administration/api-keys) Ensure that the API key has the `Read-Only` permission. We recommend that you set the expiry to 180 days or one year to avoid constant refresh of the key. ## Prerequisites in Defender for Cloud Complete the prerequisites in Defender for Cloud to prepare your repositories for integration and ensure you have sufficient permissions to manage the integration with Endor Labs. * Enable [Defender CSPM](https://learn.microsoft.com/en-us/azure/defender-for-cloud/tutorial-enable-cspm-plan) on the subscription where you wish to see code-to-runtime contextualization. * A user with [Security Administrator](https://learn.microsoft.com/en-us/entra/identity/role-based-access-control/permissions-reference#security-administrator) or [Global Administrator](https://learn.microsoft.com/en-us/entra/identity/role-based-access-control/permissions-reference#global-administrator) permissions on the tenant to create the connector to Endor Labs. * Add repositories that you want to monitor in the tenant. [Contributor](https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles/privileged#contributor) or [Security Admin](https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles/security#security-admin) permissions on an Azure subscription to create DevOps connectors to Azure DevOps or GitHub. For Azure DevOps, you need Project Collection Administrator permissions to onboard the organization. For GitHub, you need Owner permissions to onboard the organization. * To monitor results, provide a user with at least [Security Reader](https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles/security#security-reader) or [Reader](https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles/general#reader) permissions on the subscription with the DevOps connector. * To view the attack paths and code-to-runtime capabilities, the container registry can be in Azure, AWS, GCP, or Docker Hub. The Kubernetes cluster can be in Azure, AWS, or GCP. If you use Azure Kubernetes Cluster (AKS) and Azure Container Registry (ACR) with an [admin account](https://learn.microsoft.com/en-us/azure/container-registry/container-registry-authentication?tabs=azure-cli#admin-account) in the Azure subscription, [attach the ACR to the AKS cluster](https://learn.microsoft.com/en-us/azure/aks/cluster-container-registry-integration?tabs=azure-cli#configure-acr-integration-for-an-existing-aks-cluster) to deploy images from ACR to AKS. ## Configure Defender for Cloud integration You need to configure the integration in Defender for Cloud. 1. In Defender for Cloud, navigate to **Management** > **Environment Settings**. 2. Select **Add Integration** > **Endor Labs**. 3. Enter a name for the integration. 4. Enter the following information from your Endor Labs environment when you configure the integration: * [Endor Labs namespace that you want to integrate](/platform-administration/namespaces) * [Endor Labs API key](/platform-administration/api-keys) * [Endor Labs API secret](/platform-administration/api-keys) 5. Click **Save**. After you configure the integration, Endor Labs data is available in Defender for Cloud. ## Prioritize findings by exploitability From the Defender for Cloud console, you can use Endor Labs' function-reachability analysis to prioritize what to fix based on exploitability. 1. Select **General** > **Cloud Security Explorer**. 2. Select **Query Builder**. 3. Build a query that searches code repositories that have vulnerabilities with reachable functions. ![Defender for Cloud Query Builder](https://mintcdn.com/endorlabs-b4795f4f/dHzwUrp_QbpzV9uv/images/integrations/microsoft-defender-for-cloud/mdcquerybuilder.webp?fit=max\&auto=format\&n=dHzwUrp_QbpzV9uv\&q=85\&s=2e4949885a1eacb93369ff3f37523358) 4. Click **Search** to list results based on the search query. ![Defender for Cloud Search Results](https://mintcdn.com/endorlabs-b4795f4f/dHzwUrp_QbpzV9uv/images/integrations/microsoft-defender-for-cloud/mdcsearchresults.webp?fit=max\&auto=format\&n=dHzwUrp_QbpzV9uv\&q=85\&s=44f45263c44c212533d4c0bbdb46b384) 5. Select a repository to view more details on the vulnerabilities. ![Defender for Cloud Result Details](https://mintcdn.com/endorlabs-b4795f4f/dHzwUrp_QbpzV9uv/images/integrations/microsoft-defender-for-cloud/mdcresultdetails.webp?fit=max\&auto=format\&n=dHzwUrp_QbpzV9uv\&q=85\&s=a3a83953fb9f839d5eac78f6c6b4d8d5) You can review the findings and also navigate to Endor Labs user interface to view more information on the findings. ## Detect vulnerable code running in the cloud From the Defender for Cloud console, you can view an attack path that visualizes everywhere vulnerable code is running throughout the SDLC and in the cloud. Select **General** > **Attack Path Explorer** to view an attack path of vulnerable code running in a cluster. # Configure integration with AWS Source: https://docs.endorlabs.com/integrations/package-managers/aws-codeartifact/index Learn how to configure package manager integrations with AWS CodeArtifact. Configure Endor Labs to integrate with AWS CodeArtifact to use private libraries to build and scan your software. You must Create an OpenID Connect provider in AWS IAM to allow Endor Labs to authenticate and assume roles securely. Then, configure an IAM role with a trust policy to grant Endor Labs read-only access to AWS CodeArtifact repositories. You can configure the resources using the [AWS Management Console](#create-aws-resources-from-the-aws-management-console), [AWS CloudFormation Template](#create-aws-resources-using-a-cft-template), or the [AWS CLI](#create-resources-from-the-aws-cli). ## Create AWS resources from the AWS management console Create the AWS resources required for this integration from the AWS user management console. ### Create an OpenID Connect provider In AWS, create an OpenID Connect provider and authenticate Endor Labs to assume roles. 1. Sign into Identity and Access Management (IAM). 2. From **Access Management**, select **Identity Providers**. 3. Click **Add Provider** and choose **OpenID Connect**. 4. In **Provider URL** enter the Endor Labs application URL `https://api.endorlabs.com`. > [!NOTE] > > If you use Endor Labs with an EU tenant, use `https://api.eu.endorlabs.com` instead of `https://api.endorlabs.com`. 5. Enter an **Audience** such as **endor-aws-code-artifact** and click **Add Provider**. You must keep the **Provider URL** and **Audience** values handy. ### Create an IAM role with trust policies In AWS IAM, create roles that Endor Labs can assume after it authenticates its users or services. Associate each role with a trust policy that grants Endor Labs read-only access to repositories in AWS CodeArtifact. 1. From **IAM**, select **Roles**. 2. Click **Create Role**. 3. From **Trusted entity type**, select **Web Identity** and click **Next**. 4. Select the **Identity provider** you created in the previous task and for **Audience** select the exact value used in the previous task then click **Add condition**. 5. Under **Add condition** set the **Key** to `api.endorlabs.com:sub`, set the **Condition** to `StringLike` and for the **value**, input `/*`. Make sure to replace `` with your tenant name. For example `demo/*`. 6. Add one more condition setting **Key** to `api.endorlabs.com:sub`, set the **Condition** to `StringLike` and for the **value**, input `.*/*`, for example `demo.*/*` and click **Next**. > [!NOTE] > > If you're using a EU tenant, use `api.eu.endorlabs.com:sub`. 7. From **Permission policies**, select **AWSCodeArtifactReadOnlyAccess** and click **Next**. 8. Enter a name for the role such as **endor-aws-code-artifact-role** and include an optional description. 9. Review the **Select trusted entities** section, then click **Edit** to make modifications if required. It should look like the following example. ```bash expandable theme={null} { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": "sts:AssumeRoleWithWebIdentity", "Principal": { "Federated": "arn:aws:iam:::oidc-provider/api.endorlabs.com" }, "Condition": { "StringLike": { "api.endorlabs.com:sub": [ "/*", ".*/*" ] }, "StringEquals": { "api.endorlabs.com:aud": [ "endor-aws-code-artifact" ] } } } ] } ``` 10. Click **Create Role**. You must keep the role ARN handy to enter in the Endor Labs application. You can now go and [configure the package manager integration in Endor Labs](#configure-package-manager-integration-in-endor-labs-with-aws-codeartifact) ## Create AWS resources using a CFT template Use AWS CloudFormation Template (CFT) to automate the creation and configuration of AWS resources required for this integration. 1. Create a `.cft` file from the following script entering the OIDC URL, audience, namespace, and role name. > [!NOTE] > > If you use Endor Labs with an EU tenant, use `https://api.eu.endorlabs.com` instead of `https://api.endorlabs.com`. ```bash expandable theme={null} AWSTemplateFormatVersion: '2010-09-09' Description: CloudFormation template to create an IAM OpenID Connect (OIDC) identity provider and an IAM role with AWSCodeArtifactReadOnlyAccess. Parameters: OIDCUrl: Description: The URL of the OIDC provider (e.g., https://api.endorlabs.com). Type: String Default: "https://api.endorlabs.com" ClientId: Description: The audience claim to use in the OIDC trust policy (e.g., endor-aws-code-artifact). Type: String Default: "endor-aws-code-artifact" Namespace: Description: The namespace in the OIDC sub claim to allow (e.g., demo). Type: String Default: "Enter your Endor Labs namespace" RoleName: Description: IAM role name (e.g., endor-aws-code-artifact-role). Type: String Default: "endor-aws-code-artifact-role" Resources: OpenIDConnectProvider: Type: "AWS::IAM::OIDCProvider" Properties: Url: !Ref OIDCUrl ClientIdList: - !Ref ClientId DeletionPolicy: Retain CodeArtifactRole: Type: "AWS::IAM::Role" Properties: RoleName: !Ref RoleName AssumeRolePolicyDocument: Version: "2012-10-17" Statement: - Effect: "Allow" Principal: Federated: !Ref OpenIDConnectProvider # Directly reference OIDC Provider created in the same template Action: "sts:AssumeRoleWithWebIdentity" Condition: StringEquals: "api.endorlabs.com:aud": !Ref ClientId StringLike: "api.endorlabs.com:sub": - !Sub "${Namespace}/*" - !Sub "${Namespace}.*/*" ManagedPolicyArns: - "arn:aws:iam::aws:policy/AWSCodeArtifactReadOnlyAccess" DeletionPolicy: Retain Outputs: TargetRoleArn: Description: The ARN of the newly created IAM role Value: !GetAtt CodeArtifactRole.Arn AllowedAudience: Description: The allowed audience Value: !Ref ClientId ``` 2. Save this file with an appropriate name such as `awscodeartifact-endor-labs.cft`, and have it handy. 3. Sign into AWS CloudFormation and search for **Stacks**. 4. Click **Create Stack** and select **Choose an existing template**. 5. From **Template source**, select **Upload a template file**. 6. Click **Choose file**, select the file you saved `awscodeartifact-endor-labs.cft` and click **Next**. 7. In **Specify stack details**, choose a name for the stack, verify the **Parameters** you entered in the script and click **Next**. 8. Select the acknowledgement from **Configure stack options** and click **Next**. 9. From **Review and Create**, review the details and click **Submit**. Check the progress of the creation of your resources from **Stacks**. After AWS creates the stack, you can see the status as **CREATE_COMPLETE**. 10. Click **Outputs** to see the target role ARN and the **AllowedAudience** values. Have the values handy to enter in the Endor Labs application. 11. You can now go and [configure the package manager integration in Endor Labs](#configure-package-manager-integration-in-endor-labs-with-aws-codeartifact) ## Create resources from the AWS CLI To create the necessary resources for CodeArtifact integration with the AWS CLI use the following procedure: 1. First, create a new OIDC provider in AWS: > [!NOTE] > > If you use Endor Labs with an EU tenant, use `https://api.eu.endorlabs.com` instead of `https://api.endorlabs.com`. ```bash theme={null} aws iam create-open-id-connect-provider \ --url https://api.endorlabs.com \ --client-id-list endor-aws-code-artifact ``` 2. Keep the **OpenIDConnectProviderArn** returned during the create command handy. If you lose it you can retrieve it using the following command: ```bash theme={null} aws iam list-open-id-connect-providers ``` 3. Next, you'll need to create a role to provide the OIDC provider access to AWS CodeArtifact. Ensure you replace `` with your Endor Labs namespace and `` with your AWS account ID. ```bash expandable theme={null} aws iam create-role \ --role-name endor-aws-code-artifact-role \ --assume-role-policy-document '{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "Federated": "arn:aws:iam:::oidc-provider/api.endorlabs.com" }, "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { "api.endorlabs.com:aud": "endor-aws-code-artifact" }, "StringLike": { "api.endorlabs.com:sub": [ "/*", ".*/*" ] } } } ] }' ``` 4. Finally, assign the role a permissions policy to access AWS CodeArtifact. ```bash theme={null} aws iam attach-role-policy \ --role-name endor-aws-code-artifact-role \ --policy-arn arn:aws:iam::aws:policy/AWSCodeArtifactReadOnlyAccess ``` 5. You can now go and [configure the package manager integration in Endor Labs](#configure-package-manager-integration-in-endor-labs-with-aws-codeartifact) ## Configure package manager integration in Endor Labs with AWS CodeArtifact After creating an IAM role in AWS with the necessary trust policies, configure AWS CodeArtifact package manager integration within the Endor Labs application. 1. Select **User menu** > **Integrations** from the left sidebar. 2. Select the package manager configuration you'd like to customize and click **Manage** 3. In the upper right-hand corner, select **Add Package Manager**. 4. Select **AWS Code Artifactory**. 5. In **DOMAIN**, enter the name of your repository in AWS CodeArtifact. 6. In **DOMAIN OWNER**, enter the AWS account ID that owns the CodeArtifact repository. 7. In **REPOSITORY**, enter the repository name. 8. In **TARGET ROLE ARN**, enter the role ARN you created. 9. In **ALLOWED AUDIENCE**, enter the **Audience** value specified during role creation. In this example we used **endor-aws-code-artifact**. 10. In **REGION**, enter the AWS region of the AWS Code Artifact Repository. 11. Select if you want to **Propagate this package manager to all child namespaces** from **Advanced**. 12. Click **Add Package Manager**. ## Resolve snapshot dependencies AWS CodeArtifact repositories can host snapshot versions of Maven packages, such as `4.0-SNAPSHOT`. Endor Labs doesn't resolve snapshot versions by default. See [Private package manager integration for Maven](/integrations/package-managers/maven-private-package-manager#resolve-snapshot-dependencies) to turn on snapshot resolution for a Maven integration. # Private package manager integration for Conan Source: https://docs.endorlabs.com/integrations/package-managers/conan-private-package-manager/index Learn how to configure Endor Labs to access private Conan registries for dependency resolution and security scanning. Configure Endor Labs to integrate with private Conan registries to access proprietary C/C++ dependencies during security scanning and analysis. When your Conan projects depend on packages hosted in private or corporate registries, Endor Labs requires authentication credentials to resolve these dependencies and generate a complete bill of materials. Endor Labs supports the following private Conan registry providers: * JFrog Artifactory * AWS CodeArtifact * Self-hosted Conan servers This integration enables Endor Labs to: * Access private Conan packages during dependency resolution * Generate comprehensive security analysis including private dependencies * Maintain complete visibility into your software supply chain Endor Labs generally respects package authentication and configuration settings and a package manager integration is usually not required to scan private packages successfully. * Use package manager integrations to simplify scanning when authentication to private repositories is not part of standard manifest or settings files. * Package manager integrations allow you to set custom repositories for each package ecosystem and the priority of each repository for scanning. To set up a package manager integration: 1. Select **User menu** > **Integrations** from the left sidebar. 2. Select **Add** next to the package manager configuration you want to add. 3. Select **Add Package Manager**. 4. Enter a **Name** for the integration. 5. Choose an authentication type and complete the required fields. Enter your registry URL and static credentials. AWS CodeArtifact authentication uses OIDC token federation. No static credentials are stored. Enter the following fields:

  • **Domain**: Name of your AWS CodeArtifact domain.
  • **Domain Owner**: AWS account ID that owns the domain.
  • **Repository**: Name of the CodeArtifact repository.
  • **Target Role ARN**: ARN of the IAM role Endor Labs assumes.
  • **Allowed Audience**: Audience value specified when you created the OIDC provider.
  • **Region**: AWS region of the repository.
See [Configure integration with AWS CodeArtifact](/integrations/package-managers/aws-codeartifact) for setup instructions.
  1. Optionally, under **Advanced**, select **Propagate this package manager to all child namespaces** to share this integration with child namespaces.
  2. Click **Add Package Manager**.
### Test package manager integration You can test the connection to a configured package manager to verify that Endor Labs can reach the repository. To test the connection: 1. Select **User menu** > **Integrations** from the left sidebar. 2. Click **Manage** in the package manager configuration you want to customize. 3. Click the vertical three dots of the package manager configured and select **Test Connection**. > [!NOTE] > > The integration does not perform authentication or authorization checks on the package manager repository. ### Edit package manager integration You can edit an existing package manager integration to update the name, repository URL, or authentication credentials. To edit a package manager integration: 1. Select **User menu** > **Integrations** from the left sidebar. 2. Click **Manage** next to the package manager you want to edit. 3. Click the vertical three dots on the configured integration you want to edit and select **Edit**. 4. You can modify the name, package manager URL, and credentials. 5. Click **Save Changes**. ## Configure a private Conan registry using API Use endorctl to create a `PackageManager` resource for your private Conan registry. Endor Labs supports two authentication methods: basic authentication and AWS CodeArtifact. ### Basic authentication Use basic authentication to connect to JFrog Artifactory or a self-hosted Conan server. Replace the following placeholders before running the command: * `` with your Endor Labs namespace * `` with the URL of your Conan registry (for example, `https://your-artifactory.example.com/artifactory/api/conan/conan-local`) * `` with a logical name for this registry (for example, `artifactory`) * `` with your registry username * `` with your registry password or API token ```shell expandable theme={null} endorctl api create -r PackageManager -n -d ' { "meta": { "name": "conan-private-registry", "description": "Private Conan registry with basic authentication" }, "spec": { "conan": { "priority": 1, "url": "", "remote_name": "", "basic_auth": { "username": "", "password": "" } } }, "propagate": false }' ``` ### AWS CodeArtifact authentication Use AWS CodeArtifact authentication to connect to a Conan repository hosted in AWS CodeArtifact. Endor Labs assumes the specified IAM role to obtain short-lived credentials before each scan. Before configuring this integration, create an IAM role with the required trust policy. See [Configure package manager integrations with AWS](/integrations/package-managers/aws-codeartifact) for instructions. Replace the following placeholders before running the command: * `` with your Endor Labs namespace * `` with your AWS CodeArtifact endpoint URL (for example, `https://-.d.codeartifact..amazonaws.com/conan//`) * `` with a logical name for this registry * `` with your AWS CodeArtifact domain name * `` with your AWS account ID * `` with your AWS CodeArtifact repository name * `` with the AWS region hosting your CodeArtifact repository * `` with the ARN of the IAM role Endor Labs should assume * `` with the allowed audience value configured in your trust policy ```shell expandable theme={null} endorctl api create -r PackageManager -n -d ' { "meta": { "name": "conan-codeartifact-registry", "description": "Private Conan registry with AWS CodeArtifact authentication" }, "spec": { "conan": { "priority": 1, "url": "", "remote_name": "", "aws": { "domain": "", "domain_owner": "", "repository": "", "region": "", "target_role_arn": "", "allowed_audience": "" } } }, "propagate": false }' ``` ### Fetch package manager using API Run the following command to fetch the package manager using the UUID. ```bash theme={null} endorctl api get -r packageManager -n --uuid ``` ### Delete package manager using API Run the following command to delete the package manager using the UUID. ```bash theme={null} endorctl api delete -r packageManager -n --uuid ``` # Git-based private dependencies Source: https://docs.endorlabs.com/integrations/package-managers/git-based-dependencies/index Beta
Configure Endor Labs to resolve private Git-based dependencies hosted in SCM repositories during scans. Configure Endor Labs to integrate with private Git repositories hosted on GitHub, GitLab, or Bitbucket to access private dependencies during security scanning and analysis. When your projects depend on Git-based dependencies in private repositories, Endor Labs requires authentication credentials to resolve them and generate a complete Software Bill of Materials (SBOM). > [!NOTE] > > This page covers dependencies your manifest or lockfile references directly by their Git repository URL. If your dependencies come from a private package registry, such as GitHub Packages, Artifactory, or Nexus, see [Package manager integrations](/integrations/package-managers). This integration enables Endor Labs to: * Resolve private Git-based dependencies during dependency resolution. * Generate comprehensive security analysis including private dependencies. * Maintain complete visibility into your software supply chain. You can configure two types of private Git-based dependencies: * **Same-namespace dependencies**: Dependencies your manifest or lockfile references by a Git repository URL, where that repository is already covered by an SCM integration in your namespace, such as GitHub, GitLab, or Bitbucket. Endor Labs automatically reuses credentials from every SCM integration in your namespace to resolve them, even when the integration is for a different SCM platform than the project being scanned. Select the private repositories during app installation to improve dependency resolution. This automatic credential reuse applies only to dependencies referenced by a Git repository URL. Packages hosted in a registry, including GitHub Packages, are resolved through [package manager integrations](/integrations/package-managers). You can add repositories to your existing **GitHub Cloud App Pro** installation. See [Manage GitHub Cloud App Pro](/setup-deployment/scm-integrations/github-app/manage-github-app#add-more-github-repositories-to-scan) to learn more. * **Cross-organization dependencies**: Dependencies on private repositories in another project, workspace, or organization where your SCM credentials do not apply. Configure [cross-organization dependencies](#configure-cross-organization-dependencies) and supply credentials to resolve these dependencies. They are supported across GitHub, GitLab, and Bitbucket for the following ecosystems: * Go * npm * Python * Ruby * Rust (Cargo) * Swift Endor Labs resolves private Git-based dependencies that your manifest file or lockfile references over HTTPS, including plain and PAT-embedded URLs, and does not resolve dependencies referenced over SSH. ## Configure cross-organization dependencies Configure this integration to provide additional credentials for repositories not covered by your SCM integrations, such as in a different project, workspace, or organization. Use the Git-based dependencies integration in the following scenarios: * When authentication for private repositories is not defined in standard manifest or configuration files. * When your existing SCM integration does not have access to the repositories on which your project depends. To configure credentials for cross-organization dependencies: 1. Select **User menu** > **Integrations** from the left sidebar. 2. Click **Add** next to **Git-based Dependencies**. 3. Click **Create Git Configuration**. 4. Enter a name for the credential. 5. Select the **Source Code Manager Type** where your private repository is hosted. 6. Enter the organization, group, or repository URL that hosts the private dependencies in **Host URL**. 7. Enter a token with the required permissions for the target repositories in **Access token**. See [Supported SCM platforms and access tokens](#supported-scm-platforms-and-access-tokens) for host URL formats and required permissions for each SCM. ![Git based dependencies](https://mintcdn.com/endorlabs-b4795f4f/dK5ks9zn8CES53i_/images/integrations/package-managers/git-based-dependency.webp?fit=max\&auto=format\&n=dK5ks9zn8CES53i_\&q=85\&s=a763d0b9ed45fc464dc593af1f394802) 8. Optionally, click **Advanced** and select **Propagate this configuration to all child namespaces** to apply this configuration to all child namespaces. 9. Click **Create Git Configuration**. You can add multiple credentials for different organizations or repositories on the same or different SCM platforms. ### Supported SCM platforms and access tokens Here are the supported SCM platforms and their corresponding URL formats. Ensure that the access tokens have the following permissions. \- SCM: \*\*GitHub\*\* Host_URL_format: \`https\://github.com/\{organization}\` or \`https\://github.com/\{owner}/\{repo}\` Access_Token: \[Personal access token]\(https\://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens) with at least read access to code. \- SCM: \*\*GitLab\*\* Host_URL_format: \`https\://gitlab.com/\{group}/\{subgroup1}/...\`. Access_Token: \[GitLab personal access token]\(https\://docs.gitlab.com/ee/user/profile/personal_access_tokens.html#create-a-personal-access-token) with at least \`read_api\` permission. If a standard GitLab personal access token is restricted or unavailable, use a \[service account token]\(https\://docs.gitlab.com/user/profile/service_accounts/#view-and-manage-personal-access-tokens-for-a-service-account). \- SCM: \*\*Bitbucket\*\* Host_URL_format: \`https\://bitbucket.org/\{workspace}/\{repo}\` or \`https\://bitbucket.org/\{workspace}/projects/\{project-key}\` Access_Token: \[Workspace access token]\(https\://support.atlassian.com/bitbucket-cloud/docs/create-a-workspace-access-token/) or \[project access token]\(https\://support.atlassian.com/bitbucket-cloud/docs/create-a-project-access-token/) with at least \`Project: read\` permission. ### Test Git-based dependency integration You can test the connection for a configured Git-based dependency integration to verify that Endor Labs can reach the repository. To test the connection: 1. Select **User menu** > **Integrations** from the left sidebar. 2. Click **Manage** next to the **Git-based Dependencies** integration. 3. Click the vertical three dots on the integration you want to test and select **Test Connection**. > [!NOTE] > > The test checks basic connectivity to the configured host. It does not verify full authentication or authorization with your Git host or across all repositories your scan may require. ### Edit Git-based dependency integration Edit an existing Git-based dependency integration to update the name, host URL, or access token. To edit the integration: 1. Select **User menu** > **Integrations** from the left sidebar. 2. Click **Manage** next to the **Git-based Dependencies** integration. 3. Click the vertical three dots on the integration you want to edit and select **Edit**. 4. You can modify the name, host URL, or access token as needed. 5. Optionally, click **Advanced** and select **Propagate this configuration to all child namespaces** to apply the dependency configuration to all child namespaces. 6. Click **Save Changes**. ### Delete Git-based dependency integration Delete a Git-based dependency integration when you no longer require that credential or access to that repository. Scans will no longer resolve dependencies from that source. To delete the integration: 1. Select **User menu** > **Integrations** from the left sidebar. 2. Click **Manage** next to the **Git-based Dependencies** integration. 3. Click the vertical three dots on the integration you want to delete and select **Delete**. 4. Click **Delete this Dependency?** to confirm the deletion when prompted. ## Configure Git-based dependency integration using API Use the Endor Labs API to create, fetch, update, and delete SCM credentials for Git-based dependencies. Provide access tokens for the SCM platforms that host your private dependencies so Endor Labs can authenticate and resolve them during scans. ### Create an SCM credential Run the following command to create an SCM credential resource. Replace: * `` with your namespace. * `` with a unique name for this credential in your namespace. * `PLATFORM_SOURCE_SCM` with the SCM platform constant for your host: `PLATFORM_SOURCE_GITHUB`, `PLATFORM_SOURCE_GITLAB`, or `PLATFORM_SOURCE_BITBUCKET`. * `` with the organization or repository URL that hosts the private dependencies. * `` with a valid access token for the target SCM platform. * `` with a description for the credential. You can optionally set `propagate` to `true` to ensure the credential is available in child namespaces. ```bash theme={null} endorctl api create -r SCMCredential -n -d '{ "meta": { "name": "" }, "spec": { "platform_source": "PLATFORM_SOURCE_SCM", "target_url": "", "access_token": "", "description": "" }, "propagate": false }' ``` ### List SCM credentials using API Run the following command to list all SCM credentials in a namespace. ```bash theme={null} endorctl api list -r SCMCredential -n ``` ### Fetch an SCM credential using API Run the following command to fetch a specific SCM credential using the UUID. ```bash theme={null} endorctl api get -r SCMCredential -n --uuid ``` ### Update an SCM credential Run the following command to update the access token or the host URL. Replace: * `` with your namespace. * `` with the credential's UUID. * `PLATFORM_SOURCE_SCM` with the SCM platform: `PLATFORM_SOURCE_GITHUB`, `PLATFORM_SOURCE_GITLAB`, or `PLATFORM_SOURCE_BITBUCKET`. * `https://platform.org` with the configured organization or repository URL for this credential. * `abcdef12345` with the new access token. Set `--field-mask` to only the fields you are updating, such as `spec.access_token` to update the token or `spec.access_token,spec.target_url` when updating both the access token and host URL. ```bash theme={null} endorctl api update -r SCMCredential -n --uuid \ --field-mask spec.access_token \ -d '{ "spec": { "platform_source": "PLATFORM_SOURCE_SCM", "target_url": "https://platform.org", "access_token": "abcdef12345" } }' ``` ### Delete an SCM credential using API Run the following command to delete an SCM credential using the UUID. Deleting a credential revokes access to the private repositories and can cause dependency resolution errors in subsequent scans. ```bash theme={null} endorctl api delete -r SCMCredential -n --uuid ``` # Configure integration with Google Artifact Registry Source: https://docs.endorlabs.com/integrations/package-managers/google-artifact-registry/index Learn how to configure Endor Labs to authenticate with Google Artifact Registry for agentless dependency scanning. Configure Endor Labs to integrate with Google Artifact Registry (GAR) to resolve private npm, Maven, Gradle, and PyPI packages during agentless scans. GAR uses short-lived OAuth2 access tokens instead of static credentials. Endor Labs creates these tokens automatically at scan time from a service account key that you store securely in the platform. When you configure a GAR integration, Endor Labs stores your encrypted service account key. At scan start, Endor Labs creates a short-lived OAuth2 access token from the stored key, and injects the registry URL and token into the package manager resolver. > [!NOTE] > > The token is valid for approximately one hour. ## Supported ecosystems \- Ecosystem: npm Registry URL: https\://\{location}-npm.pkg.dev/\{project}/\{repo}/ \- Ecosystem: Maven Registry URL: https\://\{location}-maven.pkg.dev/\{project}/\{repo} \- Ecosystem: Gradle Registry URL: https\://\{location}-maven.pkg.dev/\{project}/\{repo} \- Ecosystem: PyPI Registry URL: https\://\{location}-python.pkg.dev/\{project}/\{repo}/simple/ > [!NOTE] > > NuGet, Cargo, RubyGems, CocoaPods, and Swift are not supported because Google Artifact Registry does not offer these formats. ## Set up a GCP service account To create a GCP service account with read access to your Artifact Registry repositories: 1. In Google Cloud Console, go to **IAM & Admin** > **Service Accounts**. 2. Select **Create Service Account** and enter a name such as `endor-gar-reader`. 3. Grant the service account the `roles/artifactregistry.reader` role on the target project or repository. 4. Open the service account and select **Keys**. 5. Select **Add Key** > **Create new key**. 6. Choose **JSON** as the key type and select **Create**. 7. Save the downloaded JSON key file and use it when you add the integration. ## Configure a GAR package manager integration To connect Endor Labs to your Artifact Registry repositories: 1. Select **User menu** > **Integrations** from the left sidebar. 2. Select **Add** next to the package manager type you want to configure. 3. Select **Add Package Manager**. 4. Enter a **Name** for the integration. 5. Choose **Google Artifact Registry** as the authentication type. 6. Enter your **GCP Project ID**, the ID of the GCP project that hosts the Artifact Registry repository. 7. Enter the **Location**, the GCP region where your repository is hosted, for example `us-central1`. 8. Enter the **Repository**, the name of your GAR repository. 9. Enter the full contents of the downloaded JSON key file in **Service Account Key**. 10. Optionally, under **Advanced**, select **Propagate this package manager to all child namespaces** to share this integration with child namespaces. 11. Optionally, under **Advanced**, select **Use this package manager as a plugin repository** if this registry hosts build plugins rather than library dependencies. 12. Click **Add Package Manager**. Endor Labs tests the connection immediately. If the status indicates a failure, verify that the service account key is valid and that the service account has the roles/artifactregistry.reader role on the target repository. > [!WARNING] > > After the integration is saved, the service account key is redacted from all API responses. Store a copy of the JSON key file in a secure location before submitting it. ## Configure a GAR package manager integration using the API Use endorctl to create a GAR package manager resource through the API. The following table lists the parameters required to create the integration. > [!NOTE] > > Set `auth_provider.package_manager_type` to match the ecosystem you're configuring, for example `PACKAGE_MANAGER_TYPE_NPM` for npm. \- Parameter: \`\\` Description: Your Endor Labs namespace \- Parameter: \`\\` Description: A descriptive name for the integration \- Parameter: \`\\` Description: Your GCP project ID \- Parameter: \`\\` Description: The GAR repository region, for example \`us-central1\` \- Parameter: \`\\` Description: The name of your GAR repository \- Parameter: \`\\` Description: The full JSON contents of your service account key file ```bash theme={null} endorctl api create -r PackageManager -n -d '{ "meta": { "name": "" }, "spec": { "auth_provider": { "package_manager_type": "PACKAGE_MANAGER_TYPE_NPM", "gar": { "project_id": "", "location": "", "repository": "", "service_account_key": "" } }, "npm": { "priority": 1 } }, "propagate": true }' ``` ```bash theme={null} endorctl api create -r PackageManager -n -d '{ "meta": { "name": "" }, "spec": { "auth_provider": { "package_manager_type": "PACKAGE_MANAGER_TYPE_MVN", "gar": { "project_id": "", "location": "", "repository": "", "service_account_key": "" } }, "mvn": { "priority": 1 } }, "propagate": true }' ``` > [!NOTE] > > Endor Labs automatically sets the Gradle property key to `ARTIFACT_REGISTRY_AUTH_TOKEN` at scan time. Don't include `property_key_name` or `property_key_value` in the request. Gradle also has no `priority` field. ```bash theme={null} endorctl api create -r PackageManager -n -d '{ "meta": { "name": "" }, "spec": { "auth_provider": { "package_manager_type": "PACKAGE_MANAGER_TYPE_GRADLE", "gar": { "project_id": "", "location": "", "repository": "", "service_account_key": "" } }, "gradle": {} }, "propagate": true }' ``` ```bash theme={null} endorctl api create -r PackageManager -n -d '{ "meta": { "name": "" }, "spec": { "auth_provider": { "package_manager_type": "PACKAGE_MANAGER_TYPE_PYPI", "gar": { "project_id": "", "location": "", "repository": "", "service_account_key": "" } }, "pypi": { "priority": 1 } }, "propagate": true }' ``` ## Resolve snapshot dependencies Google Artifact Registry repositories can host snapshot versions of Maven packages, such as `4.0-SNAPSHOT`. Endor Labs doesn't resolve snapshot versions by default. See [Private package manager integration for Maven](/integrations/package-managers/maven-private-package-manager#resolve-snapshot-dependencies) to turn on snapshot resolution for a Maven integration. ## Known limitations * **Token lifetime**: GAR access tokens expire approximately one hour after they are minted. A token is minted at the start of the scan and used for package resolution. If package resolution begins more than one hour after the scan starts, authentication fails with a `401 Unauthorized` error. Re-run the scan to generate a new access token and start a fresh one-hour window. * **Long-lived service account key**: The JSON key you provide remains valid until you revoke it in GCP. Rotate the key periodically following your organization's credential management practices and update the integration in Endor Labs after rotation. * **Workload Identity Federation**: Keyless authentication through Workload Identity Federation is not supported in this release. # Private package manager integration for Gradle Source: https://docs.endorlabs.com/integrations/package-managers/gradle-private-package-manager/index Learn how to configure Endor Labs to access private Gradle repositories for dependency resolution and security scanning. Configure Endor Labs to integrate with private Gradle repositories to access proprietary dependencies during security scanning and analysis. When your Gradle projects depend on artifacts hosted in private or corporate repositories, Endor Labs requires authentication credentials to resolve these dependencies and generate a complete bill of materials. This integration enables Endor Labs to: * Access private Gradle artifacts during dependency resolution * Generate comprehensive security analysis including private dependencies * Maintain complete visibility into your software supply chain Endor Labs generally respects package authentication and configuration settings and a package manager integration is usually not required to scan private packages successfully. * Use package manager integrations to simplify scanning when authentication to private repositories is not part of standard manifest or settings files. * Package manager integrations allow you to set custom repositories for each package ecosystem and the priority of each repository for scanning. To set up a package manager integration: 1. Select **User menu** > **Integrations** from the left sidebar. 2. Select **Add** next to the package manager configuration you want to add. 3. Select **Add Package Manager**. 4. Enter a **Name** for the integration. 5. Choose an authentication type and complete the required fields. Enter your registry URL and static credentials. AWS CodeArtifact authentication uses OIDC token federation. No static credentials are stored. Enter the following fields:
  • **Domain**: Name of your AWS CodeArtifact domain.
  • **Domain Owner**: AWS account ID that owns the domain.
  • **Repository**: Name of the CodeArtifact repository.
  • **Target Role ARN**: ARN of the IAM role Endor Labs assumes.
  • **Allowed Audience**: Audience value specified when you created the OIDC provider.
  • **Region**: AWS region of the repository.
See [Configure integration with AWS CodeArtifact](/integrations/package-managers/aws-codeartifact) for setup instructions. Google Artifact Registry authentication uses short-lived OAuth2 tokens minted from a service account key. No static registry credentials are stored. Enter the following fields:
  • **GCP Project ID**: ID of the GCP project that hosts the Artifact Registry repository.
  • **Location**: GCP region of the repository, for example `us-central1`.
  • **Repository**: Name of the GAR repository.
  • **Service Account Key**: Full JSON contents of a GCP service account key.
See [Configure integration with Google Artifact Registry](/integrations/package-managers/google-artifact-registry) for setup instructions.
  1. Optionally, under **Advanced**, select **Propagate this package manager to all child namespaces** to share this integration with child namespaces.
  2. Click **Add Package Manager**.
### Test package manager integration > [!NOTE] > > For Gradle, connection testing applies only to AWS CodeArtifact and Google Artifact Registry integrations. A Basic integration has no endpoint to test. It shows **Last Tested: N/A** and you can validate it by running a scan or a manual curl against your private registry. You can test the connection to a configured package manager to verify that Endor Labs can reach the repository. To test the connection: 1. Select **User menu** > **Integrations** from the left sidebar. 2. Click **Manage** in the package manager configuration you want to customize. 3. Click the vertical three dots of the package manager configured and select **Test Connection**. > [!NOTE] > > The integration does not perform authentication or authorization checks on the package manager repository. ### Edit package manager integration You can edit an existing package manager integration to update the name, repository URL, or authentication credentials. To edit a package manager integration: 1. Select **User menu** > **Integrations** from the left sidebar. 2. Click **Manage** next to the package manager you want to edit. 3. Click the vertical three dots on the configured integration you want to edit and select **Edit**. 4. You can modify the name, package manager URL, and credentials. 5. Click **Save Changes**. ## Private package manager integration for Gradle using API Configure private package manager integration with Gradle to authenticate and fetch dependencies from private repositories during scans. Gradle requires valid credentials, such as AWS access keys and GitHub or GitLab tokens, to access private repositories and fetch dependencies. Provide these credentials through the endorctl API call for GitHub App scans to run successfully. The variable names you define (like `mavenAccessKey`, `mavenSecretKey`) must exactly match the property names referenced in `settings.gradle`, `build.gradle`, or `gradle.properties` files when configuring credentials. For more information on how to align variable names with your build configuration, refer to [Declaring private repositories.](https://docs.gradle.org/current/userguide/declaring_repositories.html#sub:declaring-custom-repository-basics) > [!NOTE] > > You can configure these credentials for the scans performed through the GitHub App. ### Set Gradle credentials Use endorctl to configure your repository credentials. You can set the necessary Gradle properties, allowing access to private repositories during the Gradle build process. For example, to authenticate with an AWS S3-backed Maven repository, run the following commands to set the `mavenAccessKey` and `mavenSecretKey` properties. Replace `namespace` with your namespace. ```shell theme={null} endorctl api create -n -r PackageManager -d '{ "meta": { "name": "gradle properties" }, "spec": { "gradle": { "property_key_name": "mavenAccessKey", "property_key_value": "your-access-key" } } }' ``` ```shell theme={null} endorctl api create -n -r PackageManager -d '{ "meta": { "name": "gradle properties" }, "spec": { "gradle": { "property_key_name": "mavenSecretKey", "property_key_value": "your-secret-key" } } }' ``` These credentials will then be available to your Gradle build at scan time. All values configured through the API are automatically exported as environment variables. ### Considerations When configuring Gradle credentials, consider the following scenarios: #### AWS credentials with scan profile If you link a scan profile to your project, AWS credentials are directly written into `~/.gradle/gradle.properties` and require exact key matches. You can use one of the following combinations: * `AWS_ACCESS_KEY` and `AWS_SECRET_KEY` * `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` #### Resolve Gradle plugins from a private Maven registry If your Gradle build fails to resolve plugins hosted in a private Maven-format registry, configure a Gradle package manager integration. Use the same Gradle integration you already use for private library dependency resolution. > [!NOTE] > > A Gradle package manager integration always applies to plugin resolution as well as library dependency resolution. Set the **Property Key** and **Property Value** fields to match your `settings.gradle` `pluginManagement` block declares for authentication. Gradle supports two credential types: * **PasswordCredentials**: A username property and a password property. * **HttpHeaderCredentials**: A header-based credential, commonly a bearer token sent in the `Authorization` header. endorctl exports each configured property as an `ORG_GRADLE_PROJECT_` environment variable. > [!TIP] > > The `` value is case sensitive. It must match the property name your `pluginManagement` block's `credentials` or `url` declarations reference, such as `artifactory_contextUrl` or `artifactory_password`. For more information, refer to [Declaring private repositories.](https://docs.gradle.org/current/userguide/declaring_repositories.html#sub:declaring-custom-repository-basics) #### Authenticate using mutual TLS Use mutual TLS to securely authenticate to artifact repositories. Currently, you can configure mutual TLS only through the API. See [mTLS authentication](/integrations/package-managers/mtls-authentication) for more information. ### Fetch package manager using API Run the following command to fetch the package manager using the UUID. ```bash theme={null} endorctl api get -r packageManager -n --uuid ``` ### Delete package manager using API Run the following command to delete the package manager using the UUID. ```bash theme={null} endorctl api delete -r packageManager -n --uuid ``` # Set up custom package repositories Source: https://docs.endorlabs.com/integrations/package-managers/index Learn how to configure custom package repositories for dependency resolution. Suppose your software components are private and reside in an internal package repository. In that case, you must provide authentication credentials to the registry, to create a complete bill of materials or perform static analysis. > [card] [Private package registries](#package-manager-integration-support-matrix) > > Authenticate to private Maven, npm, PyPI, Gradle, NuGet, Swift, Ruby, and PHP registries using static credentials or mTLS. > [card] [AWS CodeArtifact](/integrations/package-managers/aws-codeartifact) > > Use OIDC token federation to authenticate to AWS CodeArtifact without storing static credentials. > [card] [Google Artifact Registry](/integrations/package-managers/google-artifact-registry) > > Authenticate using short-lived OAuth2 tokens minted from a GCP service account key. > [card] [Git-based dependencies](/integrations/package-managers/git-based-dependencies) > > Resolve private Git-based dependencies hosted on GitHub, GitLab, or Bitbucket during scans. > [card] [mTLS authentication](/integrations/package-managers/mtls-authentication) > > Authenticate to private package repositories using mutual TLS certificates. You must set up custom package repositories if: * Authentication credentials for your private registry are not stored in project manifest or settings files, such as `.npmrc`, `settings.xml`, or `pip.conf`. * You are using the Endor Labs GitHub App or agentless scanning, where local package manager configuration is not available at scan time. * You want to specify a custom repository URL for a package ecosystem instead of using the default public registry. * You want to control the priority order of repositories used during dependency resolution. If your software components are private and hosted in AWS CodeArtifact, set up an OpenID Connect provider in AWS. Create roles with trust policies to allow Endor Labs access to your CodeArtifact repositories. See [Configure package manager integrations with AWS](/integrations/package-managers/aws-codeartifact). You can authenticate to private package artifact repositories using mutual TLS. See [mTLS authentication](/integrations/package-managers/mtls-authentication) to learn how to set up and authenticate. ## Package manager integration support matrix The following support matrix details support for package manager integrations: \- Language: \[Java]\(/integrations/package-managers/maven-private-package-manager) Ecosystem: Maven (\`mvn://\`) Support: -yes- mTLS: -yes- \- Language: \[JavaScript]\(/integrations/package-managers/npm-private-package-manager) Ecosystem: npm (\`npm://\`) Support: -yes- mTLS: -yes- \- Language: \[Python]\(/integrations/package-managers/pypi-private-package-manager) Ecosystem: PyPI (\`pypi://\`) Support: -yes- mTLS: -yes- \- Language: \[Gradle]\(/integrations/package-managers/gradle-private-package-manager) Ecosystem: Gradle Properties Support: -yes- mTLS: -yes- \- Language: \[.NET/C#]\(/integrations/package-managers/nuget-private-package-manager) Ecosystem: NuGet (\`nuget://\`) Support: -yes- mTLS: -no- \- Language: \[Swift]\(/integrations/package-managers/swift-private-package-manager) Ecosystem: Swift (\`swift://\`) Support: -yes- mTLS: -no- \- Language: \[Ruby]\(/integrations/package-managers/rubygems-private-package-manager) Ecosystem: Gem (\`gem://\`) Support: -yes- mTLS: -no- \- Language: \[PHP]\(/integrations/package-managers/packagist-private-package-manager) Ecosystem: Composer (\`composer://\`) Support: -yes- mTLS: -no- \- Language: \[C/C++ (Conan)]\(/integrations/package-managers/conan-private-package-manager) Ecosystem: Conan (\`conan://\`) Support: -yes- mTLS: -no- > [!NOTE] > > Private package manager integrations for Go, Rust, and Scala are not supported. > > Endor Labs resolves Go and Rust dependencies that your manifest references by their Git repository URL as cross-organization dependencies. See [Git-based dependencies](/integrations/package-managers/git-based-dependencies#configure-cross-organization-dependencies). > > Scala projects that resolve dependencies through sbt cannot authenticate to a private registry when you scan with the Endor Labs GitHub App or agentless scanning. See [Scala](/scan/sca/scala#resolve-sbt-dependencies-from-private-package-registries) to scan an sbt project that depends on a private registry. ## Change package manager integration priority Package manager integrations allow you to set the priority of each package repository used by a package manager in your tenant namespace. This defines the location from which a package manager looks when it attempts to resolve dependencies for a software package. To change the package manager integration priority: 1. Click and hold the integration you would like to change the priority of. 2. Drag the integration to the priority spot that is most frequently used by your organization. # Private package manager integration for Maven Source: https://docs.endorlabs.com/integrations/package-managers/maven-private-package-manager/index Learn how to configure Endor Labs to access private Maven repositories for dependency resolution and security scanning. Configure Endor Labs to integrate with private Maven repositories to access proprietary dependencies during security scanning and analysis. When your Maven projects depend on artifacts hosted in private or corporate repositories, Endor Labs requires authentication credentials to resolve these dependencies and generate a complete bill of materials. This integration enables Endor Labs to: * Access private Maven artifacts during dependency resolution * Generate comprehensive security analysis including private dependencies * Maintain complete visibility into your software supply chain Endor Labs generally respects package authentication and configuration settings and a package manager integration is usually not required to scan private packages successfully. * Use package manager integrations to simplify scanning when authentication to private repositories is not part of standard manifest or settings files. * Package manager integrations allow you to set custom repositories for each package ecosystem and the priority of each repository for scanning. To set up a package manager integration: 1. Select **User menu** > **Integrations** from the left sidebar. 2. Select **Add** next to the package manager configuration you want to add. 3. Select **Add Package Manager**. 4. Enter a **Name** for the integration. 5. Choose an authentication type and complete the required fields. Enter your registry URL and static credentials.
  • Enter the **URL** of your private package registry.
  • Enter your **Username**.
  • Enter your **Password**.
AWS CodeArtifact authentication uses OIDC token federation. No static credentials are stored. Enter the following fields:
  • **Domain**: Name of your AWS CodeArtifact domain.
  • **Domain Owner**: AWS account ID that owns the domain.
  • **Repository**: Name of the CodeArtifact repository.
  • **Target Role ARN**: ARN of the IAM role Endor Labs assumes.
  • **Allowed Audience**: Audience value specified when you created the OIDC provider.
  • **Region**: AWS region of the repository.
See [Configure integration with AWS CodeArtifact](/integrations/package-managers/aws-codeartifact) for setup instructions. Google Artifact Registry authentication uses short-lived OAuth2 tokens minted from a service account key. No static registry credentials are stored. Enter the following fields:
  • **GCP Project ID**: ID of the GCP project that hosts the Artifact Registry repository.
  • **Location**: GCP region of the repository, for example `us-central1`.
  • **Repository**: Name of the GAR repository.
  • **Service Account Key**: Full JSON contents of a GCP service account key.
See [Configure integration with Google Artifact Registry](/integrations/package-managers/google-artifact-registry) for setup instructions.
  1. Optionally, under **Advanced**, select **Propagate this package manager to all child namespaces** to share this integration with child namespaces.
  2. Optionally, under **Advanced**, select **Use this package manager as a plugin repository** if this registry hosts build plugins rather than library dependencies. > [!NOTE] > > When enabled, the registry is added to `` for build plugin resolution only and not for library dependency resolution. To use a registry for both purposes, create two separate Maven package manager integrations. > > This toggle applies to Maven builds only. To resolve Gradle plugins from a private registry, configure a Gradle package manager integration instead. See [Resolve Gradle plugins from a private Maven registry](/integrations/package-managers/gradle-private-package-manager#resolve-gradle-plugins-from-a-private-maven-registry).
  3. Click **Add Package Manager**.
### Test package manager integration You can test the connection to a configured package manager to verify that Endor Labs can reach the repository. To test the connection: 1. Select **User menu** > **Integrations** from the left sidebar. 2. Click **Manage** in the package manager configuration you want to customize. 3. Click the vertical three dots of the package manager configured and select **Test Connection**. > [!NOTE] > > The integration does not perform authentication or authorization checks on the package manager repository. ### Edit package manager integration You can edit an existing package manager integration to update the name, repository URL, or authentication credentials. To edit a package manager integration: 1. Select **User menu** > **Integrations** from the left sidebar. 2. Click **Manage** next to the package manager you want to edit. 3. Click the vertical three dots on the configured integration you want to edit and select **Edit**. 4. You can modify the name, package manager URL, and credentials. 5. Click **Save Changes**. ## Private package manager integration for Maven using API Use endorctl to create a package manager resource through an API call and configure authentication for accessing private repositories during scans. > [!NOTE] > > Maven package manager configurations apply only to Maven build projects and not to Gradle build projects that use Maven repositories. Run the following command to create a package manager resource and authenticate to a private repository. Replace: * `username` with your package registry username * `xxxx` with your package registry password * `namespace` with your namespace. ```shell expandable theme={null} endorctl api create -r PackageManager -n -d ' { "meta": { "name": "test", "description": "test" }, "spec": { "mvn": { "priority": 1, "url": "package manager url", "user": "username", "password": "xxxx" } }, "propagate": true }' ``` > [!NOTE] > > **Configure as a plugin repository** > > To configure a Maven integration as a plugin repository, add `"is_plugin_repository": true` in the spec. ### Resolve snapshot dependencies Private Maven repositories can host snapshot versions of a package, such as `4.0-SNAPSHOT`. Endor Labs doesn't resolve snapshot versions by default. Turn on snapshots for the package manager integration so that your scans resolve them. Snapshot resolution is a property of the integration rather than of the registry that backs it. The same setting applies to Maven repositories hosted in AWS CodeArtifact and Google Artifact Registry. 1. Find the UUID of the Maven package manager integration you want to update. Replace `` with your namespace. Maven integrations are the ones that return a `spec.mvn` block. ```shell theme={null} endorctl api list -r PackageManager -n --field-mask uuid,meta.name,spec.mvn.priority,spec.mvn.url ``` 2. Turn on snapshots for that integration. Replace `` with the UUID from the previous step. ```shell theme={null} endorctl api update -r PackageManager \ -n \ --uuid \ --field-mask spec.mvn.snapshots \ -d '{"spec": {"mvn": {"snapshots": true}}}' ``` Your next scan resolves snapshot versions from the configured repository. ### Fetch package manager using API Run the following command to fetch the package manager using the UUID. ```bash theme={null} endorctl api get -r packageManager -n --uuid ``` ### Delete package manager using API Run the following command to delete the package manager using the UUID. ```bash theme={null} endorctl api delete -r packageManager -n --uuid ``` # Authenticate to private packages using mTLS Source: https://docs.endorlabs.com/integrations/package-managers/mtls-authentication/index Learn how to configure custom package repositories for dependency resolution using mTLS. Mutual Transport Layer Security (mTLS) is a protocol that mandates both the sender and receiver to authenticate each other before establishing a secure connection. Each party verifies the other's certificate, ensuring authenticity and trust. This establishes a secure connection between both the parties. Use mutual TLS to securely authenticate to artifact repositories. ## Set up mTLS Perform the following steps to set up a secure mTLS connection: > [!NOTE] > > If your certificate is in PKCS12 format, you can start with step 1. If you already have a PEM certificate, you can skip to step 2. 1. Generate client certificate and client key Run the following command to generate the client certificate in the Privacy Enhanced Mail (PEM) format. Replace `` with the name of your `.p12` file. ```shell theme={null} openssl pkcs12 -in .p12 -clcerts -nokeys | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > client.crt ``` Run the following command to generate the client key in the Privacy Enhanced Mail (PEM) format. Replace `` with the name of your `.p12` file. ```shell theme={null} openssl pkcs12 -in .p12 -nocerts -nodes | sed -ne '/-BEGIN PRIVATE KEY-/,/-END PRIVATE KEY-/p' > client.key ``` Ensure you have your PKCS12 certificate and its password ready. When prompted, enter the password. 2. Format the client certificate and client key as json Run the following command to format the client certificate as json: ```shell theme={null} awk '{printf "%s\\n", $0}' client.crt ``` Run the following command to format the client key as json: ```shell theme={null} awk '{printf "%s\\n", $0}' client.key ``` 3. Create a package manager resource after generating the client certificate and client key. ### Authenticate to Gradle repository Run the following command to create a package manager resource and authenticate to Gradle artifact repository. Replace `namespace` with your namespace. ```shell expandable theme={null} endorctl api create -n -r packageManager -d '{ "meta": { "name": "test mtls for npm creation", "description": "test mtls creation" }, "spec": { "gradle": { "property_key_name": "ENDOR_MTLS_CONFIGURATION", "property_key_value": "any non empty value", "mtls": { "client_cert": "formatted pem client.crt", "client_key": "formatted pem client.key" } } } }' ``` > [!NOTE] > > The `property_key_name` must match exactly **ENDOR_MTLS_CONFIGURATION**. ### Authenticate to Maven repository Run the following command to create a package manager resource and authenticate to Maven repository. Replace: * `namespace` with your namespace. * `https://nexus.example.com/repository/public` with your Maven repository URL. ```shell expandable theme={null} endorctl api create -n -r packageManager -d '{ "meta": { "name": "test mtls for npm creation", "description": "test mtls creation" }, "spec": { "mvn": { "url": "https://nexus.example.com/repository/public", "mtls": { "client_cert": "formatted pem client.crt", "client_key": "formatted pem client.key" } } } }' ``` ### Authenticate to PyPI repository Run the following command to create a package manager resource and authenticate to PyPI repository. Replace: * `namespace` with your namespace. * `https://nexus.example.com/repository/pypi` with your PyPI repository URL. ```shell expandable theme={null} endorctl api create -n -r packageManager -d '{ "meta": { "name": "test mtls for python creation", "description": "test mtls creation" }, "spec": { "pypi": { "priority": 1, "url": "https://nexus.example.com/repository/pypi", "mtls": { "client_cert": "formatted pem client.crt", "client_key": "formatted pem client.key" } } } }' ``` ### Authenticate to npm registry Run the following command to create a package manager resource and authenticate to npm registry. Replace: * `namespace` with your namespace. * `https://nexus.example.com/repository/npm` with your npm registry URL. ```shell expandable theme={null} endorctl api create -n -r packageManager -d '{ "meta": { "name": "test mtls for npm creation", "description": "test mtls creation" }, "spec": { "npm": { "url": "https://nexus.example.com/repository/npm", "mtls": { "client_cert": "formatted pem client.crt", "client_key": "formatted pem client.key" } } } }' ``` # Private package manager integration for npm Source: https://docs.endorlabs.com/integrations/package-managers/npm-private-package-manager/index Learn how to configure Endor Labs to access private npm repositories for dependency resolution and security scanning. Configure Endor Labs to integrate with private npm repositories to access proprietary dependencies during security scanning and analysis. When your JavaScript or Node.js projects depend on packages in private or corporate repositories, Endor Labs needs authentication credentials. These credentials let Endor Labs resolve dependencies and generate a complete bill of materials. > [!NOTE] > > If your manifest or lockfile references a dependency directly by its Git repository URL, see [Git-based dependencies](/integrations/package-managers/git-based-dependencies). This integration enables Endor Labs to: * Access private npm packages during dependency resolution * Generate comprehensive security analysis including private dependencies * Maintain complete visibility into your software supply chain Endor Labs generally respects package authentication and configuration settings and a package manager integration is usually not required to scan private packages successfully. * Use package manager integrations to simplify scanning when authentication to private repositories is not part of standard manifest or settings files. * Package manager integrations allow you to set custom repositories for each package ecosystem and the priority of each repository for scanning. To set up a package manager integration: 1. Select **User menu** > **Integrations** from the left sidebar. 2. Select **Add** next to the package manager configuration you want to add. 3. Select **Add Package Manager**. 4. Enter a **Name** for the integration. 5. Choose an authentication type and complete the required fields. Enter your registry URL and static credentials. > [!WARNING] > > If you do not enter a scope, all dependency downloads are routed to this registry and the public npm registry is not attempted as a fallback. This may cause scans to fail if your private registry does not host all required packages. AWS CodeArtifact authentication uses OIDC token federation. No static credentials are stored. Enter the following fields:
  • **Domain**: Name of your AWS CodeArtifact domain.
  • **Domain Owner**: AWS account ID that owns the domain.
  • **Repository**: Name of the CodeArtifact repository.
  • **Target Role ARN**: ARN of the IAM role Endor Labs assumes.
  • **Allowed Audience**: Audience value specified when you created the OIDC provider.
  • **Region**: AWS region of the repository.
See [Configure integration with AWS CodeArtifact](/integrations/package-managers/aws-codeartifact) for setup instructions. Google Artifact Registry authentication uses short-lived OAuth2 tokens minted from a service account key. No static registry credentials are stored. Enter the following fields:
  • **GCP Project ID**: ID of the GCP project that hosts the Artifact Registry repository.
  • **Location**: GCP region of the repository, for example `us-central1`.
  • **Repository**: Name of the GAR repository.
  • **Service Account Key**: Full JSON contents of a GCP service account key.
See [Configure integration with Google Artifact Registry](/integrations/package-managers/google-artifact-registry) for setup instructions.
  1. Optionally, under **Advanced**, select **Propagate this package manager to all child namespaces** to share this integration with child namespaces.
  2. Click **Add Package Manager**.
### Test package manager integration You can test the connection to a configured package manager to verify that Endor Labs can reach the repository. To test the connection: 1. Select **User menu** > **Integrations** from the left sidebar. 2. Click **Manage** in the package manager configuration you want to customize. 3. Click the vertical three dots of the package manager configured and select **Test Connection**. > [!NOTE] > > The integration does not perform authentication or authorization checks on the package manager repository. ### Edit package manager integration You can edit an existing package manager integration to update the name, repository URL, or authentication credentials. To edit a package manager integration: 1. Select **User menu** > **Integrations** from the left sidebar. 2. Click **Manage** next to the package manager you want to edit. 3. Click the vertical three dots on the configured integration you want to edit and select **Edit**. 4. You can modify the name, package manager URL, and credentials. 5. Click **Save Changes**. ## Package manager integration for npm using API Use endorctl to create a package manager resource for your private npm registry and authenticate using one of the following tokens: * Base64-encoded username and password * Basic authentication token > [!NOTE] > > You can configure multiple npm package managers only if each configuration has its own scope. ### Base64-encoded authentication token 1. Generate base64 token To generate the base64 encoded username and password, run the following command. Copy the token generated and store it in a secure place. ```shell theme={null} echo -n 'username:plain_password' | openssl base64 ``` 2. Create package manager resource Run the following command to create a package manager resource and authenticate to npm registry using base64 token without scope. Replace: * `base64 token` with the generated base64 encoded username and password in the previous step. * `namespace` with your namespace. ```shell theme={null} endorctl api create -r PackageManager -n -d ' { "meta": { "name": "test npm with base64", "description": "test npm with base 64 token without scope" }, "spec": { "npm": { "priority": 1, "url": "package manager url" "token": "base64 token" } }, "propagate": true } ' ``` ### Basic authentication token Run the following command to create a package manager resource and authenticate to npm registry using basic authentication token with scope. Replace: * `xxx` with your authentication token. * `namespace` with your namespace. * `scope` with your scope. For example, `"scope":"abc-corp"`. ```shell expandable theme={null} endorctl api create -r PackageManager -n -d ' { "meta": { "name": "test npm with auth token", "description": "test npm with auth token with scope" }, "spec": { "npm": { "priority": 1, "scope": "scope", "url": "package manager url", "auth_token": "xxxx" } }, "propagate": true } ' ``` ### Fetch package manager using API Run the following command to fetch the package manager using the UUID. ```bash theme={null} endorctl api get -r packageManager -n --uuid ``` ### Delete package manager using API Run the following command to delete the package manager using the UUID. ```bash theme={null} endorctl api delete -r packageManager -n --uuid ``` # Private package manager integration for NuGet Source: https://docs.endorlabs.com/integrations/package-managers/nuget-private-package-manager/index Learn how to configure Endor Labs to access private NuGet repositories for dependency resolution and security scanning. Configure Endor Labs to integrate with private NuGet repositories to access proprietary dependencies during security scanning and analysis. When your .NET projects depend on packages hosted in private or corporate repositories, Endor Labs requires authentication credentials to resolve these dependencies and generate a complete bill of materials. This integration enables Endor Labs to: * Access private NuGet packages during dependency resolution * Generate comprehensive security analysis including private dependencies * Maintain complete visibility into your software supply chain Endor Labs generally respects package authentication and configuration settings and a package manager integration is usually not required to scan private packages successfully. * Use package manager integrations to simplify scanning when authentication to private repositories is not part of standard manifest or settings files. * Package manager integrations allow you to set custom repositories for each package ecosystem and the priority of each repository for scanning. To set up a package manager integration: 1. Select **User menu** > **Integrations** from the left sidebar. 2. Select **Add** next to the package manager configuration you want to add. 3. Select **Add Package Manager**. 4. Enter a **Name** for the integration. 5. Choose an authentication type and complete the required fields. Enter your registry URL and static credentials.
  • Enter the **URL** of your private package registry.
  • Enter your **Username**.
  • Enter your **Password**.
AWS CodeArtifact authentication uses OIDC token federation. No static credentials are stored. Enter the following fields:
  • **Domain**: Name of your AWS CodeArtifact domain.
  • **Domain Owner**: AWS account ID that owns the domain.
  • **Repository**: Name of the CodeArtifact repository.
  • **Target Role ARN**: ARN of the IAM role Endor Labs assumes.
  • **Allowed Audience**: Audience value specified when you created the OIDC provider.
  • **Region**: AWS region of the repository.
See [Configure integration with AWS CodeArtifact](/integrations/package-managers/aws-codeartifact) for setup instructions.
  1. Optionally, under **Advanced**, select **Propagate this package manager to all child namespaces** to share this integration with child namespaces.
  2. Click **Add Package Manager**.
### Test package manager integration You can test the connection to a configured package manager to verify that Endor Labs can reach the repository. To test the connection: 1. Select **User menu** > **Integrations** from the left sidebar. 2. Click **Manage** in the package manager configuration you want to customize. 3. Click the vertical three dots of the package manager configured and select **Test Connection**. > [!NOTE] > > The integration does not perform authentication or authorization checks on the package manager repository. ### Edit package manager integration You can edit an existing package manager integration to update the name, repository URL, or authentication credentials. To edit a package manager integration: 1. Select **User menu** > **Integrations** from the left sidebar. 2. Click **Manage** next to the package manager you want to edit. 3. Click the vertical three dots on the configured integration you want to edit and select **Edit**. 4. You can modify the name, package manager URL, and credentials. 5. Click **Save Changes**. ## Private package manager integration for NuGet using API Use endorctl to create a package manager resource through an API call and configure authentication for accessing private repositories during scans. Run the following command to create a package manager resource and authenticate to private repository. Replace: * `username` with your package registry username * `xxxx` with your package registry password * `namespace` with your namespace. ```shell expandable theme={null} endorctl api create -r PackageManager -n -d ' { "meta": { "name": "test", "description": "test" }, "spec": { "nuget": { "priority": 1, "url": "package manager url", "user": "username", "password": "xxxx" } }, "propagate": true } ' ``` ### Fetch package manager using API Run the following command to fetch the package manager using the UUID. ```bash theme={null} endorctl api get -r packageManager -n --uuid ``` ### Delete package manager using API Run the following command to delete the package manager using the UUID. ```bash theme={null} endorctl api delete -r packageManager -n --uuid ``` # Private package manager integration for Packagist Source: https://docs.endorlabs.com/integrations/package-managers/packagist-private-package-manager/index Learn how to configure Endor Labs to access private Packagist repositories for dependency resolution and security scanning. Configure Endor Labs to integrate with private Packagist repositories to access proprietary dependencies during security scanning and analysis. When your PHP projects depend on packages hosted in private or corporate Packagist repositories, Endor Labs requires authentication credentials to resolve these dependencies and generate a complete bill of materials. This integration enables Endor Labs to: * Access private Packagist packages during dependency resolution * Generate comprehensive security analysis including private dependencies * Maintain complete visibility into your software supply chain Endor Labs generally respects package authentication and configuration settings and a package manager integration is usually not required to scan private packages successfully. * Use package manager integrations to simplify scanning when authentication to private repositories is not part of standard manifest or settings files. * Package manager integrations allow you to set custom repositories for each package ecosystem and the priority of each repository for scanning. To set up a package manager integration: 1. Select **User menu** > **Integrations** from the left sidebar. 2. Select **Add** next to the package manager configuration you want to add. 3. Select **Add Package Manager**. 4. Enter a **Name** for the integration. 5. Choose an authentication type and complete the required fields. Enter your registry URL and static credentials. AWS CodeArtifact authentication uses OIDC token federation. No static credentials are stored. Enter the following fields:
  • **Domain**: Name of your AWS CodeArtifact domain.
  • **Domain Owner**: AWS account ID that owns the domain.
  • **Repository**: Name of the CodeArtifact repository.
  • **Target Role ARN**: ARN of the IAM role Endor Labs assumes.
  • **Allowed Audience**: Audience value specified when you created the OIDC provider.
  • **Region**: AWS region of the repository.
See [Configure integration with AWS CodeArtifact](/integrations/package-managers/aws-codeartifact) for setup instructions.
  1. Optionally, under **Advanced**, select **Propagate this package manager to all child namespaces** to share this integration with child namespaces.
  2. Click **Add Package Manager**.
### Test package manager integration You can test the connection to a configured package manager to verify that Endor Labs can reach the repository. To test the connection: 1. Select **User menu** > **Integrations** from the left sidebar. 2. Click **Manage** in the package manager configuration you want to customize. 3. Click the vertical three dots of the package manager configured and select **Test Connection**. > [!NOTE] > > The integration does not perform authentication or authorization checks on the package manager repository. ### Edit package manager integration You can edit an existing package manager integration to update the name, repository URL, or authentication credentials. To edit a package manager integration: 1. Select **User menu** > **Integrations** from the left sidebar. 2. Click **Manage** next to the package manager you want to edit. 3. Click the vertical three dots on the configured integration you want to edit and select **Edit**. 4. You can modify the name, package manager URL, and credentials. 5. Click **Save Changes**. ## Package manager integration for Packagist using API Run the following command to create a package manager resource and authenticate to Packagist repository. Replace: * `username` with your package registry username. * `xxxx` with your package registry password. * `namespace` with your namespace. * `your host` with your package manager host. For example, `"host": "repo.packagist.com"`. ```shell expandable theme={null} endorctl api create -r PackageManager -n -d ' { "meta": { "name": "test packagist", "description": "test packagist" }, "spec": { "packagist": { "auth_kind": "AUTH_KIND_HTTP_BASIC", "host": "your host", "user": "username", "password": "xxxx" } }, "propagate": true } ' ``` ### Fetch package manager using API Run the following command to fetch the package manager using the UUID. ```bash theme={null} endorctl api get -r packageManager -n --uuid ``` ### Delete package manager using API Run the following command to delete the package manager using the UUID. ```bash theme={null} endorctl api delete -r packageManager -n --uuid ``` # Private package manager integration for PyPI Source: https://docs.endorlabs.com/integrations/package-managers/pypi-private-package-manager/index Learn how to configure Endor Labs to access private PyPI repositories for dependency resolution and security scanning. Configure Endor Labs to integrate with private PyPI repositories to access proprietary dependencies during security scanning and analysis. When your Python projects depend on packages hosted in private or corporate repositories, Endor Labs requires authentication credentials to resolve these dependencies and generate a complete bill of materials. > [!NOTE] > > If your manifest or lockfile references a dependency directly by its Git repository URL, see [Git-based dependencies](/integrations/package-managers/git-based-dependencies). This integration enables Endor Labs to: * Access private PyPI packages during dependency resolution * Generate comprehensive security analysis including private dependencies * Maintain complete visibility into your software supply chain Endor Labs generally respects package authentication and configuration settings and a package manager integration is usually not required to scan private packages successfully. * Use package manager integrations to simplify scanning when authentication to private repositories is not part of standard manifest or settings files. * Package manager integrations allow you to set custom repositories for each package ecosystem and the priority of each repository for scanning. To set up a package manager integration: 1. Select **User menu** > **Integrations** from the left sidebar. 2. Select **Add** next to the package manager configuration you want to add. 3. Select **Add Package Manager**. 4. Enter a **Name** for the integration. 5. Choose an authentication type and complete the required fields. Enter your registry URL and static credentials.
  • Enter the **URL** of your private package registry.
  • Enter your **Username**.
  • Enter your **Password**.
AWS CodeArtifact authentication uses OIDC token federation. No static credentials are stored. Enter the following fields:
  • **Domain**: Name of your AWS CodeArtifact domain.
  • **Domain Owner**: AWS account ID that owns the domain.
  • **Repository**: Name of the CodeArtifact repository.
  • **Target Role ARN**: ARN of the IAM role Endor Labs assumes.
  • **Allowed Audience**: Audience value specified when you created the OIDC provider.
  • **Region**: AWS region of the repository.
See [Configure integration with AWS CodeArtifact](/integrations/package-managers/aws-codeartifact) for setup instructions. Google Artifact Registry authentication uses short-lived OAuth2 tokens minted from a service account key. No static registry credentials are stored. Enter the following fields:
  • **GCP Project ID**: ID of the GCP project that hosts the Artifact Registry repository.
  • **Location**: GCP region of the repository, for example `us-central1`.
  • **Repository**: Name of the GAR repository.
  • **Service Account Key**: Full JSON contents of a GCP service account key.
See [Configure integration with Google Artifact Registry](/integrations/package-managers/google-artifact-registry) for setup instructions.
  1. Optionally, under **Advanced**, select **Propagate this package manager to all child namespaces** to share this integration with child namespaces.
  2. Click **Add Package Manager**.
### Test package manager integration You can test the connection to a configured package manager to verify that Endor Labs can reach the repository. To test the connection: 1. Select **User menu** > **Integrations** from the left sidebar. 2. Click **Manage** in the package manager configuration you want to customize. 3. Click the vertical three dots of the package manager configured and select **Test Connection**. > [!NOTE] > > The integration does not perform authentication or authorization checks on the package manager repository. ### Edit package manager integration You can edit an existing package manager integration to update the name, repository URL, or authentication credentials. To edit a package manager integration: 1. Select **User menu** > **Integrations** from the left sidebar. 2. Click **Manage** next to the package manager you want to edit. 3. Click the vertical three dots on the configured integration you want to edit and select **Edit**. 4. You can modify the name, package manager URL, and credentials. 5. Click **Save Changes**. ## Private package manager integration for PyPI using API Use endorctl to create a package manager resource through an API call and configure authentication for accessing private repositories during scans. > [!NOTE] > > The PyPI package manager URL typically ends with `/simple`. Run the following command to create a package manager resource and authenticate to private repository. Replace: * `username` with your package registry username * `xxxx` with your package registry password * `namespace` with your namespace. ```shell expandable theme={null} endorctl api create -r PackageManager -n -d ' { "meta": { "name": "test", "description": "test" }, "spec": { "pypi": { "priority": 1, "url": "package manager url", "user": "username", "password": "xxxx" } }, "propagate": true } ' ``` ### Fetch package manager using API Run the following command to fetch the package manager using the UUID. ```bash theme={null} endorctl api get -r packageManager -n --uuid ``` ### Delete package manager using API Run the following command to delete the package manager using the UUID. ```bash theme={null} endorctl api delete -r packageManager -n --uuid ``` ## Specify a private index for a single repository A PyPI package manager integration applies to the namespace you create it in, and to child namespaces when you set `propagate` to `true`. Poetry, uv, and Pipenv also let a single repository name its own index in a manifest file. Endor Labs runs those tools during the scan, and each one reads its own manifest file. Endor Labs matches the declared URL to a configured integration and supplies the credentials, so the manifest file carries the URL and no credentials are stored in your repository. \- Package_manager: Poetry Declare_the_index_in: \`\[\[tool.poetry.source]]\` in \`pyproject.toml\` Endor_Labs_behavior: Matches the URL to an integration and supplies the credentials \- Package_manager: uv Declare_the_index_in: \`\[\[tool.uv.index]]\` in \`pyproject.toml\` Endor_Labs_behavior: Matches the URL to an integration and supplies the credentials \- Package_manager: Pipenv Declare_the_index_in: \`\[\[source]]\` in \`Pipfile\` Endor_Labs_behavior: Matches the URL to an integration and supplies the credentials \- Package_manager: pip Declare_the_index_in: \`--find-links\` or \`-f\` in a requirements file Endor_Labs_behavior: Passes the archive locations to pip during resolution \- Package_manager: pip Declare_the_index_in: \`--index-url\`, \`--extra-index-url\`, or \`-i\` in a requirements file Endor_Labs_behavior: Not used for dependency resolution. Configure an integration instead pip is the exception, because Endor Labs drives pip itself rather than delegating to it. See [pip and requirements files](#pip-and-requirements-files) to understand what a requirements file can and cannot control. ### pip and requirements files Endor Labs does not resolve dependencies from an index that you declare with `--index-url`, `--extra-index-url`, or `-i` in a requirements file. When Endor Labs resolves a pip project, it installs each package by name against the registries from your package manager integrations, so the index options in the file never reach pip. Configure an integration for the private index, and dependency resolution reaches it for every repository in the namespace. Endor Labs does read `--find-links` and `-f` entries from a requirements file and passes them to pip during resolution. A repository that resolves packages from a local or hosted archive directory scans without any further configuration. To resolve a pip project against an index that you declare only in the requirements file, build the virtual environment yourself before you scan. ```bash theme={null} python3 -m venv .venv .venv/bin/python -m pip install -r requirements.txt endorctl scan ``` Your own pip run honors the index options in the requirements file, along with your pip configuration file. Endor Labs then detects the virtual environment and reads the packages you installed rather than resolving them itself. See [Python](/scan/sca/python) to review where Endor Labs looks for a virtual environment. ### Declare an index for uv Declare each index as a `[[tool.uv.index]]` entry in `pyproject.toml`. ```toml theme={null} [[tool.uv.index]] name = "internal" url = "https://pypi.example.com/simple" ``` Endor Labs matches the index URL to a configured package manager integration by scheme, host, and path, and uses the credentials from the integration. When the index URL already contains a user name, Endor Labs uses the integration credentials only when the user name matches. Members of a uv workspace also inherit the indexes declared in the workspace root `pyproject.toml` file. ### Declare an index for Pipenv Declare each index as a `[[source]]` entry in your `Pipfile`, with the credentials written as environment variable placeholders rather than literal values. ```toml theme={null} [[source]] name = "internal" url = "https://${INTERNAL_USERNAME}:${INTERNAL_PASSWORD}@pypi.example.com/simple" verify_ssl = true ``` Endor Labs matches the host and path of the source URL to a configured package manager integration. When they match, Endor Labs sets `INTERNAL_USERNAME` and `INTERNAL_PASSWORD` to the integration credentials for the `pipenv install` command, so the credentials never appear in your `Pipfile`. The placeholder names are yours to choose. Endor Labs uses whatever names the URL contains. A source URL without a `user:password@` section receives no credentials. Set `ENDOR_PYTHON_PIPENV_ENABLED` to `true` before you scan a Pipenv project. See [Python](/scan/sca/python) to review the full Pipenv prerequisites. ## Poetry authentication behavior Endor Labs matches each source declared in `[[tool.poetry.source]]` in your `pyproject.toml` file to a configured PyPI package manager integration by comparing normalized URLs (scheme, host, port, and path). When a source URL matches an integration with a complete username and password, Endor Labs passes the credentials to the `poetry lock` and `poetry install` commands during a scan. Poetry derives the environment variable name for a source from its name. It converts the name to uppercase and replaces hyphens with underscores. Endor Labs follows the same convention, so a source named `org-repo` receives credentials as `POETRY_HTTP_BASIC_ORG_REPO_USERNAME` and `POETRY_HTTP_BASIC_ORG_REPO_PASSWORD`. > [!NOTE] > > Endor Labs only supplies credentials for sources already declared in `pyproject.toml`. It does not add or rewrite Poetry sources. ### Known limitations * **Existing credentials take precedence**: If a source URL in `pyproject.toml` already contains inline credentials, or if the corresponding `POETRY_HTTP_BASIC_*` environment variables are already set, Endor Labs does not add or override them. * **Shared credential keys**: Poetry converts the source names to uppercase and replaces hyphens with underscores. Therefore, sources named `org-repo` and `org_repo` resolve to the same environment variable key. Endor Labs skips credential injection for that key, because one credential pair could otherwise authenticate requests to two different registry URLs. * **Dotted source names**: Poetry (version 2.4 and later) preserves dots in a source name when deriving its environment variable key. The earlier versions of Poetry replace dots with underscores. Because the correct key depends on the installed Poetry version, Endor Labs skips credential injection for source names that contain a dot. * **Basic authentication only**: This behavior passes only username and password credentials matched by URL. Token-based authentication and mTLS certificates are not passed to Poetry commands. ## Where Endor Labs reads pip configuration Endor Labs does not define a location of its own for `pip.conf`. It runs pip inside the virtual environment for your project, with the environment that the scan inherits from your shell or your CI job. pip then loads its own configuration files from its standard locations, so place `pip.conf` where pip already expects it. \- Scope: Global Linux: \`/etc/pip.conf\` macOS: \`/Library/Application Support/pip/pip.conf\` Windows: \`C:\ProgramData\pip\pip.ini\` \- Scope: User Linux: \`\$HOME/.config/pip/pip.conf\` macOS: \`\$HOME/Library/Application Support/pip/pip.conf\` Windows: \`%APPDATA%\pip\pip.ini\` \- Scope: Virtual environment Linux: \`\$VIRTUAL_ENV/pip.conf\` macOS: \`\$VIRTUAL_ENV/pip.conf\` Windows: \`%VIRTUAL_ENV%\pip.ini\` pip loads these files in order of global, user, and then virtual environment, and a later file overrides an earlier one. On Linux and macOS, pip also loads the legacy `$HOME/.pip/pip.conf` file when it exists. See [pip configuration](https://pip.pypa.io/en/stable/topics/configuration/) for the complete resolution rules, including the `XDG_CONFIG_HOME` and `XDG_DATA_HOME` variants. ### Point pip at a specific configuration file Set `PIP_CONFIG_FILE` to an absolute path when you want a single file to govern the scan. pip loads that file last, so its values override the global, user, and virtual environment files. ```bash theme={null} export PIP_CONFIG_FILE=/etc/endor/pip.conf endorctl scan ``` The user-level file is the reliable choice when you let Endor Labs create the virtual environment. Endor Labs creates that environment in a temporary directory outside your project and removes it after the scan, so a `pip.conf` placed at the virtual environment scope does not apply. Supply your own virtual environment, or use the user-level file or `PIP_CONFIG_FILE`, when you need configuration that survives the scan. See [Python](/scan/sca/python) to review how Endor Labs detects and creates virtual environments. ### Use pip environment variables pip reads any option as an environment variable named `PIP_` followed by the option name in uppercase, with hyphens replaced by underscores. Endor Labs does not set or override these variables, so `PIP_INDEX_URL` and `PIP_EXTRA_INDEX_URL` take effect during a scan. ```bash theme={null} export PIP_INDEX_URL=https://pypi.example.com/simple export PIP_EXTRA_INDEX_URL=https://pypi.org/simple endorctl scan ``` Endor Labs passes the registries from your package manager integrations to pip as `--extra-index-url` command line options. In pip, a command line option takes precedence over both environment variables and configuration files. Endor Labs never passes `--index-url`, so an `index-url` you set in `pip.conf` or in `PIP_INDEX_URL` remains the primary index for the scan. ### Configuration for automated scans An automated scan through an SCM integration runs in an isolated sandbox that Endor Labs manages. A `pip.conf` file on your workstation or on a self-hosted runner is not present in that sandbox, and neither are environment variables you set outside the scan. Configure a package manager integration for any private index that an automated scan needs to reach, and declare the index URL in the repository manifest file. See [Python](/scan/sca/python) to review how automated scans build Python projects. # Private package manager integration for RubyGems Source: https://docs.endorlabs.com/integrations/package-managers/rubygems-private-package-manager/index Learn how to configure Endor Labs to access private RubyGems repositories for dependency resolution and security scanning. Configure Endor Labs to integrate with private RubyGems repositories to access proprietary dependencies during security scanning and analysis. When your Ruby projects depend on gems hosted in private or corporate repositories, Endor Labs requires authentication credentials to resolve these dependencies and generate a complete bill of materials. > [!NOTE] > > If your manifest or lockfile references a dependency directly by its Git repository URL, see [Git-based dependencies](/integrations/package-managers/git-based-dependencies). This integration enables Endor Labs to: * Access private RubyGems during dependency resolution * Generate comprehensive security analysis including private dependencies * Maintain complete visibility into your software supply chain Endor Labs generally respects package authentication and configuration settings and a package manager integration is usually not required to scan private packages successfully. * Use package manager integrations to simplify scanning when authentication to private repositories is not part of standard manifest or settings files. * Package manager integrations allow you to set custom repositories for each package ecosystem and the priority of each repository for scanning. To set up a package manager integration: 1. Select **User menu** > **Integrations** from the left sidebar. 2. Select **Add** next to the package manager configuration you want to add. 3. Select **Add Package Manager**. 4. Enter a **Name** for the integration. 5. Choose an authentication type and complete the required fields. Enter your registry URL and static credentials.
  • Enter the **URL** of your private package registry.
  • Enter your **Username**.
  • Enter your **Password**.
AWS CodeArtifact authentication uses OIDC token federation. No static credentials are stored. Enter the following fields:
  • **Domain**: Name of your AWS CodeArtifact domain.
  • **Domain Owner**: AWS account ID that owns the domain.
  • **Repository**: Name of the CodeArtifact repository.
  • **Target Role ARN**: ARN of the IAM role Endor Labs assumes.
  • **Allowed Audience**: Audience value specified when you created the OIDC provider.
  • **Region**: AWS region of the repository.
See [Configure integration with AWS CodeArtifact](/integrations/package-managers/aws-codeartifact) for setup instructions.
  1. Optionally, under **Advanced**, select **Propagate this package manager to all child namespaces** to share this integration with child namespaces.
  2. Click **Add Package Manager**.
### Test package manager integration You can test the connection to a configured package manager to verify that Endor Labs can reach the repository. To test the connection: 1. Select **User menu** > **Integrations** from the left sidebar. 2. Click **Manage** in the package manager configuration you want to customize. 3. Click the vertical three dots of the package manager configured and select **Test Connection**. > [!NOTE] > > The integration does not perform authentication or authorization checks on the package manager repository. ### Edit package manager integration You can edit an existing package manager integration to update the name, repository URL, or authentication credentials. To edit a package manager integration: 1. Select **User menu** > **Integrations** from the left sidebar. 2. Click **Manage** next to the package manager you want to edit. 3. Click the vertical three dots on the configured integration you want to edit and select **Edit**. 4. You can modify the name, package manager URL, and credentials. 5. Click **Save Changes**. ## Private package manager integration for RubyGems using API Use endorctl to create a package manager resource through an API call and configure authentication for accessing private repositories during scans. Run the following command to create a package manager resource and authenticate to private repository. Replace: * `username` with your package registry username * `xxxx` with your package registry password * `namespace` with your namespace. ```shell expandable theme={null} endorctl api create -r PackageManager -n -d ' { "meta": { "name": "test", "description": "test" }, "spec": { "gem": { "priority": 1, "url": "package manager url", "user": "username", "password": "xxxx" } }, "propagate": true } ' ``` ### Fetch package manager using API Run the following command to fetch the package manager using the UUID. ```bash theme={null} endorctl api get -r packageManager -n --uuid ``` ### Delete package manager using API Run the following command to delete the package manager using the UUID. ```bash theme={null} endorctl api delete -r packageManager -n --uuid ``` # Private package manager integration for Swift Source: https://docs.endorlabs.com/integrations/package-managers/swift-private-package-manager/index Learn how to configure Endor Labs to access private Swift package repositories for dependency resolution and security scanning. Configure Endor Labs to integrate with private Swift package repositories to access proprietary dependencies during security scanning and analysis. When your Swift projects depend on packages hosted in private or corporate repositories, Endor Labs requires authentication credentials to resolve these dependencies and generate a complete bill of materials. > [!NOTE] > > If your manifest or lockfile references a dependency directly by its Git repository URL, see [Git-based dependencies](/integrations/package-managers/git-based-dependencies). This integration enables Endor Labs to: * Access private Swift packages during dependency resolution * Generate comprehensive security analysis including private dependencies * Maintain complete visibility into your software supply chain Endor Labs generally respects package authentication and configuration settings and a package manager integration is usually not required to scan private packages successfully. * Use package manager integrations to simplify scanning when authentication to private repositories is not part of standard manifest or settings files. * Package manager integrations allow you to set custom repositories for each package ecosystem and the priority of each repository for scanning. To set up a package manager integration: 1. Select **User menu** > **Integrations** from the left sidebar. 2. Select **Add** next to the package manager configuration you want to add. 3. Select **Add Package Manager**. 4. Enter a **Name** for the integration. 5. Choose an authentication type and complete the required fields. Enter your registry URL and static credentials. AWS CodeArtifact authentication uses OIDC token federation. No static credentials are stored. Enter the following fields:
  • **Domain**: Name of your AWS CodeArtifact domain.
  • **Domain Owner**: AWS account ID that owns the domain.
  • **Repository**: Name of the CodeArtifact repository.
  • **Target Role ARN**: ARN of the IAM role Endor Labs assumes.
  • **Allowed Audience**: Audience value specified when you created the OIDC provider.
  • **Region**: AWS region of the repository.
See [Configure integration with AWS CodeArtifact](/integrations/package-managers/aws-codeartifact) for setup instructions.
  1. Optionally, under **Advanced**, select **Propagate this package manager to all child namespaces** to share this integration with child namespaces.
  2. Click **Add Package Manager**.
### Test package manager integration You can test the connection to a configured package manager to verify that Endor Labs can reach the repository. To test the connection: 1. Select **User menu** > **Integrations** from the left sidebar. 2. Click **Manage** in the package manager configuration you want to customize. 3. Click the vertical three dots of the package manager configured and select **Test Connection**. > [!NOTE] > > The integration does not perform authentication or authorization checks on the package manager repository. ### Edit package manager integration You can edit an existing package manager integration to update the name, repository URL, or authentication credentials. To edit a package manager integration: 1. Select **User menu** > **Integrations** from the left sidebar. 2. Click **Manage** next to the package manager you want to edit. 3. Click the vertical three dots on the configured integration you want to edit and select **Edit**. 4. You can modify the name, package manager URL, and credentials. 5. Click **Save Changes**. ## Package manager integration for SwiftPM using API Use endorctl to create a package manager resource for your private swift registry and authenticate using one of the following methods: * Basic authentication using username and password * Authentication token ### Basic authentication using username and password Run the following command to create a package manager resource and authenticate to Swift registry using basic authentication credentials with scope. Replace: * `namespace` with your namespace. * `username` with your username * `xxxx` with your password. * `scope` with your scope. For example, `"scope":"abc-corp"`. ```shell expandable theme={null} endorctl api create -r PackageManager -n -d ' { "meta": { "name": "test swift", "description": "setup swift registry with basic auth" }, "spec": { "swift": { "priority": 1, "url": "package manager url", "basic_auth": { "username": "username", "password": "xxxx" }, "scope": "scope" } }, "propagate": false }' ``` ### Authentication token Run the following command to create a package manager resource and authenticate to Swift registry using authentication token with scope. Replace: * `namespace` with your namespace * `token` with your Swift registry authentication token. * `scope` with your scope. For example, `"scope":"abc-corp"`. ```shell theme={null} endorctl api create -r PackageManager -n -d ' { "meta": { "name": "test swift", "description": "setup swift registry with token" }, "spec": { "swift": { "priority": 1, "url": "package manager url", "token": "authentication token", "scope": "scope" } }, "propagate": false } ' ``` ### Fetch package manager using API Run the following command to fetch the package manager using the UUID. ```bash theme={null} endorctl api get -r packageManager -n --uuid ``` ### Delete package manager using API Run the following command to delete the package manager using the UUID. ```bash theme={null} endorctl api delete -r packageManager -n --uuid ``` # SCM Integrations Source: https://docs.endorlabs.com/integrations/scm/index Connect source code management platforms for continuous monitoring. For information on integrating with Source Code Management (SCM) platforms like GitHub, GitLab, Azure DevOps, and Bitbucket, see [SCM Integrations](/setup-deployment/scm-integrations). Endor Labs provides native integrations with the following SCM platforms: * [**GitHub**](/setup-deployment/scm-integrations/github-app) * [**GitHub Pro**](/setup-deployment/scm-integrations/github-app-pro) * [**GitHub Enterprise Server**](/setup-deployment/scm-integrations/github-app/github-enterprise-app) * [**GitLab**](/setup-deployment/scm-integrations/gitlab-app) * [**Azure DevOps**](/setup-deployment/scm-integrations/azure-app) * [**Bitbucket Cloud**](/setup-deployment/scm-integrations/bitbucket-cloud) * [**Bitbucket Data Center**](/setup-deployment/scm-integrations/bitbucket-datacenter-app) # Set up Slack integration Source: https://docs.endorlabs.com/integrations/slack/index Learn how to integrate Slack with Endor Labs and receive finding notifications Integrate Endor Labs with Slack and automatically receive policy violations as notifications in your Slack channels. If you are using Slack for team communication and notifications, this integration helps you to seamlessly integrate Endor Labs into your organization's existing workflows. * [Create incoming webhooks in Slack](#create-incoming-webhooks-in-slack) * [Configure Slack integration](#configure-slack-integration) * [Associate an action policy with a Slack notification](#associate-an-action-policy-with-a-slack-notification) * [Manage Slack notification targets in Endor Labs](#manage-slack-notification-targets-in-endor-labs) * [Customize Slack notification templates](#customize-slack-notification-templates) * [Data model](#data-model) * [Run a scan](#run-a-scan) * [View notifications in Slack](#view-notifications-in-slack) ## Create incoming webhooks in Slack Create an incoming webhook to your Slack channel to enable Endor Labs to post notifications in the channel. The **Incoming Webhook** provides a unique URL to integrate your Slack channel in Endor Labs. > [!NOTE] > > We recommend you designate a channel in your Slack workspace for receiving Endor Labs notifications and create an incoming webhook for that channel. To create incoming webhooks in Slack: 1. Create a [Slack app](https://api.slack.com/apps?new_app=1) for Endor Labs or use an existing app. * Click **Create New App**. * Choose **From Scratch** and Enter a name for the app, for example, **Endor Labs**. * Select your workspace and click **Create App** * You can enter basic, install, or display information for your [Endor Labs app in Slack](https://api.slack.com/apps?new_app=1). * In **Display Information**, you can upload a logo and customize App colours to distinguish the Endor Labs App on the Slack workspace. * Click **Save Changes**. 2. Under **Features**, select **Incoming Webhooks**, then turn on **Activate Incoming Webhooks**. 3. Refresh the page and click **Add New Webhook to Workspace**. 4. Select a channel to receive Endor Labs findings in **Post to**, then select **Authorize**. If you need to add the incoming webhook to a private channel, you must first be in that channel. 5. From **Settings**, copy the webhook URL under **Webhook URLs for Your Workspace**. Keep this URL handy to enter in Endor Labs. For details on creating incoming webhooks in Slack, see [Slack Integration](https://api.slack.com/messaging/webhooks) ## Configure Slack integration To configure Slack integration, follow these steps: 1. Select **User menu** > **Integrations** from the left sidebar. 2. Under **Notifications**, click **Add** on the **Slack** card. If you already have a Slack integration, click **Manage** instead. 3. Click **Add Notification Integration** to open the **Send Notifications to Slack** dialog. 4. Enter a **Name** and **Description** for this integration. 5. In **Webhook URL**, enter the incoming webhook URL you copied from Slack. 6. Optional: select **Propagate this notification target to all child namespaces** to make this integration available in child namespaces. 7. Click **Add Notification Integration** to save the integration. ### Associate an action policy with a Slack notification Users can create action policies to send a Slack notification when a scan matches policy conditions. For example, if there is a critical or high vulnerability, send the findings to Slack. To send a Slack message when a scan produces matching findings, create an action policy with a **Send Notification** action that targets your Slack integration. For the full procedure, see [Create an action policy](/platform-administration/policies/action-policies). The Slack-specific choices are: * Under **Choose an Action**, select **Send Notification**. * From **Select notification targets**, choose the Slack integration you created. From **Select aggregation type**, choose how findings are grouped into notifications. * **None (Notify for each Finding)** sends a separate notification for each finding. * **Project** sends a single notification for all findings in a project. * **Dependency** sends a notification for every dependency. * **Dependency per Package Version** sends a notification for every unique combination of dependency and package version. Slack messages show the top three findings from the highest available severity level. If fewer than three findings exist, only those appear. ### Manage Slack notification targets in Endor Labs You can view and manage the Endor Labs Slack notification targets created for a project. 1. Select **User menu** > **Integrations** from the left sidebar. 2. Under **Notifications**, click **Manage** on the **Slack** card. You can view all your created notification targets for Slack. 3. To edit a notification target, click the vertical three dots and choose **Edit Notification Integration**. 4. To delete a notification target, click the vertical three dots and choose **Delete Notification Integration**. ### Customize Slack notification templates Endor Labs provides a default standard template with standard information for the Slack message. You can use the default template or you can choose to edit and customize this template to fit your organization's specific requirements. You can also create custom templates using [Go Templates](https://pkg.go.dev/text/template). 1. Select **User menu** > **Integrations** from the left sidebar. 2. Under **Notifications**, click **Manage** on the **Slack** card to view the configured notification integrations. 3. Choose one, click the vertical three dots on the right side, and click **Edit Template**. 4. Make required changes to any of the following templates and click **Save Template**. * **Open** - This template applies when Endor Labs raises new notifications. * **Update** - This template applies when an existing notification updates, such as when findings change. 5. Click **Restore to Default** to revert the changes. 6. Use the download icon on the top right corner to download this template. 7. Use the copy icon to copy the information in the template. ### Data model To create custom templates for Slack messages, you must understand the data supplied to the template. See the protobuf specification `NotificationData` message used for the templates. To understand Project, Finding, PackageVersion, and RepositoryVersion definitions used in this protobuf specification, see: * [Project resource kind](/developers-api/rest-api/using-the-rest-api/data-model/resource-kinds#project) * [Finding resource kind](/developers-api/rest-api/using-the-rest-api/data-model/resource-kinds#finding) * [PackageVersion resource kind](/developers-api/rest-api/using-the-rest-api/data-model/resource-kinds#packageversion) * [RepositoryVersion resource kind](/developers-api/rest-api/using-the-rest-api/data-model/resource-kinds#repositoryversion) See the following specification to understand a few additional functions available to the template. You can access these functions by using their corresponding keys. ## Run a scan Run the endorctl scan on your configured projects. See [endorctl scan commands](/developers-api/cli/commands/scan) for more information. ### View notifications in Slack View Endor Labs' findings in Slack and take remedial actions. * Sign in to Slack and view the notifications on the configured channel. * You can view the top 3 findings by their severity level. Click **View All** to see all the findings in Endor Labs. ![View notifications in Slack](https://mintcdn.com/endorlabs-b4795f4f/dHzwUrp_QbpzV9uv/images/integrations/slack/slack_notifications.webp?fit=max\&auto=format\&n=dHzwUrp_QbpzV9uv\&q=85\&s=046954c16dbfa7d988c3ca9e975300c7) # Third-party integrations Source: https://docs.endorlabs.com/integrations/third-party-integrations/index Integrate Endor Labs with third-party security and vulnerability management platforms. Endor Labs integrates with third-party security platforms, enabling you to consolidate security data, unify vulnerability management, and streamline your security workflows. These integrations allow third-party platforms to retrieve security findings, packages, projects, and repository data from Endor Labs through the API. Third-party integrations can retrieve the following data types from Endor Labs: \- Data_Type: Findings Description: Security vulnerabilities, exposed secrets, and policy violations detected by Endor Labs. \- Data_Type: Finding definitions Description: Detailed information about vulnerability definitions, including CVE data and CVSS scores. \- Data_Type: Packages Description: Open-source and third-party packages used in your projects. \- Data_Type: Projects Description: Scanned applications and their configuration settings. \- Data_Type: Repositories Description: Source code repositories linked to your projects. ## How third-party integrations work Third-party integrations with Endor Labs use a pull-based model where the external platform connects to the Endor Labs API to retrieve security data. To set up an integration: 1. Create [API credentials](/platform-administration/api-keys) in Endor Labs with read-only access. 2. Configure the connector in the third-party platform with your Endor Labs credentials. 3. Schedule data synchronization to keep the platforms in sync. ## Supported platforms The following third-party platforms have integrations available with Endor Labs: * [ArmorCode](#armorcode) * [Brinqa](#brinqa) * [Nucleus Security](#nucleus-security) * [Wiz](#wiz) ### ArmorCode ArmorCode is an Application Security Posture Management (ASPM) platform that helps organizations consolidate security findings from multiple tools, prioritize vulnerabilities, and automate remediation workflows. Integrate ArmorCode with Endor Labs to retrieve security findings, packages, projects, and repository data for centralized security management and correlation with other security tools. For more information, refer to [ArmorCode integration](https://www.armorcode.com/blog/armorcode-endor-labs-integration). ### Brinqa Brinqa is a unified vulnerability management (UVM) platform that helps organizations consolidate security data from multiple sources to construct a comprehensive view of their attack surface. Integrate Brinqa with Endor Labs to import package, project, repository, and security findings data for centralized risk management and compliance reporting. For more information, refer to [Brinqa integration](https://docs.brinqa.com/docs/connectors/endor-labs/). ### Nucleus Security Nucleus Security is a vulnerability management platform that helps organizations aggregate, correlate, and prioritize vulnerabilities from multiple security tools. Integrate Nucleus Security with Endor Labs to import security findings, packages, and project data for centralized vulnerability management and remediation tracking. ### Wiz Wiz is a cloud-native application protection platform (CNAPP) that helps organizations correlate code and cloud risk in the Wiz Security Graph. Integrate Wiz with Endor Labs by configuring the [Wiz exporter](/integrations/data-exporters/export-to-wiz), which pushes SCA and SAST findings from scheduled default-branch scans into Wiz. # Set up Vanta integration with Endor Labs Source: https://docs.endorlabs.com/integrations/vanta/index Learn how to integrate Vanta with Endor Labs and automate compliance requirements Vanta enables organizations to manage risk by automating compliance and streamlining security reviews. Integrate Vanta with Endor Labs to view security findings in real-time and accelerate your security audit processes. To integrate Endor Labs with Vanta: * [Create an application in Vanta](#create-an-application-in-vanta) * [Create resources in Vanta](#create-resources-in-vanta) * [Configure Vanta integration](#configure-vanta-integration) * [Associate an action policy with a Vanta notification](#associate-an-action-policy-with-a-vanta-notification) * [Manage Vanta notification targets in Endor Labs](#manage-vanta-notification-targets-in-endor-labs) * [Run a scan](#run-a-scan) * [Findings exported to Vanta](#findings-exported-to-vanta) * [View findings in Vanta](#view-findings-in-vanta) ## Create an application in Vanta Create an application in Vanta so that Endor Labs can authenticate and export vulnerability findings to Vanta. The app requires `connectors.self:write-resource` and `connectors.self:read-resource scopes` to export vulnerabilities. 1. Sign in to Vanta as an Administrator. 2. Click **Settings** on the top navigation bar. 3. Select **Developer Console**. ![Vanta Developer Console](https://mintcdn.com/endorlabs-b4795f4f/dHzwUrp_QbpzV9uv/images/integrations/vanta/VantaDeveloperConsole.webp?fit=max\&auto=format\&n=dHzwUrp_QbpzV9uv\&q=85\&s=8bb677edbf131074bc18f57c99fe18a4) 4. Click **Create**. 5. Select **Build Integrations**. 6. Enter a name and description for your application. 7. Select the **App Visibility** as **Private** and click **Create**. ![Create Vanta Integration](https://mintcdn.com/endorlabs-b4795f4f/dHzwUrp_QbpzV9uv/images/integrations/vanta/createvantaapp.webp?fit=max\&auto=format\&n=dHzwUrp_QbpzV9uv\&q=85\&s=f7293091190f3c21f3b4df72f34f3016) 8. Select the **Application Category** as **Vulnerability Scanner**. 9. Click **Generate Client Secret** to generate the OAuth client secret. OAuth Client ID appears. Copy the OAuth Client ID and the client secret and have them handy. You must enter this data in Endor Labs to configure the Vanta integration. ![Build Vanta Integration](https://mintcdn.com/endorlabs-b4795f4f/dHzwUrp_QbpzV9uv/images/integrations/vanta/createendorvanta.webp?fit=max\&auto=format\&n=dHzwUrp_QbpzV9uv\&q=85\&s=c957b2704a69caa5b5c110037e839f4b) 10. Click **Save**. ### Create resources in Vanta To successfully ingest security data and create notifications, map the Endor Labs attributes to resource types in Vanta. 1. Sign in to Vanta. 2. Navigate to **Settings** and click **Developer Console**. 3. Select your application and click **Resources**. 4. Click **Create Resource** and create the following resources to successfully map Endor Labs data into Vanta. * Enter the **Resource Type** as `Vulnerable Component` (mandatory) and select the **Base Resource Type** as **VulnerableComponent**. ![Create Resource](https://mintcdn.com/endorlabs-b4795f4f/dHzwUrp_QbpzV9uv/images/integrations/vanta/createresourcevanta.webp?fit=max\&auto=format\&n=dHzwUrp_QbpzV9uv\&q=85\&s=125c8c58d2ae4bd2c4fd0f5e0fa300f5) * Enter the **Resource Type** as `Package Vulnerability` (optional) and select the **Base Resource Type** as **PackageVulnerabilityConnectors**. * Enter the **Resource Type** as `Static Code Analysis` (optional) and select the **Base Resource Type** as **StaticAnalysisCodeVulnerabilityConnectors**. Provide the **Static Code Analysis** resource type if you want to export exposed secrets in your first party code to Vanta. You can view the schema generated for all the resource types. Copy the **Resource ID** of the generated resources and have them handy. You must enter this data in Endor Labs to configure the Vanta integration. ![Vanta Resource IDs](https://mintcdn.com/endorlabs-b4795f4f/dHzwUrp_QbpzV9uv/images/integrations/vanta/endorvantaresources.webp?fit=max\&auto=format\&n=dHzwUrp_QbpzV9uv\&q=85\&s=691f9d9981c6a5c340450530d63f25ac) ## Configure Vanta integration Set up Endor Labs integration with Vanta. Prerequisites: Make sure you have the client ID, client secret, and the resource IDs from Vanta handy. 1. Select **User menu** > **Integrations** from the left sidebar. 2. Under **Notifications**, click **Add** for **Vanta**. 3. Click **Add Notification Integration**. ![Add Notification Integration](https://mintcdn.com/endorlabs-b4795f4f/deISr2DfATZg293W/images/integrations/vanta/endor-to-vanta.webp?fit=max\&auto=format\&n=deISr2DfATZg293W\&q=85\&s=7a9c6ff585e321ddeee4afc2caf4cdbb) 4. Enter a name and description for this integration. 5. Enter the **CLIENT ID** and **CLIENT SECRET** that you generated on Vanta. 6. Under **Vanta Resources**, enter the Resource IDs for VULNERABILITY COMPONENT, PACKAGE VULNERABILITY, and STATIC CODE ANALYSIS VULNERABILITY from Vanta. > [!NOTE] > > **Vulnerable Component** is mandatory. You must enter either one of the **Package Vulnerability** or **Static Code Analysis Vulnerability** resource types. 7. Click **Add Notification Integration**. ### Associate an action policy with a Vanta notification Users can create action policies to execute a recommended action when a scan violates a policy. For example, if there is a critical or high vulnerability, Endor Labs exports those vulnerabilities to Vanta to ensure compliance adherence. While creating an action policy, configure the following settings: * Select **Choose an Action** as **Send Notification**. * From **SELECT NOTIFICATION TARGETS**, choose the Vanta integration notification that you created. * Choose an [**Aggregation type**](/platform-administration/policies/action-policies#aggregation-types-for-notifications) for notifications. For integrating with Vanta, we recommend you choose **Project**. * From **Assign Scope**, include the project tags in **INCLUSIONS** to apply this policy to a project. See [Create an action policy](/platform-administration/policies/action-policies) for more details. ### Manage Vanta notification targets in Endor Labs You can view and manage the Endor Labs Vanta notification targets created for a project. 1. Select **User menu** > **Integrations** from the left sidebar. 2. Under **Notifications**, click **Manage** for **Vanta**. You can view all your created notification targets for Vanta. 3. To edit a notification target, click the vertical three dots and choose **Edit Notification Integration**. 4. To delete a notification target, click the vertical three dots and choose **Delete Notification Integration**. ## Run a scan Run the endorctl scan on your configured projects. See [endorctl scan commands](/developers-api/cli/commands/scan) for more information. ### Findings exported to Vanta Endor Labs sends the following findings to Vanta: * third-party open-source vulnerabilities * secrets exposed in the first-party code Endor Labs exports these findings as **Package Vulnerabilities** and **Static Code Analysis Vulnerabilities** in Vanta and associates them with a **Vulnerable Component** (that is the Repository Version) in Vanta. Exporting findings generated on the Git repository security posture of an organization are not supported. ## View findings in Vanta View Endor Labs' findings in Vanta and take remedial actions. 1. Sign in to Vanta. 2. Select **Tests** to view notifications. 3. Select the integration that you created in the **Integration** filter to view notifications from Endor Labs. ![View Endor Labs Results in Vanta](https://mintcdn.com/endorlabs-b4795f4f/dHzwUrp_QbpzV9uv/images/integrations/vanta/viewendorresultsvanta.webp?fit=max\&auto=format\&n=dHzwUrp_QbpzV9uv\&q=85\&s=eed4ce54b873195afbaea163b5dffb71) 4. Select a notification to view all findings associated with the Endor Labs policy. ![View notification in Vanta](https://mintcdn.com/endorlabs-b4795f4f/dHzwUrp_QbpzV9uv/images/integrations/vanta/view_results_in_vanta.webp?fit=max\&auto=format\&n=dHzwUrp_QbpzV9uv\&q=85\&s=2420fa44101f4d2751394d3a60f39eab) 5. Click on a finding to view more details in Endor Labs. For example, if you create an action policy to notify critical vulnerabilities and configure it to a Vanta notification target, you can see the exports as **Critical vulnerabilities identified in code repositories are addressed** under **Tests** in Vanta. Vanta classifies the tests by the severity of the exported findings. # Set up integrations using webhooks Source: https://docs.endorlabs.com/integrations/webhooks/index Learn how to create webhooks and enable custom integrations with Endor Labs application Webhooks enable real-time communication between different systems or applications over the internet. They allow one application to send data to another application as soon as a specific event or a trigger occurs. Use webhooks to integrate Endor Labs with applications such as Slack, Microsoft Teams or more, and instantly get notified about projects when scans violate your configured policies. When events occur, Endor Labs sends HTTPS POST requests to URLs of your configured events, with all the information you need. ## Configure a webhook integration Set up a custom integration with Endor Labs webhooks. 1. Select **User menu** > **Integrations** from the left sidebar. 2. Under **Notifications**, click **Add** on the **Webhook** card. If you already have a webhook integration, click **Manage** instead. 3. Click **Add Notification Integration**. **Send Notifications to Webhook** appears. 4. Enter a **Name** and **Description** for this integration. 5. In **URL endpoint for webhook**, enter the URL of your webhook receiver. > [!NOTE] > > If your webhook receiver accepts traffic only from allowlisted IP addresses, see [Ingress rules for restricted environments](/best-practices/troubleshooting/firewall-rules#ingress-rules-for-restricted-environments) to allow notifications from Endor Labs. 6. Choose an **Auth method** of **None**, **Basic**, or **API Key**, then enter its credentials. Basic authentication uses **Username** and **Password**. API key authentication uses **API Key**. Make sure the credentials grant permission to post to your receiver. 7. If you chose **Basic** or **API Key**, HMAC signing is on by default. Enter an **HMAC Shared Key**, or select **Disable HMAC Integration Check** to turn it off. When HMAC is on, Endor Labs signs the request body and sends the signature in the `X-Endor-HMAC-Signature` header so your receiver can verify that the request is authentic. HMAC is not available for **None** auth. 8. Optional: Under **Custom Headers**, click **Add Header**, then enter a **Header name** and **Header value**. You can add up to 20 headers. > [!NOTE] > > Use custom headers to pass vendor-specific API keys required by your webhook receiver. Endor Labs includes custom headers in every webhook request, regardless of the authentication method used. 9. Optional: Select **Propagate this notification target to all child namespaces** to make this integration available in child namespaces. 10. Click **Add Notification Integration** to save the integration. ### Associate an action policy with the webhook You can create action policies to trigger webhook notifications when a scan matches policy conditions. For example, send a webhook notification when there is a critical or high vulnerability. To send a webhook when a scan produces matching findings, create an action policy with a **Send Notification** action that targets your webhook integration. For the full procedure, see [Create an action policy](/platform-administration/policies/action-policies). The webhook-specific choices are: * Under **Choose an Action**, select **Send Notification**. * From **Select notification targets**, choose the webhook integration you created. From **Select aggregation type**, choose how findings are grouped into notifications. * **None (Notify for each Finding)** sends a separate notification for each finding. * **Project** sends a single notification for all findings in a project. * **Dependency** sends a notification for every dependency. * **Dependency per Package Version** sends a notification for every unique combination of dependency and package version. ## Endor Labs webhook payload Endor Labs provides the following webhook payload, that you can customize for your needs. \- Name: \`data.message\` Description: Brief message about the number of findings discovered for a project \- Name: \`data.projectURL\` Description: Link to the scanned project in the Endor Labs application \- Name: \`data.policy.name\` Description: Name of the violated policy that triggered the notification \- Name: \`data.policy.url\` Description: Link to the violated policy in the Endor Labs application \- Name: \`data.findings\` Description: Complete list of findings \- Name: \`data.findings\[].uuid\` Description: Unique identifier of the finding \- Name: \`data.findings\[].description\` Description: Brief description of the finding \- Name: \`data.findings\[].severity\` Description: Severity of the finding \- Name: \`data.findings\[].dependency \[CONDITIONAL]\` Description: Name of dependency that caused the policy violation. This field is only present for findings that have a dependency associated. For example, vulnerability findings. \- Name: \`data.findings\[].package \[CONDITIONAL]\` Description: The version of the package in the project that imported the dependency causing the policy violation. This field is only present for findings that have a package version associated with them. For example, vulnerability findings. \- Name: \`data.findings\[].repositoryVersion \[CONDITIONAL]\` Description: Repository version of the project that triggered the policy violation. This field is only present for findings that have a repository version associated with them. For example, secrets findings. \- Name: \`data.findings\[].findingURL\` Description: Link to the finding in the Endor Labs application You can view all possible payload information in [GetFindings REST API endpoint](/api-reference/findingservice/listfindings). Expand the `spec` section in the API response to view all the information. See the following sample notification payload. > [!NOTE] > > If you use Endor Labs with an EU tenant, use `https://app.eu.endorlabs.com` instead of `https://app.endorlabs.com`. ```json expandable theme={null} { "data": { "message": "4 findings discovered for project endorlabs/monorepo", "projectURL": "https://app.endorlabs.com/t//projects/", "policy": { "name": "Webhook vuln", "url": "https://app.endorlabs.com/t//policies/actions?filter.default=Webhook+vuln" }, "findings": [ { "uuid": "550e8400-e29b-41d4-a716-446655440000", "description": "GHSA-c2qf-rxjj-qqgw: semver vulnerable to Regular Expression Denial of Service", "severity": "FINDING_LEVEL_MEDIUM", "dependency": "semver@7.5.0", "package": "endorlabs-vscode-extension@1.5.0", "findingURL": "https://app.endorlabs.com/t//findings/550e8400-e29b-41d4-a716-446655440000" }, { "uuid": "550e8400-e29b-41d4-a716-446655440001", "description": "GHSA-c2qf-rxjj-qqgw: semver vulnerable to Regular Expression Denial of Service", "severity": "FINDING_LEVEL_MEDIUM", "dependency": "semver@7.3.8", "package": "endorlabs-vscode-extension@1.5.0", "findingURL": "https://app.endorlabs.com/t//findings/550e8400-e29b-41d4-a716-446655440001" }, { "uuid": "550e8400-e29b-41d4-a716-446655440002", "description": "GHSA-c2qf-rxjj-qqgw: semver vulnerable to Regular Expression Denial of Service", "severity": "FINDING_LEVEL_MEDIUM", "dependency": "semver@5.7.1", "package": "endorlabs-vscode-extension@1.5.0", "findingURL": "https://app.endorlabs.com/t//findings/550e8400-e29b-41d4-a716-446655440002" }, { "uuid": "550e8400-e29b-41d4-a716-446655440003", "description": "GHSA-c2qf-rxjj-qqgw: semver vulnerable to Regular Expression Denial of Service", "severity": "FINDING_LEVEL_MEDIUM", "dependency": "semver@6.3.0", "package": "endorlabs-vscode-extension@1.5.0", "findingURL": "https://app.endorlabs.com/t//findings/550e8400-e29b-41d4-a716-446655440003" } ] } } ``` In the payload, replace `` and `` with the values from your Endor Labs tenant. The identifier in each `findingURL` matches that finding's `uuid`. ### Payload variations by notification event Endor Labs sends a webhook for three notification events. The `data.message` text and the presence of `data.findings` change with the event. * **Findings discovered**: Endor Labs sends the payload shown above. The `data.message` field reads ` findings discovered for project ` and `data.findings` lists every finding. * **New findings added**: A later scan finds additional findings. The `data.message` field reads ` new findings discovered for project ` and `data.findings` lists only the new findings. * **Findings resolved**: A scan resolves all findings. The `data.message` field reads `All findings resolved for project ` and the payload omits the `data.findings` array. The `data.policy` object is present only when an action policy triggers the notification. The following example shows the payload when a later scan adds new findings. The `data.findings` array lists only the new findings. ```json expandable theme={null} { "data": { "message": "2 new findings discovered for project endorlabs/monorepo", "projectURL": "https://app.endorlabs.com/t//projects/", "policy": { "name": "Webhook vuln", "url": "https://app.endorlabs.com/t//policies/actions?filter.default=Webhook+vuln" }, "findings": [ { "uuid": "550e8400-e29b-41d4-a716-446655440004", "description": "GHSA-jf85-cpcp-j695: Prototype Pollution in lodash", "severity": "FINDING_LEVEL_CRITICAL", "dependency": "lodash@4.17.4", "package": "endorlabs-vscode-extension@1.5.0", "findingURL": "https://app.endorlabs.com/t//findings/550e8400-e29b-41d4-a716-446655440004" }, { "uuid": "550e8400-e29b-41d4-a716-446655440005", "description": "GHSA-35jh-r3h4-6jhm: Command Injection in lodash", "severity": "FINDING_LEVEL_HIGH", "dependency": "lodash@4.17.4", "package": "endorlabs-vscode-extension@1.5.0", "findingURL": "https://app.endorlabs.com/t//findings/550e8400-e29b-41d4-a716-446655440005" } ] } } ``` The following example shows the payload when a scan resolves all findings. The payload omits the `data.findings` array. ```json expandable theme={null} { "data": { "message": "All findings resolved for project endorlabs/monorepo", "projectURL": "https://app.endorlabs.com/t//projects/", "policy": { "name": "Webhook vuln", "url": "https://app.endorlabs.com/t//policies/actions?filter.default=Webhook+vuln" } } } ``` ## Use Endor Labs webhooks to integrate with Slack If you use Slack as a collaborative tool, integrate Slack channels using webhooks in Endor Labs to publish notifications as messages in the respective channels. * [Configure a webhook integration](#configure-a-webhook-integration) * [Endor Labs webhook payload](#endor-labs-webhook-payload) * [Use Endor Labs webhooks to integrate with Slack](#use-endor-labs-webhooks-to-integrate-with-slack) * [Create incoming webhooks in Slack](#create-incoming-webhooks-in-slack) * [Customize webhook notification templates](#customize-webhook-notification-templates) * [Data model](#data-model) * [Webhook handler example for Slack](#webhook-handler-example-for-slack) ### Create incoming webhooks in Slack Create an incoming webhook to your Slack channel to enable Endor Labs to post notifications in the channel. The webhook provides a unique URL for integrating the channel in Endor Labs. To send messages into Slack using incoming webhooks, see [Slack Integration](https://api.slack.com/messaging/webhooks) If you have already created an incoming webhook in the channel, copy the unique URL and integrate the channel in Endor Labs. ### Customize webhook notification templates Endor Labs provides you with a default template with standard information for the webhook message. You can use the default template or you can choose to edit and customize this template to fit your organization's specific requirements. You can also create your own custom templates using [Go Templates](https://pkg.go.dev/text/template). 1. Select **User menu** > **Integrations** from the left sidebar. 2. Under **Notifications**, click **Manage** on the **Slack** card to view the configured notification integrations. 3. Choose one, click the ellipsis on the right side, and click **Edit Template**. 4. Make required changes to any of the following templates and click **Save Template**. * **Open** - This template applies when Endor Labs raises new notifications. * **Update** - This template applies when an existing notification updates, such as when findings change. * **Resolve** - This template applies when all findings reported by the notification resolve. 5. Click **Restore to Default** to revert the changes. 6. Use the download icon on the top right corner to download this template. 7. Use the copy icon to copy the information in the template. ### Data model To create custom templates for Webhook notifications, you must understand the data supplied to the template. See the protobuf specification `NotificationData` message used for the templates. To understand Project, Finding, PackageVersion and RepositoryVersion definitions used in this protobuf specification, see: * [Project resource kind](/developers-api/rest-api/using-the-rest-api/data-model/resource-kinds#project) * [Finding resource kind](/developers-api/rest-api/using-the-rest-api/data-model/resource-kinds#finding) * [PackageVersion resource kind](/developers-api/rest-api/using-the-rest-api/data-model/resource-kinds#packageversion) * [RepositoryVersion resource kind](/developers-api/rest-api/using-the-rest-api/data-model/resource-kinds#repositoryversion) See the following specification to understand a few additional functions available to the template. You can access these functions by using their corresponding keys. ### Webhook handler example for Slack Create a webhook handler or a cloud function to receive webhook requests generated by Endor Labs, authorize the request, and post messages to your Slack channel. See the following code sample hosted as a cloud function or a webhook handler. ```go expandable theme={null} // Package p contains an HTTP Cloud Function that receives Endor Labs webhook // notifications, verifies the HMAC signature, and posts a message to Slack. package p import ( "bytes" "crypto/hmac" "crypto/sha256" "encoding/base64" "encoding/json" "fmt" "io" "log" "net/http" ) // WebhookMessage is the default Endor Labs webhook payload. type WebhookMessage struct { Data Payload `json:"data"` } type Payload struct { Message string `json:"message"` ProjectURL string `json:"projectURL"` Policy Policy `json:"policy"` Findings []Finding `json:"findings"` } type Finding struct { UUID string `json:"uuid"` Description string `json:"description"` Severity string `json:"severity"` Dependency string `json:"dependency,omitempty"` Package string `json:"package,omitempty"` RepositoryVersion string `json:"repositoryVersion,omitempty"` FindingURL string `json:"findingURL"` } type Policy struct { Name string `json:"name"` URL string `json:"url"` } // hmacSharedKey is the HMAC Shared Key you configured on the webhook integration. const hmacSharedKey = "" // HandleWebhook verifies the request signature, then posts the notification to Slack. func HandleWebhook(w http.ResponseWriter, r *http.Request) { // Read the raw body first. Endor Labs signs these exact bytes, so verify the // signature before decoding the JSON. body, err := io.ReadAll(r.Body) if err != nil { http.Error(w, "unable to read request body", http.StatusBadRequest) return } // Endor Labs signs the raw body with HMAC-SHA256 and sends the // base64-encoded signature in the X-Endor-HMAC-Signature header. if !validSignature(body, r.Header.Get("X-Endor-HMAC-Signature"), hmacSharedKey) { http.Error(w, "invalid signature", http.StatusUnauthorized) return } var message WebhookMessage if err := json.Unmarshal(body, &message); err != nil { http.Error(w, "unable to decode payload", http.StatusBadRequest) return } text := fmt.Sprintf("%s which violates policy %s", message.Data.Message, message.Data.Policy.Name) if err := sendMessageToSlack(text); err != nil { log.Printf("unable to post to Slack: %v", err) http.Error(w, "unable to post to Slack", http.StatusInternalServerError) return } } // validSignature recomputes the HMAC over the raw body and compares it against // the received signature in constant time. func validSignature(body []byte, receivedSignature, sharedKey string) bool { mac := hmac.New(sha256.New, []byte(sharedKey)) mac.Write(body) expected := base64.StdEncoding.EncodeToString(mac.Sum(nil)) return hmac.Equal([]byte(expected), []byte(receivedSignature)) } // sendMessageToSlack posts a message to a Slack incoming webhook. func sendMessageToSlack(text string) error { // Replace this with the incoming webhook URL from your Slack app. slackWebhookURL := "https://hooks.slack.com/services/" body, err := json.Marshal(map[string]string{"text": text}) if err != nil { return err } resp, err := http.Post(slackWebhookURL, "application/json", bytes.NewReader(body)) if err != nil { return err } defer resp.Body.Close() return nil } ``` # Documentation MCP server Source: https://docs.endorlabs.com/introduction/doc-tools/docs-mcp-server/index Connect the Endor Labs documentation MCP server to your AI tools for accurate, up-to-date answers about Endor Labs. The Endor Labs documentation MCP server gives your AI tools direct access to the complete Endor Labs documentation. Instead of relying on outdated training data, your AI assistant can search and read current documentation in real time. Endor Labs hosts the documentation MCP server at `https://docs.endorlabs.com/mcp` using HTTP transport. You do not need authentication, API keys, or local installation. > [!NOTE] > > This page covers the **documentation** MCP server for searching Endor Labs docs. For the **security scanning** MCP server that scans your code for vulnerabilities, see [MCP server](/setup-deployment/mcp). ## What the documentation MCP server provides The MCP server provides the following tools that AI applications use: * **Search documentation**: Searches across all Endor Labs documentation to find relevant content, returning snippets with titles and direct links. * **Query docs filesystem**: Reads and navigates a virtual filesystem of documentation pages using shell-style commands like `rg`, `cat`, `head`, and `tree`. Your AI system decides when to leverage these tools and can independently query the documentation as it generates a response, even without a direct prompt to do so. ## Agent skill The documentation MCP server exposes an agent skill. The skill tells AI tools when to use Endor Labs, which `endorctl` commands to run, and which scanning, policy, and remediation workflows to follow. ### Read the skill MCP clients that support resources can read the skill at `mintlify://skills/endorlabs` after you connect the documentation MCP server. See [skill.md](https://docs.endorlabs.com/skill.md) to fetch the skill as Markdown. See [agent-skills/index.json](https://docs.endorlabs.com/.well-known/agent-skills/index.json) to list discovered skills. ### Install the skill Install the skill into your AI tool to add Endor Labs capabilities to the agent's context. ```bash theme={null} npx skills add https://docs.endorlabs.com ``` Install the Endor Labs documentation skill. Install the Endor Labs documentation skill into my agent context. 1. Run `npx skills add https://docs.endorlabs.com`. 2. Print the list of skills that were installed, including each skill's name and description. 3. Summarize the key capabilities in one paragraph so I know what you can now help me accomplish with Endor Labs. ## Connect the documentation MCP server > [tab] Cursor > > Click **Install in Cursor** to add the documentation MCP server. > > Install in Cursor > > To manually configure the MCP server, add the following JSON to a `.cursor/mcp.json` file in the root of your repository. > > ```json theme={null} > { > "mcpServers": { > "endor-docs": { > "url": "https://docs.endorlabs.com/mcp" > } > } > } > ``` > > You can also use the command palette. Press `Cmd + Shift + P` (or `Ctrl + Shift + P` on Windows and Linux), search for **MCP: Add Server**, and enter the URL `https://docs.endorlabs.com/mcp`. > [tab] VS Code > > Click **Install in VS Code** to add the documentation MCP server. > > Install in VS Code > > To manually configure the MCP server, create a `.vscode/mcp.json` file in the root of your repository and add the following JSON. > > ```json theme={null} > { > "servers": { > "endor-docs": { > "type": "http", > "url": "https://docs.endorlabs.com/mcp" > } > } > } > ``` > [tab] Claude > > Add the Endor Labs documentation MCP server as a custom connector in the Claude web interface. > > 1. Go to **Settings** > **Connectors**. > 2. Select **Add custom connector**. > 3. Enter the following details: > * **Name**: `Endor Labs Docs` > * **URL**: `https://docs.endorlabs.com/mcp` > 4. Select **Add**. > 5. When using Claude, select the attachments button (the plus icon) and choose the **Endor Labs Docs** connector. > > For more information, refer to the [Claude MCP documentation](https://support.anthropic.com/en/articles/11175166-how-do-i-connect-mcp-servers-to-claude-ai). > [tab] Claude Code > > Run the following command to add the documentation MCP server to Claude Code. > > ```bash theme={null} > claude mcp add --transport http endor-docs https://docs.endorlabs.com/mcp > ``` > > Run the following command to verify the connection. > > ```bash theme={null} > claude mcp list > ``` > > For more information, refer to the [Claude Code documentation](https://docs.anthropic.com/en/docs/agents-and-tools/claude-code/tutorials#set-up-model-context-protocol-mcp). > [tab] Gemini CLI > > Run the following command to add the documentation MCP server to Gemini CLI. > > ```bash theme={null} > gemini mcp add --transport http endor-docs https://docs.endorlabs.com/mcp > ``` > > Run the following command to verify the connection. > > ```bash theme={null} > gemini mcp list > ``` > > For more information, refer to the [Gemini CLI documentation](https://github.com/google-gemini/gemini-cli). > [tab] OpenAI Codex > > > [!WARNING] > > > > The documentation MCP server does not require authentication. However, Codex automatically detects OAuth support on HTTP MCP servers and attempts an OAuth flow that fails. To work around this, provide a placeholder bearer token environment variable when adding the server. > > Run the following commands to add the documentation MCP server to OpenAI Codex. > > ```bash theme={null} > export ENDOR_DOCS_KEY="dummy" > codex mcp add endor-docs --url https://docs.endorlabs.com/mcp --bearer-token-env-var ENDOR_DOCS_KEY > ``` > > Set the `ENDOR_DOCS_KEY` environment variable in your shell before starting Codex. Add `export ENDOR_DOCS_KEY="dummy"` to your shell profile (such as `~/.zshrc` or `~/.bashrc`) so it persists across sessions. > > Run the following command to verify the connection. > > ```bash theme={null} > codex mcp list > ``` > > You can also use `/mcp` in the Codex TUI to view active MCP servers. > > Alternatively, add the server directly to `~/.codex/config.toml`: > > ```toml theme={null} > [mcp_servers.endor-docs] > url = "https://docs.endorlabs.com/mcp" > bearer_token_env_var = "ENDOR_DOCS_KEY" > enabled = true > ``` > > Ensure that you set the `ENDOR_DOCS_KEY` environment variable in your shell profile before starting Codex. > [tab] Devin > > Add the Endor Labs documentation MCP server to Devin through the MCP Marketplace. > > 1. Navigate to [Settings > MCP Marketplace](https://app.devin.ai/settings/mcp-marketplace) in Devin. > 2. Select **Add Your Own** to add a custom MCP server. > 3. Under **HTTP Configuration**, enter the URL `https://docs.endorlabs.com/mcp`. > 4. Select **Save Changes**. > > The documentation MCP server does not require secrets or authentication. > [tab] Augment Code > > Add the Endor Labs documentation MCP server to Augment Code. > > 1. Open the Augment Code extension in Visual Studio Code. > 2. Select the **Settings** icon in the upper right of the Augment panel. > 3. In the **MCP** section, select **Import from JSON** or **+** to add a server. > 4. Paste the following configuration: > > ```json theme={null} > { > "mcpServers": { > "endor-docs": { > "url": "https://docs.endorlabs.com/mcp" > } > } > } > ``` > > Alternatively, select **+**, set **Name** to `endor-docs`, and set the **URL** to `https://docs.endorlabs.com/mcp`. > [tab] IntelliJ IDEA > > Add the Endor Labs documentation MCP server to IntelliJ IDEA through GitHub Copilot. > > 1. Open **GitHub Copilot Chat** and switch to **Agent** mode. > 2. Select **Configure Tools**, then select **+ Add More Tools...** to open `mcp.json`. > 3. Add the following configuration: > > ```json theme={null} > { > "servers": { > "endor-docs": { > "type": "http", > "url": "https://docs.endorlabs.com/mcp" > } > } > } > ``` > > 4. Save and close `mcp.json`. Switch from **Agent** to **Ask** mode and back to **Agent** mode to reload the MCP server. > [tab] Antigravity > > Add the Endor Labs documentation MCP server to Google Antigravity. > > 1. On the agent panel, click **...**, then select **MCP Servers** > **Manage MCP Servers**. > 2. Click **View raw config** to open `mcp_config.json`. > 3. Add the following configuration: > > ```json theme={null} > { > "mcpServers": { > "endor-docs": { > "serverUrl": "https://docs.endorlabs.com/mcp" > } > } > } > ``` > > 4. Save the file. Antigravity automatically reloads the MCP server configuration. > > For more information, refer to the [Google Antigravity documentation](https://antigravity.google/docs/mcp). > [tab] OpenCode > > Add the following configuration to your `opencode.json` file. > > ```json theme={null} > { > "$schema": "https://opencode.ai/config.json", > "mcp": { > "endor-docs": { > "type": "remote", > "url": "https://docs.endorlabs.com/mcp" > } > } > } > ``` > > Run the following command to verify the connection. > > ```bash theme={null} > opencode mcp list > ``` > [tab] Other tools > > For any MCP-compatible tool, use the following server URL. > > ```text theme={null} > https://docs.endorlabs.com/mcp > ``` > > The documentation MCP server uses **HTTP transport**. Configure your tool with the URL above. You do not need authentication headers or API keys. > > If your tool uses a JSON configuration file, use one of the following formats. > > For tools that use `mcpServers` as the top-level key: > > ```json theme={null} > { > "mcpServers": { > "endor-docs": { > "url": "https://docs.endorlabs.com/mcp" > } > } > } > ``` > > For tools that use `servers` as the top-level key: > > ```json theme={null} > { > "servers": { > "endor-docs": { > "type": "http", > "url": "https://docs.endorlabs.com/mcp" > } > } > } > ``` ## Verify the connection After connecting, test the MCP server by asking your AI tool a question about Endor Labs. For example: * "How do I configure a scan profile in Endor Labs?" * "What package managers does Endor Labs support?" * "How do I set up GitHub Actions with Endor Labs?" Your AI tool should search the Endor Labs documentation and provide an answer with references to specific documentation pages. ## Use with the security scanning MCP server The documentation MCP server works alongside the [Endor Labs security scanning MCP server](/setup-deployment/mcp). You can connect both to the same AI tool. * The **documentation MCP server** answers questions about Endor Labs features, configuration, and usage. * The **security scanning MCP server** scans your code for vulnerabilities, leaked secrets, and security issues. Your AI assistant selects the appropriate server based on the conversation context. Connecting both servers enables full access to Endor Labs capabilities. # Documentation tools Source: https://docs.endorlabs.com/introduction/doc-tools/index Interactive builders, generators, and wizards across the Endor Labs docs, plus machine-readable surfaces that connect the documentation to your AI tools. The Endor Labs documentation includes interactive tools that build commands, filters, and configurations for you, directly in your browser. This page lists every tool, what you accomplish with it, and where it lives. It also covers the machine-readable surfaces that let AI assistants and agents consume the documentation. > [!TIP] > > Every tool has a stable short link under `docs.endorlabs.com/tools/` that you can bookmark or share. See the [short link reference](#short-link-reference) at the end of this page. ## Interactive tools ### endorctl API Query Builder Construct `endorctl api` commands from real API operations and parameters instead of writing them by hand. The builder guides you through resource kinds, filters, and output formats, and produces a command you can run immediately. See [endorctl API Query Builder](/developers-api/rest-api/api-query-builder) to build a command. ### Filter builders Compose filter expressions with guided, clickable builders instead of memorizing the filter syntax. Each builder produces a filter string that works in the Endor Labs user interface and in `endorctl api` calls. * [Project filter builder](/inventory-insights/projects/project-filters#interactive-filter-builder): Narrow projects by tags, finding severity, ecosystem, platform, or scan status. * [Finding filter builder](/inventory-insights/findings/finding-filters#interactive-filter-builder): Prioritize findings across your organization by severity, reachability, and more. * [Dependency filter builder](/inventory-insights/dependencies/dependency-filters#interactive-filter-builder): Slice dependencies by reachability, scope, ecosystem, or declaration. ### MCP install generator Generate the exact install command or JSON configuration for running the Endor Labs MCP server in your coding tool. The generator is embedded on each tool's setup page, covering Cursor, Claude Code, OpenAI Codex, Visual Studio Code, Gemini CLI, IntelliJ IDEA, Augment Code, and Google Antigravity. See [MCP Server](/setup-deployment/mcp) to pick your tool. ### SCM setup wizard Get a tailored plan for setting up monitoring scans on your source code management platform. Answer a few questions and the wizard returns the recommended deployment path. See [SCM Integrations](/setup-deployment/scm-integrations#monitoring-scan-setup-wizard) to run the wizard. ### Coding Agent Governance rollout wizard Pick your AI coding agent and rollout style to get a tailored checklist with deep links to every page you need. See [Coding Agent Governance](/agent-governance#plan-your-rollout) to plan your rollout. ### Coding Agent Governance configuration generator Generate Cursor hooks, Claude Code settings, Codex requirements, or a macOS configuration profile for managed developer machines. The generator assembles everything locally in your browser, so your API credentials never leave the page. See [Deploy Coding Agent Governance with MDM](/agent-governance/mdm-deployment#generate-a-configuration-in-your-browser) to generate a configuration. ### Package Firewall MDM script generator Generate self-contained scripts that route package installations on developer machines through the Package Firewall, ready to push with your MDM tool. See [Deploy Package Firewall to developer machines with MDM](/package-firewall/mdm-deployment#generate-your-mdm-script-in-the-browser) to generate your script. ### Package Firewall configuration wizard Generate the package manager configuration that routes installation requests through the Package Firewall with your API credentials. See [Configure the Package Firewall with direct integration](/package-firewall/direct-integration#configure-your-package-manager-configuration-file) to configure your package manager. ### Environment variable export wizard Select your operating system and shell to generate the correct command for setting `endorctl` environment variables. See [Global flags and environment variables](/developers-api/cli/environment-variables#set-endorctl-environment-variables) to generate the command. ## AI and machine-readable docs AI assistants and agents can consume the Endor Labs documentation through several dedicated surfaces. ### Documentation MCP server The documentation MCP server gives your AI tools direct access to the complete, current documentation through search and filesystem-style query tools. Endor Labs hosts it at `https://docs.endorlabs.com/mcp` with no authentication required. See [Documentation MCP server](/introduction/doc-tools/docs-mcp-server) to connect it to your AI tools. ### Agent skill The documentation MCP server exposes an agent skill that tells AI tools when and how to use Endor Labs. MCP clients that support resources can read it at `mintlify://skills/endorlabs`. See [Documentation MCP server](/introduction/doc-tools/docs-mcp-server#agent-skill) to fetch the skill as Markdown or install it with `npx skills add`. ### llms.txt The documentation publishes [llms.txt](https://docs.endorlabs.com/llms.txt), an index of every page with titles and summaries, and [llms-full.txt](https://docs.endorlabs.com/llms-full.txt), the full documentation content in one file. AI tools use these files to discover and ingest the documentation. ### Markdown for every page Every documentation page is available as plain Markdown. Append `index.md` to any page URL, for example `https://docs.endorlabs.com/introduction/getting-started/index.md`. Use these URLs to feed individual pages to an AI tool without HTML noise. ## Short link reference Each interactive tool has a stable short link that redirects to its current location. Short links keep working even if pages move. | Tool | Short link | | - | - | | endorctl API Query Builder | [`docs.endorlabs.com/tools/api-query-builder`](/tools/api-query-builder) | | Project filter builder | [`docs.endorlabs.com/tools/project-filter-builder`](/tools/project-filter-builder) | | Finding filter builder | [`docs.endorlabs.com/tools/finding-filter-builder`](/tools/finding-filter-builder) | | Dependency filter builder | [`docs.endorlabs.com/tools/dependency-filter-builder`](/tools/dependency-filter-builder) | | MCP install generator | [`docs.endorlabs.com/tools/mcp-install-generator`](/tools/mcp-install-generator) | | SCM setup wizard | [`docs.endorlabs.com/tools/scm-setup-wizard`](/tools/scm-setup-wizard) | | Coding Agent Governance rollout wizard | [`docs.endorlabs.com/tools/agent-governance-wizard`](/tools/agent-governance-wizard) | | Coding Agent Governance configuration generator | [`docs.endorlabs.com/tools/agent-governance-config-generator`](/tools/agent-governance-config-generator) | | Package Firewall MDM script generator | [`docs.endorlabs.com/tools/mdm-script-generator`](/tools/mdm-script-generator) | | Package Firewall configuration wizard | [`docs.endorlabs.com/tools/package-firewall-wizard`](/tools/package-firewall-wizard) | | Environment variable export wizard | [`docs.endorlabs.com/tools/env-var-wizard`](/tools/env-var-wizard) | # Endor Labs user interface Source: https://docs.endorlabs.com/introduction/endor-labs-ui/index Understand Endor Labs user interface and how to navigate through it. The Endor Labs user interface prioritizes efficient navigation, with the primary menu located in the left sidebar. To access the Endor Labs user interface, sign into [Endor Labs](https://app.endorlabs.com/login) with your credentials. > [!NOTE] > > If you use Endor Labs with an EU tenant, use `https://app.eu.endorlabs.com` instead of `https://app.endorlabs.com`. ![Endor UI](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/introduction/endor-labs-ui/endor-labs-ui/ui-page.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=53c3146e0df1bd665dd0e88a4196b257) The Endor Labs user interface page has three main sections: * **Left sidebar**: The left sidebar provides quick access to different modules and features of the platform. * **Main content panel**: This section displays the primary information and data relevant to the selected module. * **Right sidebar**: This section provides the detail drawers of the selected view in the main content area offering quick access to supplementary data. ## Home Select **Home** to open the **Dashboard**, which offers a concise and visual way to monitor the security posture of your organization. It is interactive and helps you understand the risk in your projects, packages, and dependencies, and the value Endor Labs delivers against that risk. ![Dashboard](https://mintcdn.com/endorlabs-b4795f4f/WE1Aj40QpdxOCFKn/images/introduction/endor-labs-ui/dashboards-ui.webp?fit=max\&auto=format\&n=WE1Aj40QpdxOCFKn\&q=85\&s=c782ebd7dcd5daac5707a016583f5719) See [Dashboards](/inventory-insights/dashboards) for more information. ## Projects The **Projects** page helps you manage and track your software packages and dependencies. You can: * Search and filter projects across different namespaces. * View findings associated with each project to assess security risks. * Add new projects to your workspace by clicking the **Add Project** option. ![Projects](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/introduction/endor-labs-ui/projects-ui.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=b1dcd2f7c1685ddf777f67883a13cc78) See [Manage Projects](/inventory-insights/projects) for more information. ## Findings The **Findings** page helps you to identify and analyze security risks across different areas. ![Findings](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/introduction/endor-labs-ui/findings-ui.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=0abe373e5d2c074a53fbd9deb23dce81) See [View Findings](/inventory-insights/findings) for more information. ## Inventory Inventory provides a centralized catalog of assets discovered in your workspace (for example, dependencies, artifacts, and AI models). The following pages are available in **Inventory**. ### Dependencies The **Dependencies** page gives detailed insights into package dependencies. You can: * Search and filter dependencies based on specific criteria. * Export filtered dependency data as a CSV file for further analysis. ![Dependencies](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/introduction/endor-labs-ui/endor-labs-ui/dependencies-ui.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=76338b2bd314415eeebb5bf90904d879) See [Dependencies](/inventory-insights/dependencies) for more information. ### AI Models The **AI Models** page helps you find and evaluate AI models used in your projects, providing insights into their usage, status, and impact. Endor Labs flags these models during scans and evaluates them for risks and operational security. ![AI model](https://mintcdn.com/endorlabs-b4795f4f/deISr2DfATZg293W/images/introduction/endor-labs-ui/endor-labs-ui/ai-inventory-ui.webp?fit=max\&auto=format\&n=deISr2DfATZg293W\&q=85\&s=8c1dfe2e4e72c7c385ba33964c00e35c) See [AI model findings](/secure-ai-coding/ai-model-discovery) for more information. ### Artifacts The **Artifacts** page displays signed artifacts along with detailed provenance data. This helps ensure that artifacts are securely generated, traced, and verified within the CI/CD pipeline, reducing the risk of tampering or unauthorized modifications. ![Artifacts](https://mintcdn.com/endorlabs-b4795f4f/deISr2DfATZg293W/images/introduction/endor-labs-ui/endor-labs-ui/artifacts-ui.webp?fit=max\&auto=format\&n=deISr2DfATZg293W\&q=85\&s=0bd8dc970e606999187deaf8283dffe2) See [Sign artifacts](/scan/containers/artifact-signing) for more information. ### Licenses The **Licenses** page lets you view and manage license information across your projects for legal and compliance review. You can see the license name, OSI approval status, license type, and project count for each dependency, edit license data, and generate Notice reports for distribution. ![Licenses](https://mintcdn.com/endorlabs-b4795f4f/xFDOpiADXUe5ceIv/images/inventory-insights/licenses/licenses-ui.webp?fit=max\&auto=format\&n=xFDOpiADXUe5ceIv\&q=85\&s=bf900fbbb2dba08af6683fabf3b31427) See [Licenses](/inventory-insights/licenses) for more information. ### Hugging Face organizations The **Hugging Face organizations** page lets you connect a Hugging Face organization to Endor Labs and scan all its AI models. Endor Labs continuously scans models and scores them for security, activity, popularity, and quality, surfacing them in your inventory alongside your other projects. ![Hugging Face organizations](https://mintcdn.com/endorlabs-b4795f4f/_0Dor7cg7Ah00DxC/images/secure-ai-coding/hf-org-scan/hf-orgs-ui.webp?fit=max\&auto=format\&n=_0Dor7cg7Ah00DxC\&q=85\&s=302acfaabd076d70f3f4c5430f78487e) See [Hugging Face organization models](/secure-ai-coding/huggingface-organization) for more information. ## Agents Hub The **Agents Hub** is where you discover the security agents Endor Labs publishes, understand what each one does, and see how your team is using them. Each agent packages a specific Endor Labs workflow, such as triaging findings, remediating vulnerable dependencies, or diagnosing scan failures. You run the agents inside your own AI coding assistant, and the Agents Hub gives you the catalog and the activity view in the product. You can: * Browse the catalog of published agents and filter it by category. * Select an agent to see what it does and which AI coding assistants it supports. * Monitor usage, including tasks and last-run time, for the agents your team has used. ![Agents Hub](https://mintcdn.com/endorlabs-b4795f4f/a6Zam66a5U4JfAtk/images/secure-ai-coding/agents-hub/agents-hub-catalog.webp?fit=max\&auto=format\&n=a6Zam66a5U4JfAtk\&q=85\&s=ef973531d804c65e022975a6076fdbf5) See [Agents Hub](/secure-ai-coding/agents-hub) for more information. ## Containers The **Containers** page lists container images Endor Labs found through scans. You can see how each image is used, how many versions were scanned, and how findings compare across tags or digests. You can: * Search and filter images to focus on specific registries, projects, or risk levels. * Select a container image to review its versions, container reachability, linked projects, and finding counts. ![Containers list in the Endor Labs user interface](https://mintcdn.com/endorlabs-b4795f4f/deISr2DfATZg293W/images/introduction/endor-labs-ui/containers-ui.webp?fit=max\&auto=format\&n=deISr2DfATZg293W\&q=85\&s=1be0587dac43d4d73409771271f98af1) See [Container inventory](/scan/containers/container-findings) for more information. ## SBOM Hub The **SBOM Hub** helps you manage and track Software Bill of Materials (SBOMs) in one place. Select an SBOM to view the list of dependencies, their visibility, source availability, Endor scores, and whether Endor Labs classifies each package version as malware. You can: * Import SBOMs easily using the **Import SBOM** button. * Use filters to narrow down searches and find specific SBOMs quickly. ![SBOM Hub](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/introduction/endor-labs-ui/sbom-ui.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=dcbeeedd90afaef461c4f3158ca45310) See [Manage SBOMs](/inventory-insights/sbom) for more information. ## Discovery The following pages are available in **Discovery**. ### OSS packages The **OSS Packages** page allows users to find and track open-source dependencies, identifying security risks and licensing concerns. ![OSS Packages](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/introduction/endor-labs-ui/endor-labs-ui/oss-packages-ui.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=3c195188fc81336cc5c90309a78de4fe) See [Open Source Packages](/discover/open-source-packages) for more information. ### Vulnerabilities Vulnerabilities are weaknesses in software components that attackers can exploit to compromise the confidentiality, integrity, or availability of an application. The **Endor Vulnerability Database** provides a centralized view of known security issues across open-source ecosystems. It supports searching by standard identifiers like CVE, GHSA, MAL, and PySEC. It also surfaces key metadata such as severity, affected versions, malware reasoning, and fix information to help teams assess risk before introducing a dependency into a project. ![Vulnerabilities](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/introduction/endor-labs-ui/endor-labs-ui/vulnerability-database-ui.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=1c971f3f66ea3e875b396fcd028944d6) See [Endor Labs vulnerability database](/discover/vulnerability-db) for more information. ### AI models The **AI Models** page is a search tool to find and explore AI models available within the platform. This page displays the top AI models from Hugging Face with information like model name, security score, activity score, operational score, and more. ![Find AI model](https://mintcdn.com/endorlabs-b4795f4f/deISr2DfATZg293W/images/introduction/endor-labs-ui/endor-labs-ui/ai-models-ui.webp?fit=max\&auto=format\&n=deISr2DfATZg293W\&q=85\&s=a48e5e540569703411572b63f9753b02) See [AI Models](/secure-ai-coding/ai-model-discovery) for more information. ## Package Firewall The **Package Firewall** page provides real-time protection against malicious packages during software installations. Positioned between your package manager clients and public registries, it intercepts every installation request and blocks known malicious packages before they reach your environment, while allowing safe packages through unchanged. ![Package Firewall](https://mintcdn.com/endorlabs-b4795f4f/Cq2jQsQZUU2aI4dH/images/package-firewall/pkg-firewall.webp?fit=max\&auto=format\&n=Cq2jQsQZUU2aI4dH\&q=85\&s=687f6a44f42fe84fa3c046b7a28bd07e) See [Package Firewall](/package-firewall) for more information. ## Agent Governance **Agent Governance** gives security and engineering teams visibility and control over AI coding agents across developer workstations and cloud environments. It inventories the agents, models, MCP servers, and skills in use. You can: * Monitor agent actions, such as commands, file access, and tool calls, as they happen. * Enforce policies that block, alert on, or require approval for risky agent behavior before it executes. * Review policy violations and extend the built-in policy catalog with your own rules. ![Agent Governance](https://mintcdn.com/endorlabs-b4795f4f/2JhTuTjilpgaKvVW/images/agent-governance/agent-governance-overview.webp?fit=max\&auto=format\&n=2JhTuTjilpgaKvVW\&q=85\&s=102aadaa85a09bae747cdb3e11334eb6) See [Coding Agent Governance](/agent-governance) for more information. ## Reports The **Reports** page lets you export analytics and findings data from Endor Labs for offline review, audits, and external workflows. You can generate two types of reports: * **Analytics reports**: A high-level view of vulnerability trends over time, including newly discovered and resolved vulnerabilities broken down by severity and remediation patterns. * **Findings reports**: A detailed export of individual security findings with severity, affected components, fix availability, reachability, and policy signals. See [Reports](/inventory-insights/reports) for more information. ## Policies and rules The **Policies & Rules** page allows users to define security and compliance policies for their projects. It includes: * **Finding Policies**: These policies enable users to detect and categorize security issues within their projects. Administrators can create custom finding policies to address specific security needs and ensure the detection of vulnerabilities. * **Exception Policies**: These policies allow users to define conditions under which they can mark certain findings as exceptions. This helps in filtering out known issues that the team accepted as risks. * **Action Policies**: These policies enable the automation of responses to policy violations. * **Remediation Policies**: These policies define guidelines for fixing identified security issues. * **Secret Rules**: These rules detect and manage exposed secrets within the codebase. They help in identifying sensitive information. * **SAST Rules**: These rules enable users to perform automated analysis on their source code to detect potential security vulnerabilities. * **Package Firewall Policies**: These policies control install-time enforcement when developers install packages through the Package Firewall. You choose block, warn, or allow safe versions actions for malware and minimum package age. You choose block or warn actions for restricted licenses and vulnerabilities, and you define exceptions for packages that should bypass checks. You can also send Slack notifications when the firewall blocks or warns on a package installation. ![Policies](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/introduction/endor-labs-ui/endor-labs-ui/policies-and-rules-ui.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=87bb0fd7ae339b87dce963c05b54f8db) See [Policies](/platform-administration/policies) for more information. ## Notifications The Notifications page keeps you updated on security events and policy violations. It has three categories: * **Open**: Displays active notifications that require attention. * **Resolved**: Displays notifications that you already addressed. * **All**: Displays a complete history of all notifications. Users can set up notification integrations for **email**, **Jira**, **Slack**, **Vanta**, **webhooks**, **PR remediation**, and **GitHub PR comments**. Use filters to sort by time range and quickly find key details like timestamps, related policies, project names, evaluation times, violations, namespaces, and tags. Use the **Projects** filter to view notifications for specific projects, quickly narrowing your results. ![Notifications](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/introduction/endor-labs-ui/notifications-ui.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=0aa1f2700919c4021d029c0a0195d22a) ## Integrations The **Integrations** page allows you to connect Endor Labs with external tools and services to enhance functionality and streamline workflows. You can set up integrations with security scanners, CI/CD pipelines, ticketing systems, and more. These integrations help automate security checks, improve vulnerability tracking, and ensure seamless communication between Endor Labs and other development tools. ![Integrations](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/introduction/endor-labs-ui/endor-labs-ui/integrations-ui.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=cf954e463690e8c3e3d0931f690f1c71) See [Endor Labs Integration](/integrations) for more information. ## Settings **Settings** enables users to configure platform preferences, security policies, and integrations. It includes: * **License**: This section provides details about the licensing information for Endor Labs products. Users can view current license status, contract, expiration date, features, and license consumption. * **System Settings**: These settings allow users to manage essential configurations such as Data Privacy, Endor Patches, Policies & Rules, and SBOM configurations. * **Access Control**: Configure workspace authentication and access management, including auth policies, API keys, SSO/identity providers, and user invitations. * **Namespaces**: Organize projects into namespaces and manage access controls across teams, including creating, editing, and deleting namespaces. * **Saved Filters**: Users can create and manage reusable filters for projects, which helps them to apply custom views and criteria to their data. * **Scan Profiles**: This feature allows users to define and customize scanning configurations. A scan profile can include specific parameters, toolchains, and paths to different projects. * **Build Tools**: This allows users to set up integrations for dependency analysis ensuring that the software build process incorporates dependency checks. * **AI Access**: This section provides details about AI powered features in Endor Labs that enhance security analysis and code insights. It includes capabilities like LLM code processing and C/C++ embeddings. ![Settings](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/introduction/endor-labs-ui/endor-labs-ui/settings-ui.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=882657555cfa4b0ce441d45ebc8a6e15) See [Platform administration](/platform-administration) for more information. ## Get started The Get started page helps you quickly familiarize yourself with Endor Labs and make the most of its features. It provides a step-by-step guide to setting up your first project and understanding key functionalities. ![Get Started](https://mintcdn.com/endorlabs-b4795f4f/_d9vPdLimS1dd8YU/images/introduction/endor-labs-ui/getting-started-ui.webp?fit=max\&auto=format\&n=_d9vPdLimS1dd8YU\&q=85\&s=98ef3464dfdf66026c7d7155bbd38ec2) See [Getting started](/introduction/getting-started) for more information. # Getting started Source: https://docs.endorlabs.com/introduction/getting-started/index Set up and configure Endor Labs to run your first project scan. This guide walks you through logging in, exploring the product, and running your first scan. See [Endor Labs user interface](/introduction/endor-labs-ui) for more information on the main elements of the interface. **1. Log in to Endor Labs** > [!TIP] > > You need an Endor Labs account and a tenant to use Endor Labs. Visit [https://app.endorlabs.com](https://app.endorlabs.com) to access the login page. You can sign in with the following options: > [!NOTE] > > If you use Endor Labs with an EU tenant, use `https://app.eu.endorlabs.com` instead of `https://app.endorlabs.com`. * Google Workspace * GitHub * GitLab * Email Link * [Supported enterprise SSO providers](/platform-administration/rbac/authentication-providers/custom-identity-providers) **2. Navigate to Get Started** Select **User menu** > **Get Started** from the left sidebar to open the **Getting Started Checklist**. * Click **Start Scan** under **Scan a project** to connect your Git provider and scan your repositories for vulnerabilities, license risks, and dependency issues. * Click **Go to Findings** under **View and filter findings** to review findings after your scan completes. * Enter email addresses under **Invite your team** to give colleagues direct access to your trial. * Click **Explore Demo Sandbox** to explore Endor Labs capabilities. **3. Run demo in sandbox** Select **Explore Demo Sandbox** to view Endor Labs capabilities and explore its features in a read-only tenant. The sandbox lets you explore findings, policies, and dashboards before connecting your own repositories. **4. Start scan** You can start scanning your repositories using any of the following: **SCM integrations** * [GitHub Cloud App Pro](/setup-deployment/scm-integrations/github-app) * [GitLab App](/setup-deployment/scm-integrations/gitlab-app) * [Bitbucket Cloud](/setup-deployment/scm-integrations/bitbucket-cloud) * [Bitbucket Data Center](/setup-deployment/scm-integrations/bitbucket-datacenter-app) * [Azure App](/setup-deployment/scm-integrations/azure-app) **CLI** * [endorctl](/setup-deployment/cli/scan-using-endorctl) **CI/CD environments** * [GitHub Actions](/setup-deployment/ci-cd/scan-with-github-actions) * [GitLab CI](/setup-deployment/ci-cd/scan-with-gitlab) * [Azure DevOps](/setup-deployment/ci-cd/scan-with-azuredevops) * [Bitbucket Pipelines](/setup-deployment/ci-cd/scan-with-bitbucket) * [Jenkins](/setup-deployment/ci-cd/scan-with-jenkins) * [CircleCI](/setup-deployment/ci-cd/scan-with-circleci) * [Google Cloud Build](/setup-deployment/ci-cd/scan-with-google-cloud-build) * [Buildkite](/setup-deployment/ci-cd/scan-with-buildkite) **5. View and filter findings** To view and filter findings: 1. Select **Findings** from the left sidebar or click **Go to Findings** to view all findings. 2. Use the filters to refine your search and view findings by project, severity, or category. 3. Click a finding to view its details and take action. # Endor Labs licenses Source: https://docs.endorlabs.com/introduction/licenses/index Licensing model, SKUs, and per-seat entitlements for the Endor Labs platform. Endor Labs is licensed per contributor per year, with **Core** and **Pro** tiers across the **Open Source** and **Code** product lines. Each seat comes with a daily scan credit allocation that pools across your contract term, plus support for onboarding multiple repositories. License consumption is measured from the Code Contributors who commit to your monitored repositories. You can track consumption against your contracted count, along with scan credit usage and license details. See [license consumption](/platform-administration/license#code-contributors) to learn more. ## License tiers and SKUs All license tiers are priced **per Code Contributor per year**. A **Code Contributor** is any person who authored or co-authored one or more commits to a private source code repository monitored by Endor Labs in the last 90 days. This is the unit that license consumption is measured in. The current SKU lineup and per-SKU feature lists are maintained on the [Endor Labs pricing page](https://www.endorlabs.com/pricing). That page is the authoritative source for Endor Labs SKUs and licenses. Each license is sold standalone and priced per code contributor per year. \- Product: \*\*Endor Open Source Core\*\* (\`EL-OSS-CORE\`) Description: Reachability-based SCA, AI model governance, supply chain attack detection, SBOM/VEX. \- Product: \*\*Endor Open Source Pro\*\* (\`EL-OSS-PRO\`) Description: Everything in OSS Core, plus container reachability, upgrade impact, signing, and GitHub enforcement. \- Product: \*\*Endor Code Core\*\* (\`EL-CODE-CORE\`) Description: SAST and secret detection. \- Product: \*\*Endor Code Pro\*\* (\`EL-CODE-PRO\`) Description: Everything in Code Core, plus agentic SAST with auto-triage and AI security code review. \- Product: \*\*Endor Package Firewall\*\* (\`EL-OSS-FWAL\`) Description: Block malicious and unapproved packages at install. \- Product: \*\*Endor Patches\*\* (\`EL-PATCHES\`) Description: Patched versions of high-risk OSS packages. \- Product: \*\*Endor SBOM Hub\*\* (\`EL-SBOM\`) Description: Manage first and third-party SBOMs. \- Product: \*\*Endor Coding Agent Governance\*\* (\`EL-AGNT-GOV\`) Description: Policies for AI coding agents, MCP servers, and skills. **Endor Open Source** and **Endor Code** licenses have scan credit allocations based on the license and the number of code contributors. If you exhaust your scan credits, you need to buy the add-on license **Endor Additional Code Scans** (`EL-ADD-SCANS`). This extends scan capacity beyond your per-seat scan credit pool. It is sold in buckets of 10,000 scans. ## Entitlements and limits This section describes how seats, scan credits, repository caps, and overage work across product licenses. The limits described in the following sections are **fair usage** limits, sized to the number of seats you purchase. The limits are generous and you will never be blocked from scanning. Teams running scan-intensive workflows can purchase additional scan credits if they need to, but most organizations won't need to. ### Included and additional scans Each code contributor seat supports unlimited default branch scans (typically `main` or `master`) for up to 5 repositories. Beyond that, default branch scans are counted as additional scans. A non-default branch scan is any scan you trigger against a branch other than your default branch, such as a feature, release, or hotfix branch. A scan counts based on where you run it and whether it uploads results, not on the scan type you run. These scan types can all count toward scan credits: * Dependency scan * SAST scan * AI SAST scan * Secrets scan * Source control misconfiguration scan * CI/CD tools scan * AI model discovery scan The following scans count toward your credits: * Pull request scans * Non-default branch scans * Default branch scans for repositories beyond the 5 × seats limit * AI SAST diff scans without `--dry-run` * MCP scans without `--dry-run` The following scans do not count toward your credits: * Default branch scans within the 5 × seats repository limit * Any scan run with `--dry-run`, including local IDE scans and AI SAST diff scans * SBOM uploads * On-premises container scans * Binary or package scans ### Per-seat scan credit allocation \- Tier: Open Source Core Daily allocation per code contributor: 1 additional scan / day \- Tier: Open Source Pro Daily allocation per code contributor: 1.5 additional scans / day \- Tier: Code Core Daily allocation per code contributor: 1 additional scan / day \- Tier: Code Pro Daily allocation per code contributor: 1.5 additional scans / day > [!TIP] > > Daily allocations accumulate into a shared pool across your contract term. You can draw from this pool flexibly so that a high-volume PR day isn't blocked as long as the pool has remaining credits. When a code contributor is licensed for more than one tier, daily allocations stack. For example: * **OSS Core + Code Core** = 2 additional scans / code contributor / day * **OSS Pro + Code Pro** = 3 additional scans / code contributor / day (1.5 + 1.5) * **OSS Core + Code Pro** = 2.5 additional scans / code contributor / day ### Credit pooling Credits pool across the full duration of your contract: * **Annual billing**: Credits unlock yearly at each renewal anniversary. * **Prepaid multi-year contracts**: All credits across the full term are available upfront. For example: * 100 OSS Core seats × 1 year = **36,500 scan credits** for use during that contract year. * 100 OSS Pro seats × 1 year = **54,750 scan credits** for use during that contract year (Pro allocates 1.5 / seat / day). * 100 OSS Core seats × 3 years prepaid = **109,500 scan credits** available upfront across the full term. Pools provide flexibility within the contract. High-volume PR days are supported as long as the pool has credits remaining. ### Overage If your scan credit pool is exhausted, you can purchase additional scans in buckets of 10,000 scans as **Endor Additional Code Scans** (`EL-ADD-SCANS`). The platform continues to function without interruption if you exceed your allocation. Overage is handled through your account team. # AI security code review Source: https://docs.endorlabs.com/inventory-insights/dashboards/ai-security-review/index Visualize the AI security review results in your organization. The AI security code review dashboard helps you understand the impact of AI security code review in your namespace. Select **Home** > **AI Security Review** from the left sidebar to track how many pull requests it reviews, the risks it catches, and the review time it saves your team. ![AI security code review dashboard](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/inventory-insights/dashboards/ai-security-review-dashboard.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=8f975649407d57dddf39652672e4718c) You can view the following information in the AI security code review dashboard: * **PRs without summaries**: The percentage of pull requests that did not have a summary for which AI security code review generated meaningful summaries. * **Safe Pull Requests**: The percentage of pull requests that did not have any High or Critical vulnerabilities. * **Review time saved**: The estimated number of hours of developer time saved by AI security code review. * **Projects enabled**: The number of projects in the namespace that have AI security code review enabled. * **Pull requests reviewed**: The number of pull requests reviewed by AI security code review. * **Commits reviewed**: The number of commits reviewed by AI security code review. * **Security findings**: The number of security findings triggered by AI security code review, classified by severity. You can also view the following widgets: * **Top categories by findings**: The categories of security vulnerabilities found in the namespace, ranked by the number of findings. * **Top projects by findings**: The projects in the namespace with the highest number of security vulnerabilities, ranked by the number of findings. * **Top languages by findings**: The languages in the namespace with the highest number of security vulnerabilities, ranked by the number of findings. You can use these widgets to identify the most critical vulnerabilities and projects in your namespace. # Analytics Source: https://docs.endorlabs.com/inventory-insights/dashboards/analytics/index Visualize metrics on volume and efficiency of issue resolution. Analytics dashboard offers a comprehensive view of your security metrics, and tracks finding trends and resolution times across projects. Select **Home** > **Analytics** from the left sidebar to quickly assess risk levels, monitor progress, and identify areas needing improvement in your security posture. ## Set the filters Customize the data displayed on the Analytics dashboard by applying specific filters to focus on the most relevant information, enabling better analysis and decision-making. Adjusting the filters ensures that you can track progress and identify trends that are critical to your security and development goals. > [!TIP] > > These are global filters and apply to all widgets on this dashboard. * **Finding Level**: Filter the data based on finding severity such as Critical, High, Medium, or Low (labeled C, H, M, and L in the user interface). * **Category**: Filter the findings by category such as AI models, vulnerability, SCA, SAST, secrets, and container. * **Attributes**: Narrow down the list based on a range of factors such as: * if a patch is available to fix the findings * if the vulnerable function is reachable * if the dependency is reachable * if the dependency originates from a current repository or a current tenant * if the dependency is a test dependency * if the dependency's discovery type is manifest, phantom, or segment match * if the finding originates from itself, direct, or a transitive dependency * filter the findings by the **Exploited** tag from **CISA KEV** * filter the findings by the **Warn** or **Break the Build** options set in the [action policy](/platform-administration/policies/action-policies#create-an-action-policy-from-template) See [Finding attributes](/inventory-insights/findings#finding-attributes) for more information. * **Time Range**: Select a date range from the available options to filter the analytics data based on when the finding was first scanned. By default, the dashboard shows data from the last 90 days. ## Findings snapshot metrics Get a quick overview of key metrics for the selected category, helping you monitor newly identified and resolved findings, as well as the time it takes to address them. Here's what each metric represents: * **Newly Discovered**: The number of findings recently identified across your projects. This count indicates areas that may need attention or remediation. * **Resolved**: The number of findings fixed or mitigated recently, reflecting progress in securing your projects. * **Mean Time to Resolve**: The average time, in days, it takes to resolve a finding once discovered. Lowering this number can indicate faster responses to security issues. * **Minimum Time to Resolve**: The shortest time it took to resolve a finding in the current tracking period, providing insight into how quickly you can address issues. * **Maximum Time to Resolve**: The longest time it took to resolve a finding, showing the upper range for resolution times and highlighting areas where responses might need improvement. These metrics help track security effectiveness over time and identify trends in finding resolution within your projects. ## Analytics for AI models, SCA, SAST, secrets, and container When you select **AI models**, **SCA**, **SAST**, **secrets**, or **container** as the category filter, the dashboard displays the following sections. ![Analytics for SCA findings](https://mintcdn.com/endorlabs-b4795f4f/WE1Aj40QpdxOCFKn/images/inventory-insights/dashboards/analytics-charts-findings.webp?fit=max\&auto=format\&n=WE1Aj40QpdxOCFKn\&q=85\&s=0aafa28508654d7b7e3cae35b48b43b7) ### Findings over time The **Findings over Time** chart tracks the number of newly discovered and resolved findings across your projects over the [selected period](#set-the-filters). This view helps you analyze trends in finding discovery and resolution, showing whether security issues are increasing, decreasing, or remaining steady over time. ### Time for issues resolved The **Time for Issues Resolved** chart displays the number of days taken to resolve issues over the selected period. This metric helps assess response efficiency, highlighting how quickly you address security and other issues, and can indicate improvements or delays in issue resolution processes. ### Findings SLA The findings SLA section tracks your open findings against the SLA duration set for each severity. Its title reflects the category you select, such as **SCA Findings SLA** or **SAST Findings SLA**. The section has two halves: * **Approaching SLA**: Findings within 24 hours of missing their resolution deadline, broken down by severity. Each severity shows the SLA duration set for it. Select a severity to open the matching findings list. * **Past SLA**: Findings that have already breached their SLA, broken down by severity and by how long they are overdue. The overdue buckets are **1-7d**, **8-30d**, **31-90d**, and **90d+**. Use the **Breached** filter to scope the view to the last 30 days, 90 days, 180 days, or all time. To define or adjust SLA durations, see [Set SLA for findings](#set-sla-for-findings). ## Analytics for vulnerabilities When you select **Vulnerability** as the category filter, the dashboard displays all the charts and metrics described above, plus additional dependency trend charts specific to vulnerability analysis. ![Analytics charts for vulnerabilities](https://mintcdn.com/endorlabs-b4795f4f/WE1Aj40QpdxOCFKn/images/inventory-insights/dashboards/analytics-charts-vulnerabilities.webp?fit=max\&auto=format\&n=WE1Aj40QpdxOCFKn\&q=85\&s=ba9a4e561c05ce6b503b809a37becbde) ### Vulnerabilities over time The **Vulnerabilities over Time** chart tracks the number of detected vulnerabilities across your projects over the [selected period](#set-the-filters). This view helps you analyze trends in vulnerability discovery and resolution, showing whether security issues are increasing, decreasing, or remaining steady over time. ### Time for vulnerabilities issues resolved This chart displays the number of days taken to resolve vulnerability issues over the selected period. This metric helps assess response efficiency, highlighting how quickly you address vulnerabilities, and can indicate improvements or delays in issue resolution processes. ### Vulnerabilities SLA The **Vulnerabilities SLA** section works the same way as the [findings SLA section](#findings-sla), scoped to vulnerabilities. To define or adjust SLA for different vulnerability severities, see [Set SLA for findings](#set-sla-for-findings). ### Outdated dependencies trend This chart tracks the number of outdated dependencies in your projects over time. It helps you monitor the progress of updating libraries and frameworks, providing insights into how many dependencies are no longer up-to-date. By identifying trends, you can prioritize updating critical dependencies, reduce security risks, and ensure your projects remain current with the latest versions. A dependency qualifies as outdated if it is older than 10 months and at least 5 releases behind the latest release. ### Unmaintained dependencies trend This chart shows the number of dependencies in your projects that are no longer actively maintained over time. This helps you track the accumulation of unsupported libraries and frameworks, which may pose security and compatibility risks. By monitoring this trend, you can take proactive steps to replace or update unmaintained dependencies, ensuring the stability and security of your projects. ### Unused dependencies trend This chart tracks the number of dependencies in your projects that are no longer in use over time. This helps identify redundant libraries or packages that can be safely removed, reducing the overall project size and improving performance. By monitoring this trend, you can streamline your codebase and reduce potential security risks from unnecessary dependencies. ## Create an analytics report Generate an analytics report from the dashboard to export the metrics and trends shown for your current filter selection. 1. Select **Home** > **Analytics** from the left sidebar. 2. Apply the filters you want to include in the report. 3. Click **Create Report**. 4. Choose a report type, output format, scope, and any additional filters. 5. Click **Create Report**. See [Reports](/inventory-insights/reports#create-an-analytics-or-findings-report) for more information about report types, formats, and management. ## Set SLA for findings A Service Level Agreement (SLA) defines the expected time frame within which you should address security findings, based on their severity. It sets a deadline for resolving new open findings before they approach or breach SLA. The default SLA durations are: * Critical - 30 days * High - 30 days * Medium - 90 days * Low - 180 days Follow these steps to define SLA for findings: 1. Select **Home** > **Analytics** from the left sidebar. 2. Scroll down to the findings SLA section and select **Configure SLA settings**. 3. In the **Customize SLA Duration** dialog, enter a duration in days for each severity. 4. Optionally, click **Reset** to restore a severity's default duration. 5. Click **Save**. > [!NOTE] > > You require **Write** permission for the namespace to change this configuration. # Endor Patches Source: https://docs.endorlabs.com/inventory-insights/dashboards/endor-patches/index Explore the benefits of Endor Patches on the dependencies identified within your organization. The Endor Patches dashboard shows the impact of using Endor Patches to remediate vulnerabilities in your dependencies. Select **Home** > **Endor Patches** from the left sidebar to see the vulnerabilities that Endor Patches can fix and estimate the effort they save your team. ## Set the filters Customize the data displayed on the dashboard by applying specific filters to focus on the most relevant information, enabling better analysis and decision-making. **critical(C)** or **high(H)** priority findings: Customize the displayed data by selecting critical or high priority findings or both. **Reachability**: Filter the data by reachable function or reachable dependency. * Select **Yes** to include reachable function or dependency. * Select **No** to exclude reachable function or dependency. * Select **Potential** to include potentially reachable functions or dependencies. These are global filters and apply to all widgets on this dashboard. ## Use impact calculator Use the **Impact Calculator** to model how many findings you would remediate by applying the highest-impact Endor Patches available to you. It shows the following: * **Percentage of Fixable Findings**: The share of all patchable findings that the selected patches cover. * **Fixable Findings**: The number of findings those patches fix, with the critical and high counts below it. * **Potential impact from using top N Endor Patches**: The number of patches the calculation covers. In **Top**, enter how many of the available Endor Patches to include, then click **Update Filter** to recalculate. Click **Cancel** to discard the change. The calculator respects the [filters](#set-the-filters) you set on the dashboard. ![Impact Calculator](https://mintcdn.com/endorlabs-b4795f4f/WE1Aj40QpdxOCFKn/images/inventory-insights/dashboards/impact-calculator.webp?fit=max\&auto=format\&n=WE1Aj40QpdxOCFKn\&q=85\&s=10c59f56c7047d50130d2afb31615844) ## View impact of Endor Patches The Top Impact by Endor Patches section shows available patches you can request, along with a list of dependencies, their current versions, findings, and impacted projects and package versions. You can expand a dependency to view detailed information and click **Export All as CSV** to download the data for offline analysis. ### View available Endor Patches To view Endor Patches that are available and ready for use: 1. Select the **Available** preset filter to show Endor Patches that are already available. 2. You can review dependencies, fixable findings, and affected projects and package versions to understand the impact of a patch. ![Available endor patches](https://mintcdn.com/endorlabs-b4795f4f/WE1Aj40QpdxOCFKn/images/inventory-insights/dashboards/available-endor-patches.webp?fit=max\&auto=format\&n=WE1Aj40QpdxOCFKn\&q=85\&s=03469e414039fa56aab552bab5ead1be) 3. Select a dependency row to view details about the dependency. * Select **Overview** to review key metrics, patch attestations, and a detailed fixable findings list with severity, advisories, and CVEs. * Select **Patches** to view total commits and all the file-level changes. ![Available patch details](https://mintcdn.com/endorlabs-b4795f4f/WE1Aj40QpdxOCFKn/images/inventory-insights/dashboards/available-patches-details.webp?fit=max\&auto=format\&n=WE1Aj40QpdxOCFKn\&q=85\&s=c61e5be2d7388efbad663f2a635f60e3) ### Request Endor Patches 1. Select the **To Request** preset filter to show dependencies where you can ask Endor Labs for a patch. 2. Select **Request Now** to start a new request. Enter a comment and select **Send Request**. ![Endor patches to request](https://mintcdn.com/endorlabs-b4795f4f/WE1Aj40QpdxOCFKn/images/inventory-insights/dashboards/endor-patches-to-request.webp?fit=max\&auto=format\&n=WE1Aj40QpdxOCFKn\&q=85\&s=34bf80c28c2557cabb3d3656e229ebd4) 3. Select a dependency row to view details such as request status, fixable findings, projects impacted, and package versions impacted. ![Request patches details](https://mintcdn.com/endorlabs-b4795f4f/WE1Aj40QpdxOCFKn/images/inventory-insights/dashboards/request-patches-details.webp?fit=max\&auto=format\&n=WE1Aj40QpdxOCFKn\&q=85\&s=39996a2e1859d979560ece08491d6b27) #### Patch request lifecycle The patch request lifecycle consists of four stages, each representing a different phase of assessment and development. * **Opened**: Endor Labs is assessing the request's feasibility. * **In Progress**: Endor Labs is actively developing a patch. * **Closed**: The patch is now available. * **Won't Do**: Endor Labs assessed that the request is not feasible. # First-party code Source: https://docs.endorlabs.com/inventory-insights/dashboards/first-party-code/index Visualize the first-party code vulnerabilities in your organization. The first-party code dashboard helps you to understand the vulnerabilities in your codebase from a SAST and secrets perspective. Select **Home** > **First Party Code** from the left sidebar to view the vulnerabilities across all the projects in the given namespace. ![First-party code dashboard](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/inventory-insights/dashboards/first-party-code.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=68ba87710f5b6c2180bebb3201dc486f) The following sections describe the widgets in the first-party code dashboard and how to use them. * [Set the filters for the dashboard](#set-the-filters-for-the-dashboard) * [SAST findings](#sast-findings) * [Secrets findings](#secrets-findings) * [OWASP Top 10 by severity](#owasp-top-10-by-severity) * [Top 10 secret rules by severity](#top-10-secret-rules-by-severity) * [Top Projects by SAST findings](#top-projects-by-sast-findings) * [Top Projects by secrets findings](#top-projects-by-secrets-findings) ### Set the filters for the dashboard You can filter the data displayed on the dashboard by applying filters based on the severity of the findings. You can choose the combination of critical, high, medium, and low severity findings. ### SAST findings Displays the number of open SAST findings categorized by severity and languages. Click on the severity or language to view the list of specific findings. ### Secrets findings Displays the number of open secrets findings. Valid secrets are critical in nature while invalid secrets are informational in nature with a low severity. The secrets finding policy configured for the projects determines these findings. Click on the type of secret to view the list of specific findings. ### OWASP Top 10 by severity Displays the number of OWASP Top 10 findings across your projects in a stacked bar chart. Each bar represents one of the ten OWASP security risk categories, categorized by severity. Click on the bar to view the list of the SAST findings for that risk. ### Top 10 secret rules by severity Displays the number of top 10 secret detection rule findings across your projects in a stacked bar chart. Each bar represents a secret rule categorized by severity. Click on a bar to view the list of findings identified by that secret rule. ### Top Projects by SAST findings Lists the top five projects with the highest number of SAST findings. Click on the project to view the list of SAST findings associated with the project. ### Top Projects by secrets findings Lists the top five projects with the highest number of secrets findings. Click on the project to view the list of findings associated with the project. # Dashboards Source: https://docs.endorlabs.com/inventory-insights/dashboards/index Get a consolidated view of security posture, developer adoption, and remediation impact across your organization. Dashboards provide the following capabilities to monitor potential threats: * Analyze findings, vulnerabilities, and dependencies across your code inventory in real time. * Measure the value Endor Labs delivers, from issues caught before merge to malicious packages blocked. * Monitor the AI coding agents, MCP servers, and Endor Labs agents working in your organization, along with related policy violations. The existing dashboards have moved to **Home** in the left sidebar. The new home dashboard does not replace them. If you use them for reporting, you can continue to do so. Endor Labs provides a set of dashboards, each focused on a different area of your security program. You can access all dashboards from **Home** in the left sidebar. * [Home Dashboard](#home-dashboard): The default dashboard view, which tracks noise reduction, SLA compliance, shift-left catches, malicious package protection, and agent governance. * [OSS overview](/inventory-insights/dashboards/oss-overview): View the security posture of the open source dependencies across your organization. * [Endor Patches](/inventory-insights/dashboards/endor-patches): Explore the Endor Patches available for the dependencies in your organization. * [First-party code](/inventory-insights/dashboards/first-party-code): View the vulnerabilities in the code your team writes. * [Analytics](/inventory-insights/dashboards/analytics): Measure the volume and efficiency of issue resolution over time. * [AI security code review](/inventory-insights/dashboards/ai-security-review): View the results of AI security code reviews in your organization. This dashboard is available only if you have an AI security code review license. * [OSS Coverage](/inventory-insights/dashboards/oss-coverage): Monitor dependency resolution and reachability analysis coverage across your organization. ## Home Dashboard The home dashboard measures the outcomes of your security program. It shows how many findings Endor Labs filters out so your team can focus on the ones that matter, and how quickly your team fixes them. Select **Home** > **Dashboard** from the left sidebar to track risk reduction across your organization and show the value of shifting security earlier in development. ### Noise Reduction Select **Noise Reduction** to see how much the Endor Labs prioritization funnel reduces the findings your team must triage. Use the **Projects**, **Project Tags**, and **Finding Level** filters to scope the funnel. You can select up to 100 projects. > [!NOTE] > > When you filter by project tags, the links from the funnel open a filtered findings page that does not reflect the selected tags. Select a category beside the funnel to choose what it measures. **SCA Vulnerabilities** covers software composition findings, **Secrets** covers secrets detection, and **Containers** covers container scanning. A category that your license does not cover appears locked. The funnel narrows the total count through the following stages. The stages shown depend on the category you select. * **Total open**: Indicates all open findings in the selected category, across the projects in scope. Shown for every category. * **Not in test**: Indicates the findings that are present in the production code and not in the test code. Shown for **SCA Vulnerabilities** and **Secrets**. * **Fix available**: Indicates the findings for which a fix is available. Shown for **SCA Vulnerabilities** and **Containers**. * **Reachable**: Indicates the findings that attackers can access or exploit, including the ones that are only potentially reachable. Shown for **SCA Vulnerabilities** and **Containers**. For **SCA Vulnerabilities**, it counts the findings with the **Reachable Function** or **Potentially Reachable Function** attribute. For **Containers**, it counts the findings with the **Reachable Dependency** or **Potentially Reachable Dependency** attribute. * **Exploitable**: Indicates the findings from the **Reachable** stage with an EPSS probability score of 1% or greater. This stage carries the potentially reachable findings forward as well. Shown for **SCA Vulnerabilities** and **Containers**. * **Valid secret**: Indicates the secrets that Endor Labs confirms as valid. Shown for **Secrets**. Each stage shows the percentage reduction from the previous stage. ### SLA Compliance & Remediation Select **SLA Compliance & Remediation** to see how quickly your team resolves findings against your defined service level agreement (SLA) windows, in the following charts: * **Discovered vs Resolved**: Trend of findings discovered against findings resolved over time. * **Actionable Findings**: Count of findings that are currently actionable. * **Actual MTTR vs SLA Window**: Your team's mean time to resolution (MTTR) for each severity, measured against the SLA duration you've set for it. ![SLA Compliance and Remediation](https://mintcdn.com/endorlabs-b4795f4f/WE1Aj40QpdxOCFKn/images/inventory-insights/dashboards/sla-dashboard.webp?fit=max\&auto=format\&n=WE1Aj40QpdxOCFKn\&q=85\&s=4a4b7cf8f01370de370597ccd0b43ee0) To customize the SLA duration for each severity: 1. On the **Actual MTTR vs SLA Window** chart, select the vertical three dots. 2. In the **Customize SLA Duration** dialog, enter a duration in days for each severity. 3. Optionally, click **Reset** to restore a severity's default duration. 4. Click **Save**. > [!NOTE] > > You require **Write** permission for the namespace to change this configuration. ### Shift-Left Catches Select **Shift-Left Catches** to see the value Endor Labs delivers before code merges, in the following charts: * **Issues Caught by Pipeline Stage**: Issues caught across the **Plan / hooks**, **Code generation**, and **PR scan** stages. * **Estimated Savings**: Development time and cost saved from catching issues before merge, calculated from your fix time and hourly cost baseline. * **Projects with PR Scans**: Percentage of your projects with an active PR scan. ![Shift-Left Catches](https://mintcdn.com/endorlabs-b4795f4f/WE1Aj40QpdxOCFKn/images/inventory-insights/dashboards/shift-left-catches-dashboard.webp?fit=max\&auto=format\&n=WE1Aj40QpdxOCFKn\&q=85\&s=462de8e583af21741785290af8072ba1) To customize the estimated savings baseline: 1. On the **Estimated Savings** chart, select the vertical three dots. 2. In the **Customize Estimated Savings** dialog, enter your **Pre-merge fix time** and **Post-merge fix time** in minutes. 3. Enter your **Hourly cost** and choose a **Currency**. 4. Optionally, click **Reset** to restore a field's default value. 5. Click **Save**. > [!NOTE] > > You require **Write** permission for the namespace to change this configuration. ### Malicious Packages Protection Select **Malicious Packages Protection** to see how Endor Labs blocks and remediates malicious and unapproved packages. * **Issues Caught by Pipeline Stage**: Malicious packages caught across the Package Firewall, PR scan, and post-merge stages. * **Policy Violations**: Breakdown of automatically remediated policy violations across the **Cool down policy**, **Recent dependencies**, and **Unpinned dependencies** categories. ![Malicious packages protection](https://mintcdn.com/endorlabs-b4795f4f/WE1Aj40QpdxOCFKn/images/inventory-insights/dashboards/malicious-package-protection.webp?fit=max\&auto=format\&n=WE1Aj40QpdxOCFKn\&q=85\&s=9e4b770bcae71093997ea3d095ec4a4b) ### Agent Governance Select **Agent Governance** to see adoption and risk across the AI coding agents and MCP servers your developers use, in the following: * **Developer Adoption**: Trend of active developers using coding agents, by month or week. * **Coding Agents**: Ranked list of coding agents by usage. * **MCP Servers**: Ranked list of MCP servers by usage. * **Policy Violations**: Ranked list of Coding Agent Governance policy violations. Endor Labs retains policy violation events for 30 days. A time window wider than that shows the last 30 days of violations. See [Review your agent inventory](/agent-governance/inventory) to view the Workstation Inventory and MCP Servers lists in full, or [Triage policy violations](/agent-governance/policy-violations) to review Coding Agent Governance policy violations. ![Agent governance](https://mintcdn.com/endorlabs-b4795f4f/WE1Aj40QpdxOCFKn/images/inventory-insights/dashboards/dashboard-agent-governance.webp?fit=max\&auto=format\&n=WE1Aj40QpdxOCFKn\&q=85\&s=0be1ee70a524fb9d461ccf033eb448c7) ### Endor Agents The **Endor Agents** table lists the AI agents working in your organization, the type of each agent, and its impact over the last 30 days. Hover over an agent's name to see what it does. The **Type** column shows **Embedded** for an agent built into the Endor Labs platform, or **Agent Hub** for an agent you added from the Agents Hub catalog. Endor Labs embeds the following agents: \- Name: Detection Description: AI detection stage of the SAST pipeline. Surfaces code security findings that rule-based scanners miss. Impact: Findings it caught in the last 30 days, broken down by critical and high severity. \- Name: Triaging Agent Description: Auto-triages new findings to filter out false positives. Impact: Percentage of SAST findings from the last 30 days it triaged as false positives. \- Name: MCP Description: Brings Endor security checks into your IDE and coding agents to catch issues before the PR. Impact: Number of developers who used it in the last 30 days. \- Name: AI Chat Assistant Description: Answers questions about findings and other resources, in context. Impact: Number of chat sessions in the last 30 days. **Detection** and **Triaging Agent** require an AI SAST license, and **AI Chat Assistant** requires an AI inference license. The **Impact (30d)** column shows **Inactive** for an agent that your license does not cover, or that has no measurable activity in the last 30 days. ![Endor agents](https://mintcdn.com/endorlabs-b4795f4f/WE1Aj40QpdxOCFKn/images/inventory-insights/dashboards/embedded-agents-dashboard.webp?fit=max\&auto=format\&n=WE1Aj40QpdxOCFKn\&q=85\&s=9966d440de77b4dece77548a0a12e154) Select **View all agents** to open the [Agents Hub](/secure-ai-coding/agents-hub) and browse the agent catalog, review activity, and see delegated credentials and trust attribution. # OSS Coverage Source: https://docs.endorlabs.com/inventory-insights/dashboards/oss-coverage/index Beta
Visualize dependency resolution and reachability analysis coverage across your organization. The OSS Coverage dashboard helps you to understand how successfully Endor Labs resolved dependencies and performed reachability analysis for your scanned projects. Select **Home** > **OSS Coverage** from the left sidebar to identify gaps in scan quality and take action to improve coverage. ![OSS Coverage dashboard](https://mintcdn.com/endorlabs-b4795f4f/WE1Aj40QpdxOCFKn/images/inventory-insights/dashboards/oss-coverage-dashboard.webp?fit=max\&auto=format\&n=WE1Aj40QpdxOCFKn\&q=85\&s=eaa390b6c555e0ea594cbb886675e122) ## Set the filters Customize the data displayed on the OSS Coverage dashboard by applying filters to focus on the most relevant projects and ecosystems. These are global filters and apply to all widgets on this dashboard. * **Projects**: Filter coverage metrics to one or more specific projects. * **Project Tags**: Filter by tags applied to your projects. * **Ecosystems**: Filter by package ecosystem, for example, Maven, npm, or PyPI. ## Dependency Resolution Coverage The **Dependency Resolution Coverage** widget shows the percentage of scanned projects for which Endor Labs successfully resolved the full dependency graph. Dependency resolution is a prerequisite for accurate vulnerability detection. Projects where resolution fails may have incomplete findings. The widget displays the following categories: * **Successful**: Projects where dependency resolution completed without errors. * **Successful After Fixes**: Projects where dependency resolution succeeded after automated remediation steps were applied. * **Not Successful**: Projects where dependency resolution failed. These projects are candidates for investigation. See [Add private registry integration](#add-private-registry-integration) for common causes and fixes. The percentage in the center of the chart reflects combined coverage including projects that succeeded after fixes. ## Reachability Coverage The **Reachability Coverage** widget shows the percentage of scanned projects for which Endor Labs was able to perform reachability analysis. Reachability analysis determines which vulnerabilities in your dependencies are actually reachable from your application code. Higher reachability coverage means Endor Labs can more accurately prioritize exploitable vulnerabilities, reducing false positives. The widget displays the following categories: * **Successful**: Projects where full reachability analysis was completed using a first-party analysis of your code. * **Successful with Pre-Computed**: Projects where reachability was determined using pre-computed call graph data from the Endor Labs database, rather than a direct analysis of your code. * **Successful After Fixes**: Projects where reachability analysis succeeded after automated fixes were applied. * **Not Successful**: Projects where reachability analysis could not be completed. The percentage in the center of the chart reflects total coverage across all successful categories, including pre-computed and post-fix successes. ## Coverage error buckets When dependency resolution or reachability analysis is not fully successful, the dashboard groups the underlying errors into three expandable buckets. Each bucket includes an **Error Description** table listing the specific errors encountered, along with the number of **Projects** and **Packages** affected. Click any row to open a detail drawer with the full scan log for that error. ![Coverage error buckets](https://mintcdn.com/endorlabs-b4795f4f/5FH8IO6vx_QKOMbz/images/inventory-insights/dashboards/coverage-error-buckets.webp?fit=max\&auto=format\&n=5FH8IO6vx_QKOMbz\&q=85\&s=8e90ea2e5cf3040d0369acea32f1a31d) ### Add private registry integration The **Add private registry integration** bucket lists errors caused by dependencies that Endor Labs could not locate in a public registry. This typically occurs when a project depends on packages hosted in a private npm, Maven, PyPI, or Docker registry that Endor Labs does not yet have access to. Example error: **Package not found in PyPI**. Check if you have configured a private package registry for PyPI. Otherwise, this dependency may not exist. To resolve these errors, connect your private registry so that Endor Labs can authenticate and fetch internal packages during scanning. ### Customize your tenant's build tools The **Customize your tenant's build tools** bucket lists errors caused by build environment mismatches. For example, an incompatible language version, missing build tool, or dependency conflict can prevent Endor Labs from resolving the project's dependency graph. These errors typically occur when a project requires a specific runtime or toolchain configuration that differs from the Endor Labs default scanning environment. To resolve these errors, configure language versions, tools, and dependencies to match your project's requirements. Click **Customize your toolchains** in the dashboard to update your tenant's build tool settings, or see [Build tools](/best-practices/build-tools-use-case). ### Other Errors The **Other Errors** bucket lists errors that are not addressable through registry configuration or toolchain customization. These typically occur when a project requires a self-hosted CI environment, targets Windows-specific dependencies, or relies on proprietary tooling. They also occur when a project uses system configurations that the Endor Labs scanning environment doesn't support. These errors may require changes to how the project is scanned, such as running `endorctl` directly in your own CI pipeline where the required environment is available. See [CI/CD Integration](/setup-deployment/ci-cd) for more information. ## View the full scan log Each row in the error tables links to a detail drawer that shows the full scan log for that error. You can view details such as: * The affected project name and branch. * A link to the project repository. * The full error log output from the scan, showing the exact failure message returned during dependency resolution. * **View Full Log**: Opens the full scan log for deeper investigation. * **Go to Scan History**: Opens the scan history page for the affected project so you can review previous scan runs and track when the error was first introduced. ![Coverage scan log](https://mintcdn.com/endorlabs-b4795f4f/5FH8IO6vx_QKOMbz/images/inventory-insights/dashboards/oss-coverage-scan-logs.webp?fit=max\&auto=format\&n=5FH8IO6vx_QKOMbz\&q=85\&s=e0a0b9801d6c87c76bcc04e30ca2a833) # OSS overview Source: https://docs.endorlabs.com/inventory-insights/dashboards/oss-overview/index Visualize complete software security posture of your organization. The OSS overview dashboard shows the security posture of your open source dependencies, including scan statistics, vulnerabilities, and how Endor Labs prioritizes them. Select **Home** > **OSS Overview** from the left sidebar to see your dependency coverage and focus remediation on the vulnerabilities that pose real risk. ## Scanned by Endor Labs Displays information on the following scan statistics across all ecosystems in the given tenant: * Total number of dependencies, categorized into direct and transitive dependencies * Total number of vulnerabilities, categorized into reachable, potentially reachable, and unreachable vulnerabilities * Total number of projects * total number of packages * Total number of scans * Total number of configured notifications ## Vulnerability prioritization funnel Endor Labs' vulnerability prioritization funnel systematically assesses and categorizes vulnerabilities based on their severity and category. Endor Labs prioritizes vulnerabilities in the following order: * **Total open vulnerabilities**: Indicates the complete list of vulnerabilities detected in all the scanned projects in this tenant. * **Not in test**: Indicates the list of vulnerabilities that are present in the production code and not in the test code. * **Fix available**: Indicates the list of vulnerabilities in the production code, for which a fix is available. * **Reachable**: Indicates the list of vulnerabilities in production code, with a fix, that attackers can access or exploit. Customize the reachable findings for your organization. You choose to see the data for reachable functions or potentially reachable functions, or for both. See [Customize finding reachability](#customize-finding-reachability). * **Exploitable likelihood**: Indicates the list of vulnerabilities in production code, with a fix, that are reachable, and with an EPSS probability score greater than 1%. Click **Low Risk Upgrades** in the vulnerability prioritization funnel to view findings with low remediation risk, if present in your namespace. Use the search bar to filter projects by name and view their OSS overview. The search supports partial matching. For example, when you search `repo`, the system displays all projects containing `repo` in their title along with their corresponding OSS overview data. ![Vulnerability funnel](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/inventory-insights/dashboards/vulnerability-funnel.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=597cf23d8415fdd59f0eab360863410a) > [!NOTE] > > You require an Endor Labs OSS Pro license to access the **Low Risk Upgrade** feature. By applying this funnel approach, organizations can prioritize addressing the most critical, exploitable, and actionable vulnerabilities first, maximizing their security efforts. ### Customize finding reachability Customize finding reachability for your organization. The data in the **Vulnerability Prioritization Funnel** 1. Select **Home** > **OSS Overview** from the left sidebar. 2. Navigate to the **Vulnerability Prioritization Funnel** and click the vertical three dots. 3. In **FINDING REACHABILITY**, define your finding reachability criteria. You can select **Reachable Function**, **Potentially Reachable Function**, both options, or neither. 4. Click **Save**. 5. Click **Reset** to restore finding reachability to your last set values. ![Vulnerability funnel customization](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/inventory-insights/dashboards/vuln-funnel-customization.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=3421bce077682966ee9b30053fd6c8f7) ### Development hours and cost saved Visualize the hours and cost saved metrics information on the dashboard. * **Dev Hours Saved** - Development hours saved estimates the time saved by reducing the number of vulnerabilities that developers must prioritize. See [Customize development hours](#customize-baseline-for-development-hours). * **Cost Saved** - Cost savings estimates the value by multiplying the saved developer hours with the full-time equivalent (FTE) hourly cost for triaging vulnerabilities. See [Customize cost baseline](#customize-baseline-for-cost). #### Customize baseline for development hours Adjust the development baseline to meet your organization's specific needs. 1. Select **Home** > **OSS Overview** from the left sidebar. 2. Navigate to the **Dev Hours Saved** and click the vertical three dots. 3. Choose **BASELINE** and set **DEV HOURS** for a record on the **Vulnerability Prioritization Funnel**, * **Total Open Vulnerabilities**: Provide approximate development hours required to triage all open vulnerabilities. By default, the dashboard calculates development hours saved from this baseline and displays them on the **Vulnerability Prioritization Funnel**. * **Not In Test**: Provide approximate development hours required to triage vulnerabilities in production code. * **Reachable**: Provide approximate development hours required to triage accessible and most exploitable vulnerabilities. * **Fix Available**: Provide approximate development hours required to triage vulnerabilities you can fix with a patch or an upgrade. 4. Click **Save**. #### Customize baseline for cost Tailor the cost baseline to reflect the Full-Time Equivalent cost of your organization. 1. Select **Home** > **OSS Overview** from the left sidebar. 2. Navigate to **Cost Saved** and click the vertical three dots. 3. Enter an **HOURLY COST** and **CURRENCY** that applies to one full-time employee following your organization's application security program. 4. Click **Save**. ## Top projects metrics View the top project data by all findings, all vulnerabilities, reachable vulnerabilities, outdated dependencies, and unmaintained dependencies. You can identify the numbers for critical, high, medium, and low risk severity findings. Click the bar graph to view complete details. ## Top packages metrics View package data by all findings, all vulnerabilities, reachable vulnerabilities, outdated dependencies, and unmaintained dependencies. You can identify the numbers for critical, high, medium, and low risk severity findings. Click the bar graph to view complete details. # Working with dependency filters Source: https://docs.endorlabs.com/inventory-insights/dependencies/dependency-filters/index Learn how to implement and use dependency filters to search, prioritize, and manage dependencies across your organization. Includes an interactive filter builder. Filters enable targeted queries on dependencies based on attributes such as ecosystem, reachability, direct versus transitive usage, discovery type, approximate resolution, severity, and Endor scores. This guide explains how dependency filters work, how to apply and combine them effectively, and provides practical examples to support triage, audit, and reporting workflows across your dependency inventory. ## How filters work Each filter consists of three parts. * **Key**: The attribute you want to filter (for example, `Ecosystems`, `Dependency Reachability`, and `Direct`). * **Operator**: The comparison logic (for example, `equals`, `in`, and `greater than` ). * **Value**: The target value to evaluate (for example, `Maven` and `Yes`). Dependency filters use standard comparison operators to evaluate criteria. See [Filter operators](/developers-api/rest-api/using-the-rest-api/filters#operators) for detailed information about available operators and their usage when using the API. When you apply multiple filters, the system combines them using logical AND operations across filters for different fields and logical OR operations across filters for the same field. For example: * **Filter 1**: `Ecosystems in: npm` * **Filter 2**: `Dependency Reachability: Potentially Reachable` * **Filter 3**: `Direct: Yes` * **Filter 4**: `Dependency Scopes: Normal` ![Multiple dependency filters applied](https://mintcdn.com/endorlabs-b4795f4f/deISr2DfATZg293W/images/best-practices/dependency-filters/dependency-filters/multiple-filters.webp?fit=max\&auto=format\&n=deISr2DfATZg293W\&q=85\&s=7d5a8739a63be8afb5e87c823ac1bd8f) This combination returns only dependencies that are in the npm ecosystem, potentially reachable in your code, direct, and have normal scope. ## Filter implementation techniques You can use the following filter types to manage your dependencies effectively. * [Preset filters](#preset-filters): Use the filter bar in the Endor Labs user interface to quickly segment dependencies by common attributes. * [Filter dependencies using API](#filter-dependencies-using-api): Use the REST API or endorctl for complex queries and logical combinations. ### Preset filters The following examples demonstrate how to apply preset filters for common dependency scenarios. #### Filter dependencies by project Use the **Projects** filter to show only dependencies used by one or more selected projects. You can search by project name or tags, and click **Add Filter**. For example, to view only dependencies used by a specific application, search by project name or tags ![Filter by project](https://mintcdn.com/endorlabs-b4795f4f/deISr2DfATZg293W/images/best-practices/dependency-filters/dependency-filters/filter-project-name.webp?fit=max\&auto=format\&n=deISr2DfATZg293W\&q=85\&s=f07c36343f921894a4bae6247b102e64) #### Filter dependencies by ecosystem Use the **Ecosystems** filter to segment dependencies by package manager or language for targeted security policies, license compliance, or ecosystem-specific upgrade campaigns. For example, to focus on Maven dependencies for a Java security assessment, use the `Ecosystems in: Maven` filter. ![Filter by ecosystem](https://mintcdn.com/endorlabs-b4795f4f/deISr2DfATZg293W/images/best-practices/dependency-filters/dependency-filters/filter-ecosystem.webp?fit=max\&auto=format\&n=deISr2DfATZg293W\&q=85\&s=6e6491f63487ba9896eb82ab209a610f) #### Filter dependencies by reachability Use the **Dependency Reachability** filter to focus on dependencies that are reachable from your application code. Reachable dependencies are the ones that execute at runtime and increase your exposure to vulnerabilities. You can filter by **Reachable**, **Potentially Reachable**, or **Unreachable** dependency. For example, to prioritize remediation of dependencies your application might call at runtime, use the `Dependency Reachability: Potentially Reachable` filter. ![Filter by dependency reachability](https://mintcdn.com/endorlabs-b4795f4f/deISr2DfATZg293W/images/best-practices/dependency-filters/dependency-filters/filter-dependency-reachability.webp?fit=max\&auto=format\&n=deISr2DfATZg293W\&q=85\&s=e63df4f4699914a50c027394409a6218) #### Filter dependencies by scope Use the **Dependency Scopes** filter to separate production dependencies from those used only for testing or build-time tasks, so that you can target the right ones for policies and reports. You can filter by: * **Normal**: Production dependencies consumed by the application at run time. * **Test**: Dependencies used only in test scope, such as test frameworks and test-only libraries. * **Build**: Dependencies used only at build or development time, such as compilers, build tools, or dev-only tools. For example, to show only production dependencies, use the `Dependency Scopes: Normal` filter. ![Filter by dependency scope](https://mintcdn.com/endorlabs-b4795f4f/deISr2DfATZg293W/images/best-practices/dependency-filters/dependency-filters/filter-dependency-scope.webp?fit=max\&auto=format\&n=deISr2DfATZg293W\&q=85\&s=15c448f53246624c15a3cf38a3ade8ee) #### Filter dependencies by declaration Use the **Direct** filter to distinguish between dependencies you declare explicitly in your manifests and those pulled in transitively. For example, to view only direct dependencies, use the `Direct: Yes` filter. ![Filter by direct](https://mintcdn.com/endorlabs-b4795f4f/deISr2DfATZg293W/images/best-practices/dependency-filters/dependency-filters/filter-direct.webp?fit=max\&auto=format\&n=deISr2DfATZg293W\&q=85\&s=aabae512c3357443925fa6114742935b) #### Filter dependencies by public Use the **Public** filter to show dependencies from public registries (npm, Maven Central, PyPI) or from private sources. For example, to view only dependencies from public package sources, use the `Public: Yes` filter. ![Filter by public](https://mintcdn.com/endorlabs-b4795f4f/deISr2DfATZg293W/images/best-practices/dependency-filters/dependency-filters/filter-public.webp?fit=max\&auto=format\&n=deISr2DfATZg293W\&q=85\&s=2066b7214815fb79b81844c7d9a34993) #### Filter dependencies by vendored Use the **Vendored** filter to scope results by whether your repository embeds dependency artifacts, such as version-controlled source or shaded JARs, rather than resolving them from a package registry. > [!NOTE] > > The **Vendored** filter applies only to dependencies used by [Endor Patches](/risk-remediation/endor-patches). It does not affect regular OSS dependency ingestion. For example, to narrow your Endor Patches dependency review to only non-vendored dependencies, use the `Vendored: No` filter. ![Filter by vendored](https://mintcdn.com/endorlabs-b4795f4f/deISr2DfATZg293W/images/best-practices/dependency-filters/dependency-filters/filter-vendored.webp?fit=max\&auto=format\&n=deISr2DfATZg293W\&q=85\&s=e3348c85804e97476c78a4f35ce0d2d2) #### Filter dependencies by approximation Use the **Approximation** filter to distinguish dependencies inferred during fallback dependency resolution from dependencies fully resolved from manifests and lockfiles. Approximate dependencies can still appear in findings, but they may be less accurate than fully resolved dependencies. For example, to review only dependencies discovered through approximate resolution, use the `Approximation: Yes` filter. See [Approximate scans](/scan/sca/approximate-scans) for more information on approximate resolution. ![Filter by approximation](https://mintcdn.com/endorlabs-b4795f4f/deISr2DfATZg293W/images/best-practices/dependency-filters/dependency-filters/filter-approximation.webp?fit=max\&auto=format\&n=deISr2DfATZg293W\&q=85\&s=37c3e115af25a6538718ea0799c315cd) #### Filter dependencies by discovery type Use the **Discovery Type** filter to restrict results by how the dependency was found. You can filter by **Manifest** (declared in a manifest), **Phantom** (phantom or imported dependency analysis), or **Segment match** (code segment match). For example, to focus on phantom dependencies, use the `Discovery Type: Phantom` filter. ![Filter by discovery type](https://mintcdn.com/endorlabs-b4795f4f/deISr2DfATZg293W/images/best-practices/dependency-filters/dependency-filters/filter-discovery-type.webp?fit=max\&auto=format\&n=deISr2DfATZg293W\&q=85\&s=8a77948a2eae9625d46f0138477c1acb) #### Filter dependencies by pinned Use the **Pinned** filter to tell whether the dependency version is pinned to a specific version or range. Unpinned direct dependencies are a common operational and supply chain risk because builds can pull different versions over time. For example, to list only pinned dependencies, use the `Pinned: Yes` filter. ![Filter by pinned](https://mintcdn.com/endorlabs-b4795f4f/deISr2DfATZg293W/images/best-practices/dependency-filters/dependency-filters/filter-pinned.webp?fit=max\&auto=format\&n=deISr2DfATZg293W\&q=85\&s=d9d3307b982136b3dfd133838ebc3999) #### Filter dependencies by scan timestamp Use the **Last Scanned** filter to identify dependencies with stale security data that require fresh scans for current security posture. You can select from predefined time ranges or use the calendar to select a specific date. For example, to identify dependencies scanned within the last 24 hours, use the `Last Scanned: Last Day` filter. ![Filter by last scanned](https://mintcdn.com/endorlabs-b4795f4f/deISr2DfATZg293W/images/best-practices/dependency-filters/dependency-filters/filter-last-scanned.webp?fit=max\&auto=format\&n=deISr2DfATZg293W\&q=85\&s=f73d19e233993a237ea013970d33a1ab) #### Filter dependencies by release date Use the **Released** filter to focus on recently released dependency versions for upgrade planning or to track new releases. You can select from predefined time ranges or use the calendar to select a specific date. For example, to find dependencies released in the last week, use the `Released: Last Week` filter. ![Filter by release date](https://mintcdn.com/endorlabs-b4795f4f/deISr2DfATZg293W/images/best-practices/dependency-filters/dependency-filters/filter-released.webp?fit=max\&auto=format\&n=deISr2DfATZg293W\&q=85\&s=82f72b9ebee1673d003f64c51114c31d) ### Filter dependencies using API For complex queries, use the advanced filter syntax to combine multiple attributes and apply logical operators. Use the [Dependency filter builder](#interactive-filter-builder) to assemble conditions interactively. Native scope records the dependency scope as the package manager reports it, such as Maven `provided` or npm `devDependencies`. When the resolver reports no native scope, the value mirrors the normalized scope as `normal`, `test`, or `build`. An empty value means the resolver supplied no scope, or the record is from a scan before this field shipped. Gradle source scans and JVM binary scans always report `compile`. The following table lists the available attributes for dependency filters. \- Title: Dependency Package Version Name Key: \`meta.name\` Description: Filters dependencies by the dependency package version name in the format \`ecosystem://package\@version\`. \- Title: Parent UUID Key: \`meta.parent_uuid\` Description: Filters dependencies by the root package version UUID that declares or pulls in the dependency. \- Title: Importing Project UUID Key: \`spec.importer_data.project_uuid\` Description: Filters dependencies by the project that contains them. Use to list all dependencies for a given project. \- Title: Importing Package Version UUID Key: \`spec.importer_data.package_version_uuid\` Description: Filters dependencies by the root package version that declares or pulls in the dependency. \- Title: Importing Package Name Key: \`spec.importer_data.package_name\` Description: Filters dependencies by the qualified name of the importing package, without version. \- Title: Importing Package Version Name Key: \`spec.importer_data.package_version_name\` Description: Filters dependencies by the fully qualified name of the root package version. \- Title: Call Graph Available Key: \`spec.importer_data.callgraph_available\` Description: Filters by whether a call graph is available for the root package version. \- Title: Dependency Project UUID Key: \`spec.dependency_data.project_uuid\` Description: Filters by the project UUID to which the dependency package version belongs. \- Title: Dependency Package Version UUID Key: \`spec.dependency_data.package_version_uuid\` Description: Filters by the UUID of the dependency package version object. \- Title: Dependency Package Name Key: \`spec.dependency_data.package_name\` Description: Filters by the qualified dependency package name. \- Title: Ecosystem Key: \`spec.dependency_data.ecosystem\` Description: Filters by dependency ecosystem, such as npm, Maven, or PyPI. \- Title: Direct Key: \`spec.dependency_data.direct\` Description: Filters by whether the dependency is direct or transitive. \- Title: Reachability Key: \`spec.dependency_data.reachable\` Description: Filters by reachability status, such as reachable, potentially reachable, or unreachable. \- Title: Dependency Scope Key: \`spec.dependency_data.scope\` Description: Filters by dependency scope, such as Build, Normal, or Test. \- Title: Native Dependency Scope Key: \`spec.dependency_data.native_scope\` Description: Filters by the dependency scope as the package manager reports it, such as Maven \`provided\` or npm \`devDependencies\`. When the resolver reports no native scope, the value mirrors the normalized scope as \`normal\`, \`test\`, or \`build\`. An empty value means the resolver supplied no scope, or the record predates this field. The basic filters in the Endor Labs user interface do not offer this attribute yet. Toggle Advanced in the filter bar and type the key, or query it through the API. \- Title: Public Key: \`spec.dependency_data.public\` Description: Filters by whether the dependency is from a public or a private source. \- Title: Vendored Key: \`spec.dependency_data.vendored\` Description: Filters by whether the dependency is vendored or embedded in your repository. \- Title: Approximation Key: \`spec.dependency_data.approximation\` Description: Filters by whether the dependency is approximate (estimated from unresolved dependency data). \- Title: Pinned Key: \`spec.dependency_data.pinned\` Description: Filters by pinned status of the dependency version. \- Title: Patched Key: \`spec.dependency_data.patched\` Description: Filters by patch status of the dependency version. \- Title: End-of-Life Key: \`spec.dependency_data.eol\` Description: Filters by whether the dependency is end-of-life. \- Title: Last Commit Key: \`spec.dependency_data.last_commit\` Description: Filters by the date of the last commit or modification in the dependency version. \- Title: End-of-Life Timestamp Key: \`spec.dependency_data.eol_timestamp\` Description: Filters by the end-of-life timestamp of the dependency package version. \- Title: Namespace Key: \`spec.dependency_data.namespace\` Description: Filters by the namespace to which the dependency package version belongs. \- Title: Discovery Type Key: \`spec.dependency_data.discovery_type\` Description: Filters by discovery method: manifest, phantom, or segment match. \- Title: Parent Count Key: \`spec.dependency_data.parent_count\` Description: Filters by the number of direct parents of the dependency in the dependency graph. ### Interactive filter builder ### API filter use cases The following examples demonstrate how to combine these attributes for common security and compliance workflows. > [accordion] Find Maven dependencies with provided scope > > List Maven dependencies whose native package-manager scope is `provided`. Normalized scope stays Normal. > > ```bash theme={null} > spec.dependency_data.ecosystem==ECOSYSTEM_MAVEN and spec.dependency_data.native_scope=="provided" > ``` > [accordion] Identify direct dependencies in a project > > List only direct dependencies for a given project. > > ```bash theme={null} > spec.importer_data.project_uuid== and spec.dependency_data.direct==true > ``` > [accordion] Find direct and reachable dependencies of a package version > > Focus on direct dependencies of a root package version that are also reachable, for prioritization. > > ```bash theme={null} > spec.importer_data.package_version_uuid== and spec.dependency_data.direct==true and spec.dependency_data.reachable==REACHABILITY_TYPE_REACHABLE > ``` > [accordion] Identify end-of-life dependencies in the namespace > > Find dependencies that are end-of-life across the namespace for upgrade or replacement planning. > > ```bash theme={null} > spec.dependency_data.eol==true > ``` > [accordion] Find reachable npm dependencies in the namespace > > Limit to npm dependencies that are reachable from application code, across the namespace. > > ```bash theme={null} > spec.dependency_data.ecosystem==ECOSYSTEM_NPM and spec.dependency_data.reachable==REACHABILITY_TYPE_REACHABLE > ``` > [accordion] Find non-vendored and public dependencies > > Find all public and non-vendored dependencies across the namespace for license or supply chain review. > > ```bash theme={null} > spec.dependency_data.vendored==false and spec.dependency_data.public==true > ``` > [accordion] Identify all patched dependencies in the namespace > > Query across the namespace for dependencies that have a patch, without scoping by project. > > ```bash theme={null} > spec.dependency_data.patched==true > ``` # Dependencies Source: https://docs.endorlabs.com/inventory-insights/dependencies/index Explore the third-party packages your projects consume, with reachability, Endor Scores, and risk context. Dependencies are the third-party packages your projects pull in to deliver functionality. Endor Labs inventories every dependency it discovers across your tenant, scores each one, and tracks whether your code actually reaches it. Use the Dependencies page to assess supply chain risk, prioritize remediation, and understand how a dependency entered your environment. Select **Inventory** > **Dependencies** from the left sidebar to view every dependency in your namespace and its child namespaces, along with Endor Scores and malware status. ![Dependencies list view](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/inventory-insights/dependencies/dependencies-ui.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=ee3e9a11749fe7a2544c41f2fdb46acd) ## Direct and transitive dependencies Endor Labs classifies each dependency by how it enters your project. * **Direct dependencies**: Packages a developer explicitly declares in a manifest, such as `pom.xml` or `package.json`. * **Transitive dependencies**: Packages that enter the project indirectly through a direct dependency. Most projects have far more transitive than direct dependencies, and most supply chain vulnerabilities live in the transitive set. The **Is Direct** on the dependency list shows the type of dependency. ## Reachability states Reachability tells you whether your code actually exercises a dependency. Endor Labs uses static analysis and call graph generation to assign one of three states. * **Reachable**: Endor Labs traced a call path from your code to a function in the dependency. Findings on reachable dependencies are the highest priority for remediation. * **Unreachable**: Endor Labs found no call path from your code to the dependency. Findings here are typically lower priority. * **Potentially reachable**: Call graph analysis isn't available for the dependency's language or package manager, or analysis failed. Endor Labs can't confirm reachability either way. See [reachability analysis](/scan/sca/reachability-analysis) to learn how Endor Labs computes these states for each supported language. ## Endor Scores Endor Labs assigns four scores to each open source dependency so you can judge supply chain risk at a glance. * **Quality**: Reflects code health signals such as documentation, testing, and maintenance practices. * **Activity**: Reflects how actively the project is maintained, including release cadence and contributor activity. * **Security**: Reflects the dependency's vulnerability history and security posture. * **Popularity**: Reflects adoption signals such as downloads, stars, and dependent counts. Each score is the average of its underlying signals. Click any score in the sidebar or detail view to open the scorecard for that score and inspect the contributing signals. See [Endor scores](/scan/sca/scores) to learn the full methodology and signal definitions. ## Dependency metadata Each dependency carries metadata that helps you judge risk and plan upgrades. * **Type**: Direct or transitive, also shown as **Is Direct** in the list. * **Visibility**: Public when the dependency is publicly available, private when it comes from a private package. * **Source Available**: Whether the dependency's source code is auditable and linked to the package metadata. Endor Labs doesn't generate a scorecard when source isn't available. * **Dependent Packages**: The number of packages in the same project that rely on the dependency. * **Dependency Paths**: How a version enters a package. Use this to gauge the effort to upgrade a dependency and how deeply embedded it is in your ecosystem. * **Dependency Specification**: The import metadata captured for a direct dependency, such as whether it's scoped to tests only. The dependency list shows the core fields. Open a dependency to see the full set in the sidebar and detail view. ## Search and filter dependencies Filter dependencies to search, prioritize, and manage dependencies across your organization. You can filter dependencies by providing a filter criteria in the following way: 1. Select **Inventory** > **Dependencies** from the left sidebar. 2. Filter your dependencies using the list of available filters in the filter bar. 3. Toggle the **Advanced** option in the filter bar to apply API-style filters. ![Filter for reachable Maven dependencies](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/inventory-insights/dependencies/dependency-filter.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=19e9c0a26b586e518cea5c9eccb9cb78) You can combine multiple filters to create more specific searches and narrow down the dependency list based on multiple criteria. You can also use **Search Suggestions** to apply common queries with one click. These suggestions help you quickly segment the list for triage, upgrade planning, or ecosystem-specific reviews. See [Dependency filters](/inventory-insights/dependencies/dependency-filters) to learn how to implement these filters effectively. ## View dependency details Select a row in the dependency list to open the details on the right sidebar. The sidebar summarizes the dependency's metadata, findings, and Endor Scores. To open the full detail view directly, click the dependency's version name in the list. ![Dependency details sidebar](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/inventory-insights/dependencies/dependency-detail-overview.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=acf536e1900b1e1c02b9ba1809e68343) Select **OSS Scores** in the sidebar to see the scorecard for the dependency. The scorecard lists every signal that contributed to each Endor Score. ![Scorecard panel listing the signals behind each Endor Score](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/inventory-insights/dependencies/dependency-detail-scorecard.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=7b5f3de613662f0cdde816da9b2982b8) Click **View Details** in the sidebar to open the full detail view for the selected version. ![Full dependency version detail view](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/inventory-insights/dependencies/dependency-detailversion.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=c5bdaca3524dc861478116575aa4af12) The full detail view includes the following tabs: * **Overview**: Summary metadata for the dependency version. ![Overview tab with dependency version metadata](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/inventory-insights/dependencies/dependency-overview.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=a481001c09500044eadf4d918f86eb6e) * **Findings**: Security findings on the dependency. Select **Dependencies** inside **Findings** to see findings inherited from transitive dependencies. ![Findings inherited from related dependencies](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/inventory-insights/dependencies/dependency-relateddepfindings.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=b3693887f5b3feefc211584b186e1d7f) * **Dependents**: Projects in your tenant that use this dependency version, with the repository each project belongs to. Use this tab to identify affected projects when a vulnerability surfaces or when planning an upgrade across the tenant. ![Dependents tab listing projects that use this dependency version](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/inventory-insights/dependencies/dependency-dependents.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=bffe9101a72a26777b0c4409c5dc9aec) * **Dependencies**: Other dependencies this version brings in transitively. ![Dependencies tab listing transitive dependencies](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/inventory-insights/dependencies/dependency-dependencies.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=ee92a7bbc9c4f93e07de2148d090b3be) Click **Global View** to see every version of the dependency across your tenant. ![Global view across versions of a dependency](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/inventory-insights/dependencies/dependency-global.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=a9548a1feb0dd39b5abc8d726f73c47b) Use the version dropdown to switch versions inside the detail view. ![Version selector dropdown in the detail view](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/inventory-insights/dependencies/dependency-versions.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=9794614b9a6090f72f431733b4246b3f) ## View dependency graph Select **Dependency Graph** in the full detail view to see how the dependency reaches your code. Use the search bar to locate a specific node in the graph. ![Dependency graph view](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/inventory-insights/dependencies/dependency-graph.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=8a341749d36178ded105a69753baf222) Filter the graph with these controls: * **Severity filter**: Show only dependencies with findings at the chosen severity, such as Critical, High, Medium, or Low. * **Ecosystem**: Show only dependencies from one ecosystem, such as Maven, npm, PyPI, Go, or NuGet. * **Hide Unreachable**: Hide dependencies that aren't reachable from your code. * **Hide Without Findings**: Hide dependencies that have no security findings. ## Export dependencies Export filtered dependency lists to a CSV file for offline analysis. 1. Select **Inventory** > **Dependencies** from the left sidebar. 2. Enter search criteria or click **Add Filter** to narrow the list. 3. Click **Export Dependencies** and choose the columns to include: * UUID of the project * Ecosystem, such as Maven, npm, PyPI, Go, or NuGet * Name of the dependency * Version of the dependency * Tags associated with the dependency * Reachability of the dependency * **Is Direct**: Whether the dependency is direct or transitive * License information, including file, name, type, URL, and license text * Endor Scores: Quality, Activity, Security, and Popularity * Package version name (fully qualified name of the root package version) * Package version UUID * Project name (qualified package name of the root package) * Project UUID * **Endor Patch**: Whether an Endor Patch is available for the dependency ![Export dependencies column picker](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/inventory-insights/dependencies/export-dependencies.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=3efd1e97d312ed5a6daebe82ab0504f2) # Dismiss findings Source: https://docs.endorlabs.com/inventory-insights/findings/dismiss-findings/index Exclude findings from your active workflow using exception policies, ignore files, or snooze. Dismiss findings to exclude them from the active workflow. Dismissed findings no longer appear in active views and do not trigger policies. You can dismiss findings in one of the following ways: * [**Exception Policy**](#dismiss-findings-using-an-exception-policy): Applies during scan execution and suppresses all findings that match the defined criteria across the selected repository versions or projects. * [**Snooze**](#snooze-findings): Applies to a single finding instance for a specific target, repository version, and project. It takes effect immediately and applies only to the selected finding instance. You can't snooze pull request findings, as each pull request represents a new repository version. However, you can dismiss PR findings using [incremental PR scans](/scan/pr-scans/run-pr-scans-with-endorctl#perform-incremental-pr-scan), [Exception Policy](/platform-administration/policies/exception-policies#create-an-exception-policy-from-a-template), or [ignore files](#dismiss-findings-using-an-ignore-file). * [**Ignore File**](#dismiss-findings-using-an-ignore-file): Applies during scan execution and suppresses all findings matching the ignore file entries. Ignore files are part of the source code and are only applied to the parent repository version. * [**Incremental container scan**](#dismiss-findings-using-incremental-container-scans): Dismisses the findings a container build shares with its baseline scan when you run the scan with `--suppress-baseline-findings`. Applies to container scans only. The following diagram helps you choose a dismissal method. flowchart TD A\{"Container findings shared\
with the baseline scan?"} B\["Incremental container scan\
with --suppress-baseline-findings"] C\{"Single finding instance in one\
repository version and project?"} D\{Pull request finding?} E\[Snooze] F\["Incremental PR scan, exception policy,\
or ignore file"] G\{"Keep the dismissal in\
your source code?"} H\["Ignore file\
applies to the parent repository version"] I\["Exception policy\
applies across the selected\
repository versions or projects"] A -->|Yes| B A -->|No| C C -->|Yes| D D -->|No| E D -->|Yes| F C -->|No| G G -->|Yes| H G -->|No| I classDef endor fill:\{\{endorColor}},stroke:\{\{endorBorder}},color:#000000 class B,E,F,H,I endor ## Dismiss findings using an exception policy Add an exception policy to prevent a finding from triggering action policies in future scans. 1. Select **Projects** from the left sidebar. 2. Search for and select a project, and select **Findings**. 3. Search for findings using advanced or basic filters. 4. Select findings and click the vertical three dots. 5. Select **Add Exception**. ![Exception from finding](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/inventory-insights/findings/exception-from-finding.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=8780734697e73e595c9e98dbbe2f6d1c) Use the **Grouped By** filter to group multiple findings and apply exceptions to them at once. See [Create exception policy](/platform-administration/policies/exception-policies) for details on how to create and apply exceptions. ## Snooze findings Snooze a finding to temporarily dismiss it and choose when it should reappear for findings that do not require immediate action or a permanent exception policy. To dismiss multiple findings, or a single finding across multiple repository versions or projects, create an [exception policy](/platform-administration/policies/exception-policies). > [!NOTE] > > You require **Admin** or **Code Scanner** role permissions to snooze findings and edit snooze parameters. See [authorization roles](/platform-administration/rbac/authorization-roles) to learn about the different roles Endor Labs offers. To snooze a finding: 1. Open the finding details. 2. Click **Snooze**. 3. Select the most appropriate reason to indicate why you're snoozing the finding. 4. Optionally, select **Expiration** to specify when the finding should reappear. If you set an expiration date, the finding will be automatically un-snoozed by the first scan on the expiration date. 5. Optionally, for vulnerability findings, select **Automatically un-snooze when a fix becomes available** to have the finding reappear after the first scan once a fix becomes available. 6. Optionally, add a comment to provide context for the snooze. 7. Click **Snooze Finding**. A finding can be temporarily snoozed while a fix is in progress, with details such as the reason, expiration date, and remediation timeline recorded for context. ![Snooze Finding](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/inventory-insights/findings/snooze-finding.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=13d24c08e9087183b0797b878c547a2b) ### View snoozed findings To view snoozed findings: 1. Select **Findings** from the left sidebar. 2. Select **Dismissed** from saved filters and select **Yes**. 3. Select **Snoozed** to view snoozed findings only. 4. Use the filter form to refine results by reason, or expiry range. 5. Click on a snoozed finding to view its details. You can view snooze parameters, including status, expiration date and time, and comments, in the finding details panel. The last updated timestamp shows when you created or last modified the snooze, which helps you track changes and verify if someone else has modified or un-snoozed the finding. ![Snooze parameters](https://mintcdn.com/endorlabs-b4795f4f/0P3fZ52Gxk2YtkrD/images/inventory-insights/findings/snooze-parameter.webp?fit=max\&auto=format\&n=0P3fZ52Gxk2YtkrD\&q=85\&s=ba68cf16279d17f767d5f180f6b8c60b) See [Get finding snooze history](/developers-api/rest-api/using-the-rest-api/use-cases#get-finding-snooze-history) to retrieve the snooze history of a finding via the API. ### Un-snooze findings When you un-snooze a finding, it immediately reappears in your findings list and dashboards. The finding becomes active again, and action policies will process it during the next scan. To un-snooze a finding: 1. Select **Findings** from the left sidebar. 2. Select **Dismissed** from saved filters and select **Yes** to view snoozed findings. 3. Click on a snoozed finding to view its details. 4. Click **Edit snooze** and then click **Un-snooze**. ![Edit or un-snooze finding](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/inventory-insights/findings/edit-or-unsnooze-findings.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=18af8e6654c05f51326ef8164a1402f6) ### Update snoozed findings To update snooze settings of a finding: 1. Select **Dismissed** from saved filters and select **Yes** to view snoozed findings. 2. Click on a snoozed finding and click **Edit snooze**. 3. Edit snooze settings such as expiration date, reason, or comments, and click **Update Snooze** to save the changes. ## Dismiss findings using an ignore file Ignore files let you dismiss findings by committing a file in your repository. Endor Labs applies them during scan execution, and they only affect the repository version that contains the file (the parent of the scan). Any finding that matches an entry in the ignore file does not appear in the findings list or trigger action policies. > [!NOTE] > > You must [allow ignore files to dismiss findings](/platform-administration/configure-system-settings#allow-ignore-files-to-dismiss-findings) in **Settings** > **SYSTEM SETTINGS** > **Developer Workflows** for scans to process ignore files. Ignore files can be in one of two formats: * [**Yaml format**](#ignore-file-yaml-syntax): A list of ignore entries. Each entry specifies the finding by name, dependency, or other fields, plus metadata such as reason, expiration date, and comments. * [**Raw vulnerability IDs**](#ignore-file-plain-text-format): A plain list of vulnerability identifiers (for example, CVE or GHSA), one per line, for vulnerability findings only. This format does not require yaml structure. By default, the supported file path is `.endorignore.yaml`. Your administrator can configure additional files in Developer Workflows. Set up CODEOWNERS for all supported ignore files so that changes require approval before merge. ### Ignore file yaml syntax The ignore file contains entries that specify the findings to suppress during scans. Use the [endorctl ignore](/developers-api/cli/commands/ignore) command to create the file if needed and format the yaml entries automatically. Use the [endorctl validate ignore](/developers-api/cli/commands/validate/ignore) command to validate the file after changes or branch merges. The file must include a top-level `version` and an `ignore` key whose value is a list of entries. Each entry supports the following fields. \- Field: \`id\` Description: Unique identifier for the entry. \- Field: \`finding_name\` Description: Name of the finding to match. Each entry requires at least one of \`finding_name\` or \`vuln_id\`. \- Field: \`vuln_id\` Description: Vulnerability ID to match, such as a CVE or GHSA ID. Each entry requires at least one of \`finding_name\` or \`vuln_id\`. \- Field: \`dependency_name\` Description: Name of the dependency to match. You can use partial values, for example you can specify the dependency name without a version. \- Field: \`parent_name\` Description: Name of the parent package that declares or pulls in the dependency. You can use partial values, for example you can specify the package name without a version. \- Field: \`username\` Description: Developer who requested the exception. \- Field: \`reason\` Description: Reason for ignoring the finding. Allowed values are \`false-positive\`, \`risk-accepted\`, \`in-triage\`, \`resolved\`, or \`other\`. Default is \`risk-accepted\`. \- Field: \`expiration_date\` Description: Date when the ignore entry expires, in YYYY-MM-DD format. \- Field: \`expire_if_fix_available\` Description: Indicates whether to remove the ignore entry automatically when a fix becomes available. \- Field: \`comments\` Description: Additional comments describing the reason for the entry. The following example shows a valid ignore file in yaml format with a version, an ignore list, and entries that use the fields described above. ```yaml expandable theme={null} version: 1.0.0 ignore: - id: endorignore-1 username: alice@corp.com finding_name: Unmaintained Dependency some-package@1.0 reason: risk-accepted expiration_date: 2026-06-01 comments: "Tracking upgrade in JIRA-123" - id: endorignore-2 vuln_id: CVE-2025-12345 parent_name: some-ut-package-name reason: other expire_if_fix_available: true comments: "No fix available and this package is only used for testing" - id: endorignore-3 username: bob@corp.com finding_name: "Potential secret leak Generic API Key: ID #dace33" reason: resolved comments: "I revoked my token" ``` ### Ignore file plain text format You can ignore vulnerability findings by listing the vulnerability IDs in a plain text file. ```shell theme={null} # Ignore list for approved exceptions (AppSec-owned) CVE-2024-12345 GHSA-xxxx-yyyy-zzzz CVE-2023-99999 ``` ### View ignored findings To view ignored findings: 1. Select **Findings** from the left sidebar. 2. Select **Dismissed** from saved filters and select **Yes**. 3. Select **Ignored** to view ignored findings only. 4. Use the filter form to refine results by reason, or expiry range. 5. Click on an ignored finding to view its details. You can view ignore parameters, including status, expiration date and time, comments, ignore file name and entry id in the finding details panel. The ignore parameters available depend on which fields the developers must provide in the ignore file entries. ## Dismiss findings using incremental container scans An incremental container scan compares a new build against a baseline scan. When you run the scan with `--suppress-baseline-findings`, the findings the build shares with that baseline are dismissed and labeled with the reason **Present in Baseline**, so you see only the findings the build introduced. See [Incremental container scanning](/scan/containers/incremental-container-scanning) to learn more. To view findings dismissed by an incremental container scan: 1. Select **Findings** from the left sidebar. 2. Select **Dismissed** from saved filters and select **Yes**. 3. Under **Reason**, select **Present in Baseline**. 4. Select a finding to view its details. ## Filter dismissed findings Use the following options to filter dismissed findings. * Select **Yes** to view only dismissed findings in the findings table. * Select **No** to hide dismissed findings from the findings table. * Deselect both Yes and No to include dismissed findings in the findings table along with the rest of the findings. * Select **Exception**, **Ignored**, and/or **Snoozed**, to filter by dismissal method. * For exception findings, choose from one of the existing exception policies in the list or search for a specific exception using **Search for Policy Name**. * Select **Reason** to filter dismissed findings by reason. * Select **Expires Within** to filter dismissed findings by expiration time-frame. ![Dismissed finding filters](https://mintcdn.com/endorlabs-b4795f4f/2_cgBAK0fOLHo0lP/images/inventory-insights/findings/dismissed-filters.webp?fit=max\&auto=format\&n=2_cgBAK0fOLHo0lP\&q=85\&s=0acc5217fd48bbdc1705c05ac533efe3) ## Dismissed findings in VEX exports A VEX export includes every vulnerability finding in its scope, including dismissed findings. Dismissal applies to your Endor Labs workflow and doesn't change the `vulnerabilities[].analysis.state` field in the exported document. Endor Labs sets that field to `not_affected` only when reachability analysis determines that your code doesn't reach the vulnerable function or dependency. See [Vulnerability analysis state](/inventory-insights/sbom/exporting-sboms#vulnerability-analysis-state) to learn how Endor Labs populates the analysis fields in an exported VEX document. # Working with finding filters Source: https://docs.endorlabs.com/inventory-insights/findings/finding-filters/index Learn how to implement and use finding filters to search, prioritize, and manage security findings across your organization. Includes an interactive filter builder. Filters enable targeted queries on findings based on attributes such as severity, category, reachability, ecosystem, and policy status. This guide explains how finding filters work, how to apply and combine them effectively, and provides practical examples to support triage, audit, and reporting workflows across your finding inventory. ## How filters work Each filter consists of three parts. * **Key**: The attribute you want to filter (for example, `Severity`, `Category`, and `Ecosystems`). * **Operator**: The comparison logic (for example, `equals`, `in`, and `contains`). * **Value**: The target value to evaluate (for example, `Critical` and `Vulnerability`). Finding filters use standard comparison operators to evaluate criteria. See [Filter operators](/developers-api/rest-api/using-the-rest-api/filters#operators) for detailed information about available operators and their usage when using the API. ## Filter implementation techniques You can use the following filter types to manage your findings effectively. * [Basic filters](#search-for-findings-using-basic-filters): Use the filter bar in the Endor Labs user interface to quickly segment findings by common attributes. * [Advanced filters](#search-for-findings-using-advanced-filters): Use advanced filters to create powerful queries that drill deeper into the dataset to fetch results with a specific context. * [Saved views](#saved-views): Save filters, columns, sort, and search as a reusable, personal or namespace-shared view. ### Search for findings using basic filters Use the following basic filters to search for information in your findings. * **Finding Level**: Limit results by finding severity level. * **Dismissed**: Include or exclude dismissed findings. See [Filter dismissed findings](/inventory-insights/findings/dismiss-findings#filter-dismissed-findings) to learn more about filtering dismissed findings. * **Category**: Choose from CI/CD, Malware, license risks, operational risks, RSPM, GitHub Actions, SAST, AI models, containers, secrets, security, supply chain, or vulnerability and view related findings. * **Projects**: Narrow findings by one or more project names. * **Custom Tags**: Narrow down the list based on custom tags. * **Attributes**: Narrow down the list based on a range of factors such as: * if a patch is available to fix the findings * if the vulnerable function is reachable * if the dependency is reachable * if the dependency originates from a current repository or a current tenant * if the dependency is a test dependency * if the dependency's discovery type is manifest, phantom, or segment match * if the finding originates from itself, direct, or a transitive dependency * if the SAST finding is generated by the AI SAST detection agent * if AI SAST analysis has classified the SAST finding as a true positive or false positive * filter the findings by the **Exploited** tag from **CISA KEV** * filter the findings by the **Warn** or **Break the Build** options set in the [action policy](/platform-administration/policies/action-policies#create-an-action-policy-from-template) * **EPSS Probability**: Choose the Exploit Prediction Scoring System (EPSS) score range. * **Ecosystems**: Filter by language or ecosystem. * **Location**: Narrow findings by where they occur (for example, path or location in the repository). * **Confidence**: Narrow findings by detection confidence. * **SAST Languages**: Narrow SAST findings by programming language. * **Container Layers**: Narrow container findings by image layer. * **Remediation**: Narrow vulnerability findings by fix status. * **Endor Patch Available**: Filters findings where an Endor-provided patch is available to fix the vulnerability. * **Recommended Upgrade Available**: Filters findings where a recommended version upgrade is available. * **All Time**: Choose a time range. ### Search for findings using advanced filters For complex queries, use the advanced filter syntax to combine multiple attributes and apply logical operators. Toggle the **Advanced** option in the filter bar to enter API-style filter expressions directly in the Endor Labs application. > [!TIP] > > Search using the advanced filters applies to all the branches of a repository. You can retrieve results from any branch by specifying the relevant context ID or type. See [View findings associated with a project](/inventory-insights/findings#view-findings-associated-with-a-project) for an example of scoping findings to a specific branch. The **Advanced Filters** use the `GetFinding` [API call](/api-reference/findingservice/getfinding) to fetch results. The following table lists the available attributes for finding filters. \- Title: Severity Level Key: \`spec.level\` Description: Filters by severity level, such as Critical, High, Medium, or Low. \- Title: Dismissed Key: \`spec.dismiss\` Description: Filters by whether the finding has been dismissed. \- Title: Categories Key: \`spec.finding_categories\` Description: Filters by finding category, such as vulnerability, supply chain, license risk, secrets, malware, CI/CD, SAST, containers, or AI models. \- Title: Attributes Key: \`spec.finding_tags\` Description: Filters by behavioral and contextual tags, such as fix available, reachable function, reachable dependency, direct, transitive, test, exploited, or unfixable. \- Title: Ecosystem Key: \`spec.ecosystem\` Description: Filters by the package ecosystem where the issue was detected, such as npm, Maven, PyPI, or Go. \- Title: Project UUID Key: \`spec.project_uuid\` Description: Filters by the project to which the finding belongs. Use to scope results to a single project. \- Title: Finding Name Key: \`meta.name\` Description: Filters by the finding's name identifier. \- Title: Parent UUID Key: \`meta.parent_uuid\` Description: Filters by the UUID of the parent object: a package version, repository version, or repository. \- Title: Dependency Package Name Key: \`spec.target_dependency_package_name\` Description: Filters by the fully qualified name of the affected dependency package version, in the format \`ecosystem://package\@version\`. \- Title: Dependency Name Key: \`spec.target_dependency_name\` Description: Filters by the name of the affected dependency package, without the ecosystem prefix or version. \- Title: Dependency Version Key: \`spec.target_dependency_version\` Description: Filters by the version of the affected dependency package. \- Title: Native Dependency Scope Key: \`spec.target_dependency_native_scope\` Description: Filters by the affected dependency's scope as the package manager reports it, such as Maven \`provided\`. An empty value means the resolver supplied no scope, or the record predates this field. The filter picker in the Endor Labs user interface does not offer this attribute yet. Type the key in an advanced filter expression or query it through the API. \- Title: EPSS Score Key: \`spec.finding_metadata.vulnerability.spec.epss_score.probability_score\` Description: Filters by EPSS probability score, expressed as a decimal between 0 and 1 (for example, \`0.1\` equals 10%). \- Title: Endor Patch Available Key: \`spec.fixing_patch.endor_patch_available\` Description: Filters by whether an Endor Labs-provided patch is available to fix the vulnerability. \- Title: Approximation Key: \`spec.approximation\` Description: Filters by whether the affected dependency was discovered through approximate resolution rather than full manifest parsing. \- Title: Context ID Key: \`context.id\` Description: Filters by the scan context identifier, such as a branch or tag. Use to retrieve findings from a specific branch or repository version. \- Title: Last Processed Key: \`spec.last_processed\` Description: Filters by the timestamp of when the finding was last processed by the system. #### Interactive filter builder #### API filter use cases The following examples demonstrate how to combine these attributes for common security and compliance workflows. > [accordion] Prioritize critical and high severity fixable findings > > Find critical and high-severity findings where a fix is available and the vulnerable function is reachable. > > ```bash theme={null} > spec.level in ["FINDING_LEVEL_CRITICAL","FINDING_LEVEL_HIGH"] and spec.finding_tags contains ["FINDING_TAGS_FIX_AVAILABLE"] and spec.finding_tags contains ["FINDING_TAGS_REACHABLE_FUNCTION"] > ``` > [accordion] Find high-probability exploitable vulnerabilities > > Identify vulnerability findings with an EPSS score greater than 10% to focus on issues most likely to be exploited in the wild. > > ```bash theme={null} > spec.finding_categories contains ["FINDING_CATEGORY_VULNERABILITY"] and spec.finding_metadata.vulnerability.spec.epss_score.probability_score > 0.1 > ``` > [accordion] Scope findings to a specific project > > Retrieve all active, non-dismissed vulnerability findings for a single project. > > ```bash theme={null} > spec.finding_categories contains ["FINDING_CATEGORY_VULNERABILITY"] and spec.project_uuid == "" and spec.dismiss == false > ``` > [accordion] Find vulnerabilities in a specific ecosystem > > List all vulnerability findings from PyPI packages across the namespace. > > ```bash theme={null} > spec.finding_categories contains ["FINDING_CATEGORY_VULNERABILITY"] and spec.ecosystem in ["ECOSYSTEM_PYPI"] > ``` > [accordion] Find Maven findings with provided native scope > > List vulnerability findings whose affected Maven dependency has native scope `provided`. Normalized scope stays Normal. Gradle source scans and JVM binary scans always report `compile`, so this filter does not apply to them. > > ```bash theme={null} > spec.finding_categories contains ["FINDING_CATEGORY_VULNERABILITY"] and spec.target_dependency_native_scope == "provided" > ``` > [accordion] Audit dismissed findings > > Review all dismissed findings across the namespace to verify exception policies are applied correctly. > > ```bash theme={null} > spec.dismiss == true > ``` > [accordion] Find findings from a specific branch > > Retrieve findings scoped to a specific branch or repository version by providing the context ID. > > ```bash theme={null} > context.id == "" > ``` > [accordion] Identify KEV-listed exploited findings with no fix > > Find findings tied to CVEs in the CISA KEV database that have no available fix, to assess risk that you can't remediate yet. > > ```bash theme={null} > spec.finding_tags contains ["FINDING_TAGS_EXPLOITED"] and spec.finding_tags contains ["FINDING_TAGS_UNFIXABLE"] > ``` > [accordion] Review AI SAST findings confirmed as true positives > > Surface the SAST findings that the AI SAST detection agent generated and AI analysis confirmed as true positives, so triage starts with the highest-confidence results. > > ```bash theme={null} > spec.finding_categories contains ["FINDING_CATEGORY_SAST"] and spec.finding_tags contains ["FINDING_TAGS_AI"] and spec.finding_tags contains ["FINDING_TAGS_TRUE_POSITIVE"] > ``` > [accordion] Exclude AI SAST findings from SAST results > > Return only the SAST findings that static rules produced, with AI SAST findings filtered out. > > ```bash theme={null} > spec.finding_categories contains ["FINDING_CATEGORY_SAST"] and spec.finding_tags not contains ["FINDING_TAGS_AI"] > ``` > [accordion] Find supply chain findings for direct dependencies > > Surface supply chain findings that affect only direct dependencies to prioritize the most actionable issues. > > ```bash theme={null} > spec.finding_categories contains ["FINDING_CATEGORY_SUPPLY_CHAIN"] and spec.finding_tags contains ["FINDING_TAGS_DIRECT"] > ``` ### Saved views A saved view captures the current state of the Findings table, including filters, search text, column visibility and order, sort, and aggregation, as a named view you can reapply later. Save a view for yourself, or share it with everyone in the namespace so your team works from the same curated results. Unlike a saved filter, which stores only a filter expression, a saved view stores the full table state. You need a role with write permission for saved views in the namespace to create, edit, or delete them. See [Authorization roles](/platform-administration/rbac/authorization-roles) to learn more about roles and permissions. #### Save the current table state as a view 1. Select **Findings** from the left sidebar. 2. Apply the filters, search, columns, sort, and aggregation you want the view to capture. 3. Click **Save View** in the table header. 4. Enter a name in the **View name** field. 5. Choose **Personal** to keep the view private, or **Shared with namespace** to make it visible to everyone in the namespace. 6. Click **Save**. If a saved view is already active, clicking **Update View** updates that view in place instead of creating a new view. To create a new view without changing the active one, select the arrow next to **Save View**, then select **Save as new**. #### Apply a saved view 1. Select **Findings** from the left sidebar. 2. Select the current view name at the top of the Findings table. 3. Select **Saved Views** to switch from the built-in views list. 4. Select the view you want to apply. Saved views also appear alongside the built-in views under **Findings** in the left sidebar. #### Edit a saved view You can edit a saved view you own, or a view shared with the namespace. Edit the table state that the view captures, or its name and visibility. Only the owner of a view can change its visibility. To update the table state that a view captures: 1. Apply the saved view you want to edit. 2. Change the filters, search text, columns, sort, or aggregation. 3. Click **Update View**. To change the name or visibility of a view: 1. Select **Findings** from the left sidebar. 2. Select the current view name at the top of the Findings table. 3. Select **Saved Views**. 4. Select the vertical three dots next to the view, then select **Edit**. 5. Enter a new name in the **View name** field. 6. Optionally, under **Visibility**, choose **Personal** or **Shared with namespace**. 7. Click **Save**. To edit the active view instead, select the arrow next to **Update View** in the table header, then select **Edit**. #### Delete a saved view You can delete a saved view you own, or a view shared with the namespace, from either the view picker or the table header. 1. Select **Findings** from the left sidebar. 2. Select the current view name at the top of the Findings table. 3. Select **Saved Views**. 4. Select the vertical three dots next to the view, then select **Delete**. To delete the active view instead, select the arrow next to **Update View** in the table header, then select **Delete**. # Findings Source: https://docs.endorlabs.com/inventory-insights/findings/index View, filter, and manage security findings across your projects and packages. A finding is a discovery of significance made following the completion of a scan. Findings result from the default out-of-the-box implementation of rule sets called [Finding policies](/platform-administration/policies/finding-policies). ## View findings To view different types of findings associated with all projects or packages in your tenant: 1. Select **Findings** from the left sidebar. 2. Search for findings using [basic filters](/inventory-insights/findings/finding-filters#search-for-findings-using-basic-filters). 3. Use [saved views](/inventory-insights/findings/finding-filters#saved-views) to save and reapply your frequently used filters, columns, and sort order. 4. Toggle **Advanced** and search for findings using [advanced filters](/inventory-insights/findings/finding-filters#search-for-findings-using-advanced-filters). 5. Use **Table preferences** to select the columns you want to view and customize the appearance of the findings table. 6. Select a finding to view the following details: * Project metadata * Risk details and remediation guidance * Notifications associated with the finding and Jira ticket links * Personalized notes for each finding. You can view notes on findings if you have tenant access. Only users with **Admin** or **Code Scanner** role can add or edit notes. See [authorization roles](/platform-administration/rbac/authorization-roles) to learn about roles and permissions. 7. To apply [exceptions to findings](/inventory-insights/findings/dismiss-findings#dismiss-findings-using-an-exception-policy), select findings and click **Actions** > **Add Exception**. 8. To [export findings](/inventory-insights/findings/manage-findings#export-findings), select the findings, and click **Actions** > **Export Selected** or **Export All**. ![Findings UI](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/inventory-insights/findings/findings-ui.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=06cd1348daabf0cb3df22106897e964a) ## View findings associated with a project To view the findings associated with a project: 1. Select **Projects** from the left sidebar. 2. Select the project for which you want to view the findings. The Findings page includes the list of findings specific to the project. 3. Review the list of findings. Click the finding to see its details. 4. Use **Grouped By** to group findings by attributes such as dependency, location, package, CWE, tags, code owner or rule name to filter and manage them collectively. 5. A drop-down menu at the top left of the page shows the repository's default branch. Choose a different branch to view its findings. * In the following example, `main` is the default branch. Applying filters with the context ID for `main` shows results specific to branch. To scan from the default branch, run the following command: ```bash theme={null} endorctl scan --path=. ``` ![Branch dropdown](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/inventory-insights/findings/findings-branches.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=af9138da60f7dca5dae40f00093b5165) * Similarly, if there is another branch named `local-branch`, switching to that branch shows results specific to the branch. To scan the branch, run the following command: ```bash theme={null} git checkout local-branch endorctl scan --path=. ``` > [!TIP] > > Check **Projects** to see the default branch of your project. To change the default branch, use `--as-default-branch` while performing the `endorctl` scan. See [scanning strategies](/scan/sca/scanning-strategies) for information on testing and monitoring different versions of your code. ## Finding attributes Finding attributes are characteristics or properties associated with each discovered issue or result obtained from a scan. These attributes could include the following details and metadata. \- Attribute: Blocker Description: An action policy marked this finding as blocking. \- Attribute: Direct Description: Finding applies to a direct dependency. \- Attribute: Disputed Description: The CVE reported in this finding has a 'disputed' status. \- Attribute: Exception Description: An exception policy exempts this finding from action policies. \- Attribute: Exploited Description: The CVE reported in this finding is actively exploited and appears in the Known Exploited Vulnerabilities (KEV) database. \- Attribute: External Path Only Description: Finding applies to a transitive dependency reachable only through external, non-OSS, project paths. \- Attribute: First Party Description: Finding applies to a dependency that belongs to the same namespace. \- Attribute: Fix Available Description: A fix is available for the CVE reported in this finding. \- Attribute: Invalid Secret Description: Finding applies to an invalid secret. \- Attribute: Malware Description: Finding applies to a malicious package. \- Attribute: Normal Description: Finding applies to a normal, non-test, dependency. \- Attribute: Notification Description: Finding triggered a notification based on an action policy. \- Attribute: Phantom Description: Finding applies to a phantom dependency. \- Attribute: Segment Match Description: Finding applies to a dependency discovered through segment-matching. \- Attribute: Potentially Reachable Dependency Description: Finding applies to a potentially reachable dependency. \- Attribute: Potentially Reachable Function Description: Finding applies to a potentially reachable function. \- Attribute: Reachable Dependency Description: Finding applies to a reachable dependency. \- Attribute: Reachable Function Description: Finding applies to a reachable function. \- Attribute: Same Repository Description: Finding applies to a dependency that belongs to the same project. \- Attribute: Self Description: Finding applies only to the analyzed package version, there is no dependency involved. \- Attribute: Test Description: Finding applies to a dependency that is not in production code. \- Attribute: Transitive Description: Finding applies to a transitive (indirect) dependency. \- Attribute: Under Review Description: Finding applies to suspicious package under review. \- Attribute: Unfixable Description: There is no fix available for the CVE reported in this finding. \- Attribute: Unreachable Dependency Description: Finding applies to an unreachable dependency. \- Attribute: Unreachable Function Description: Finding applies to an unreachable function. \- Attribute: Valid Secret Description: Finding applies to a valid secret. \- Attribute: Warning Description: Finding triggered a warning based on an action policy. \- Attribute: Withdrawn Description: The CVE reported in this finding has a 'withdrawn' status. ## Filter findings Use filters to narrow findings and focus on the results most relevant to your workflow. Filters help you organize findings by attributes such as severity, category, project, status, repository context, and other finding metadata so that you can investigate, triage, and remediate findings more efficiently. You can use the following filter types to manage findings effectively. * **Basic filters**: Use the preset filters to quickly narrow findings using common attributes such as severity, category, project, and status. * **Advanced filters**: Use advanced filters to create complex queries and combine multiple conditions based on repository context, branches, tags, and other finding attributes. See [Finding filters](/inventory-insights/findings/finding-filters) for more information. ## View Remediations If you enable [upgrade impact analysis](/risk-remediation/upgrade-impact-analysis), you can view the remediation recommendation when you select a finding, if available. Click **View Details** to view the details of the [remediation recommendation](/risk-remediation/upgrade-impact-analysis#view-remediation-recommendations). Click **View Full Recommendation** to view all available upgrade paths. # Manage findings Source: https://docs.endorlabs.com/inventory-insights/findings/manage-findings/index Configure finding and action policies, export findings to CSV, and organize findings with tags. Managing findings shapes what Endor Labs reports, how your teams respond, and how you organize issues over time. After you [view and filter findings](/inventory-insights/findings), use [finding policies](/platform-administration/policies/finding-policies) to control what is surfaced and [action policies](/platform-administration/policies/action-policies) to automate next steps when criteria match. Export findings when you need data outside the product, and use tags to group and search efficiently. Manage findings to control how findings are handled, organized, and acted on across your environment. After you view and filter findings use [finding policies](/platform-administration/policies/finding-policies) to control which findings are surfaced and [action policies](/platform-administration/policies/action-policies) to automate actions when findings match specific criteria. You can also export findings for external analysis and apply tags to organize and search findings more efficiently. ## Create Jira issues from Findings Create Jira issues manually from the Findings for one or more items. This enables you to create and assign workflow issues without relying on action policies or scan cycles. Endor Labs records them as **On-demand notification** in **Notifications**. If issue creation fails, you can also review the error details. See [Notifications](/inventory-insights/notifications) to learn more. Ensure that you have a [Jira notification integration](/integrations/jira) configured in Endor Labs to create issues in your Jira board. If a finding already has a Jira issue in the selected board that was created manually, you cannot create another one in that board. If the existing issue was created by an [action policy](/platform-administration/policies/action-policies), then you can create a new issue for that finding. When a finding is resolved in a subsequent scan, Endor Labs updates all linked Jira issues to your integration's resolved state. That applies to manually created issues and to issues created through action policies. ### Create a Jira issue for a single finding You can create a Jira issue for a single finding from the **Findings** view. 1. Select **Findings** from the left sidebar. 2. In **Table preferences**, turn on the **Integration - Jira** column. 3. Click **Create JIRA ticket** in the finding's row. 4. Select a Jira integration configured in your namespace. Ensure the integration is available in the same namespace as the findings. 5. Click **Create Issue**. After creation, you can use the issue URL to open it in Jira and view its details. ### Create Jira issues for multiple findings at once You can create Jira issues for multiple findings from the **Findings** view. 1. Select **Findings** from the left sidebar. 2. In **Table preferences**, turn on the **Integration - Jira** column. 3. Search for and select the findings to create Jira issues for. You can select up to 10 findings at a time. 4. Click the vertical three dots and select **Add Jira Notifications**. 5. Select a Jira integration configured in your namespace. Ensure the integration is available in the same namespace as the findings. 6. Click **Create Issue**. After creation, you can use the issue URLs to open them in Jira and view their details. When creating Jira issues for multiple findings, Endor Labs processes each finding independently. If a finding already exists in the selected board, it is skipped while the rest are created successfully. ![Jira issues from findings](https://mintcdn.com/endorlabs-b4795f4f/WRyzpXEAb6ccn84p/images/inventory-insights/findings/jira-from-finding.webp?fit=max\&auto=format\&n=WRyzpXEAb6ccn84p\&q=85\&s=7faeaf053c18ab010dfe6948744caaa3) ## Export findings You can export finding details to a CSV file for offline analysis. 1. Select **Projects** from the left sidebar. 2. Search for and select a project and select **Findings**. 3. Search for findings using advanced or basic filters. 4. Select the findings and click the vertical three dots. 5. Choose **Export Selected** or **Export All** and select the fields that you want to include in the CSV file. 6. Click **Export to CSV** to download the file. ## Apply tags to findings Tagging findings helps you organize, prioritize, and filter issues efficiently. You can tag findings in a finding policy or while running the endorctl scan. ### Using finding policies You can define custom tags in a finding policy, which automatically apply to findings that match its conditions. See [Finding policies](/platform-administration/policies/finding-policies) for more information. To add custom tags: 1. Select **Policies & Rules** from the left sidebar. 2. Follow the steps to [create a finding policy](/platform-administration/policies/finding-policies#create-a-finding-policy-from-template). Ensure to add your choice of custom tags in **Finding Custom Tags**. You can also update an existing policy. 3. Click **Create Finding Policy**. After you create or update a finding policy, rescan your project to apply the custom tags to your findings. ### Through the CLI When scanning projects using endorctl, you can tag all the findings generated within the scan scope using the `--finding-tags` flag. To scan and tag all findings of an endorctl scan: ```bash theme={null} endorctl scan --finding-tags=findings-tag-name ``` ### View tagged findings To filter and view the findings by their tags: 1. Select **Projects** > **Findings** from the left sidebar. 2. Enter the tag in the search bar to filter and view findings by tag name. ![Search findings tags on UI](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/inventory-insights/findings/findings-add-findingtags.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=0f7c1a74ffe73c7c757df178e6f981ff) # Inventory & Insights Source: https://docs.endorlabs.com/inventory-insights/index View and analyze your projects, findings, packages, dependencies, and security posture. Inventory & Insights provides a comprehensive view of your software assets and security analysis results. This section covers everything from organizing your projects and namespaces to viewing detailed findings, tracking dependencies, and visualizing your security posture through dashboards. > [card] [Dashboards](/inventory-insights/dashboards) > > Visualize analytics, security posture, and vulnerability insights > [card] [Reports](/inventory-insights/reports) > > Export analytics and findings as JSON or PDF for offline review and sharing > [card] [Namespaces](/inventory-insights/namespaces) > > Organize your tenant into logical partitions for teams and business units > [card] [Projects](/inventory-insights/projects) > > View and manage your scanned source code repositories > [card] [Findings](/inventory-insights/findings) > > View and triage security findings across your projects > [card] [Packages](/inventory-insights/packages) > > View packages maintained as part of your projects > [card] [Dependencies](/inventory-insights/dependencies) > > Explore dependencies across all projects in your namespace > [card] [Licenses](/inventory-insights/licenses) > > View and manage license information for legal and compliance review > [card] [Scan history](/inventory-insights/scan-history) > > Review past scan details and track security posture over time > [card] [PR runs](/inventory-insights/pr-runs) > > View pull request scan results and CI/CD integration status > [card] [Notifications](/inventory-insights/notifications) > > View and manage policy notifications and alerts # Licenses Source: https://docs.endorlabs.com/inventory-insights/licenses/index Beta
View and manage license information across projects for legal and compliance review. Open source dependencies can introduce license obligations that may affect how software is used, modified, or distributed. Reviewing license information helps teams identify potential compliance concerns, verify attribution requirements, and maintain visibility into approved and restricted licenses across the organization. You can view and manage license information across your projects, edit license data, and generate Notice reports for distribution. ## View licenses To view licenses: 1. Select **Inventory** from the left sidebar. 2. Select **Licenses** to view the list of licenses. You can view the license name, OSI approval status, license type, and project count. ![Licenses list](https://mintcdn.com/endorlabs-b4795f4f/xFDOpiADXUe5ceIv/images/inventory-insights/licenses/licenses-ui.webp?fit=max\&auto=format\&n=xFDOpiADXUe5ceIv\&q=85\&s=bf900fbbb2dba08af6683fabf3b31427) 3. Use **Search license Name** to filter the list or search for a specific license. 4. Use the **OSI**, **Projects**, and **Type** filters to narrow the list. 5. Select a license row to view the following details: * **TYPE**: License type for the selected license (for example, Permissive, Copyleft). * **OSI**: Whether the license is Open Source Initiative approved. * **PROJECTS**: List of projects that use this license. Expand a project to view the license text for each dependency in that project that uses this license. ![View license details](https://mintcdn.com/endorlabs-b4795f4f/1BScYnDseTO8fdDK/images/inventory-insights/licenses/license-view-details.webp?fit=max\&auto=format\&n=1BScYnDseTO8fdDK\&q=85\&s=71344fdaba73085f86b2a8fa61e881ea) ## View licenses associated with a project To view licenses for a specific project: 1. Select **Projects** from the left sidebar and select the project for which you want to view licenses. 2. Select **Inventory** and select **Licenses** from the dropdown to view the list of licenses for that project. ![Licenses list for a project](https://mintcdn.com/endorlabs-b4795f4f/1BScYnDseTO8fdDK/images/inventory-insights/licenses/license-associated-with-a-project.webp?fit=max\&auto=format\&n=1BScYnDseTO8fdDK\&q=85\&s=28221749ac0ff20902590fce046af28e) 3. Select a license to view the following information. * **Type**: Shows the type of license. * **OSI**: Shows whether the license is OSI approved. * **Full License Text**: Shows the license text for the selected dependency version. You can view: * **Declared License**: The license declared by the dependency. * **Discovered License**: The license detected during scanning. Click **Show full text** to expand the full text of either license. ![Project license details](https://mintcdn.com/endorlabs-b4795f4f/1BScYnDseTO8fdDK/images/inventory-insights/licenses/license-project-details.webp?fit=max\&auto=format\&n=1BScYnDseTO8fdDK\&q=85\&s=72af3e2f4930ea8372a18dbdb99169eb) ## Edit license information > [!NOTE] > > You require **Admin** role permissions to edit dependency license data. See [authorization roles](/platform-administration/rbac/authorization-roles) to learn about the different roles Endor Labs offers. You can edit license information to correct or override license data when scan results or package metadata are incomplete or inaccurate. Editing license information helps you to: * Fix misclassified, missing, or unknown licenses so the effective license reflects the expected result. * Update copyright, notice text, or license expressions used in generated Notices files. * Standardize SPDX identifiers or expressions across projects. To edit license information from a dependency: 1. Select **Projects** from the left sidebar and select a project. 2. Select **Inventory** and select **Dependencies** from the dropdown to view the list of dependencies for that project. 3. Select a dependency and click **Edit**. 4. The **Edit Dependency** page shows dependency metadata at the top, for example, name, source code location, and package location. 5. Under **Declared licenses** and **Discovered licenses**, click **Add License** and search for a license to add. You can also edit existing licenses. 6. Under **Copyrights**, click **Add Copyright** to add copyright statements. 7. Optionally, select **Propagate dependency edits to all child namespaces** to apply the same changes to related namespaces. 8. Click **Save Dependency** to save the changes. ![Edit dependency licenses](https://mintcdn.com/endorlabs-b4795f4f/1BScYnDseTO8fdDK/images/inventory-insights/licenses/edit-dependency.webp?fit=max\&auto=format\&n=1BScYnDseTO8fdDK\&q=85\&s=b1749a5ab556452756c179b368ee016a) ## Generate a license notice report for a project Beta A license notice report lists open source dependencies with their license texts, copyright notices, and source code locations. You must include a license notice report when you distribute software that contains open source dependencies. > [!TIP] > > To generate a license notice report from the command line, see [license-notice-report generate](/developers-api/cli/commands/license-notice-report#usage). To generate a license notice report: 1. Select **Projects** from the left sidebar and select the project for which you want to generate a report. 2. Click **Export** > **Notice Report**. ![Generate Notice report](https://mintcdn.com/endorlabs-b4795f4f/1BScYnDseTO8fdDK/images/inventory-insights/licenses/generate-notice-report.webp?fit=max\&auto=format\&n=1BScYnDseTO8fdDK\&q=85\&s=a73ea66127110a599464b7604f871525) 3. Choose the output format for the report. Available formats are **TXT** and **Markdown**. 4. Optionally, enter a **Report Name**. This sets the title printed inside the generated notice document. It doesn't change the report's name on the **Reports** page, which Endor Labs generates automatically. 5. Under **Select Packages**, choose one or more packages for the report. If you don't select any packages, the report includes all packages in the project. Test dependencies are excluded. Projects can contain multiple packages with several manifests. Selecting more than one package generates a single combined report. 6. Choose the following filters to refine the data included in the report. * **Multi-Licenses**: Filter based on which license to use when a dependency has multiple licenses. * Select **All** to include every license associated with the dependency. * Select **Most Permissive** to include only the most permissive license. * **Type**: Filter based on whether the license was declared by the dependency or discovered during scanning. * Select **All** to include both declared and discovered licenses. * Select **Declared Only** to include only licenses declared by the dependency. * Select **Discovered Only** to include only licenses discovered during scanning. * **License Category**: Select one or more license categories, such as **Permissive**, **Copyleft**, or **Public Domain**, to include in the report. By default, all license categories are included. Click **Reset filters** to clear these back to their defaults. 7. Toggle **Include Copyright information** to include copyright statements in the report. When you include copyright information, the **Components** section of the report lists the copyright statements found for each dependency, and includes dependencies that have copyright statements but no license information. Otherwise, Endor Labs omits those dependencies so the report contains no empty entries. 8. Select **Use custom disclaimer to the notice file** to enter disclaimer text to show at the top of the notice file. You can enter up to 8,192 characters of disclaimer text. 9. Click **Create Report** to generate the report. ![Generate license notice report for a project](https://mintcdn.com/endorlabs-b4795f4f/j9JhO-dhiaQbzrKL/images/inventory-insights/licenses/license-report-for-a-project.webp?fit=max\&auto=format\&n=j9JhO-dhiaQbzrKL\&q=85\&s=b32a7cc5690720df3915d0dd7e4e68f6) > [!TIP] > > See [License notice report for multiple projects or packages](/inventory-insights/reports#create-a-license-notice-report-beta) to generate a license notice report for multiple projects or packages. ### View license notice reports To view license notice reports: 1. Select **Reports** from the left sidebar. 2. Select a report to view its details such as file format, license type, multi-license policy, copyrights setting, custom disclaimer, and package scope. 3. To download a report, click the three vertical dots and click **Download**. 4. To delete a report, click the three vertical dots and click **Delete**. See [Reports](/inventory-insights/reports) for more information on managing reports. ### License notice report structure Every license notice report contains three sections. The **Header** identifies the report, **Components** lists your dependencies, and **Licenses** holds the license texts. TXT and Markdown reports carry the same content. \- Section: Header Description: The report title, your custom disclaimer if you added one, the projects or packages in scope, the user who created the report, and the creation date. \- Section: Components Description: One entry per dependency, with the license identifiers found for it and, when you include copyright information, its copyright statements. \- Section: Licenses Description: One entry per license, with the dependencies that use it and the full license text. The following template shows the layout of a report. ```text theme={null} Notices Report for PROJECTS CREATED BY DATE CREATED COMPONENTS @ Declared: Discovered: LICENSES ``` The following examples show a trimmed report for two dependencies in each output format. ```markdown Markdown theme={null} # Notices Report for my-service ### Projects - my-service ### Created By user@example.com ### Date Created September 29, 2026 ## Components ### glob@7.2.3 Declared: ISC ### lodash@4.17.21 Declared: MIT Discovered: MIT Copyright OpenJS Foundation and other contributors ## Licenses ### ISC - glob@7.2.3 ISC License. Permission to use, copy, modify, ... ### MIT - lodash@4.17.21 MIT License. Permission is hereby granted, free of charge, ... ``` ```text TXT theme={null} Notices Report for my-service PROJECTS my-service CREATED BY user@example.com DATE CREATED September 29, 2026 COMPONENTS glob@7.2.3 Declared: ISC lodash@4.17.21 Declared: MIT Discovered: MIT Copyright OpenJS Foundation and other contributors LICENSES ISC glob@7.2.3 ISC License. Permission to use, copy, modify, ... MIT lodash@4.17.21 MIT License. Permission is hereby granted, free of charge, ... ``` # Namespaces Source: https://docs.endorlabs.com/inventory-insights/namespaces/index Organize your tenant into logical partitions based on organizational units, business units, or teams. Namespaces in Endor Labs define a way to group projects and create logical partitions in an organization based on organizational units, business units, project requirements, or teams. Using namespaces, administrators can: * Define hierarchy and control access to project resources within a namespace. * Establish policy governance by defining the rules of engagement and setting different or same guardrails across namespaces. ## Namespaces in an organization In Endor Labs, you can partition each tenant into multiple namespaces and further divide each namespace into sub-namespaces called child namespaces. Each namespace has its own authorization rules and integrations. Child namespaces inherit settings, policies, and features from their parent namespace but can also define their own authorization rules, policies, and configurations. This structure helps organizations model hierarchical environments, with each level managing its own access controls and operational settings. When you access your tenant, Endor Labs includes data from all child namespaces in the dashboard by default, such as vulnerabilities, dependencies, packages, and more. In **namespace**, toggle the setting to **All child namespaces excluded** to exclude child namespaces and view data and metrics for only the selected namespace. ![namespaces toggle](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/inventory-insights/namespaces/namespaces-toggle.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=13d700c0b7dd07ac6fb7267efa15585b) When you sign in to Endor Labs for the first time, create a tenant for your organization, such as `abccorp`. * Now you can create logical separations in the form of namespaces for different business units in your organization, such as Security Business Unit (`security-bu`), Datacenter Business Unit (`datacenter-bu`), and Orchestration Agent Business Unit (`orchestration-agent-bu`), inside your main tenant `abccorp`. * You can further partition the Security Business Unit into sub-namespaces, such as the Development team (`dev-team`), Finance Team (`finance-team`), and Testing Team (`testing-team`). The following diagram shows the tenant `abccorp`, its namespaces for business units, and the child namespaces for teams under `security-bu`. flowchart TD T\[abccorp] SB\[security-bu] DB\[datacenter-bu] OB\[orchestration-agent-bu] DT\[dev-team] FT\[finance-team] TT\[testing-team] T n1\@--> SB T n2\@--> DB T n3\@--> OB SB n4\@--> DT SB n5\@--> FT SB n6\@--> TT n1@\{ animation: slow } n2@\{ animation: slow } n3@\{ animation: slow } n4@\{ animation: slow } n5@\{ animation: slow } n6@\{ animation: slow } classDef tenant fill:\{\{endorColor}},stroke:\{\{endorBorder}},color:#000000 classDef child fill:\{\{managedColor}},stroke:\{\{managedBorder}},color:#000000 class T tenant class SB,DB,OB,DT,FT,TT child * There can be multiple namespaces within `abccorp`. For example, the `dev-team` namespace hosts projects that belong to the development team of the Security Business Unit. The `testing-team` namespace hosts projects that belong to the testing team of the Security Business Unit. The following image shows an example of namespaces in the Endor Labs user interface. ![Namespaces Example](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/inventory-insights/namespaces/namespaces.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=e32ed7df6c6e3e1052b928afae738b8f) ## Use namespaces for authorization Large enterprises with multiple business units, teams, or groups can assign different namespaces to different groups and apply authorization policies that restrict access to specific groups. This ensures least privilege access to critical information is available in the organization. Organizations can also provision namespaces to provide read access to security teams in specific namespaces while they provide write access to AppSec teams for managing policies. * Create an authorization policy giving users in the development team of the security business unit permissions to scan their projects. Users from group `@developers.abccorp.ai` can have code scanner permissions for the namespace `dev-team`. * Users from group `@applicationsecurity.abccorp.ai` can have policy editor permissions for the namespace `dev-team`. The developers can scan the code, and the application security professionals can define the policies for code compliance. * The application security professionals can also choose to define the policies at the tenant level `abccorp` and choose to apply the same policies to all the child namespaces. This way, they won't need to create policies individually for every child namespace. The development team inherits the policies from the organization and won't be able to modify them. They can, however, add additional policies that are specific to engineering to their namespace `dev-team` and define specific rules and conditions applicable only to them. ## Use namespaces for policy governance Administrators can use namespaces effectively for policy governance and make sure that teams in their organization adhere to industry-wide policy standards enforcing compliance. Let us assume that the application security team in `ABCcorp` wants to define organization-wide rules for code compliance, vulnerability management, and secret detection. They also need Jira tickets filed for all cases. The application security engineers can create the following objects at the `ABCcorp` tenant level and propagate these objects to all the namespaces under `abccorp` so that it applies to the entire organization. * Define action policy to break the build when scans detect critical vulnerabilities. * Define action policy to warn the user of detected code compliance misconfigurations. * Define action policy to break the build when scans detect valid secret tokens in their code. * Create Jira tickets and notify the appropriate team to take remediation measures. ## Create a namespace To create a namespace in your tenant: 1. Select **User menu** > **Settings** from the left sidebar. 2. Select **Namespaces**. 3. Click **New Namespace**. 4. Enter a title and description for the namespace. The title can have a maximum of 32 characters and must contain only lowercase letters (a-z), numbers (0-9), and characters (\_-). 5. Enter tags that you want to associate with this namespace. Tags can have a maximum of 255 characters and must contain letters (A-Z), numbers (0-9), and characters (=@\_.-). 6. Click **Create Namespace**. ## Edit a namespace You can choose to modify the description of a namespace or include tags for it. You can't modify its title after you create a namespace. To edit details of a namespace in your tenant: 1. Select **User menu** > **Settings** from the left sidebar. 2. Select **Namespaces**. 3. Choose the namespace and click **Edit**. 4. Edit the description or include tags for the namespace. 5. Click **Update Namespace**. ## Delete a namespace Deleting a namespace permanently deletes all its child namespaces and its projects. To delete a namespace: 1. Select **User menu** > **Settings** from the left sidebar. 2. Select **Namespaces**. 3. Choose the namespace and click **Delete**. 4. Select and confirm the deletion. 5. Click **Delete Namespace**. ## Data propagation from parent to child namespaces Data propagation defines how child namespaces inherit data from their parent namespace. * **Finding Policies**: When you create a namespace, all the finding policies in the parent are **inherited** by the child namespaces. Any new finding policy you create in the parent, you can choose to apply it to the child namespaces by selecting **Propagate this policy to all child namespaces**. * **Action Policies**: When you create a namespace, all the action policies in the parent are **inherited** by the child namespaces. Any new action policy you create in the parent, you can choose to apply it to the child namespaces by selecting **Propagate this policy to all child namespaces**. * **Remediation Policies**: When you create a namespace, all the remediation policies in the parent are **inherited** by the child namespaces. Any new remediation policy you create in the parent, you can choose to apply it to the child namespaces by selecting **Propagate this policy to all child namespaces**. * **Exception Policies**: When you create a namespace, all the exception policies in the parent are **inherited** by the child namespaces. Any new exception policy you create in the parent, you can choose to apply it to the child namespaces by selecting **Propagate this policy to all child namespaces**. * **Package Manager Integrations**: Package manager integrations of the parent are **not inherited** by the child namespaces. Any new package manager integration you create in the parent, you can choose to apply them to the child namespaces by selecting **Propagate this package manager to all child namespaces**. * **Integrations**: Integrations in the parent are **not inherited** by the child namespaces. * **Authorization Policies**: Authorization policies of the parent are **inherited** by all its child namespaces. You can choose to group the authorization policies of the child namespaces in their parent namespace and manage them easily. * **Secret Rules**: You can choose to apply custom secret rules created in the parent to its child namespaces by selecting **Propagate this rule to all child namespaces**. * **API Key**: You can create an API key in a namespace and select **Propagate this rule to all child namespaces** to apply the key to all child namespaces. ## Tenant and namespace terminologies Tenant is the top-level entity under which you can create namespaces and child namespaces. To denote a namespace, always use its fully qualified name. Fully qualified name for a namespace is in the format `tenantname.namespacename`, and child namespace is in the format `tenantname.namespacename.childnamespacename`. * In this example, the tenant is `abccorp` and its child namespaces are `abccorp.security-bu`, `abccorp.datacenter-bu`, and `abccorp.agent-bu`. The child namespaces of `abccorp.security-bu` are `abccorp.security-bu.dev-team`, `abccorp.security-bu.testing-team`, and `abccorp.security-bu.finance-team`. * Consider a tenant named `acme` with a child namespace `dev`, which in turn has a child namespace `app`. The fully qualified namespace for `app` is `acme.dev.app`. # Notifications Source: https://docs.endorlabs.com/inventory-insights/notifications/index Learn how to view, search, and manage policy notifications in Endor Labs. Notifications are alerts generated when findings match the criteria defined in your action policies or remediation policies. When you [create Jira issues from Findings](/inventory-insights/findings/manage-findings#create-jira-issues-from-findings), Endor Labs creates an **on-demand notification** for each attempt. **On-demand notification** is the policy value for those entries, including when issue creation fails. Endor Labs sends notifications to your configured notification integrations, such as email, Slack, Jira, webhooks, Vanta, or GitHub PR comments. The notifications view gives you centralized visibility across integrations. It helps you debug and recover from delivery failures, track your security work queue through open and resolved states, and review an audit trail of all notifications. ## Prerequisites To receive notifications, you must: 1. [Set up notification integrations](#notification-integrations) 2. Configure an [action policy](/platform-administration/policies/action-policies) or a [remediation policy](/platform-administration/policies/remediation-policies) with the **Send Notification** action. ## View all notifications To view all notifications in your namespace, select **User menu** > **Notifications** from the left sidebar. Notifications fall into four categories: * **Open**: Notifications for findings that are still open and require attention. * **Resolved**: A notification moves to resolved when the finding associated with it is either resolved or deleted. * **Dismissed**: Notifications that you dismissed to stop Endor Labs from processing and updating them. * **All**: All notifications in your namespace, regardless of their status. You can view the following details for each notification: * **Opened**: Elapsed time since Endor Labs created the notification. * **Policy**: Action policy or remediation policy that triggered the notification. [Jira issues created manually from findings](/inventory-insights/findings/manage-findings#create-jira-issues-from-findings) are recorded as **On-demand notifications**. * **Project**: The project associated with the notification. * **Last Evaluated**: The elapsed time since the action policy or remediation policy was last evaluated. * **Violations**: The number of policy violations that triggered this notification. * **Namespace**: The namespace where Endor Labs creates the notification. * **Channels**: The notification channels configured in your namespace that receive alerts, such as Jira, Email, Slack, Vanta, Webhooks, and Remediation PR. When a notification has an error, a red triangle appears next to it. Click the notification to view more details about the error. ![Notifications](https://mintcdn.com/endorlabs-b4795f4f/ia5bjt8fFA5GpAsz/images/inventory-insights/notifications/notifications-ui.webp?fit=max\&auto=format\&n=ia5bjt8fFA5GpAsz\&q=85\&s=0db8a8b8d30c92c645c686adc07e2711) ### Search notifications You can search notifications by the policy name or Jira issue key. * Policy name: Enter the action policy or remediation policy name to find all notifications associated with that policy. For example, search for `SAST` to find all notifications triggered by the SAST action policy. * Jira issue key: Enter a Jira issue ID in the format `PROJECT-KEY-NUMBER` to find all notifications associated with that Jira issue. For example, searching for `BUG-235` shows notifications linked to the Jira issue BUG-235. ### Filter notifications Use filters to refine notifications by time range, projects, notification channels, or error status. You can use the following filter options: * **All Time**: Filter notifications by creation date. You can select from the following options: **Last Day**, **Last week**, **last month**, **last 60 days**, **last 90 days**, **All Time**, or you can customize the time range. * **Projects**: Enter a project name in your namespace and select it. You can select multiple projects to view notifications from those projects. * **Channels**: Filter notifications by notification channels such as Slack, Jira, Email, webhooks, Vanta, and Remediation PR. The channels displayed depend on the notification integrations set up in your namespace. * **Has Errors**: Filter to show only notifications that have errors in their notification delivery. This includes errors such as failed delivery attempts, configuration issues, or unsupported scenarios. ## View notification details Each notification contains detailed information about the security event or policy violation that triggered it. This includes metadata about the associated project, the findings that caused the notification, and any actions taken in response. You can also view any errors that occurred during notification delivery. To view notification details: 1. Select **User menu** > **Notifications** from the left sidebar. 2. Select a notification. 3. Select **Overview** to view key information about the notification such as its metadata, triggered actions, and associated findings. * **Notification metadata**: Project associated with the notification, the date and time when Endor Labs opened the notification, the date and time when the policy was last evaluated, and the notification UUID. * **Actions triggered by this notification**: Lists all actions the notification triggered, including issue IDs created in external systems, and links to external tickets or pull requests. * **Findings that triggered this notification**: The findings that matched the action policy or remediation policy criteria and that triggered this notification. 4. Select **Issues** to view error messages and troubleshoot notification delivery problems. ![View details of notifications](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/inventory-insights/notifications/view-notification-details.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=b32fb394d8a90b85f33db19a96decb55) ## Manage notifications Use actions on each notification to view details, navigate to the related policy, or dismiss notifications. To navigate to the policy which triggered a notification: 1. Select **User menu** > **Notifications** from the left sidebar. 2. Click the vertical three dots on the notification whose policy you want to view. 3. Select **Go to Policy** to view and update the policy. ### Dismiss notifications Dismiss a notification to pause all further posting, processing, and updates associated with it. Endor Labs also stops sending updates to existing Jira tickets, emails, Slack messages, or webhooks, even if the underlying finding changes or gets resolved. You can view dismissed notifications in the **Dismissed** category. You can dismiss any notification from **Open** or **Resolved**. To dismiss a notification: 1. Select **User menu** > **Notifications** from the left sidebar. 2. Click the vertical three dots on the notification you want to dismiss. 3. Select **Dismiss Notification**. To dismiss multiple notifications at once: 1. Select **User menu** > **Notifications** from the left sidebar. 2. Select the notifications you want to dismiss. 3. Click **Actions** and select **Dismiss Notification**. ### Undismiss notifications When you undismiss a notification that is in **Open** state, Endor Labs re-evaluates it in the next scan cycle or schedule based on the current state of the underlying finding. It then processes the notification accordingly, such as by sending updates to Jira, email, Slack, or webhooks if the policy applies. To undismiss a notification: 1. Select **User menu** > **Notifications** from the left sidebar. 2. Select **Dismissed**. 3. Click the vertical three dots on the dismissed notification. 4. Select **Undismiss Notification**. To undismiss multiple notifications at once: 1. Select **User menu** > **Notifications** from the left sidebar. 2. Select **Dismissed**. 3. Select the notifications you want to undismiss. 4. Click **Actions** and select **Undismiss Notification**. ## Notification integrations You must configure notification integrations to receive notifications. These integrations define the destinations that receive notifications when action policies or remediation policies trigger them. Endor Labs supports integrations like email, Jira, Slack, Vanta, and other tools. * [Email integration](/integrations/email) * [Jira integration](/integrations/jira) * [Slack integration](/integrations/slack) * [Webhooks](/integrations/webhooks) * [Vanta integration](/integrations/vanta) * [PR remediation](/risk-remediation/automated-pull-requests) * [GitHub PR comments](/scan/pr-scans/pr-comments) # Packages Source: https://docs.endorlabs.com/inventory-insights/packages/index Browse the buildable units Endor Labs discovers in your projects, and review their resolution and reachability status. Packages are the buildable units of first-party code Endor Labs discovers inside a project. Each package corresponds to a manifest in your repository, such as `pom.xml`, `package.json`, or `go.mod`. Use the Packages page to confirm Endor Labs discovered every package you expect to scan, and to track whether dependency resolution and reachability analysis succeeded for each one. ## What Endor Labs tracks for a package For each package, Endor Labs records: * **Versions**: Snapshots taken whenever a scan runs against a different commit, branch, or release of the source. Versioning lets you compare the same package across branches, releases, or scheduled scans. * **Dependencies**: The other packages this package consumes, mostly third-party. See [Dependencies](/inventory-insights/dependencies) to review the inventory and Endor Scores. * **Dependents**: Other packages in your tenant that consume this package. Use dependents to communicate with downstream consumers when you change a version. * **Findings**: Security findings derived from rule evaluations against the package and its dependencies. ## How packages relate to projects and repositories A project in Endor Labs represents a source code repository. A single repository typically contains one or more packages. For example, a monorepo can hold dozens of npm or Maven packages, each declared by its own manifest. When Endor Labs scans a project, it inventories every package it can build and tracks each one independently. ## Package discovery and lifecycle Endor Labs discovers packages during a project scan, whether the scan runs from a CI/CD pipeline, on a schedule, or as an ad hoc `endorctl scan` command. For each manifest it finds, Endor Labs builds the package, resolves its dependencies, and generates a call graph where the language and package manager support it. A rescan refreshes the package inventory and updates dependency resolution and reachability results. Rescans run automatically on every CI/CD pipeline scan and on the cadence you configure for scheduled scans. ## Packages and dependencies The Packages page and the Dependencies page answer different questions about your inventory. * **Packages** are the units of first-party code your team owns. They live in your repositories, and Endor Labs scans them as part of your projects. * **Dependencies** are the third-party code those packages consume. Endor Scores, reachability states, and findings on third-party code all live on the Dependencies page. See [Dependencies](/inventory-insights/dependencies) to review the third-party packages your projects consume and how Endor Labs scores them. ## View packages in a project 1. Select **Projects** from the left sidebar. 2. Search for and select a project to review. 3. Select **Packages** under **Inventory** to view every package Endor Labs maintains for the project, along with any findings. ![Packages list for a project](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/inventory-insights/packages/packages-projects.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=4e006dc6cf508b256017161f7f3bb430) Each row shows: * **Package Name**: The name of the package, with the package manager icon. * **Dependency Resolution**: Status icon showing whether dependency resolution succeeded. * **Reachability Analysis**: Status icon showing whether call graph generation succeeded. * **Dependencies**: The number of dependencies in the package. * **Findings**: The number of findings associated with the package. * **Created**: The date and time when Endor Labs first discovered the package. * **Last Scanned**: The date and time of the most recent scan. The following table describes the **Dependency Resolution** status icons. | Status | Description | | - | - | | ▲ | Error during manifest scan | | ◐ | Error during dependency resolution | | ● | Dependency resolution succeeded | The following table describes the **Reachability Analysis** status icons. | Status | Description | | - | - | | ▲ | Error during call graph generation | | ● | Call graph generation succeeded | | ■ | Call graph generation isn't supported or isn't enabled | Select a package to open its detail view, where you can review its dependencies, findings, and Endor Scores. See [Dependencies](/inventory-insights/dependencies) to learn how dependency details and scores work. > [!NOTE] > > For C and C++ packages, you can visualize the source files where each dependency was identified during scanning. See [View dependency file locations](/scan/sca/c#view-dependency-file-locations) to explore the file paths Endor Labs detected. ## Filter packages Use filters to narrow the package list to a specific ecosystem or status. On the **Packages** page, apply the **Ecosystem**, **Dependency Resolution**, or **Reachability Analysis** filter to narrow the results. To sort, click the **Package**, **Created**, or **Last Scanned** column header. The sort order toggles between ascending and descending each time you click. ![Filter packages by ecosystem and status](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/inventory-insights/packages/filter-package.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=c0e309a4e36fbb971c36bc7be3039c68) ## Delete a package Delete packages you no longer need from your project inventory. Deleting a package also removes every finding associated with it. 1. On the **Packages** page, select the vertical three dots in the package row, then select **Delete**. 2. Click **Delete** to confirm. ![Delete package confirmation](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/inventory-insights/packages/delete-package.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=500a110135e9fd7a2f0fd5943800f9ec) > [!WARNING] > > Deleting a package removes its findings from the project. This action can't be undone. # PR runs Source: https://docs.endorlabs.com/inventory-insights/pr-runs/index View the history of PR scans performed on a project. PR runs provide a detailed view of security scans performed on pull requests before you merge them. They help you assess the security impact of code changes and identify issues early in the development cycle. You can use them to verify merge readiness, ensure compliance, and troubleshoot scan failures with full context on vulnerabilities, policy violations, and dependency issues. 1. Select **Projects** from the left sidebar. 2. Search for and select a project to review. 3. Select **PR RUNS** to review the past scans. * **Scan status**: The status of the scan's outcome. The following statuses are possible: \- Icon: -status-success- Status: Success Description: The scan completed successfully. \- Icon: -status-partial-success- Status: Partial Success Description: The scan completed with warnings. Review the scan details for more information. \- Icon: -status-failure- Status: Failure Description: There are issues with this scan. Review the scan details for more information. \- Icon: -status-running- Status: Running Description: The scan is currently running. \- Icon: -status-pending- Status: Pending Description: Scan status is unavailable. * **Scanned**: The date and time the scan ran, along with the scan mode, such as `Quick Scan`. * **Duration**: How long the scan took to complete. * **Ref**: The Git reference identifying the scanned commit or branch. For Endor Labs SCM Apps, pre-merge pull request scans use a named ref (for example, `pr/1259`), while merge commit scans use a commit SHA. * **Type**: The categories of checks included in the scan, such as AI Models, GitHub Actions, or Dependencies. * **Tags**: System-generated tags attached to the scan, such as `check_run`, `pr`, or `scan_request` identifiers. * **Findings**: The number of security findings, categorized by severity as **Critical**, **High**, **Medium**, or **Low**. * **Commit SHA**: Each scan maps to a specific commit SHA, allowing users to track security issues to specific code changes. * **Scanned By**: Identifies the user or system that initiated the scan. * **Filtering & Search**: You can filter scans by status, scan type, and time range. You can search by tags, commit SHA, or specific include or exclude file paths. For example, you can select **Container** as a scan type from the dropdown list. ![Pull request scans history](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/inventory-insights/pr-runs/pr-scan-findings.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=4a4eac677ae8841a3794737d7e58ed3d) 4. Select a record to view general information about the scan or its logs. * **View Findings**: Displays security findings associated with the scan. Findings are not recorded in case of scan failures. * **View Scan Result**: Displays scan information, issue logs with error details, and additional scan data. * **Overview**: Displays general scan information such as the scan status, result UUID, detected programming languages, system details, and versions of key development tools used in the environment. * **Issues**: Displays additional errors and warnings from the scan. * **Logs**: Monitor scan logs, even while scans are running, and filter by severity level, with selectable log severity from Emergency, Alert, Critical, Error, Warning, Notice, Info, or Debug for in-depth debugging and policy evaluations. You can access scan logs and toolchain details for projects onboarded through Endor Labs cloud using the GitHub, GitLab, or Azure DevOps Apps. The log levels in the selected scan result determine the available log severities. ![Pull request scans history logs](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/inventory-insights/pr-runs/pr-scan-logs.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=090678d658e197308f6047aa05453f27) # Projects Source: https://docs.endorlabs.com/inventory-insights/projects/index View and manage your source code repositories scanned by Endor Labs. Projects in Endor Labs represent your source code repositories. When you scan a repository, Endor Labs creates a corresponding project. Select **Projects** from the left sidebar to view a list of all projects in your namespace. ![Projects](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/inventory-insights/projects/projects-ui.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=97d5d7590e70fcf238f9ce4a3813d258) You can view the following details in the Projects list: * **Source Code Management Platform** - The icon that represents the source code management platform like GitHub, GitLab, Azure DevOps and Bitbucket. * **Project** - The name of the project, shown as `SCM Organization/Project Name`. * **Findings** - The condensed view of the number of critical, high, medium, and low severity findings in the project. * **Tags** - The tags associated with the project. * **Packages** - The number of packages in the project. * **Dependency Resolution Status** - The percentage of packages that have been fully analyzed with no dependency resolution errors. * **Reachability Analysis Status** - The percentage of packages eligible for reachability analysis that have been fully analyzed with no call graph errors. * **Last Scan** - The elapsed time since the project was last analyzed by Endor Labs. To sort projects by any column, click the column header. The sort order toggles between ascending (A–Z or oldest to newest) and descending (Z–A or newest to oldest), depending on the column type. ## View project details Select a row to view the project details, such as the project metadata, finding details, and tools associated with the project. ![Project Details](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/inventory-insights/projects/project-details.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=e07d216396b8da7ae889d051258e213c) ## Track a repository version Add a branch or tag to a project's Monitored Versions list so Endor Labs scans it going forward. 1. Select **Projects** from the left sidebar and select a project. 2. Go to **Settings**. 3. Under **Monitored Versions**, click **Track Repository Version**. 4. Enter the branch or tag name and click **Save**. Endor Labs validates the ref against your source code management (SCM) provider before adding it to Monitored Versions. > [!NOTE] > > Validation requires a project connected through an SCM App installation. Versions created by a scan, such as an `endorctl` scan in CI, skip validation, since the scan itself confirms the ref exists. If Endor Labs can't complete the validation lookup — for example, if it times out — it still saves the version rather than blocking it. Only branch and tag names are supported. Commit SHAs are not valid monitored versions. See [Set a default branch](/scan/sca/scanning-strategies#set-a-default-branch) to choose which monitored version Endor Labs uses for dashboard reporting. ## View project findings Click on **Project** to view the project findings. See [Findings](/inventory-insights/findings) for more information. You can also scan your projects for AI models. See [AI model findings](/secure-ai-coding/ai-model-discovery) for more information. ## View packages in a project Select **Packages** under **Inventory** to view the list of all packages maintained as part of your project. See [Packages](/inventory-insights/packages) for more information. ## Review past scan details You can view the history of scans performed on a project, which enables you to review the security posture of your project over time. See [Scan history](/inventory-insights/scan-history) for more information. ## View dependencies You can view all the dependencies associated with all the projects in your namespace. See [Dependencies](/inventory-insights/dependencies) for more information. ## Filter projects Filters refine the projects view by applying conditions based on project metadata and scan results. For example, you can filter projects by name, tags, scan date, or number of critical findings. You can combine multiple filters to narrow down results based on multiple conditions in a single query. See [Project filters](/inventory-insights/projects/project-filters) to learn how to implement these filters effectively. # Working with project filters Source: https://docs.endorlabs.com/inventory-insights/projects/project-filters/index Learn how to implement and use project filters to search, prioritize, and manage projects across your organization. Includes an interactive filter builder. Filters enable targeted queries based on attributes such as severity, package ecosystems, dependency resolution, and platform source. This guide explains how filters work, how to apply and combine them effectively, and provides practical examples to support triage, audit, and reporting workflows across large codebases. ## Access project filters Perform the following steps to apply filters to the project list. 1. Select **Projects** from the left sidebar. 2. Filter your projects using the list of available filters in the filter bar. 3. Toggle the **Advanced** option in the filter bar to apply API-style filters. You can combine multiple filters to create more specific searches and narrow down the project list based on multiple criteria. ## How filters work Each filter consists of three parts. * **Field**: The attribute you want to filter (for example, `Package Count` and `Platform Source`). * **Operator**: The comparison logic (for example, `equals`, `greater than`, and `in`). * **Value**: The target value to evaluate (for example, `npm` and `100`). Project filters use standard comparison operators to evaluate criteria. See [Filter operators](/developers-api/rest-api/using-the-rest-api/filters#operators) for detailed information about available operators and their usage. When you apply multiple filters, the system combines them using logical AND operations across filters for different fields and logical OR operations across filters for the same field. For example: * **Filter 1**: `Package Ecosystems contains: npm` * **Filter 2**: `Platform Source in: GitHub` * **Filter 3**: `Package Count: greater than 1` * **Filter 4**: `Reachability Analysis Status greater than or equal to: 90%` ![Multiple filters](https://mintcdn.com/endorlabs-b4795f4f/deISr2DfATZg293W/images/best-practices/project-filters/project-filters/multiple-filters.webp?fit=max\&auto=format\&n=deISr2DfATZg293W\&q=85\&s=4d9ea0df181c8c32c34e3523d29057be) This combination returns only projects that use npm packages, are from GitHub, have more than one package, and have a reachability analysis status of at least 90%. ## Filter implementation techniques You can use the following filter types to manage your projects effectively. * [Preset filters](#preset-filters): Use predefined UI-based filters to quickly segment projects by common attributes. * [Filter projects using API](#filter-projects-using-api): Use advanced syntax for complex queries and logical combinations. * [Saved filters](#saved-filters): Save a filter query and reapply it to the Projects table without building it again. ### Preset filters The following examples demonstrate how to apply preset filters for common project scenarios. #### Filter projects by custom tags Use custom tags to filter projects based on environment or predefined labels assigned during project initialization or scan configuration. For example, to view only projects related to SAST, use the `Custom Tags contains: sast` filter. ![filter by custom tags](https://mintcdn.com/endorlabs-b4795f4f/deISr2DfATZg293W/images/best-practices/project-filters/project-filters/filter-custom-tags.webp?fit=max\&auto=format\&n=deISr2DfATZg293W\&q=85\&s=1580b27a6908b34830c83b56fc1d9f9e) #### Filter projects by findings severity Prioritize remediation efforts by filtering projects based on the severity of security findings. You can select from **Critical (C)**, **High (H)**, **Medium (M)**, or **Low (L)** severity filters to target different priority levels. For example, to identify projects with critical findings, select the **C** filter. ![filter by severity](https://mintcdn.com/endorlabs-b4795f4f/deISr2DfATZg293W/images/best-practices/project-filters/project-filters/filter-finding-severity.webp?fit=max\&auto=format\&n=deISr2DfATZg293W\&q=85\&s=e6b5624341c4b592ae59dbafd0687811) #### Filter projects by package ecosystem Use package ecosystem filters to segment projects by language or package manager. Apply targeted policies, such as stricter vulnerability thresholds for JavaScript or license compliance checks for Java. For example, to focus on PHP projects for a security assessment, use the `Package Ecosystems contains: Packagist` filter. ![filter by package ecosystem](https://mintcdn.com/endorlabs-b4795f4f/deISr2DfATZg293W/images/best-practices/project-filters/project-filters/filter-package-ecosystem.webp?fit=max\&auto=format\&n=deISr2DfATZg293W\&q=85\&s=eb98e9241ff0b1add02dfff7692d0dd2) #### Filter projects by source platform Use platform source filters to segment projects by their source platform and correlate findings with platform-native security tools like GitHub's Dependabot alerts or GitLab's vulnerability scanning. For example, to identify projects analyzed from GitLab, use the `Platform Source in: GitLab` filter. ![filter by source platform](https://mintcdn.com/endorlabs-b4795f4f/deISr2DfATZg293W/images/best-practices/project-filters/project-filters/filter-source-platform.webp?fit=max\&auto=format\&n=deISr2DfATZg293W\&q=85\&s=adf9b6840ca10c6238a722258b21fa70) #### Filter projects by dependency resolution quality Use dependency resolution status to identify projects with resolution issues that impact security analysis accuracy. You can filter by a single value or a range of percentages. For example, to identify projects with poor dependency resolution, use the **Range** filter to find projects with `Dependency Resolution Status greater than 0% and less than 50%`. ![filter by resolution](https://mintcdn.com/endorlabs-b4795f4f/deISr2DfATZg293W/images/best-practices/project-filters/project-filters/filter-dependency-resolution-status.webp?fit=max\&auto=format\&n=deISr2DfATZg293W\&q=85\&s=babbe9f8df560e521d3d4c0eedd4c55f) #### Filter projects by scan timestamp Use last scanned filters to identify projects with stale security data that require fresh scans for current security posture. You can select from predefined time ranges or use the calendar to select a specific date. For example, to identify projects scanned within the last 24 hours, use the `Last Scanned: Last Day` filter. ![filter by last scanned](https://mintcdn.com/endorlabs-b4795f4f/deISr2DfATZg293W/images/best-practices/project-filters/project-filters/filter-last-scanned.webp?fit=max\&auto=format\&n=deISr2DfATZg293W\&q=85\&s=2183af616f23f032e7f76fbd7dd33ec7) #### Filter projects by complexity Identify projects based on their size and complexity, which may require different levels of security attention and resources. For example, to focus on large projects with extensive dependency trees, use the `Package Count: greater than 100` filter. ![filter by complexity](https://mintcdn.com/endorlabs-b4795f4f/deISr2DfATZg293W/images/best-practices/project-filters/project-filters/filter-complexity.webp?fit=max\&auto=format\&n=deISr2DfATZg293W\&q=85\&s=e6bb01e84ebd182478ae2061d93045ff) #### Filter projects by reachability analysis status Use reachability analysis status to identify projects based on the success rate of call graph generation and reachability analysis. You can filter by a single value or a range of percentages. For example, to identify projects with successful reachability analysis, use the `Reachability Analysis Status greater than or equal to: 90%` filter. ![filter by reachability status](https://mintcdn.com/endorlabs-b4795f4f/deISr2DfATZg293W/images/best-practices/project-filters/project-filters/filter-reachability-analysis-status.webp?fit=max\&auto=format\&n=deISr2DfATZg293W\&q=85\&s=8d917849c9b83aaa78e44e9b48938a7f) ### Filter projects using API For complex queries, use the advanced filter syntax to combine multiple attributes and apply logical operators. Use the [Project filter builder](#interactive-filter-builder) to assemble conditions interactively. The following table lists the available attributes for project filters. \- Attribute: Project UUID Description: Filters projects by their unique identifier. \- Attribute: Name Description: Filters projects by the display name of the project. \- Attribute: Custom Tags Description: Filters projects by custom tags set during project setup or scan configuration. \- Attribute: Last Scanned Description: Filters projects based on the timestamp of the last successful scan. \- Attribute: Package Count Description: Filters projects by the total number of packages resolved in the project. \- Attribute: Package Ecosystems Description: Filters projects based on the language-specific package ecosystems they use. \- Attribute: Dependency Resolution Status Description: Filters projects by the percentage of resolved dependencies in the project. \- Attribute: Reachability Analysis Status Description: Filters projects based on the success rate of reachability analysis through call graph generation. \- Attribute: Critical Findings Count Description: Filters projects based on the number of critical-severity findings in the project. \- Attribute: High Findings Count Description: Filters projects based on the number of high-severity findings in the project. \- Attribute: Medium Findings Count Description: Filters based on the number of medium-severity findings in the project. \- Attribute: Low Findings Count Description: Filters projects based on the number of low-severity findings in the project. \- Attribute: Dismissed Findings Count Description: Filters projects by the number of findings that users dismissed. Useful for reviewing triage quality. \- Attribute: Total Findings Count Description: Filters projects based on the total number of findings detected in a project. \- Attribute: Platform Source Description: Filters projects based on source platform and helps narrow results by version control origin such as GitHub, GitLab, or Bitbucket. \- Attribute: Automated Scan Enabled Description: Filters projects by whether automated scanning is enabled. \- Attribute: Total Vulnerabilities Description: Filters projects by the total number of vulnerabilities detected across all severity levels. \- Attribute: Critical Vulnerabilities Description: Filters projects by the number of critical-severity vulnerabilities detected. \- Attribute: High Vulnerabilities Description: Filters projects by the number of high-severity vulnerabilities detected. \- Attribute: Medium Vulnerabilities Description: Filters projects by the number of medium-severity vulnerabilities detected. \- Attribute: Low Vulnerabilities Description: Filters projects by the number of low-severity vulnerabilities detected. \- Attribute: Direct Dependencies Description: Filters projects by the count of dependencies declared directly in project manifests. \- Attribute: Transitive Dependencies Description: Filters projects by the count of transitive (indirect) dependencies pulled in through direct dependencies. \- Attribute: Outdated Dependencies Description: Filters projects by the number of dependencies with newer versions available. \- Attribute: Unmaintained Dependencies Description: Filters projects by the number of dependencies that are no longer actively maintained. ### Interactive filter builder ### Project Filter Builder Construct advanced project filters using the API-style syntax. Build your filter * Add condition Generated filter expression

Copy to clipboard

Copy this expression and paste it into the **Advanced Filter** box in
the Projects UI.

### API filter use cases

The following examples demonstrate how to combine these attributes for common security and compliance workflows.

> [accordion] Identify high-risk GitHub projects
>
> Find GitHub projects with more than 5 critical findings and a reachability analysis status below 80%.
>
> ```bash theme={null}
> spec.platform_source == PLATFORM_SOURCE_GITHUB and spec.finding_counts.critical > 5 and spec.package_coverage.call_graph_success_rate < 0.8
> ```

> [accordion] Audit stale projects with risks
>
> Identify projects not scanned in the last 7 days that still have outdated dependencies.
>
> ```bash theme={null}
> spec.last_scanned < now(-168h) and spec.dependency_counts.outdated > 0
> ```

> [accordion] Identify projects with low dependency resolution quality
>
> Find projects where dependency resolution is below 90%, which may indicate incomplete security analysis.
>
> ```bash theme={null}
> spec.package_coverage.success_rate < 0.9
> ```

> [accordion] Find large projects with high vulnerability density
>
> Identify projects with more than 100 total packages that also have a high number of critical vulnerabilities.
>
> ```bash theme={null}
> spec.package_coverage.total > 100 and spec.vulnerability_counts.total.critical > 20
> ```

> [accordion] Audit projects with high triaged findings
>
> Find projects where more than 50 findings have been dismissed, useful for auditing triage quality.
>
> ```bash theme={null}
> spec.finding_counts.dismissed > 50
> ```

> [accordion] Triage critical vulnerabilities by ecosystem
>
> Focus on npm projects with a high number of critical vulnerabilities.
>
> ```bash theme={null}
> spec.package_coverage.ecosystems contains ECOSYSTEM_NPM and spec.vulnerability_counts.total.critical > 10
> ```

## Saved filters

Saved filters store a filter query on the Projects table so you can reapply it without building it again. Each saved filter appears in the **Saved Filters** list in the filter bar.

To create a saved filter:

1. Select **Projects** from the left sidebar.
2. Apply the filters you want to save in the filter bar. To enter a query instead, select **Toggle Advanced Filter Mode** and type or build your query.
3. Click **Saved Filters**.
4. Click **Save Current**.
5. Enter a name in the **Choose filter name** field.
6. Click **Save**.

To apply a saved filter, click **Saved Filters** in the filter bar and select the filter.

### Manage saved filters

To edit a saved filter:

1. Select **User menu** > **Settings** from the left sidebar.
2. Select **Saved Filters**.
3. Click **Edit** next to the filter you want to edit.
4. Update the name, query, or tags.
5. Click **Update**.

To delete a saved filter:

1. Select **User menu** > **Settings** from the left sidebar.
2. Select **Saved Filters**.
3. Click the vertical three dots next to the filter you want to delete, and select **Delete**.


# Reports
Source: https://docs.endorlabs.com/inventory-insights/reports/index

Learn how to create analytics, findings, and license notice reports for your organization.

Reports allow you to export analytics, findings, and license notice data from Endor Labs for offline review, distribution, and analysis.

You can generate the following reports:

* [**Analytics reports**](#create-an-analytics-or-findings-report): The analytics report provides a high-level view of vulnerability trends over time for the selected scope. It includes insights into newly discovered and resolved vulnerabilities, broken down by severity and tracked across defined time periods. The report also highlights remediation patterns, such as how long issues typically take to resolve, helping teams assess risk posture and remediation efficiency. Overall, it supports trend analysis, prioritization, and offline review of security metrics.

* [**Findings reports**](#create-an-analytics-or-findings-report): The findings report provides a detailed view of individual security findings identified within the selected scope. It includes information such as vulnerability details, severity, affected components, and contextual metadata to help teams understand risk and impact. The report also captures remediation-related context, such as fix availability, reachability, and policy signals, to support prioritization. Overall, it supports deep analysis, audits, and sharing actionable security findings for offline review.

* [**License Notice reports**](#create-a-license-notice-report-beta): The license notice report lists the open source dependencies in the selected scope along with their license texts, copyright notices, and source code locations. Include a license notice report when you distribute software that contains open source dependencies.

You can use reports to share security insights, support audits, meet license attribution obligations, and integrate results into external workflows.

## Create an analytics or findings report

Create an analytics report or findings report to export vulnerability trend or findings data for offline analysis.

1. Select **Reports** from the left sidebar.
2. Click the dropdown arrow next to **Create Report** and select a report type.
   * **Analytics Report**: To export aggregated analytics data based on the selected filters.
   * **Findings Report**: To export detailed findings data based on the selected filters.
3. Choose the output format for the report. Analytics reports are available in JSON format. Findings reports are available in PDF.
4. Define which projects the report includes. If you don't select any projects, the report includes all projects by default.
   * **Selected projects**: Includes only explicitly selected projects.
   * **Selected project tags**: Includes projects matching specific tags.
5. Choose the following filters to refine the data included in the report.
   * **Severity**: Filter the data based on finding severity such as Critical, High, Medium, or Low (labeled C, H, M, and L in the user interface).
   * **Category**: Filter the findings by category such as AI models, vulnerability, SCA, SAST, secrets, and container.
   * **Attributes**: Narrow down the list based on the following range of factors:
     * if a patch is available to fix the findings
     * if the vulnerable function is reachable
     * if the dependency is reachable
     * if the dependency originates from a current repository or a current tenant
     * if the dependency is a test dependency
     * if the dependency's discovery type is manifest, phantom, or segment match
     * if the finding originates from itself, direct, or a transitive dependency
     * filter the findings by the **Exploited** tag from **CISA KEV**
     * filter the findings by the **Warn** or **Break the Build** options set in the action policy.
   * **Time Period**: Restrict the report to findings or events within a selected range. Choose a preset such as **Last Day**, **Last Week**, **Last Month**, **Last 60 Days**, **Last 90 Days**, or **All Time**, or set a custom date range.
6. Click **Create Report** to generate your report.

## Create a license notice report Beta

Create a notice report to export license texts, copyright notices, and attribution information for one or more projects or packages.

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

2. From the **Create Report** dropdown, select **License Notice Report**.

3. Choose the output format for the report. Available formats are **TXT** and **Markdown**.

4. Optionally, enter a **Report Name**. Endor Labs assigns a default name if you leave this blank

5. Under **Scope**, choose **Select Projects** or **Select Packages**, then select at least one project or package. You can select up to 100 projects or up to 500 packages.

   > [!NOTE]
   >
   > You must select at least one project or package. If you select more than 100 projects or more than 500 packages, Endor Labs shows a validation error until you correct the selection.

6. Choose the following filters to refine the data included in the report.

   * **Multi-Licenses**: Filter based on which license to use when a dependency has multiple licenses.
     * Select **All** to include every license associated with the dependency.
     * Select **Most Permissive** to include only the most permissive license.
   * **Type**: Filter based on whether the license was declared by the dependency or discovered during scanning.
     * Select **All** to include both declared and discovered licenses.
     * Select **Declared Only** to include only licenses declared by the dependency.
     * Select **Discovered Only** to include only licenses discovered during scanning.
   * **License Category**: Select one or more license categories, such as **Permissive**, **Copyleft**, or **Public Domain**, to include in the report. By default, all license categories are included.

   Click **Reset filters** to clear these back to their defaults.

7. Toggle **Include Copyright information** to include copyright statements in the report.

   When you include copyright information, the **Components** section of the report lists the copyright statements found for each dependency, and includes dependencies that have copyright statements but no license information. Otherwise, Endor Labs omits those dependencies so the report contains no empty entries.

8. Select **Use custom disclaimer to the notice file** to enter disclaimer text to show at the top of the notice file. You can enter up to 8,192 characters of disclaimer text.

9. Click **Create Report** to generate your report.

## Manage reports

You can track your report status and access report outputs after generating them.

1. Select **Reports** from the left sidebar to view the details of all the reports generated for your namespace.

   * **Status indicator**: Shows the report generation status. The following statuses are possible:

     
  \- Icon: -status-pending-
       Status: Pending
       Description: The report is queued and hasn't started generating yet.
       \- Icon: -status-running-
       Status: Running
       Description: The report is still generating.
       \- Icon: -status-success-
       Status: Success
       Description: The report generated successfully.
       \- Icon: -status-partial-success-
       Status: Failure (retrying)
       Description: The report failed to generate. Endor Labs automatically retries it.
       \- Icon: -status-failure-
       Status: Failure
       Description: The report failed to generate or was cancelled.
       

   * **Report name**: The report type and creation timestamp.

   * **Report type**: The type of the report created such as analytics report, findings report, or license notice report

   * **Created by**: The user who generated the report.

   * **Created date**: Date and time of report creation.

2. Select a report to view additional details including the report scope and applied filters. For a license notice report, the details also show the file format, license type, multi-license policy, copyrights setting, and custom disclaimer.

3. To download a report, click the three vertical dots and click **Download**.

4. To delete a report, click the three vertical dots and click **Delete**.


# Export SBOMs and VEX
Source: https://docs.endorlabs.com/inventory-insights/sbom/exporting-sboms/index

Learn more about software transparency and the role of SBOMs in your organization.

Exporting an SBOM gives you a standardized, portable inventory of a project's or package version's components that you can share with customers, auditors, or other tools, independent of Endor Labs. A VEX export adds vulnerability exploitability status for those components, so recipients know which findings actually apply.

To export an SBOM you must first perform a successful `endorctl` scan. If you haven't successfully scanned a project see [quick start](/introduction/getting-started) for more information.

Endor Labs supports export in the [CycloneDX format](https://cyclonedx.org/docs/1.6/json/#bomFormat), [VEX](https://cyclonedx.org/capabilities/vex/) format, and [SPDX format](https://spdx.github.io/spdx-spec/v2.3/file-information/).

Endor Labs renders CycloneDX documents, including VEX documents, in specification version 1.5, 1.6, or 1.7, and renders SPDX documents in specification version 2.3. Endor Labs uses CycloneDX 1.5 and SPDX 2.3 by default.

## Export SBOM or VEX through the Endor Labs user interface

You can export an SBOM or VEX document for a project, a package version, or from a finding.

### Export SBOM or VEX for a project

When you export an SBOM or VEX at the project level, Endor Labs includes all packages and package versions by default, combining them into a single consolidated file. A consolidated SBOM or VEX enables quick identification and assessment of vulnerabilities across all software components in the project.

Endor Labs generates SBOM and VEX exports as background jobs. Start an export from a project, then track its progress and download the file from the **Reports** page once the job succeeds.

> [tab] SBOM export
>
> 1. Select **Projects** from the left sidebar and select the project for which you want to export the SBOM.
>
> 2. Click **Export**, then select **SBOM**.
>
> 3. Under **Packages**, select the packages and package versions to include in the SBOM and click **Confirm**.
>
>    If you don't select any packages, Endor Labs includes all packages and package versions.
>
>    You can filter by ecosystem to narrow the list of packages, and search to select multiple versions of the same package.
>
> 4. Select **CycloneDX** or **SPDX** in **Format**.
>
> 5. Select **Application** or **Library** in **Artifact type**.
>
>    If you select **Application**, enter a name in **Application Name**.
>
> 6. Select the output format in **File format**.
>
>    * CycloneDX supports **JSON** or **XML**.
>    * SPDX supports **JSON** or **Tag-Value**.
>
> 7. Optionally, select **Include test dependencies** to include test and other non-production dependencies in the SBOM. By default, Endor Labs excludes test dependencies.
>
> 8. Click **Export**.
>
> Endor Labs submits the SBOM export as a background job and shows a confirmation message. Select **View Reports** in the confirmation message to track the job status and download the SBOM once it completes.
>
> You can also track the job status and download the SBOM once it completes by following these steps:
>
> 1. Select **Reports** from the left sidebar.
> 2. Find the SBOM export job in the list and click **View**.
> 3. Click the three vertical dots and select **Download** to download the SBOM.
>
> See [Reports](/inventory-insights/reports) for more information about report statuses and downloading reports.
>
> 

> [tab] VEX export
>
> 1. Select **Projects** from the left sidebar and select the project for which you want to export the VEX document.
>
> 2. Click **Export**, then select **VEX**.
>
> 3. Under **Packages**, select the packages and package versions to include in the VEX document and click **Confirm**.
>
>    If you don't select any packages, Endor Labs includes all packages and package versions.
>
>    You can filter by ecosystem to narrow the list of packages, and search to select multiple versions of the same package.
>
> 4. Select **Application** or **Library** in **Artifact type**.
>
>    If you select **Application**, enter a name in **Application Name**.
>
> 5. Select **JSON** or **XML** in **File format**.
>
> 6. Optionally, select **Include test dependencies** to include test and other non-production dependencies in the VEX document. By default, Endor Labs excludes test dependencies.
>
> 7. Click **Export**.
>
> Endor Labs submits the VEX export as a background job and shows a confirmation message. Select **View Reports** in the confirmation message to track the job status and download the VEX document once it completes.
>
> You can also track the job status and download the VEX document once it completes by following these steps:
>
> 1. Select **Reports** from the left sidebar.
> 2. Find the VEX export job in the list and click **View**.
> 3. Click the three vertical dots and select **Download** to download the VEX document.
>
> See [Reports](/inventory-insights/reports) for more information about report statuses and downloading reports.
>
> 

### Export SBOM or VEX from findings

When you export an SBOM or VEX for findings, Endor Labs scopes the export to the project you select and includes all its packages and package versions by default, combining them into a single consolidated file. This lets you generate a consolidated SBOM or VEX for a project directly from its findings.

1. Select **Findings** from the left sidebar.
2. In the **Project** column, click the name of the project you want to export, then select **Export SBOM** or **Export VEX**.



### Export SBOM or VEX for a package version

When you export an SBOM or VEX for a package version, Endor Labs scopes the export to the package version you select and includes all its dependencies by default, combining them into a single consolidated file. This lets you generate a consolidated SBOM or VEX for a package version directly from its dependencies.

1. Select **Discover** from the left sidebar.
2. Search and select an open source package.
3. Select a package version to view its details.
4. Click **Export**, then select **SBOM** or **VEX**.

   See [Export an SBOM or VEX for a package version](/discover/open-source-packages#export-an-sbom-or-vex-for-a-package-version) for more information about selecting packages, choosing a format, and completing the export.

## Export an SBOM or VEX through the REST API

Endor Labs generates SBOM and VEX exports through the `AsyncJob` resource. This lets you export SBOMs and VEX documents for large projects without the request timing out.

**1. Submit an export job**

Submit an export job with `POST /v1/namespaces/{namespace}/async-jobs`. Set `spec.type` to `TYPE_SBOM` or `TYPE_VEX`, and provide the export parameters in `spec.request.sbom` or `spec.request.vex`.

To request a specification version, set `spec.request.sbom.cyclonedx_spec_version` or `spec.request.sbom.spdx_spec_version` for an SBOM, and `spec.request.vex.cyclonedx_spec_version` for a VEX document. Set the field that matches the format you export.

Endor Labs returns an `AsyncJob` with a UUID and `spec.state` set to `JOB_STATE_NEW`.

**2. Poll the job status**

Poll the job with `GET /v1/namespaces/{namespace}/async-jobs/{uuid}` until `spec.state` is `JOB_STATE_SUCCESS`, `JOB_STATE_FAILED`, or `JOB_STATE_CANCELLED`.

**3. Download the file**

On success, download the file from the signed URL in `spec.response.sbom.report_url` or `spec.response.vex.report_url`.

> [!NOTE]
>
> The signed download URL expires after 5 minutes. If it expires before you download the file, call `GetAsyncJob` again to get a fresh URL.

## Export SBOM through endorctl

You can use the following options with the SBOM export command.




  \- Flag: \`component-type\`
  Environment_Variable: \`ENDOR_SBOM_COMPONENT_TYPE\`
  Type: string
  Description: Set the SBOM component type to \`application\`, or \`library\` (default \`application\`).

  \- Flag: \`output-format\`
  Environment_Variable: \`ENDOR_SBOM_OUTPUT_FORMAT\`
  Type: string
  Description: Set the SBOM format to \`json\` or \`xml\` for CycloneDX, and \`json\` or \`tag-value\` for SPDX (\`json\` is the default for both).

  \- Flag: \`package-version-name\`
  Environment_Variable: \`ENDOR_SBOM_PACKAGE_VERSION_NAME\`
  Type: string
  Description: Name of the package version for which you want to generate an SBOM.

  \- Flag: \`package-version-uuid\`
  Environment_Variable: \`ENDOR_SBOM_PACKAGE_VERSION_UUID\`
  Type: string
  Description: The UUID of the package version for which you want to generate an SBOM.

  \- Flag: \`spec-version\`
  Environment_Variable: \`ENDOR_SBOM_SPEC_VERSION\`
  Type: string
  Description: Set the specification version the document conforms to. CycloneDX accepts \`1.5\`, \`1.6\`, or \`1.7\`, and SPDX accepts \`2.3\`. Defaults to CycloneDX \`1.5\` or SPDX \`2.3\`.

  \- Flag: \`timeout\`
  Environment_Variable: \`ENDOR_SBOM_TIMEOUT\`
  Type: string
  Description: Set the timeout for the SBOM generation (default \`120s\`). Use the Go duration format, for example, 30s, 1m.

  \- Flag: \`with-vex\`
  Environment_Variable: \`ENDOR_SBOM_WITH_VEX\`
  Type: boolean
  Description: Generate the corresponding VEX document along with the SBOM.

  \- Flag: \`include-test-dependencies\`
  Environment_Variable: \`ENDOR_SBOM_INCLUDE_TEST_DEPENDENCIES\`
  Type: boolean
  Description: Include test, development, build, and optional dependencies in the SBOM, and in the VEX document when you use \`with-vex\` (default \`false\`).

  \- Flag: \`project-uuid\`
  Environment_Variable: \`ENDOR_SBOM_PROJECT_UUID\`
  Type: string
  Description: The UUID of the project for which you want to generate an SBOM.

  \- Flag: \`project-name\`
  Environment_Variable: \`ENDOR_SBOM_PROJECT_NAME\`
  Type: string
  Description: Name of the project for which you want to generate an SBOM.

  \- Flag: \`app-name\`
  Environment_Variable: \`ENDOR_SBOM_APP_NAME\`
  Type: string
  Description: Name of the application or the library. Required for multi-package SBOM export.

  \- Flag: \`package-version-uuids\`
  Environment_Variable: \`ENDOR_SBOM_PACKAGE_VERSION_UUIDS\`
  Type: string
  Description: The list of package version UUIDs to export an SBOM.


  

You can export an SBOM in CycloneDX or SPDX format using endorctl, for a single package version or across multiple package versions.

To export an SBOM you need the package version name for which you'd like to create an SBOM or its UUID. You can also export an SBOM with multiple package versions. To export an SBOM with multiple package versions, you need the package version UUIDs or the project name.

Pass the package name or UUID to the command `endorctl sbom export` using the `--package-version-name` or `--uuid` flags.

To export an SBOM, you must first retrieve the package version name through the API.

You can easily export a reference package name and the scanned version you'd like to export as environment variables.

```shell theme={null}
export PACKAGE_NAME=
export VERSION=
```

Then query the API for the package version name and set this as an environment variable:

```shell theme={null}
export PACKAGE_VERSION_NAME=$(endorctl api list -r PackageVersion --filter "meta.name matches $PACKAGE_NAME AND meta.name matches $VERSION" --field-mask=meta.name | jq -r ".list.objects[].meta.name")
```

Export an SBOM in the CycloneDX format through endorctl using the package version name.

```shell theme={null}
endorctl sbom export --package-version-name=$PACKAGE_VERSION_NAME >> cyclonedx.json
```

Export an SBOM in the SPDX format through endorctl using the package version name.

```shell theme={null}
endorctl sbom export --format spdx --package-version-name=$PACKAGE_VERSION_NAME >> spdx.json
```

To export multiple package versions in an SBOM, you need the UUIDs of package versions, or the name or UUID of the project to which the package versions belong.

To create an SBOM based on project details, either provide the project UUID with the `--project-uuid` flag or the project name with the `--project-name` flag. You also need to provide a name for the package with the `--app-name` flag.

Run the command to create an SBOM with multiple package versions using the project UUID.

```shell theme={null}
endorctl sbom export -n  --project-uuid= --app-name= >> .json
```

For example:

```shell theme={null}
endorctl sbom export -n test --project-uuid=66e345c340669666c22979d6 --app-name=actions-hu/app-java-demo >> cyclonedx-sbom.json
```

Run the following commands to create an SBOM with multiple package versions with the project name.

1. Fetch the project name using the project's UUID.

   ```shell theme={null}
   endorctl api get -r Project --uuid  -n  |jq .meta.name
   ```

2. Run the following command and replace `` with the project name you retrieved in the previous step.

   ```shell theme={null}
   endorctl sbom export -n  --project-name= --app-name= >> .json
   ```

   For example:

   ```shell theme={null}
   endorctl sbom export -n test --project-name=actions-hu/app-java-demo --app-name=actions-hu/app-java-demo >> cyclonedx-sbom.json
   ```

Generate an SBOM based on package version UUIDs, provide the package version UUIDs with the `--package-version-uuids` flag. You also need to provide a name for the package with the `--app-name` flag.

```shell theme={null}
endorctl sbom export -n  --package-version-uuids=,,...  --app-name= >> .json
```

For example:

```shell theme={null}
endorctl sbom export -n test --package-version-uuids=66e345c340669666c22979d6,89f456c340669666c229854a,43a56b1340669666c289d4a2 --app-name=actions-hu/app-java-demo >> spdx-sbom.json
```

To export multiple package versions in an SBOM, you need the UUIDs of package versions, or the name or UUID of the project to which the package versions belong.

To create an SBOM based on project details, either provide the project UUID with the `--project-uuid` flag or the project name with the `--project-name` flag. You also need to provide a name for the package with the `--app-name` flag.

Run the command to create an SBOM with multiple package versions using the project UUID.

```shell theme={null}
endorctl sbom export --format spdx -n  --project-uuid= --app-name= >> .json
```

For example:

```shell theme={null}
endorctl sbom export --format spdx -n test --project-uuid=66e345c340669666c22979d6 --app-name=actions-hu/app-java-demo >> spdx-sbom.json
```

Run the following commands to create an SBOM with multiple package versions with the project name.

1. Fetch the project name using the project's UUID.

   ```shell theme={null}
   endorctl api get -r Project --uuid  -n  |jq .meta.name
   ```

2. Run the following command and replace `` with the project name you retrieved in the previous step.

   ```shell theme={null}
   endorctl sbom export --format spdx --output-format= -n  --project-name= --app-name= >> .json
   ```

   For example:

   ```shell theme={null}
   endorctl sbom export --format spdx --output-format=json -n test --project-name=actions-hu/app-java-demo --app-name=actions-hu/app-java-demo >> spdx-sbom.json
   ```

Generate an SBOM based on package version UUIDs, provide the package version UUIDs with the `--package-version-uuids` flag. You also need to provide a name for the package with the `--app-name` flag.

```shell theme={null}
endorctl sbom export --format spdx --output-format=json  -n  --package-version-uuids=,,...  --app-name= >> .json
```

For example:

```shell theme={null}
endorctl sbom export --format spdx --output-format=json -n test --package-version-uuids=66e345c340669666c22979d6,89f456c340669666c229854a,43a56b1340669666c289d4a2 --app-name=actions-hu/app-java-demo >> spdx-sbom.json
```

To export the CycloneDX SBOM as a library rather than an application use `--component-type=library`.

```shell theme={null}
endorctl sbom export --component-type=library --package-version-name=$PACKAGE_VERSION_NAME >> cyclonedx.json
```

To export the CycloneDX SBOM in XML format rather than json use `--output-format` with the XML parameter.

```shell theme={null}
endorctl sbom export --output-format=xml --package-version-name=$PACKAGE_VERSION_NAME >> cyclonedx.xml
```

To export a VEX document use the flag `--with-vex`

```shell theme={null}
endorctl sbom export --with-vex
```

To export a document that conforms to a specific specification version, use `--spec-version`.

```shell theme={null}
endorctl sbom export --spec-version=1.6
```

To export the SPDX SBOM using the tag-value format instead of json, use `--output-format=tag-value`.

```shell theme={null}
endorctl sbom export --format spdx --output-format=tag-value --package-version-name=$PACKAGE_VERSION_NAME >> sbom-spdx.spdx
```

> [!NOTE]
>
> endorctl generates SBOMs in the CycloneDX format by default.

## Endor Labs Export Formats

Endor Labs provides the following fields to map to the [NTIA minimum elements of an SBOM standard](https://www.ntia.gov/report/2021/minimum-elements-software-bill-materials-sbom).

### CycloneDX Format

Endor Labs supports export in the CycloneDX format.

The following table lists the mandatory and some optional fields in the SBOM file that Endor Labs exports.




  \- Field: \`bomFormat\`
  Mandatory: true
  Description: Specifies the format of the SBOM.

  \- Field: \`specVersion\`
  Mandatory: true
  Description: The version of the specification used (for example, "1.4").

  \- Field: \`serialNumber\`
  Mandatory: false
  Description: A unique identifier for the SBOM document.

  \- Field: \`version\`
  Mandatory: true
  Description: The revision number of the SBOM.

  \- Field: \`metadata\`
  Mandatory: false
  Description: Contains metadata about the SBOM and primary component.

  \- Field: \`metadata.timestamp\`
  Mandatory: false
  Description: The date and time when the SBOM was generated.

  \- Field: \`metadata.component\`
  Mandatory: false
  Description: Information about the main component described by the SBOM.

  \- Field: \`metadata.component.bom-ref\`
  Mandatory: false
  Description: A reference identifier for the component within the BOM.

  \- Field: \`metadata.component.type\`
  Mandatory: false
  Description: The type of the main component (for example, "application" or "library").

  \- Field: \`metadata.component.name\`
  Mandatory: false
  Description: The name of the main component.

  \- Field: \`metadata.component.version\`
  Mandatory: false
  Description: The version of the main component.

  \- Field: \`metadata.component.hashes\`
  Mandatory: false
  Description: Cryptographic hashes of the main component.

  \- Field: \`metadata.component.purl\`
  Mandatory: false
  Description: The Package URL (purl) for the main component.

  \- Field: \`metadata.supplier\`
  Mandatory: false
  Description: Information about the supplier of the software.

  \- Field: \`metadata.supplier.name\`
  Mandatory: false
  Description: The name of the supplier.

  \- Field: \`metadata.supplier.url\`
  Mandatory: false
  Description: URLs associated with the supplier.

  \- Field: \`metadata.supplier.contact\`
  Mandatory: false
  Description: Contact information for the supplier.

  \- Field: \`metadata.licenses\`
  Mandatory: false
  Description: License information for the main component.

  \- Field: \`components\`
  Mandatory: true
  Description: List of software components included in the SBOM.

  \- Field: \`components\[].bom-ref\`
  Mandatory: false
  Description: A reference identifier for each component within the BOM.

  \- Field: \`components\[].type\`
  Mandatory: true
  Description: The type of each component (for example, "library").

  \- Field: \`components\[].name\`
  Mandatory: true
  Description: The name of each component.

  \- Field: \`components\[].version\`
  Mandatory: false
  Description: The version of each component.

  \- Field: \`components\[].licenses\`
  Mandatory: false
  Description: License information for each component.

  \- Field: \`components\[].licenses\[].license.name\`
  Mandatory: false
  Description: The name of the license.

  \- Field: \`components\[].purl\`
  Mandatory: false
  Description: The Package URL (purl) for each component.

  \- Field: \`components\[].externalReferences\`
  Mandatory: false
  Description: External references for components.

  \- Field: \`components\[].externalReferences\[].url\`
  Mandatory: false
  Description: The URL of the external reference.

  \- Field: \`components\[].externalReferences\[].type\`
  Mandatory: false
  Description: The type of the external reference (for example, "\`vcs\`").

  \- Field: \`components\[].pedigree\`
  Mandatory: false
  Description: Contains pedigree metadata for components that use an \[Endor patch]\(/risk-remediation/endor-patches). See \[Patch data in SBOM]\(#patch-data-in-sbom) for more information.

  \- Field: \`components\[].pedigree.ancestors\`
  Mandatory: false
  Description: The upstream component version that is the base for the patch. The patched component in the SBOM is derived from this ancestor.

  \- Field: \`components\[].pedigree.patches\`
  Mandatory: false
  Description: List of patches applied to the component. Each patch includes the base64-encoded diff and the vulnerabilities it resolves.

  \- Field: \`components\[].pedigree.patches\[].diff\`
  Mandatory: false
  Description: The base64-encoded patch content.

  \- Field: \`components\[].pedigree.patches\[].resolves\`
  Mandatory: false
  Description: List of vulnerabilities resolved by this patch.

  \- Field: \`dependencies\`
  Mandatory: false
  Description: Describes the relationships between components.

  \- Field: \`dependencies\[].ref\`
  Mandatory: false
  Description: Reference to a component in the dependency relationship.

  \- Field: \`dependencies\[].dependsOn\`
  Mandatory: false
  Description: List of components that this component depends on.

  

#### Patch data in SBOM

CycloneDX SBOMs generated by Endor Labs include patch data for components that use an Endor patch. This allows consumers of the SBOM to see exactly which upstream version was patched, what changes were applied, and which vulnerabilities those patches resolve.

The following fields describe how patch data appears in the exported SBOM.




  \- Field: \`pedigree.patches\[].diff\`
  Description: Contains the patch data associated with the component. The \`diff\` object stores the patch as  base64 encoded content with \`contentType\` set to \`text/plain\`.
  \- Field: \`pedigree.ancestors\`
  Description: Contains the upstream component version that was used as the base for the patch. This is the original version from which the patched version was derived.
  \- Field: \`pedigree.patches\[].resolves\`
  Description: Identifies the vulnerabilities resolved by the patch. Each entry sets \`type\` to \`security\` and specifies \`name\` as the vulnerability identifier such as a GHSA ID.
  \- Field: \`version\`
  Description: Specifies the component version as declared in the manifest file. If a version reference such as \`endor-latest\` is used, the SBOM retains the value declared in the manifest file.


  

The following example shows a patched component in a CycloneDX SBOM.

```json expandable theme={null}
{
  "bom-ref": "mvn://com.fasterxml.jackson.core:jackson-databind@2.9.10.3-endor-2024-07-10",
  "type": "library",
  "name": "com.fasterxml.jackson.core:jackson-databind",
  "version": "2.9.10.3-endor-2024-07-10",
  "licenses": [],
  "purl": "pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.9.10.3-endor-2024-07-10",
  "pedigree": {
    "ancestors": [
      {
        "bom-ref": "mvn://com.fasterxml.jackson.core:jackson-databind@2.9.10.3",
        "type": "library",
        "name": "com.fasterxml.jackson.core:jackson-databind",
        "version": "2.9.10.3",
        "licenses": [],
        "purl": "pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.9.10.3",
        "externalReferences": [
          {
            "url": "https://github.com/fasterxml/jackson-databind.git",
            "type": "vcs"
          }
        ]
      }
    ],
    "patches": [
      {
        "diff": {
          "text": {
            "content": "",
            "contentType": "text/plain",
            "encoding": "base64"
          }
        },
        "resolves": [
          {
            "id": "",
            "name": "GHSA-q93h-jc49-78gg",
            "description": "",
            "type": "security"
          },
          {
            "id": "",
            "name": "GHSA-p43x-xfjf-5jhr",
            "description": "",
            "type": "security"
          }
        ]
      }
    ]
  }
}
```

### VEX Format

The following table lists the mandatory and some optional fields in the VEX file that Endor Labs exports.




  \- Field: \`bomFormat\`
  Mandatory: true
  Description: Specifies the format of the VEX document.

  \- Field: \`specVersion\`
  Mandatory: true
  Description: The version of the specification used.

  \- Field: \`serialNumber\`
  Mandatory: true
  Description: A unique identifier for the VEX document.

  \- Field: \`version\`
  Mandatory: true
  Description: The revision number of the VEX document.

  \- Field: \`metadata\`
  Mandatory: true
  Description: Contains metadata about the VEX document and primary component.

  \- Field: \`metadata.timestamp\`
  Mandatory: true
  Description: The date and time when the VEX document was generated.

  \- Field: \`metadata.tools\`
  Mandatory: true
  Description: Information about tools used to generate the VEX document.

  \- Field: \`metadata.tools.services\`
  Mandatory: true
  Description: List of services used in generating the VEX document.

  \- Field: \`metadata.tools.services\[].provider\`
  Mandatory: true
  Description: Information about the provider of the service.

  \- Field: \`metadata.tools.services\[].provider.name\`
  Mandatory: true
  Description: The name of the service provider.

  \- Field: \`metadata.tools.services\[].provider.url\`
  Mandatory: true
  Description: URLs associated with the service provider.

  \- Field: \`metadata.tools.services\[].name\`
  Mandatory: true
  Description: The name of the service.

  \- Field: \`metadata.tools.services\[].version\`
  Mandatory: true
  Description: The version of the service.

  \- Field: \`metadata.tools.services\[].description\`
  Mandatory: true
  Description: A description of the service.

  \- Field: \`metadata.component\`
  Mandatory: true
  Description: Information about the main component described by the VEX document.

  \- Field: \`metadata.component.bom-ref\`
  Mandatory: true
  Description: A reference identifier for the component within the VEX.

  \- Field: \`metadata.component.type\`
  Mandatory: true
  Description: The type of the main component.

  \- Field: \`metadata.component.name\`
  Mandatory: true
  Description: The name of the main component.

  \- Field: \`metadata.component.version\`
  Mandatory: true
  Description: The version of the main component.

  \- Field: \`metadata.component.hashes\`
  Mandatory: true
  Description: Cryptographic hashes of the main component.

  \- Field: \`metadata.component.purl\`
  Mandatory: true
  Description: The Package URL (purl) for the main component.

  \- Field: \`vulnerabilities\`
  Mandatory: true
  Description: List of vulnerabilities associated with the component.

  \- Field: \`vulnerabilities\[].id\`
  Mandatory: false
  Description: The identifier of the vulnerability.

  \- Field: \`vulnerabilities\[].references\`
  Mandatory: false
  Description: References related to the vulnerability.

  \- Field: \`vulnerabilities\[].references\[].source.url\`
  Mandatory: false
  Description: URL of the reference source.

  \- Field: \`vulnerabilities\[].ratings\`
  Mandatory: false
  Description: Severity ratings for the vulnerability.

  \- Field: \`vulnerabilities\[].ratings\[].score\`
  Mandatory: false
  Description: Numerical score of the severity.

  \- Field: \`vulnerabilities\[].ratings\[].severity\`
  Mandatory: false
  Description: Textual representation of the severity.

  \- Field: \`vulnerabilities\[].ratings\[].method\`
  Mandatory: false
  Description: The method used for rating (for example, "CVSSv3").

  \- Field: \`vulnerabilities\[].ratings\[].vector\`
  Mandatory: false
  Description: The vector string for the rating.

  \- Field: \`vulnerabilities\[].cwes\`
  Mandatory: false
  Description: Common Weakness Enumeration (CWE) identifiers.

  \- Field: \`vulnerabilities\[].description\`
  Mandatory: false
  Description: A description of the vulnerability.

  \- Field: \`vulnerabilities\[].detail\`
  Mandatory: false
  Description: Detailed information about the vulnerability.

  \- Field: \`vulnerabilities\[].recommendation\`
  Mandatory: false
  Description: Recommended actions to address the vulnerability.

  \- Field: \`vulnerabilities\[].advisories\`
  Mandatory: false
  Description: List of advisories related to the vulnerability.

  \- Field: \`vulnerabilities\[].advisories\[].url\`
  Mandatory: false
  Description: URL of the advisory.

  \- Field: \`vulnerabilities\[].published\`
  Mandatory: false
  Description: The date when the vulnerability was published.

  \- Field: \`vulnerabilities\[].updated\`
  Mandatory: false
  Description: The date when the vulnerability information was last updated.

  \- Field: \`vulnerabilities\[].credits\`
  Mandatory: false
  Description: Credits for individuals or organizations related to the vulnerability.

  \- Field: \`vulnerabilities\[].credits.individuals\`
  Mandatory: false
  Description: List of individuals credited.

  \- Field: \`vulnerabilities\[].analysis\`
  Mandatory: false
  Description: Analysis of the vulnerability's impact on the component.

  \- Field: \`vulnerabilities\[].analysis.state\`
  Mandatory: false
  Description: The state of the analysis (for example, \`not_affected\`).

  \- Field: \`vulnerabilities\[].analysis.justification\`
  Mandatory: false
  Description: Justification for the analysis state.

  \- Field: \`vulnerabilities\[].affects\`
  Mandatory: false
  Description: Information about which components are affected by the vulnerability.

  \- Field: \`vulnerabilities\[].affects\[].ref\`
  Mandatory: false
  Description: Reference to the affected component.


  

#### Vulnerability analysis state

Endor Labs sets `vulnerabilities[].analysis.state` to `not_affected` with the justification `code_not_reachable` when reachability analysis determines that your code doesn't reach the vulnerable function or dependency. Endor Labs doesn't set an analysis state for any other vulnerability.

Dismissing a finding doesn't set the analysis state to `not_affected`. A VEX export includes every vulnerability finding in its scope, including dismissed findings. Dismissal exempts a finding from action policies in your own workflow. It isn't an assertion that the component is unaffected, so a dismissed finding appears in the exported VEX document with the same vulnerability statement as any other finding.

See [Dismiss findings](/inventory-insights/findings/dismiss-findings) to learn the ways you can dismiss a finding.

### SPDX Format

The following table lists the mandatory and some optional fields in the SPDX file that Endor Labs exports.




  \- Field: \`spdxVersion\`
  Mandatory: true
  Description: Specifies the SPDX specification version used.

  \- Field: \`dataLicense\`
  Mandatory: true
  Description: Specifies the data license for the SPDX document.

  \- Field: \`SPDXID\`
  Mandatory: true
  Description: Unique identifier for the SPDX document.

  \- Field: \`name\`
  Mandatory: true
  Description: Name of the SPDX document.

  \- Field: \`documentNamespace\`
  Mandatory: false
  Description: Defines the namespace URI for the document.

  \- Field: \`creationInfo\`
  Mandatory: true
  Description: Contains metadata about when and how the document was created.

  \- Field: \`creationInfo.licenseListVersion\`
  Mandatory: false
  Description: Specifies the version of the SPDX license list used.

  \- Field: \`creationInfo.creators\[]\`
  Mandatory: true
  Description: List of entities that created the document (tool, organization, or person).

  \- Field: \`creationInfo.created\`
  Mandatory: true
  Description: The date and time when the document was created.

  \- Field: \`packages\[]\`
  Mandatory: true
  Description: List of packages included in the SPDX document.

  \- Field: \`packages\[].name\`
  Mandatory: true
  Description: Name of the package.

  \- Field: \`packages\[].SPDXID\`
  Mandatory: true
  Description: Unique identifier for the package.

  \- Field: \`packages\[].versionInfo\`
  Mandatory: false
  Description: Version of the package, if known.

  \- Field: \`packages\[].supplier\`
  Mandatory: false
  Description: Information about the package supplier.

  \- Field: \`packages\[].downloadLocation\`
  Mandatory: true
  Description: Location from where the package can be downloaded.

  \- Field: \`packages\[].filesAnalyzed\`
  Mandatory: false
  Description: Indicates whether the files in the package were analyzed.

  \- Field: \`packages\[].licenseConcluded\`
  Mandatory: false
  Description: License the package is concluded to be under.

  \- Field: \`packages\[].licenseDeclared\`
  Mandatory: false
  Description: License declared by the package supplier.

  \- Field: \`packages\[].copyrightText\`
  Mandatory: false
  Description: Copyright statement for the package.

  \- Field: \`packages\[].externalRefs\[]\`
  Mandatory: false
  Description: List of external references related to the package.

  \- Field: \`packages\[].externalRefs\[].referenceCategory\`
  Mandatory: true
  Description: Category of the external reference.

  \- Field: \`packages\[].externalRefs\[].referenceType\`
  Mandatory: false
  Description: Type of external reference (for example, \`purl\`).

  \- Field: \`packages\[].externalRefs\[].referenceLocator\`
  Mandatory: true
  Description: Value used to locate the reference (for example, a Package URL).


  


# Import SBOMs
Source: https://docs.endorlabs.com/inventory-insights/sbom/importing-sboms/index

Learn more about software transparency and the role of importing SBOMs in your organization.

SBOMs from vendors describe the components, licenses, and related metadata inside software you procure. Import them into Endor Labs so you can store, search, and analyze that composition next to the applications your organization builds.

Endor Labs' SBOM Hub is a central location to store, search, and monitor SBOMs from vendors. When you import a file, Endor Labs ingests, parses, and analyzes it and keeps versions so you can see how vendor composition changes over time. For SBOM program design and day-to-day operations, see [Key questions for your SBOM program](https://www.endorlabs.com/blog/sbom-vex-security-program-operations).

You can use [finding policies](/platform-administration/policies/finding-policies) to identify vulnerabilities, unmaintained open source software, license risks, and outdated dependencies in the SBOMs provided to you by your third-party software vendors.

## Import an SBOM to Endor Labs

Import your project's SBOM into the Endor Labs application to discover vulnerabilities and view findings.

You can use the following methods to import SBOMs:

* [**Import SBOMs through the Endor Labs UI**](#import-sboms-through-the-endor-labs-ui) to upload your SBOMs and access vulnerability and dependency insights.
* [**Import SBOMs through the Endor Labs CLI**](#import-sboms-through-the-endor-labs-cli) to ingest SBOMs and access vulnerability and dependency insights directly from your command line.

### Import SBOMs through the Endor Labs UI

To import SBOMs through the Endor Labs UI and view vulnerability and dependency insights:

1. Select **SBOM Hub** from the left sidebar.
2. Select **Import SBOM** in the top right-hand corner.
3. Choose **Upload File** and select the type of SBOM you would like to upload, either in XML or json format.
   * Use **CycloneDX** if your vendor has provided you with a [CycloneDX format SBOM](https://cyclonedx.org/).
   * Use **SPDX** if your vendor has provided you with a [SPDX format SBOM](https://spdx.dev/).
4. Select **Browse** to upload your SBOM from your workstation or drag the SBOM into the Endor Labs user interface.

Once you have imported your SBOM to Endor Labs, Endor Labs will schedule a scan in the background for the SBOM within the next few hours.

### Import SBOMs through the Endor Labs CLI

Import an SBOM using the CLI to trigger an instant scan and immediately view vulnerabilities and dependency insights with the following command:

> [tab] CycloneDX Format
>
> ```bash theme={null}
> endorctl sbom import --sbom-file-path=/path/to/your/sbom.json
> ```

> [tab] SPDX Format
>
> ```bash theme={null}
> endorctl sbom import --format=spdx --sbom-file-path=/path/to/your/sbom.json
> ```

See the [SBOM import command for endorctl](/developers-api/cli/commands/sbom/import) for more information.

## Manage SBOMs

You can manage SBOMs by deleting unwanted files and editing tags for consistent search and filtering.

### Delete an SBOM

1. Select **SBOM Hub** from the left sidebar.
2. Select one or more SBOMs to remove.
3. Select the vertical three dots on the row, then select **Delete SBOM**.

### Edit tags for an SBOM

Tags are keywords you attach to SBOMs to group and filter them, for example, by vendor or data classification. Tags can have a maximum of 63 characters and can contain letters A-Z, numbers (0-9), or any of (=@\_.-) special characters.

To edit tags for SBOMs:

1. Select **SBOM Hub** from the left sidebar.
2. Select one or more SBOMs.
3. Click **Edit Tags** in the top right-hand corner.
4. Add, change, or remove tags, then save.

#### Tagging strategies for SBOMs

To improve your team's ability to search and manage SBOMs, you can tag them as they are received. Tagging SBOMs helps your team understand the applications, vendors, and their importance to your business.




  \- Use_Case: Data Classification
  Rationale: Understand the kind of data a vendor or vendor application handles for you.
  Example_Tags: \`Classification_Restricted\`, \`Classification_HighlySensitive\`, \`Classification_Public\`
  \- Use_Case: Vendor Name
  Rationale: Some SBOMs may lack vendor information. Be sure to label your SBOMs with vendor names for better vendor management.
  Example_Tags: \`Vendor_RedHat\`
  \- Use_Case: Vendor Criticality
  Rationale: Tag your SBOMs according to your internal vendor tier strategy or if the vendor is considered critical. This will streamline regular SBOM reviews.
  Example_Tags: \`Critical_Vendor\`, \`Tier1_Vendor\`


  


# SBOM
Source: https://docs.endorlabs.com/inventory-insights/sbom/index

Generate and manage Software Bill of Materials.

A complete and accurate inventory of all first-party and third-party components is essential for risk identification. A Software Bill of Materials (SBOM) is a document that provides transparency into the software components of an application.

SBOMs should ideally contain all direct and transitive components and the dependency relationships between them. They should also contain metadata associated with each of these components.

## For software producers

Software producers—organizations that create and sell software—must provide software transparency through an SBOM to their customers on request. This reduces sales cycles, builds trust, and sometimes satisfies a regulatory or business requirement.

A Vulnerability Exploitability eXchange (VEX) document conveys the potential risks associated with components that have known vulnerabilities within the specific context of the product.

Software producers may need to, upon request, provide justification for known vulnerabilities and how they impact an application they sell.

[Learn how to export SBOMs and VEX documents](/inventory-insights/sbom/exporting-sboms) for the software you test with Endor Labs.

## For software consumers

Software consumers, or those who use software, need to understand their software inventory holistically. This includes both the software that they create and the software that they purchase.

[Learn how to manage third-party risks](/inventory-insights/sbom/importing-sboms) with Endor Labs.

## Supported formats

Endor Labs supports the following SBOM formats:

* **CycloneDX**: A lightweight SBOM standard designed for use in application security contexts
* **SPDX**: An open standard for communicating software bill of material information


# Scan history
Source: https://docs.endorlabs.com/inventory-insights/scan-history/index

View the history of scans performed on a project.

Scan history provides a detailed overview of past security scans performed on a project. It helps you understand your project's security posture over time. With full context and details about individual scans in their repositories, you can assess scan fidelity and troubleshoot issues.

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

2. Search for and select a project to review.

3. Select **Scan history** to review the past scans.

   * **Scan status**: The status of the scan. The following statuses are possible:

     
  \- Icon: -status-success-
       Status: Success
       Description: The scan completed successfully.
       \- Icon: -status-partial-success-
       Status: Partial Success
       Description: The scan completed with warnings. Review the scan details for more information.
       \- Icon: -status-failure-
       Status: Failure
       Description: There are issues with this scan. Review the scan details for more information.
       \- Icon: -status-running-
       Status: Running
       Description: The scan is currently running.
       \- Icon: -status-pending-
       Status: Pending
       Description: Scan status is unavailable.
       

   * **List of Scans**: View all past scans, including details such as the scan time, duration, scan type, and tags.

   * **Findings Summary**: Review the number of security findings, categorized by severity: Critical, High, Medium, or Low.

   * **Commit Details**: Each scan is linked to a specific commit SHA, allowing users to track security issues to specific code changes.

   * **Scanned By**: Identifies the user or system that initiated the scan.

   * **Filtering & Search**: You can filter scans by status, scan type, and time range. You can search by tags, commit SHA, or specific include or exclude file paths.

     For example, you can select **Container** as a scan type from the dropdown list.

     ![Scan history](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/inventory-insights/scan-history/scan-history.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=d61000e6982c979fc945f6ad00eaa968)

     > [!NOTE]
     >
     > Scan types like **analytics**, **analytics-check**, and **finding-refresh** are automated and system-triggered. They appear in scan history but do not require any user action. See [Scan types](/scan) for more information.

4. Select a record to view general information about the scan or its logs.
   * **Overview**: View general information about the scan, including the scan status, result UUID, detected programming languages, system details, and the versions of key development tools used in the environment.

   * **Issues**: View additional errors and warnings from the scan. This section appears only when the scan reports errors or warnings.

     ![Scan history issues](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/inventory-insights/scan-history/scan-history-issues.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=7d0582c8b6e409ef9c4cc57f3643f16b)

   * **Logs**: Monitor scan logs, even while scans are running, and filter by severity level, with selectable log severity from Emergency, Alert, Critical, Error, Warning, Notice, Info, or Debug for in-depth debugging and policy evaluations.

     You can access scan logs and toolchain details for projects onboarded through Endor Labs cloud using the GitHub, GitLab, or Azure DevOps Apps. The log levels in the selected scan result determine the available log severities.

     For SAST and secret findings, logs include the file path and line numbers where the issue was detected.

     ![Scan history logs](https://mintcdn.com/endorlabs-b4795f4f/NT5eBW8QVW9Cos8R/images/inventory-insights/scan-history/scan-history-logs.webp?fit=max\&auto=format\&n=NT5eBW8QVW9Cos8R\&q=85\&s=6e247e8f5ff2a53f50ec992487e7cda6)

   * **Resolved Findings**: View findings that are resolved in a particular scan. This section appears only when the scan resolves one or more findings.

     Each entry shows the finding name, severity, category, first detected time, and attribute tags. You can also copy the finding UUID.

     ![Scan history resolved findings](https://mintcdn.com/endorlabs-b4795f4f/GE3-938pjYJ9txAY/images/inventory-insights/scan-history/resolved-findings.webp?fit=max\&auto=format\&n=GE3-938pjYJ9txAY\&q=85\&s=8c63c0fcdc0403ac4533c02e6db0994b)


# Understand blocked package responses
Source: https://docs.endorlabs.com/package-firewall/blocked-responses/index

Each Package Firewall block reason, what it means, how to resolve it, and the HTTP status codes Package Firewall returns.

Package Firewall blocks a package installation by returning an `HTTP 403` error to your package manager, which stops the installation. The error names the reason the package was blocked, such as detected malware or a version that is newer than your organization's minimum package age policy.

Your security or platform team configures the [Package Firewall policy](/package-firewall/policy) that decides which installations are allowed. You see an error only when the policy blocks a package you request. If it is set to warn instead, the installation still proceeds and no error is shown. Both blocked and warned installations are recorded in the [Package Firewall logs](/package-firewall/logs). Depending on the block reason, you can add an exception for the package, change the minimum age or vulnerability severity threshold, or update the restricted license list. To modify the policy, contact your security or platform team that manages it.

Package Firewall evaluates each package version against the policy and blocks the installation when the version meets one of the following conditions:

* [Malware detected](#malware-detected)
* [Vulnerability detected](#vulnerability-detected)
* [Minimum package age not met](#minimum-package-age-not-met)
* [Restricted license](#restricted-license)
* [All versions blocked](#all-versions-blocked)
* [Package not evaluated](#package-not-evaluated)

Each reason below shows the block response Package Firewall returns. Your package manager displays part of it in its error output.

### Malware detected

The version matches a known malicious package in the Endor Labs malware database. Do not attempt to bypass this block or install the package another way. Report it to your security team so they can confirm the finding and check whether the package reached any other part of your environment.

```json theme={null}
{
  "type": "https://docs.endorlabs.com/package-firewall/blocked-responses",
  "title": "Package blocked by Endor Labs Package Firewall",
  "status": 403,
  "detail": "malware detected in endor-firewall-test@1.0.0; see https://docs.endorlabs.com/package-firewall/blocked-responses",
  "instance": "/v1/namespaces/johndoe/firewall/npm/endor-firewall-test/-/endor-firewall-test-1.0.0.tgz",
  "error": "blocked by Endor Labs: malware detected in endor-firewall-test@1.0.0 - see https://docs.endorlabs.com/package-firewall/blocked-responses",
  "code": "MALWARE_DETECTED",
  "reason": "malware detected for package endor-firewall-test@1.0.0"
}
```

### Vulnerability detected

The version has a known vulnerability at a severity your policy blocks. Upgrade to a version that resolves the vulnerability.

```json theme={null}
{
  "type": "https://docs.endorlabs.com/package-firewall/blocked-responses",
  "title": "Package blocked by Endor Labs Package Firewall",
  "status": 403,
  "detail": "endor-firewall-test@1.0.0 has a CRITICAL severity vulnerability, which the policy blocks; see https://docs.endorlabs.com/package-firewall/blocked-responses",
  "instance": "/v1/namespaces/johndoe/firewall/npm/endor-firewall-test/-/endor-firewall-test-1.0.0.tgz",
  "error": "blocked by Endor Labs: endor-firewall-test@1.0.0 has a CRITICAL severity vulnerability, which the policy blocks - see https://docs.endorlabs.com/package-firewall/blocked-responses",
  "code": "CVSS_SEVERITY_DETECTED",
  "reason": "package has a CVSS vulnerability at or above the configured severity threshold"
}
```

### Minimum package age not met

The version was published more recently than the minimum age your organization's policy requires. The message states how old the version is and the age the policy requires. Wait until the version meets the required age, or install an older version that already meets it.

```json theme={null}
{
  "type": "https://docs.endorlabs.com/package-firewall/blocked-responses",
  "title": "Package blocked by Endor Labs Package Firewall",
  "status": 403,
  "detail": "endor-firewall-test@1.0.0 is 4h old and the policy requires 3d; see https://docs.endorlabs.com/package-firewall/blocked-responses",
  "instance": "/v1/namespaces/johndoe/firewall/npm/endor-firewall-test/-/endor-firewall-test-1.0.0.tgz",
  "error": "blocked by Endor Labs: endor-firewall-test@1.0.0 is 4h old and the policy requires 3d - see https://docs.endorlabs.com/package-firewall/blocked-responses",
  "code": "MIN_AGE_NOT_MET",
  "reason": "package does not meet min_age_hours requirement"
}
```

### Restricted license

The version uses a license that your organization restricts. Install a version or an alternative package with an acceptable license.

```json theme={null}
{
  "type": "https://docs.endorlabs.com/package-firewall/blocked-responses",
  "title": "Package blocked by Endor Labs Package Firewall",
  "status": 403,
  "detail": "endor-firewall-test@1.0.0 declares GPL-3.0-only, which the policy restricts; see https://docs.endorlabs.com/package-firewall/blocked-responses",
  "instance": "/v1/namespaces/johndoe/firewall/npm/endor-firewall-test/-/endor-firewall-test-1.0.0.tgz",
  "error": "blocked by Endor Labs: endor-firewall-test@1.0.0 declares GPL-3.0-only, which the policy restricts - see https://docs.endorlabs.com/package-firewall/blocked-responses",
  "code": "RESTRICTED_LICENSE",
  "reason": "package license is restricted"
}
```

### All versions blocked

Every available version of the package is blocked by policy, so Package Firewall has no safe version to return. This happens when the policy is set to allow safe versions only and every version is flagged for malware or fails the minimum age policy.

```json theme={null}
{
  "type": "https://docs.endorlabs.com/package-firewall/blocked-responses",
  "title": "Package blocked by Endor Labs Package Firewall",
  "status": 403,
  "detail": "every available version of endor-firewall-test is blocked by policy; see https://docs.endorlabs.com/package-firewall/blocked-responses",
  "instance": "/v1/namespaces/johndoe/firewall/npm/endor-firewall-test",
  "error": "blocked by Endor Labs: every available version of endor-firewall-test is blocked by policy - see https://docs.endorlabs.com/package-firewall/blocked-responses",
  "code": "VERSIONS_CURATED",
  "reason": "all versions blocked by package firewall policy"
}
```

### Package not evaluated

Package Firewall could not complete a policy check, such as when the malware feed or the registry is unreachable, and your policy is set to **Block (Fail-close)**. Try the installation again later. If it keeps failing, contact your security or platform team. See [Action when a policy cannot be evaluated](/package-firewall/policy#action-when-a-policy-cannot-be-evaluated) to learn more.

```json theme={null}
{
  "type": "https://docs.endorlabs.com/package-firewall/blocked-responses",
  "title": "Package blocked by Endor Labs Package Firewall",
  "status": 403,
  "detail": "the package firewall could not evaluate endor-firewall-test@1.0.0; see https://docs.endorlabs.com/package-firewall/blocked-responses",
  "instance": "/v1/namespaces/johndoe/firewall/npm/endor-firewall-test/-/endor-firewall-test-1.0.0.tgz",
  "error": "blocked by Endor Labs: the package firewall could not evaluate endor-firewall-test@1.0.0 - see https://docs.endorlabs.com/package-firewall/blocked-responses",
  "code": "POLICY_NOT_EVALUATED",
  "reason": "package firewall policy could not be evaluated"
}
```

## Response codes

Package Firewall returns the following HTTP status codes to your package manager. A policy block returns `403`.


  \- Status: \`200 OK\`
  Meaning: Package Firewall returns package metadata or a list of versions. If your policy allows safe versions only, the list leaves out blocked versions.
  \- Status: \`307 Temporary Redirect\`
  Meaning: The requested version passed the policy checks. Package Firewall redirects your client to the registry to download the file.
  \- Status: \`308 Permanent Redirect\`
  Meaning: Package Firewall does not check publish, delete, and other write requests. It redirects them to the registry with the same HTTP method.
  \- Status: \`400 Bad Request\`
  Meaning: Package Firewall does not recognize the request URL or the ecosystem in it. Visual Studio Code also receives this status for its latest-version check if the latest version is blocked or the Marketplace returns an error. It then requests the filtered extension list, which returns \`200\` with the safe versions.
  \- Status: \`401 Unauthorized\`
  Meaning: The request did not include credentials.
  \- Status: \`403 Forbidden\`
  Meaning: The policy blocked the package for one of the reasons on this page, or Package Firewall could not evaluate the package and your policy is set to \*\*Block (Fail-close)\*\*. The response body describes the reason. Invalid credentials, or an API key without access to the namespace, also return \`403\` with a plain-text message.
  \- Status: \`404 Not Found\`
  Meaning: The registry does not have the requested package or version.
  \- Status: \`500 Internal Server Error\`
  Meaning: Package Firewall could not process the metadata that the registry returned.
  \- Status: \`502 Bad Gateway\`
  Meaning: Package Firewall could not reach the registry, or could not read your Package Firewall configuration. This applies even if your policy is set to \*\*Warn (Fail-open)\*\*.
  


# Configure Package Firewall credentials for CI/CD
Source: https://docs.endorlabs.com/package-firewall/ci-cd-credentials/index

Beta 
Store your Package Firewall API key and API secret as CI/CD secrets, and configure uv, npm, pnpm, Poetry, and Bundler to install through Package Firewall in your pipelines. When you resolve dependencies with Package Firewall configured as your index, your package manager writes the Package Firewall URL for your namespace into the lockfile. Every package then resolves through Endor Labs instead of the canonical registry. Installs that replay that lockfile need Package Firewall credentials, so pipeline commands such as `npm ci`, `uv sync --locked`, and `poetry install` return `401 Unauthorized` until you supply them. Store your Package Firewall credentials as CI/CD secrets, then configure each package manager client to read them from environment variables. Your pipelines authenticate without committing credentials to your repository. > [!WARNING] > > Lockfiles can embed Package Firewall URLs, such as the encoded `.npmrc` authentication npm uses or the authenticated index URLs uv and Poetry write. These lockfiles break installs for anyone without credentials to your namespace, including forks and repositories shared with other organizations. Regenerate the lockfile against the canonical registry before you share the repository outside your organization. ## Before you begin Make sure you have the following: * A Package Firewall API key and API secret. See [Configure the Package Firewall with direct integration](/package-firewall/direct-integration#create-an-api-key-for-the-package-firewall) to create them. * A package manager configuration file that points at Package Firewall. See [Configure the Package Firewall with direct integration](/package-firewall/direct-integration#configure-your-package-manager-configuration-file) to generate one with the configuration wizard. > [!NOTE] > > If you use Endor Labs with an EU tenant, use `https://factory.eu.endorlabs.com` instead of `https://factory.endorlabs.com`. ## Store Package Firewall credentials as CI/CD secrets Store your Package Firewall API key and API secret as secrets in your CI/CD system, such as repository or runner secrets. Expose them to pipeline jobs as environment variables. Don't write credentials directly in pipeline steps or commit them to your repository. The following table maps each package manager configuration file to the environment variables it reads. The uv and Poetry variable names derive from the `endor-firewall` index or source name used in the following sections. \- Configuration_file: \`.npmrc\` (npm, pnpm, and Yarn Classic) Environment_variables: \`NPM_AUTH\` Value: Base64 encoding of \`\:\\` Reference: \[npm CI/CD documentation]\(https\://docs.npmjs.com/using-private-packages-in-a-ci-cd-workflow#set-the-token-as-an-environment-variable-on-the-cicd-server) \- Configuration_file: \`pyproject.toml\` or \`uv.toml\` (uv) Environment_variables: \`UV_INDEX_ENDOR_FIREWALL_USERNAME\` and \`UV_INDEX_ENDOR_FIREWALL_PASSWORD\` Value: API key and API secret Reference: \[uv environment variable reference]\(https\://docs.astral.sh/uv/reference/environment/#uv_index_name_password) \- Configuration_file: \`pyproject.toml\` (Poetry) Environment_variables: \`POETRY_HTTP_BASIC_ENDOR_FIREWALL_USERNAME\` and \`POETRY_HTTP_BASIC_ENDOR_FIREWALL_PASSWORD\` Value: API key and API secret Reference: \[Poetry repositories documentation]\(https\://python-poetry.org/docs/repositories/) \- Configuration_file: \`\~/.bundle/config\` (Bundler) Environment_variables: \`BUNDLE_FACTORY__ENDORLABS__COM\` Value: URL-encoded \`\:\\` Reference: \[Bundler configuration documentation]\(https\://bundler.io/man/bundle-config.1.html) To store secrets and map them to environment variables, refer to the documentation for your CI/CD system, for example [GitHub Actions](https://docs.github.com/en/actions/security-for-github-actions/security-guides/using-secrets-in-github-actions), [GitLab CI/CD](https://docs.gitlab.com/ci/variables/), [Azure DevOps](https://learn.microsoft.com/en-us/azure/devops/pipelines/process/set-secret-variables), [CircleCI](https://circleci.com/docs/guides/security/env-vars/), [Jenkins](https://www.jenkins.io/doc/book/using/using-credentials/), or [Harness](https://developer.harness.io/docs/platform/secrets/add-use-text-secrets/). ## Configure uv for CI/CD When you run `uv lock` with Package Firewall configured, uv writes the firewall URL, including your namespace, into `uv.lock`. Every package resolves through Endor Labs instead of a canonical PyPI source. Since the lockfile references authenticated firewall URLs, reproducible installs fail in CI/CD when [credentials](/package-firewall/direct-integration#create-an-api-key-for-the-package-firewall) to `factory.endorlabs.com` are absent. uv commands that require a connection to the lockfile URLs, such as `uv sync --locked` or `uv sync --frozen`, return `401 Unauthorized` unless credentials are provided. To install from the lockfile in CI/CD without committing credentials to your repository, give your index a name and pass the credentials as environment variables. 1. In your existing uv index in `pyproject.toml` or `uv.toml`, add a name and remove the credentials from the URL. uv matches credentials to an index by this name. > [accordion] pyproject.toml > > ```toml theme={null} > [[tool.uv.index]] > name = "endor-firewall" > url = "https://factory.endorlabs.com/v1/namespaces//firewall/pypi/simple/" > default = true > ``` > [accordion] uv.toml > > ```toml theme={null} > [[index]] > name = "endor-firewall" > url = "https://factory.endorlabs.com/v1/namespaces//firewall/pypi/simple/" > default = true > ``` 2. In your CI/CD system, store the credentials as secrets and expose them to jobs as the following environment variables. uv derives the variable names from the index name in uppercase, so `endor-firewall` becomes `ENDOR_FIREWALL`. For more information, refer to the [uv environment variable reference](https://docs.astral.sh/uv/reference/environment/#uv_index_name_password). * `UV_INDEX_ENDOR_FIREWALL_USERNAME`: Your Package Firewall API key. * `UV_INDEX_ENDOR_FIREWALL_PASSWORD`: Your Package Firewall API secret. ## Configure npm for CI/CD When you run `npm install` with Package Firewall configured, npm writes the firewall URL, including your namespace, into `package-lock.json`. Every package resolves through Endor Labs instead of a canonical npm registry. Since the lockfile references firewall URLs, reproducible installs fail in CI/CD when [credentials](/package-firewall/direct-integration#create-an-api-key-for-the-package-firewall) to `factory.endorlabs.com` are absent. Commands that install from the lockfile, such as `npm ci`, return `401 Unauthorized` unless credentials are provided. To install from the lockfile in CI/CD without committing credentials to your repository, keep the registry URL in `.npmrc` and pass the encoded credentials as an environment variable. 1. In the project `.npmrc` file, set the Package Firewall registry and read `_auth` from an environment variable. ```ini theme={null} registry=https://factory.endorlabs.com/v1/namespaces//firewall/npm/ //factory.endorlabs.com/v1/namespaces//firewall/npm/:_auth=${NPM_AUTH} always-auth=true ``` 2. Generate the Base64 encoding of `:` with your Package Firewall API key and API secret. This is the same encoding as the configuration wizard. ```bash theme={null} printf '%s' ":" | base64 | tr -d '\n'; echo ``` 3. In your CI/CD system, store the encoded value as a secret and expose it to jobs as the `NPM_AUTH` environment variable. For more information, refer to the [npm CI/CD documentation](https://docs.npmjs.com/using-private-packages-in-a-ci-cd-workflow#set-the-token-as-an-environment-variable-on-the-cicd-server). ## Configure pnpm for CI/CD pnpm reads the same `.npmrc` registry as npm. When that file points at Package Firewall, `pnpm install` and `pnpm add` go through Endor Labs. By default, `pnpm-lock.yaml` stores integrity hashes and does not store tarball URLs. Set the same `.npmrc` credentials in CI/CD as you do for npm. See [Configure npm for CI/CD](#configure-npm-for-ci/cd) to set `NPM_AUTH`. Commands such as `pnpm install --frozen-lockfile` then resolve through Package Firewall. If the [`lockfile-include-tarball-url`](https://pnpm.io/settings) setting is `true`, pnpm writes Firewall tarball URLs into `pnpm-lock.yaml`. Reproducible installs then return `401 Unauthorized` when credentials to `factory.endorlabs.com` are absent. ## Configure Yarn Classic for CI/CD Yarn Classic (v1) writes the Package Firewall tarball URL for each package, including your namespace, into the `resolved` field of `yarn.lock`. Commands that install from the lockfile, such as `yarn install --frozen-lockfile`, fail without credentials. Package Firewall returns `401 Unauthorized`, but Yarn Classic reports it as a missing package: ```text theme={null} error Couldn't find package "" on the "npm" registry. ``` Yarn Classic reads credentials from `.npmrc`, so set the same credentials in CI/CD as you do for npm. See [Configure npm for CI/CD](#configure-npm-for-ci/cd) to set `NPM_AUTH`. ## Configure Poetry for CI/CD When you run `poetry lock` with Package Firewall set as a source, Poetry writes the Firewall URL, including your namespace, into `poetry.lock`. Every package resolves through Endor Labs instead of a canonical PyPI source. Since the lockfile references firewall URLs, reproducible installs fail in CI/CD when [credentials](/package-firewall/direct-integration#create-an-api-key-for-the-package-firewall) to `factory.endorlabs.com` are absent. Commands that install from the lockfile, such as `poetry install`, return `401 Unauthorized` unless credentials are provided. To install from the lockfile in CI/CD without committing credentials to your repository, keep the source URL in `pyproject.toml` and pass the credentials as environment variables. 1. In `pyproject.toml`, add the Package Firewall source with a name and no credentials in the URL. Poetry matches credentials to a source by this name. ```toml theme={null} [[tool.poetry.source]] name = "endor-firewall" url = "https://factory.endorlabs.com/v1/namespaces//firewall/pypi/simple/" priority = "primary" ``` 2. In your CI/CD system, store the credentials as secrets and expose them to jobs as the following environment variables. Poetry derives the variable names from the source name in uppercase, so `endor-firewall` becomes `ENDOR_FIREWALL`. For more information, refer to the [Poetry repositories documentation](https://python-poetry.org/docs/repositories/). * `POETRY_HTTP_BASIC_ENDOR_FIREWALL_USERNAME`: Your Package Firewall API key. * `POETRY_HTTP_BASIC_ENDOR_FIREWALL_PASSWORD`: Your Package Firewall API secret. ## Configure Bundler for CI/CD Bundler does not write the Package Firewall URL into `Gemfile.lock`, so installations in CI/CD do not fail without credentials. Without the Package Firewall mirror, they download gems directly from `rubygems.org`, and Package Firewall does not check them. To route installations in CI/CD through Package Firewall, set the mirror in your pipeline and pass the credentials as an environment variable. 1. Run the following commands to encode your API key and API secret for use in a URL. This is the same encoding as the configuration wizard. ```bash theme={null} printf '%s\n' "" | sed -e 's/+/%2B/g' -e 's#/#%2F#g' -e 's/=/%3D/g' printf '%s\n' "" | sed -e 's/+/%2B/g' -e 's#/#%2F#g' -e 's/=/%3D/g' ``` 2. In your CI/CD system, store `:` as a secret and expose it to jobs as the `BUNDLE_FACTORY__ENDORLABS__COM` environment variable. Bundler reads credentials for a host from a variable named `BUNDLE_` followed by the host in uppercase, with each period replaced by two underscores and each hyphen by three underscores. If you use an EU tenant, name the variable `BUNDLE_FACTORY__EU__ENDORLABS__COM` and use `factory.eu.endorlabs.com` in the mirror URL in the next step. For more information, refer to the [Bundler configuration documentation](https://bundler.io/man/bundle-config.1.html). 3. Add the following command to your pipeline before `bundle install`. ```bash theme={null} bundle config set --global mirror.https://rubygems.org/ https://factory.endorlabs.com/v1/namespaces//firewall/gem/ ``` ## Next steps * Configure which packages the firewall flags and how it responds. See [Package Firewall policy](/package-firewall/policy) to learn more. * Review the events the firewall records. See [View Package Firewall logs](/package-firewall/logs) to learn more. ## Troubleshooting and FAQ > [accordion] Why does Poetry return 401 errors when my environment variables are set? > > The variables aren't in your current shell scope. On Windows, set them with `[System.Environment]::SetEnvironmentVariable` using the `User` scope, then restart your terminal. For a single session, you can set `$env:POETRY_HTTP_BASIC_ENDOR_FIREWALL_USERNAME` and `$env:POETRY_HTTP_BASIC_ENDOR_FIREWALL_PASSWORD` in PowerShell instead. # Choose a Package Firewall deployment model Source: https://docs.endorlabs.com/package-firewall/deployment-models/index Compare the two ways to route package installs through Package Firewall and pick the setup that matches your environment. Package Firewall sits between your package manager clients and public registries such as npmjs.com, pypi.org, proxy.golang.org, and Maven Central. You can put a private package registry in front of the firewall, or point clients at the firewall directly. Both models evaluate every request the same way. Package Firewall checks the package, then redirects the download to the public registry. It does not store artifact bytes. ## Terms used in Package Firewall The following table lists the terms used in Package Firewall. \- Term: Private package registry Examples: JFrog Artifactory (SaaS and self-managed), Sonatype Nexus Repository, Google Artifact Registry \- Term: Package manager client Examples: npm, pnpm, Yarn, pip, uv, Poetry, Maven, Go \- Term: Public registry Examples: npmjs.com, pypi.org, proxy.golang.org, Maven Central ## Private package registry Use this model if developers already install packages through JFrog Artifactory, Sonatype Nexus Repository, or Google Artifact Registry. Your private package registry uses Package Firewall as its remote source. Package manager clients keep talking to the registry they already use. The registry forwards each request to the firewall. flowchart LR PMC\[Package manager client] REG\[Private package registry] PF\[Package Firewall] PUB\[Public registry] PMC --> REG REG --> PF PF --> PUB Configure the registry you already run. > [card] [JFrog Artifactory](/package-firewall/jfrog-artifactory) > > Point Artifactory remote repositories at Package Firewall. > [card] [Google Artifact Registry](/package-firewall/google-artifact-registry) > > Point Artifact Registry remote repositories at Package Firewall. > [card] [Sonatype Nexus Repository](/package-firewall/sonatype-nexus-repository) > > Point Nexus proxy repositories at Package Firewall. ## Package manager client Use this model if you don't run a private package registry, or if you want machines to talk to Package Firewall directly. You configure each package manager client with the Package Firewall URL and credentials. Do that by hand on each machine, or push the configuration with MDM. flowchart LR PMC\[Package manager client] PF\[Package Firewall] PUB\[Public registry] PMC --> PF PF --> PUB Choose how you configure the clients. > [card] [Direct integration](/package-firewall/direct-integration) > > Configure npm, pip, uv, Yarn, Maven, and other clients to use Package Firewall. > [card] [MDM deployment](/package-firewall/mdm-deployment) > > Push the same client configuration to developer machines with your MDM tool. ## Compare the models The following table summarizes how the two models differ. In both models, Package Firewall fetches packages from public registries. \- Consideration: Developers install through Private_package_registry: Artifactory, Nexus, or Google Artifact Registry Package_manager_client: npm, pip, uv, Yarn, Maven, and other clients \- Consideration: Who sets the Package Firewall URL Private_package_registry: Registry administrators Package_manager_client: Each developer, or IT with MDM \- Consideration: User attribution Private_package_registry: JFrog Artifactory with a worker. Nexus and Google Artifact Registry send one stored credential, so their requests carry no per-developer label. Package_manager_client: Built into the MDM scripts, or set in each client's credentials \- Consideration: Typical fit Private_package_registry: You already run a private package registry Package_manager_client: No private package registry, or you want per-machine control See [User attribution](/package-firewall/user-attribution) to learn how each model records the developer behind a request. ## Next steps After you route traffic through Package Firewall, configure how it responds to flagged packages. See [Package Firewall policy](/package-firewall/policy) to set block, warn, and allow safe versions actions. # Configure the Package Firewall with direct integration Source: https://docs.endorlabs.com/package-firewall/direct-integration/index Configure a direct integration to route package installation requests through the Package Firewall without a private package registry. Includes an interactive package manager configuration wizard. Direct integration routes package installation requests from your package manager clients through Package Firewall directly, without a private package registry such as JFrog Artifactory, Google Artifact Registry, or Sonatype Nexus Repository. Package Firewall evaluates each package request based on the malware check and the configured [Package Firewall policy](/package-firewall/policy) conditions, and handles each request in one of three ways: * Block the installation and return an `HTTP 403` when the package is in the Endor Labs malware database, or a policy condition matches **Block**. The developer sees a generic `403` response without the specific reason. Package Firewall records a log with the package, version, and reason. * Allow the installation if a policy condition matches with **Warn**. Package Firewall records a warning log with the package, version, and reason. * Allow the installation if no malware is detected. No log is recorded. Package Firewall records one of the following reasons in the log when it blocks a package: * `malware detected for package @`: Endor Labs classified the package as malware. * `package has a CVSS vulnerability at or above the configured severity threshold`: The package has a known vulnerability at or above the CVSS severity threshold set in your policy. 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](/platform-administration/configure-system-settings/#configure-cvss-score-version). * `package license is restricted`: The license violates your Package Firewall policy. * `package does not meet min_age_hours requirement`: The package is newer than the minimum age set in your policy. A package that Package Firewall cannot evaluate returns the same `HTTP 403` block response if your policy sets the [action for packages that cannot be evaluated](/package-firewall/policy#action-when-a-policy-cannot-be-evaluated) to **Block (Fail-close)**. Review the [Package Firewall logs](/package-firewall/logs) to confirm the reason. Configure the direct integration for Package Firewall if your organization does not use a private package registry such as JFrog Artifactory, Google Artifact Registry, or Sonatype Nexus Repository. IT administrators can use Mobile Device Management (MDM) scripts to deploy Package Firewall configurations to developer machines, eliminating the need for manual setup on each machine. These scripts update package manager configuration files with the Package Firewall URL and credentials. They also encode an attribution label into those credentials, so the firewall attributes every request to a developer and machine instead of the shared API key. The label defaults to `@`, and you can customize it. See [User attribution](/package-firewall/user-attribution) to learn how the label works. The Package Firewall logs show the attributed user on each event, so you can identify who requested a warned or blocked package. See [View Package Firewall logs](/package-firewall/logs) to learn more. ## Package Firewall support matrix The following table outlines the package manager clients and ecosystems Package Firewall supports through direct integration. \- Package_manager_client: npm Ecosystem: JavaScript Public_registry: npm Configuration_files: \`.npmrc\` \- Package_manager_client: pnpm Ecosystem: JavaScript Public_registry: npm Configuration_files: \`.npmrc\` \- Package_manager_client: Yarn Classic Ecosystem: JavaScript Public_registry: npm Configuration_files: \`.npmrc\`, \`.yarnrc\` \- Package_manager_client: Yarn Berry Ecosystem: JavaScript Public_registry: npm Configuration_files: \`.yarnrc.yml\` \- Package_manager_client: Bun Ecosystem: JavaScript Public_registry: npm Configuration_files: \`.npmrc\` \- Package_manager_client: pip Ecosystem: Python Public_registry: PyPI Configuration_files: \`pip.conf\`, \`pip.ini\` \- Package_manager_client: Poetry Ecosystem: Python Public_registry: PyPI Configuration_files: \`pyproject.toml\` \- Package_manager_client: uv Ecosystem: Python Public_registry: PyPI Configuration_files: \`uv.toml\`, \`pyproject.toml\` \- Package_manager_client: Go Ecosystem: Go Public_registry: Go module proxy Configuration_files: \`GOPROXY\` in the Go \`env\` file \- Package_manager_client: Maven Ecosystem: Java Public_registry: Maven Central Configuration_files: \`settings.xml\` \- Package_manager_client: NuGet Ecosystem: .NET Public_registry: NuGet Gallery Configuration_files: \`nuget.config\` \- Package_manager_client: Bundler Ecosystem: Ruby Public_registry: RubyGems Configuration_files: \`\~/.bundle/config\` \- Package_manager_client: gem Ecosystem: Ruby Public_registry: RubyGems Configuration_files: \`.gemrc\` ## Configure the Package Firewall Complete the following steps to configure direct integration with Package Firewall: 1. [Create an API key for the Package Firewall](#create-an-api-key-for-the-package-firewall). 2. [Configure your package manager configuration file](#configure-your-package-manager-configuration-file). 3. [Verify your setup](#verify-your-setup). > [!NOTE] > > If you use Endor Labs with an EU tenant, use `https://factory.eu.endorlabs.com` instead of `https://factory.endorlabs.com`. ### Create an API key for the Package Firewall Create an API key dedicated to the Package Firewall so that your package manager client can authenticate to it. You can create it through one of the following methods: * Using the Endor Labs user interface, with the **Package Firewall User** role. See [API keys](/platform-administration/api-keys#create-an-api-key-through-the-endor-labs-user-interface) to learn more. * Using endorctl, with the `SYSTEM_ROLE_PACKAGE_FIREWALL` role. Make sure to [install and configure endorctl](/developers-api/cli/install-and-configure) before you create the key. To create the key using endorctl, run the following command and replace: * `` with your namespace. * `` with the name of the API key for the Package Firewall use case. * `` with the API key expiration in ISO 8601 UTC format, for example `2026-12-31T23:59:59Z`. ```bash theme={null} export NAMESPACE="" export KEY_NAME="" endorctl api create -r APIKey -n "$NAMESPACE" --data '{ "meta": { "name": "'"$KEY_NAME"'" }, "spec": { "permissions": { "roles": ["SYSTEM_ROLE_PACKAGE_FIREWALL"] }, "expiration_time": "" }, "propagate": true }' ``` From the response, save the following values in a secure location. Use them as your Package Firewall credentials when you configure your package manager configuration file. * **API key:** `spec.key` * **API secret:** `spec.secret` ### Configure your package manager configuration file Configure your package manager configuration file with the Package Firewall URL, your API key as the username, and your API secret as the password. Package Firewall authenticates installation requests by validating the username and password pair. Replace `` and `` with the credentials you saved in the previous step. ### Package Manager Wizard Select your operating system and package manager client, then enter your namespace to get setup instructions for your configuration files. ↺ Reset The configuration that the wizard generates uses your API key as the username, so every event in the Package Firewall logs shows that API key as the user. To record who made each request, use an attributed username. See [Attribute requests from direct integrations](/package-firewall/user-attribution#attribute-requests-from-direct-integrations) to learn more. ### Verify your setup To verify your setup, install a package that Endor Labs has classified as malware. Package Firewall should block the installation and return an `HTTP 403`. The following examples show the test command for each package manager client. > [accordion] npm > > Run the following command to test Package Firewall with npm. > > ```bash theme={null} > npm install endor-firewall-test@1.0.0 > ``` > > When Package Firewall blocks the package, the output looks similar to the following. The `403 Forbidden` response confirms that the firewall blocked the package. > > ```bash theme={null} > npm error code E403 > npm error 403 403 Forbidden - GET https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/npm/endor-firewall-test/-/endor-firewall-test-1.0.0.tgz - blocked by Endor Labs: malware detected in endor-firewall-test@1.0.0 - see https://docs.endorlabs.com/package-firewall/blocked-responses > npm error 403 In most cases, you or one of your dependencies are requesting > npm error 403 a package version that is forbidden by your security policy, or > npm error 403 on a server you do not have access to. > npm error A complete log of this run can be found in: /Users/johndoe/.npm/_logs/2026-10-09T06_48_16_569Z-debug-0.log > ``` > [accordion] pnpm > > Run the following command to test Package Firewall with pnpm. > > ```bash theme={null} > pnpm add endor-firewall-test@1.0.0 > ``` > > When Package Firewall blocks the package, the output looks similar to the following. The `Forbidden - 403` response confirms that the firewall blocked the package. > > ```bash theme={null} > Progress: resolved 1, reused 0, downloaded 0, added 0 > Packages: +1 > + > [ERR_PNPM_FETCH_403] GET https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/npm/endor-firewall-test/-/endor-firewall-test-1.0.0.tgz: Forbidden - 403 > > This error happened while installing a direct dependency of /Users/johndoe/sample-project > ``` > [accordion] Yarn Classic (v1) > > Run the following command to test Package Firewall with Yarn Classic. > > ```bash theme={null} > yarn add endor-firewall-test@1.0.0 > ``` > > When Package Firewall blocks the package, the output looks similar to the following. The `403 Forbidden` response confirms that the firewall blocked the package. > > ```bash theme={null} > yarn add v1.22.19 > info No lockfile found. > [1/4] Resolving packages... > [2/4] Fetching packages... > error An unexpected error occurred: "https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/npm/endor-firewall-test/-/endor-firewall-test-1.0.0.tgz: Request failed \"403 Forbidden\"". > info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command. > ``` > [accordion] Yarn Berry (v2+) > > Run the following command to test Package Firewall with Yarn Berry. > > ```bash theme={null} > yarn add endor-firewall-test@1.0.0 > ``` > > When Package Firewall blocks the package, the output looks similar to the following. The `403 (Forbidden)` response confirms that the firewall blocked the package. > > ```bash theme={null} > ➤ YN0000: · Yarn 4.16.0 > ➤ YN0000: ┌ Resolution step > ➤ YN0085: │ + endor-firewall-test@npm:1.0.0 > ➤ YN0000: └ Completed > ➤ YN0000: ┌ Fetch step > ➤ YN0035: │ endor-firewall-test@npm:1.0.0: The remote server failed to provide the requested resource > ➤ YN0035: │ Response Code: 403 (Forbidden) > ➤ YN0035: │ Request Method: GET > ➤ YN0035: │ Request URL: https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/npm/endor-firewall-test/-/endor-firewall-test-1.0.0.tgz > ➤ YN0000: └ Completed in 0s 839ms > ➤ YN0000: · Failed with errors in 0s 853ms > ``` > [accordion] Bun > > Run the following command to test Package Firewall with Bun. > > ```bash theme={null} > bun add endor-firewall-test@1.0.0 > ``` > > When Package Firewall blocks the package, the output looks similar to the following. The `403` response confirms that the firewall blocked the package. > > ```bash theme={null} > bun add v1.3.14 (0d9b296a) > error: GET https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/npm/endor-firewall-test/-/endor-firewall-test-1.0.0.tgz - 403 > ``` > [accordion] pip > > Run the following command to test Package Firewall with pip. > > ```bash theme={null} > pip install endor-firewall-test==1.0.0 > ``` > > When Package Firewall blocks the package, the output looks similar to the following. The `403` response confirms that the firewall blocked the package. > > ```bash theme={null} > Looking in indexes: https://@factory.endorlabs.com/v1/namespaces/johndoe/firewall/pypi/simple/ > Collecting endor-firewall-test==1.0.0 > ERROR: HTTP error 403 while getting https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/pypi/packages/61/05/6e99035fec6c7e407fffc052a0060495f6a2fcae2143db3239c7399d5b6e/endor_firewall_test-1.0.0-py3-none-any.whl.metadata > ERROR: 403 Client Error: Forbidden for url: https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/pypi/packages/61/05/6e99035fec6c7e407fffc052a0060495f6a2fcae2143db3239c7399d5b6e/endor_firewall_test-1.0.0-py3-none-any.whl.metadata > ``` > [accordion] uv > > Run the following command to test Package Firewall with uv. > > ```bash theme={null} > uv pip install endor-firewall-test==1.0.0 > ``` > > When Package Firewall blocks the package, the output looks similar to the following. The `(403 Forbidden)` response confirms that the firewall blocked the package. > > ```bash theme={null} > error: Failed to fetch: `https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/pypi/packages/61/05/6e99035fec6c7e407fffc052a0060495f6a2fcae2143db3239c7399d5b6e/endor_firewall_test-1.0.0-py3-none-any.whl.metadata` > Caused by: Server message: Package blocked by Endor Labs Package Firewall, malware detected in endor-firewall-test==1.0.0; see https://docs.endorlabs.com/package-firewall/blocked-responses > Caused by: HTTP status client error (403 Forbidden) for url (https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/pypi/packages/61/05/6e99035fec6c7e407fffc052a0060495f6a2fcae2143db3239c7399d5b6e/endor_firewall_test-1.0.0-py3-none-any.whl.metadata) > ``` > [accordion] Poetry > > Run the following command to test Package Firewall with Poetry. > > ```bash theme={null} > poetry add endor-firewall-test==1.0.0 > ``` > > When Package Firewall blocks the package, the output looks similar to the following. The `403 Forbidden` response confirms that the firewall blocked the package. > > ```bash theme={null} > Updating dependencies > Resolving dependencies... > Source (endor-firewall): Failed to retrieve metadata at https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/pypi/packages/61/05/6e99035fec6c7e407fffc052a0060495f6a2fcae2143db3239c7399d5b6e/endor_firewall_test-1.0.0-py3-none-any.whl.metadata > Source (endor-firewall): Failed to retrieve metadata at https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/pypi/packages/61/05/6e99035fec6c7e407fffc052a0060495f6a2fcae2143db3239c7399d5b6e/endor_firewall_test-1.0.0-py3-none-any.whl.metadata > Source (endor-firewall): Failed to retrieve metadata at https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/pypi/packages/61/05/6e99035fec6c7e407fffc052a0060495f6a2fcae2143db3239c7399d5b6e/endor_firewall_test-1.0.0-py3-none-any.whl.metadata > > 403 Client Error: Forbidden for url: https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/pypi/packages/61/05/6e99035fec6c7e407fffc052a0060495f6a2fcae2143db3239c7399d5b6e/endor_firewall_test-1.0.0-py3-none-any.whl > ``` > [accordion] Go > > Run the following command to test Package Firewall with Go. > > ```bash theme={null} > go install github.com/endorlabstest/endor-firewall-test@v1.0.0 > ``` > > When Package Firewall blocks the package, the output looks similar to the following. The `403 Forbidden` response confirms that the firewall blocked the package. > > ```bash theme={null} > go: github.com/endorlabstest/endor-firewall-test@v1.0.0: reading https://@factory.endorlabs.com/v1/namespaces/johndoe/firewall/go/github.com/endorlabstest/endor-firewall-test/@v/v1.0.0.info: 403 Forbidden > ``` > [accordion] Maven > > Add `io.github.endorlabs:endor-java-webapp-demo:4.1` as a dependency in your `pom.xml`, then run one of the following commands to test Package Firewall with Maven. > > For a project-level `settings.xml` in your project directory, pass it explicitly with `-s`: > > ```bash theme={null} > mvn dependency:resolve -s settings.xml > ``` > > For a global `settings.xml` at `${mvn_home}/conf/settings.xml`, Maven picks it up automatically: > > ```bash theme={null} > mvn dependency:resolve > ``` > > When Package Firewall blocks the package, the output looks similar to the following. The `Forbidden (403)` response confirms that the firewall blocked the package. > > ```bash theme={null} > [INFO] Scanning for projects... > [INFO] > [INFO] -----------------------< com.example:my-app >------------------------ > [INFO] Building my-app 1.0.0 > [INFO] from pom.xml > [INFO] --------------------------------[ jar ]--------------------------------- > Downloading from endor-firewall: https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/maven/io/github/endorlabs/endor-java-webapp-demo/4.1/endor-java-webapp-demo-4.1.pom > [INFO] ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] ------------------------------------------------------------------------ > [INFO] Total time: 1.600 s > [INFO] Finished at: 2026-06-09T19:37:32+05:30 > [INFO] ------------------------------------------------------------------------ > [ERROR] Failed to execute goal on project my-app: Could not collect dependencies for project com.example:my-app:jar:1.0.0 > [ERROR] Failed to read artifact descriptor for io.github.endorlabs:endor-java-webapp-demo:jar:4.1 > [ERROR] Caused by: The following artifacts could not be resolved: io.github.endorlabs:endor-java-webapp-demo:pom:4.1 (absent): Could not transfer artifact io.github.endorlabs:endor-java-webapp-demo:pom:4.1 from/to endor-firewall (https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/maven): status code: 403, reason phrase: Forbidden (403) > [ERROR] > ``` > [accordion] NuGet > > Run the following command to test Package Firewall with NuGet. > > ```bash theme={null} > dotnet add package endor-firewall-test --version 1.0.0 > ``` > > When Package Firewall blocks the package, the output looks similar to the following. The `403 (Forbidden)` response confirms that the firewall blocked the package. > > ```bash theme={null} > info : Adding PackageReference for package 'endor-firewall-test' into project '/Users/johndoe/nuget-firewall-test/app/FirewallProbe.csproj'. > info : Restoring packages for /Users/johndoe/nuget-firewall-test/app/FirewallProbe.csproj... > info : GET https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/nuget/v3-flatcontainer/endor-firewall-test/index.json > info : OK https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/nuget/v3-flatcontainer/endor-firewall-test/index.json 533ms > info : GET https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/nuget/v3-flatcontainer/endor-firewall-test/1.0.0/endor-firewall-test.1.0.0.nupkg > info : Forbidden https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/nuget/v3-flatcontainer/endor-firewall-test/1.0.0/endor-firewall-test.1.0.0.nupkg 486ms > log : Failed to download package 'endor-firewall-test.1.0.0' from 'https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/nuget/v3-flatcontainer/endor-firewall-test/1.0.0/endor-firewall-test.1.0.0.nupkg'. > log : Response status code does not indicate success: 403 (Forbidden). > info : GET https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/nuget/v3-flatcontainer/endor-firewall-test/1.0.0/endor-firewall-test.1.0.0.nupkg > info : Forbidden https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/nuget/v3-flatcontainer/endor-firewall-test/1.0.0/endor-firewall-test.1.0.0.nupkg 535ms > log : Failed to download package 'endor-firewall-test.1.0.0' from 'https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/nuget/v3-flatcontainer/endor-firewall-test/1.0.0/endor-firewall-test.1.0.0.nupkg'. > log : Response status code does not indicate success: 403 (Forbidden). > error: Failed to download package 'endor-firewall-test.1.0.0' from 'https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/nuget/v3-flatcontainer/endor-firewall-test/1.0.0/endor-firewall-test.1.0.0.nupkg'. > error: Response status code does not indicate success: 403 (Forbidden). > error: The feed 'endor-firewall [https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/nuget/v3/index.json]' lists package 'endor-firewall-test.1.0.0' but multiple attempts to download the nupkg have failed. The feed is either invalid or required packages were removed while the current operation was in progress. Verify the package exists on the feed and try again. > error: Unable to find a resolved package for 'endor-firewall-test'. This is a tooling error. Please file an issue at https://github.com/NuGet/Home. > ``` > [accordion] Bundler > > Run the following commands in an empty directory to test Package Firewall with Bundler. > > ```bash theme={null} > bundle init > bundle add endor-firewall-test --version 1.0.0 > ``` > > `bundle add` writes the test gem to the `Gemfile` even though the installation is blocked. Delete the directory after the test, or later Bundler commands try to install the gem again and Package Firewall records a new block event each time. > > When Package Firewall blocks the package, the output looks similar to the following. The `Forbidden 403` response confirms that the firewall blocked the package. > > ```bash theme={null} > Fetching gem metadata from https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/gem/. > Fetching endor-firewall-test 1.0.0 > Retrying download gem from https://@factory.endorlabs.com/v1/namespaces/johndoe/firewall/gem/ due to error (2/4): Gem::RemoteFetcher::FetchError bad response Forbidden 403 (https://@factory.endorlabs.com/v1/namespaces/johndoe/firewall/gem/gems/endor-firewall-test-1.0.0.gem) > Retrying download gem from https://@factory.endorlabs.com/v1/namespaces/johndoe/firewall/gem/ due to error (3/4): Gem::RemoteFetcher::FetchError bad response Forbidden 403 (https://@factory.endorlabs.com/v1/namespaces/johndoe/firewall/gem/gems/endor-firewall-test-1.0.0.gem) > Retrying download gem from https://@factory.endorlabs.com/v1/namespaces/johndoe/firewall/gem/ due to error (4/4): Gem::RemoteFetcher::FetchError bad response Forbidden 403 (https://@factory.endorlabs.com/v1/namespaces/johndoe/firewall/gem/gems/endor-firewall-test-1.0.0.gem) > Bundler::HTTPError: Could not download gem from https://@factory.endorlabs.com/v1/namespaces/johndoe/firewall/gem/ due to underlying error @factory.endorlabs.com/v1/namespaces/johndoe/firewall/gem/gems/endor-firewall-test-1.0.0.gem)> > ``` > [accordion] gem > > Run the following command to test Package Firewall with gem. > > ```bash theme={null} > gem install endor-firewall-test -v 1.0.0 > ``` > > When Package Firewall blocks the package, the output looks similar to the following. The `Forbidden 403` response confirms that the firewall blocked the package. > > ```bash theme={null} > ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) > bad response Forbidden 403 (Gem::RemoteFetcher::FetchError) > ``` ## Next steps * Install from lockfiles in your pipelines without committing credentials. See [Configure Package Firewall credentials for CI/CD](/package-firewall/ci-cd-credentials) to store your credentials as CI/CD secrets. * Configure which packages the firewall flags and how it responds. See [Package Firewall policy](/package-firewall/policy) to learn more. * Review the events the firewall records. See [View Package Firewall logs](/package-firewall/logs) to learn more. # Configure the Package Firewall with Google Artifact Registry Source: https://docs.endorlabs.com/package-firewall/google-artifact-registry/index Route package installation requests through the Package Firewall by configuring Google Artifact Registry remote repositories. This setup is a private package registry deployment. Google Artifact Registry sits between your package manager clients and Package Firewall. Configure Google Artifact Registry to use the Package Firewall URL as the upstream source for a remote repository instead of public registries. Every package installation request flows through Endor Labs, so the Package Firewall can block known malicious packages before they reach your environment. The Package Firewall evaluates each package request based on the malware check and the configured [Package Firewall policy](/package-firewall/policy) conditions, and handles each request in one of three ways: * Block the installation and Google Artifact Registry returns `HTTP 403` if the package is found in the Endor Labs malware database, or if a policy condition matches with **Block**. The Package Firewall records a log with the package, version, and reason. * Allow the installation if a policy condition matches with **Warn**. The Package Firewall records a warning log with the package, version, and reason. * Allow the installation if the package passes all checks. No log is recorded. Google Artifact Registry returns a generic `HTTP 403` when it blocks a request without surfacing the specific reason. To see why a package was blocked, review the [Package Firewall logs](/package-firewall/logs). A package that Package Firewall cannot evaluate returns the same `HTTP 403` block response if your policy sets the [action for packages that cannot be evaluated](/package-firewall/policy#action-when-a-policy-cannot-be-evaluated) to **Block (Fail-close)**. Review the [Package Firewall logs](/package-firewall/logs) to confirm the reason. ## Required Google Cloud permissions Ensure that you have the following roles in the Google Cloud project that hosts Artifact Registry: * [Artifact Registry Administrator](https://cloud.google.com/artifact-registry/docs/access-control) to create remote repositories. * [Secret Manager Admin](https://cloud.google.com/secret-manager/docs/access-control) to create the secret and grant Artifact Registry access to it. * [Service Usage Admin](https://cloud.google.com/service-usage/docs/access-control) to enable the Secret Manager API. A project **Owner** or **Editor** role covers all of these. ## Configure the Package Firewall Complete the following steps to integrate Google Artifact Registry with the Endor Labs Package Firewall: 1. [Create an API key for the Package Firewall](#create-an-api-key-for-the-package-firewall). 2. [Store the API secret in Secret Manager](#store-the-api-secret-in-secret-manager). 3. [Configure Google Artifact Registry](#configure-google-artifact-registry). 4. [Set up local package manager clients](#set-up-local-package-manager-clients). 5. [Verify your setup](#verify-your-setup). > [!NOTE] > > If you use Endor Labs with an EU tenant, use `https://factory.eu.endorlabs.com` instead of `https://factory.endorlabs.com`. ### Create an API key for the Package Firewall Create an API key dedicated to the Package Firewall so that Google Artifact Registry can authenticate to it. You can create it through one of the following methods: * Using the Endor Labs user interface, with the **Package Firewall User** role. See [API keys](/platform-administration/api-keys#create-an-api-key-through-the-endor-labs-user-interface) to learn more. * Using endorctl, with the `SYSTEM_ROLE_PACKAGE_FIREWALL` role. Make sure to [install and configure endorctl](/developers-api/cli/install-and-configure) before you create the key. To create the key using endorctl, run the following command and replace: * `` with your namespace. * `` with the name of the API key for the Package Firewall use case. * `` with the API key expiration in ISO 8601 UTC format, for example `2026-12-31T23:59:59Z`. ```bash theme={null} export NAMESPACE="" export KEY_NAME="" endorctl api create -r APIKey -n "$NAMESPACE" --data '{ "meta": { "name": "'"$KEY_NAME"'" }, "spec": { "permissions": { "roles": ["SYSTEM_ROLE_PACKAGE_FIREWALL"] }, "expiration_time": "" }, "propagate": true }' ``` From the response, save the following values in a secure location. * **API key:** `spec.key` * **API secret:** `spec.secret` ### Store the API secret in Secret Manager Google Artifact Registry reads the upstream password from Secret Manager, so you must store your API secret there before you configure the remote repository. 1. Sign in to the [Google Cloud console](https://console.cloud.google.com) and select your project. 2. Search for and select **Secret Manager API**. 3. Click **Enable**. If you see **Manage** instead, the API is already enabled. 4. Search for and select **Secret Manager**. 5. Create a secret with a name, such as `endor-pkg-firewall-secret`, and set the **Secret value** to your API secret. Refer to [Google Cloud documentation](https://cloud.google.com/secret-manager/docs/create-secret-quickstart#create_a_secret_and_access_a_secret_version) to learn how to create a secret. ### Configure Google Artifact Registry Configure a remote repository in Google Artifact Registry for each package type you want to route through the Package Firewall. A remote repository proxies an upstream source, so you set the Package Firewall URL as the custom upstream. Provide your API key as the username and the Secret Manager secret as the password. The remaining repository settings, such as location and cleanup policies, are specific to Google Artifact Registry. Configure them based on your requirements. > [!NOTE] > > Google Artifact Registry does not support custom upstream URL for Go remote repositories, so you cannot route Go modules through the Package Firewall with this integration. To route Go modules through the Package Firewall, use [JFrog Artifactory](/package-firewall/jfrog-artifactory) or [direct integration](/package-firewall/direct-integration). > [accordion] Configure Google Artifact Registry for an npm remote repository > > 1. In the Google Cloud console, go to **Artifact Registry** > **Repositories**. > 2. Click **Create Repository**. > 3. Enter a repository name, such as `endor-npm-repository`. > 4. Choose **npm** as the **Format**. > 5. Choose **Custom** in **Remote repository source**. > 6. Enter `https://factory.endorlabs.com/v1/namespaces//firewall/npm` as the custom repository URL. Replace `` with your Endor Labs namespace. > 7. Choose **Authenticated** in **Remote repository authentication mode**. > 8. Enter your API key (`spec.key`) as the **Username for the upstream repository**. > 9. Under **Store your credentials in Secret Manager**, select the **Secret** you created. > 10. Under **Location type**, choose **Region** or **Multi-Region** and select a location. Refer to [Repository locations](https://cloud.google.com/artifact-registry/docs/repositories/repository-locations) for details. > 11. Click **Create**. > [accordion] Configure Google Artifact Registry for a Python remote repository > > 1. In the Google Cloud console, go to **Artifact Registry** > **Repositories**. > 2. Click **Create Repository**. > 3. Enter a repository name, such as `endor-pypi-repository`. > 4. Choose **Python** as the **Format**. > 5. Choose **Custom** in **Remote repository source**. > 6. Enter `https://factory.endorlabs.com/v1/namespaces//firewall/pypi` as the custom repository URL. Replace `` with your Endor Labs namespace. > 7. Choose **Authenticated** in **Remote repository authentication mode**. > 8. Enter your API key (`spec.key`) as the **Username for the upstream repository**. > 9. Under **Store your credentials in Secret Manager**, select the **Secret** you created. > 10. Under **Location type**, choose **Region** or **Multi-Region** and select a location. Refer to [Repository locations](https://cloud.google.com/artifact-registry/docs/repositories/repository-locations) for details. > 11. Click **Create**. > [accordion] Configure Google Artifact Registry for a Maven remote repository > > 1. In the Google Cloud console, go to **Artifact Registry** > **Repositories**. > 2. Click **Create Repository**. > 3. Enter a repository name, such as `endor-maven-repository`. > 4. Choose **Maven** as the **Format**. > 5. Choose **Custom** in **Remote repository source**. > 6. Enter `https://factory.endorlabs.com/v1/namespaces//firewall/maven` as the custom repository URL. Replace `` with your Endor Labs namespace. > 7. Choose **Authenticated** in **Remote repository authentication mode**. > 8. Enter your API key (`spec.key`) as the **Username for the upstream repository**. > 9. Under **Store your credentials in Secret Manager**, select the **Secret** you created. > 10. Under **Location type**, choose **Region** or **Multi-Region** and select a location. Refer to [Repository locations](https://cloud.google.com/artifact-registry/docs/repositories/repository-locations) for details. > 11. Click **Create**. ### Set up local package manager clients Configure your local package manager clients to use the Google Artifact Registry repository as their source, and authenticate with your Google Cloud credentials. Refer to Google's documentation for [npm](https://docs.cloud.google.com/artifact-registry/docs/nodejs/authentication), [Python](https://docs.cloud.google.com/artifact-registry/docs/python/authentication), and [Maven](https://docs.cloud.google.com/artifact-registry/docs/java/authentication). ### Verify your setup To verify your setup, install a package that Endor Labs has classified as malware. The Package Firewall should block the installation and return an `HTTP 403`. The following are examples of packages classified as malware by Endor Labs. > [accordion] npm > > Run the following command to test the Package Firewall with npm. > > ```bash theme={null} > npm install endor-firewall-test > ``` > > When the Package Firewall blocks the package, the output looks similar to the following. The `E403` error code and `403 Forbidden` response confirm that the firewall blocked the package. > > ```bash theme={null} > npm error code E403 > npm error 403 403 Forbidden - GET https://us-central1-npm.pkg.dev/johndoe-project/johndoe-npm/endor-firewall-test/-/endor-firewall-test-1.0.0.tgz - 403 Forbidden error returned by the external repository... this typically means your upstream credentials are invalid; url="https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/npm/endor-firewall-test/-/endor-firewall-test-1.0.0.tgz" > npm error 403 In most cases, you or one of your dependencies are requesting > npm error 403 a package version that is forbidden by your security policy, or > npm error 403 on a server you do not have access to. > ``` > [accordion] PyPI > > Run the following command to test the Package Firewall with PyPI. > > ```bash theme={null} > pip install endor-firewall-test > ``` > > When the Package Firewall blocks the package, the output looks similar to the following. The `403` response confirms that the firewall blocked the package. > > ```bash theme={null} > Looking in indexes: https://pypi.org/simple, https://oauth2accesstoken:****@us-central1-python.pkg.dev/johndoe-project/johndoe-pypi/simple/ > Collecting endor-firewall-test > ERROR: HTTP error 403 while getting https://us-central1-python.pkg.dev/johndoe-project/johndoe-pypi/endor-firewall-test/endor_firewall_test-1.0.0-py3-none-any.whl#sha256=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 (from https://us-central1-python.pkg.dev/johndoe-project/johndoe-pypi/simple/endor-firewall-test/) (requires-python:>=3.7) > > ERROR: Could not install requirement endor-firewall-test from https://us-central1-python.pkg.dev/johndoe-project/johndoe-pypi/endor-firewall-test/endor_firewall_test-1.0.0-py3-none-any.whl#sha256=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 because of HTTP error 403 Client Error: Forbidden for url: https://us-central1-python.pkg.dev/johndoe-project/johndoe-pypi/endor-firewall-test/endor_firewall_test-1.0.0-py3-none-any.whl for URL https://us-central1-python.pkg.dev/johndoe-project/johndoe-pypi/endor-firewall-test/endor_firewall_test-1.0.0-py3-none-any.whl#sha256=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 (from https://us-central1-python.pkg.dev/johndoe-project/johndoe-pypi/simple/endor-firewall-test/) (requires-python:>=3.7) > ``` > [accordion] Maven > > Add `io.github.endorlabs:endor-java-webapp-demo:4.1` as a dependency in your `pom.xml`, then run the following command to test the Package Firewall with Maven. > > ```bash theme={null} > mvn dependency:resolve -s settings.xml > ``` > > When the Package Firewall blocks the package, the output looks similar to the following. The `403 Forbidden` response confirms that the firewall blocked the package. > > ```bash theme={null} > Downloading from endor-firewall-gar: https://us-central1-maven.pkg.dev/johndoe-project/johndoe-maven/io/github/endorlabs/endor-java-webapp-demo/4.1/endor-java-webapp-demo-4.1.pom > [INFO] ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] ------------------------------------------------------------------------ > [ERROR] Failed to execute goal on project endor-firewall-maven-test: Could not resolve dependencies for project com.example:endor-firewall-maven-test:jar:1.0.0: Failed to collect dependencies at io.github.endorlabs:endor-java-webapp-demo:jar:4.1: Failed to read artifact descriptor for io.github.endorlabs:endor-java-webapp-demo:jar:4.1: Could not transfer artifact io.github.endorlabs:endor-java-webapp-demo:pom:4.1 from/to endor-firewall-gar (https://us-central1-maven.pkg.dev/johndoe-project/johndoe-maven): authorization failed for https://us-central1-maven.pkg.dev/johndoe-project/johndoe-maven/io/github/endorlabs/endor-java-webapp-demo/4.1/endor-java-webapp-demo-4.1.pom, status: 403 Forbidden -> [Help 1] > ``` After you confirm that the Package Firewall blocks malware, you can view the recorded events. See [View Package Firewall logs](/package-firewall/logs) to learn more. ## Troubleshooting and FAQ > [accordion] What if the repository fails to create? > > Google Artifact Registry validates the upstream URL and credentials when you create a remote repository, and creates it only if the test passes. If it fails, check that the custom repository URL, upstream username, and Secret Manager secret are correct. > > To skip the check, select **Disable upstream validation** on the form. > [accordion] What if Google Artifact Registry has already cached a package that is declared malicious later? > > If Endor Labs flags a package as malware after Google Artifact Registry cached it, Google Artifact Registry continues to serve it until the cache expires. Use a short cache duration to reduce that window. > [accordion] How do I troubleshoot connection issues? > > * Verify that the Package Firewall URL set as the custom upstream is correct. > * Ensure network connectivity from Google Artifact Registry to the Package Firewall. > * Ensure the firewall rules allow outbound connections from Google Artifact Registry. > [accordion] How do I troubleshoot authentication issues? > > * Verify the API key and secret are correct and that the key has the **Package Firewall User** role. > * Verify that the Secret Manager secret holds the API secret and that the repository can access it. > [accordion] How do I troubleshoot cache issues? > > * Set cache expiration to short durations so that more requests hit the Package Firewall. > * Check the cache hit and miss rates. Clear the cache if you need to test with a fresh request. # Package Firewall Source: https://docs.endorlabs.com/package-firewall/index Block known malicious packages and control package installations in real time with Endor Labs Package Firewall. Package Firewall offers real-time protection against malicious packages during software installations. It safeguards your software supply chain by preventing malicious packages from reaching your developers. Positioned between package manager clients and public registries, it blocks the installation of known malicious packages by default while allowing safe packages to install normally. Security teams often discover malware only after it enters your environment, forcing reactive cleanup. Package Firewall closes this gap by intercepting every package installation request before it completes. It blocks any malicious package instantly and returns an error, so the package never reaches your environment. Legitimate packages pass through unchanged, keeping your developers productive and your pipeline secure. Package Firewall checks every package in the dependency tree individually, including transitive dependencies. If it flags any dependency, the installation is blocked. Configured policies apply to transitive dependencies as well. See [How it works](#how-it-works) for more details. ## Get started **1. Route traffic through Package Firewall** Choose a [deployment model](/package-firewall/deployment-models) that matches how you install packages. Then set up [JFrog Artifactory](/package-firewall/jfrog-artifactory), [Google Artifact Registry](/package-firewall/google-artifact-registry), [Sonatype Nexus Repository](/package-firewall/sonatype-nexus-repository), [direct integration](/package-firewall/direct-integration), or [MDM deployment](/package-firewall/mdm-deployment). **2. Configure a Package Firewall policy** Define how the firewall responds to flagged packages: block, warn, or allow safe versions on malware and minimum package age, block or warn on vulnerabilities and restricted licenses, and set exceptions. You can also send Slack notifications when a package installation is blocked or warned. See [Package Firewall policy](/package-firewall/policy). **3. View results** Confirm the firewall blocks malware and review every recorded event. See [View Package Firewall logs](/package-firewall/logs). ## Supported ecosystems Package Firewall supports the following package manager clients, directly or through a private package registry. For each client, Package Firewall evaluates packages only from the listed public registry. It does not check packages that are available only from another source, such as your own private packages or another public repository. \- Package_manager_client: npm Ecosystem: JavaScript Public_registry: npm Configuration_files: \`.npmrc\` Upstream_URL: \`registry.npmjs.org\` Direct_integration: -yes- JFrog_Artifactory: -yes- Google_Artifact_Registry: -yes- Sonatype_Nexus_Repository: -yes- \- Package_manager_client: pnpm Ecosystem: JavaScript Configuration_files: \`.npmrc\` Public_registry: npm Upstream_URL: \`registry.npmjs.org\` Direct_integration: -yes- JFrog_Artifactory: -yes- Google_Artifact_Registry: -yes- Sonatype_Nexus_Repository: -yes- \- Package_manager_client: Yarn Classic Ecosystem: JavaScript Configuration_files: \`.npmrc\`, \`.yarnrc\` Public_registry: npm Upstream_URL: \`registry.npmjs.org\` Direct_integration: -yes- JFrog_Artifactory: -yes- Google_Artifact_Registry: -yes- Sonatype_Nexus_Repository: -yes- \- Package_manager_client: Yarn Berry Ecosystem: JavaScript Configuration_files: \`.yarnrc.yml\` Public_registry: npm Upstream_URL: \`registry.npmjs.org\` Direct_integration: -yes- JFrog_Artifactory: -yes- Google_Artifact_Registry: -yes- Sonatype_Nexus_Repository: -yes- \- Package_manager_client: Bun Ecosystem: JavaScript Configuration_files: \`.npmrc\` Public_registry: npm Upstream_URL: \`registry.npmjs.org\` Direct_integration: -yes- JFrog_Artifactory: -yes- Google_Artifact_Registry: -yes- Sonatype_Nexus_Repository: -yes- \- Package_manager_client: pip Ecosystem: Python Configuration_files: \`pip.conf\`, \`pip.ini\` Public_registry: PyPI Upstream_URL: \`pypi.org\`, \`files.pythonhosted.org\` Direct_integration: -yes- JFrog_Artifactory: -yes- Google_Artifact_Registry: -yes- Sonatype_Nexus_Repository: -yes- \- Package_manager_client: Poetry Ecosystem: Python Configuration_files: \`pyproject.toml\` Public_registry: PyPI Upstream_URL: \`pypi.org\`, \`files.pythonhosted.org\` Direct_integration: -yes- JFrog_Artifactory: -yes- Google_Artifact_Registry: -yes- Sonatype_Nexus_Repository: -yes- \- Package_manager_client: uv Ecosystem: Python Configuration_files: \`uv.toml\`, \`pyproject.toml\` Public_registry: PyPI Upstream_URL: \`pypi.org\`, \`files.pythonhosted.org\` Direct_integration: -yes- JFrog_Artifactory: -yes- Google_Artifact_Registry: -yes- Sonatype_Nexus_Repository: -yes- \- Package_manager_client: Go Ecosystem: Go Configuration_files: \`GOPROXY\` in the Go \`env\` file Public_registry: Go module proxy Upstream_URL: \`proxy.golang.org\` Direct_integration: -yes- JFrog_Artifactory: -yes- Google_Artifact_Registry: -no- Sonatype_Nexus_Repository: -yes- \- Package_manager_client: Maven Ecosystem: Java Configuration_files: \`settings.xml\` Public_registry: Maven Central Upstream_URL: \`maven-central.storage-download.googleapis.com/maven2\` Direct_integration: -yes- JFrog_Artifactory: -yes- Google_Artifact_Registry: -yes- Sonatype_Nexus_Repository: -yes- \- Package_manager_client: NuGet Ecosystem: .NET Configuration_files: \`nuget.config\` Public_registry: NuGet Gallery Upstream_URL: \`api.nuget.org\` Direct_integration: -yes- JFrog_Artifactory: -yes- Google_Artifact_Registry: -no- Sonatype_Nexus_Repository: -yes- \- Package_manager_client: Bundler Ecosystem: Ruby Public_registry: RubyGems Configuration_files: \`\~/.bundle/config\` Upstream_URL: \`rubygems.org\`, \`index.rubygems.org\` Direct_integration: -yes- JFrog_Artifactory: -yes- Google_Artifact_Registry: -no- Sonatype_Nexus_Repository: -yes- \- Package_manager_client: gem Ecosystem: Ruby Public_registry: RubyGems Configuration_files: \`.gemrc\` Upstream_URL: \`rubygems.org\`, \`index.rubygems.org\` Direct_integration: -yes- JFrog_Artifactory: -yes- Google_Artifact_Registry: -no- Sonatype_Nexus_Repository: -yes- Gradle resolves dependencies with the Maven protocol. Package Firewall evaluates Gradle dependencies from Maven Central only when your Gradle build resolves them through Package Firewall, such as through a JFrog Artifactory or Sonatype Nexus repository that uses Package Firewall. It does not check Gradle plugins or Android libraries that are available only from the Gradle Plugin Portal or Google's Maven repository. > [!NOTE] > > Google Artifact Registry does not support custom upstream URL for Go remote repositories, so you cannot route Go modules through Package Firewall with this integration. To route Go modules through Package Firewall, use [JFrog Artifactory](/package-firewall/jfrog-artifactory), [Sonatype Nexus Repository](/package-firewall/sonatype-nexus-repository), or [direct integration](/package-firewall/direct-integration). Policy conditions and actions also vary by ecosystem. See [Policy support by ecosystem](/package-firewall/policy#policy-support-by-ecosystem). Package Firewall can also block malicious VS Code extension installations from the Microsoft Marketplace. This is deployed separately through MDM. See [VS Code extensions](/package-firewall/vscode-extensions). ## How it works Package Firewall inspects each package request before the package is downloaded. The request routes through the firewall directly, or through a private package registry such as JFrog Artifactory, Google Artifact Registry, or Sonatype Nexus Repository. See [Choose a Package Firewall deployment model](/package-firewall/deployment-models) to compare the two models. The following diagram shows how Package Firewall handles each package request. flowchart TD A\["Package manager client\
or private package registry"] e1\@--> B\[Package Firewall] B e2\@--> C\["Authenticate the API key\
with the Package Firewall User role"] C e3\@--> D\["Check the malware database\
and Package Firewall policy"] D e4\@-->|Passes all checks| E\[Installation proceeds] D e5\@-->|Flagged| F\["Warn, Block, or\
Allow safe versions only (curate)"] F e6\@--> G\[Package Firewall logs] e1@\{ animation: slow, packet: trail } e2@\{ animation: slow, packet: trail } e3@\{ animation: slow, packet: trail } e4@\{ animation: slow, packet: trail } e5@\{ animation: slow, packet: trail } e6@\{ animation: slow, packet: trail } classDef endor fill:\{\{endorColor}},stroke:\{\{endorBorder}},color:#000000 classDef external fill:\{\{externalColor}},stroke:\{\{externalBorder}},color:#000000 class B,C,D,F,G endor class A,E external 1. **Route traffic through Package Firewall**: Your package manager client or private package registry forwards each request to the firewall so that it evaluates every package before the download completes. 2. **Authenticate and control access**: Package Firewall verifies that each request presents an Endor Labs API key with the Package Firewall User role. 3. **Evaluate each package request**: For each request, Package Firewall parses the ecosystem, package name, and version, and checks it against the Endor Labs malware database. If you configure a [Package Firewall policy](/package-firewall/policy), the firewall also evaluates vulnerabilities, restricted licenses, and minimum package age. You can define exceptions that let specific packages bypass all checks, so critical builds and workflows continue uninterrupted. 4. **Take action**: Based on the malware check and policy conditions, Package Firewall takes the configured action on the request and records an event with the package, version, and reason. You can set each condition (malware, vulnerabilities, restricted licenses, and minimum package age) to one of the following responses: * **Warn**: Records the event and allows the package installation without interrupting your CI pipeline. * **Block**: Prevents the package installation entirely and returns an error. * **Allow safe versions only (curate)**: Removes the unsafe versions from the response so the package manager client installs a safe version instead. Available for the malware and minimum package age conditions on npm, PyPI, RubyGems, and VS Code. See [Allow safe versions](/package-firewall/policy#allow-safe-versions) to learn more. When a package passes all checks, the installation proceeds and no log is recorded. 5. **Record events in Package Firewall logs**: Package Firewall records the actions the firewall takes on package installation requests, which is helpful for debugging and compliance. The logs include details such as the package, version, time of the event, and the reason the firewall flagged the package. See [View Package Firewall logs](/package-firewall/logs) for more details. # Configure the Package Firewall with JFrog Artifactory Source: https://docs.endorlabs.com/package-firewall/jfrog-artifactory/index Route package installation requests through the Package Firewall by configuring JFrog Artifactory remote repositories. This setup is a private package registry deployment. Artifactory sits between your package manager clients and Package Firewall. Configure JFrog Artifactory to use the Package Firewall URL as its remote source instead of public registries. Every request Artifactory forwards to that remote flows through Endor Labs, so Package Firewall can block known malicious packages before they reach your environment. Package Firewall evaluates each package request based on the malware check and the configured [Package Firewall policy](/package-firewall/policy) conditions, and handles each request in one of three ways: * Block the installation and Artifactory returns `HTTP 404` if the package is found in the Endor Labs malware database, or if a policy condition matches with **Block**. Package Firewall records a log with the package, version, and reason. * Allow the installation if a policy condition matches with **Warn**. Package Firewall records a warning log with the package, version, and reason. * Allow the installation if the package passes all checks. No log is recorded. A policy change doesn't apply to packages JFrog Artifactory has already cached until the cache expires. See [Configure caching for time-sensitive policies](#configure-caching-for-time-sensitive-policies) to reduce that delay. Artifactory returns a generic `HTTP 404` when it blocks a request without surfacing the specific reason. To see why a package was blocked, review the [Package Firewall logs](/package-firewall/logs). A package that Package Firewall cannot evaluate returns the same `HTTP 404` block response if your policy sets the [action for packages that cannot be evaluated](/package-firewall/policy#action-when-a-policy-cannot-be-evaluated) to **Block (Fail-close)**. Review the [Package Firewall logs](/package-firewall/logs) to confirm the reason. > [!NOTE] > > **JFrog Artifactory requirement** > > You must have a JFrog Artifactory instance with permission to create remote repositories and configure credentials. ## Configure the Package Firewall Complete the following steps to integrate JFrog Artifactory with the Endor Labs Package Firewall: 1. [Create an API key for the Package Firewall](#create-an-api-key-for-the-package-firewall). 2. [Configure JFrog Artifactory](#configure-jfrog-artifactory). 3. [Local setup for developers](#local-setup-for-developers). 4. [Verify your setup](#verify-your-setup). ### Create an API key for the Package Firewall Create an API key dedicated to the Package Firewall so that JFrog Artifactory can authenticate to it. You can create it through one of the following methods: * Using the Endor Labs user interface, with the **Package Firewall User** role. See [API keys](/platform-administration/api-keys#create-an-api-key-through-the-endor-labs-user-interface) to learn more. * Using endorctl, with the `SYSTEM_ROLE_PACKAGE_FIREWALL` role. Make sure to [install and configure endorctl](/developers-api/cli/install-and-configure) before you create the key. To create the key using endorctl, run the following command and replace: * `` with your namespace. * `` with the name of the API key for the Package Firewall use case. * `` with the API key expiration in ISO 8601 UTC format, for example `2026-12-31T23:59:59Z`. ```bash theme={null} export NAMESPACE="" export KEY_NAME="" endorctl api create -r APIKey -n "$NAMESPACE" --data '{ "meta": { "name": "'"$KEY_NAME"'" }, "spec": { "permissions": { "roles": ["SYSTEM_ROLE_PACKAGE_FIREWALL"] }, "expiration_time": "" }, "propagate": true }' ``` From the response, save the following values in a secure location. Use them as your Package Firewall credentials when you configure the JFrog Artifactory remote repository. * **API key:** `spec.key` * **API secret:** `spec.secret` ### Configure JFrog Artifactory Configure a remote repository in JFrog Artifactory for each package type you want to route through Package Firewall. Use the following steps for npm, PyPI, Go, Maven, NuGet, or RubyGems packages. > [accordion] Configure JFrog Artifactory for an npm remote repository > > 1. [Log in to JFrog Artifactory](https://my.jfrog.com/login/). > 2. Select **Administration** > **Repositories** from the left sidebar. > 3. Click **Create a Repository** and select **Remote**. > 4. Select **npm** as the package type. > 5. Enter a **Repository Key**, for example `endor-firewall-npm`. > 6. Enter the repository URL: `https://factory.endorlabs.com/v1/namespaces//firewall/npm/`. Replace `` with your Endor Labs namespace. > > > [!TIP] > > > > If you use Endor Labs with an EU tenant, use `https://factory.eu.endorlabs.com/v1/namespaces//firewall/npm/` instead. > 7. Enter the **User Name** and **Password** you saved when creating the API key. > 8. Click **Create Remote Repository**. > > ![Configure npm](https://mintcdn.com/endorlabs-b4795f4f/2AgZERBJfuccpD-9/images/package-firewall/jfrog-npm.webp?fit=max\&auto=format\&n=2AgZERBJfuccpD-9\&q=85\&s=a9d66e66b990bd54099f5b4bb229f73d) > [accordion] Configure JFrog Artifactory for a PyPI remote repository > > 1. [Log in to JFrog Artifactory](https://my.jfrog.com/login/). > 2. Select **Administration** > **Repositories** from the left sidebar. > 3. Click **Create a Repository** and select **Remote**. > 4. Select **PyPI** as the package type. > 5. Enter a **Repository Key**, for example `endor-firewall-pypi`. > 6. Enter the repository URL: `https://factory.endorlabs.com/v1/namespaces//firewall/pypi/`. Replace `` with your Endor Labs namespace. > > > [!TIP] > > > > If you use Endor Labs with an EU tenant, use `https://factory.eu.endorlabs.com/v1/namespaces//firewall/pypi/` instead. > 7. Enter the **User Name** and **Password** you saved when creating the API key. > 8. In **PyPI Settings**, set **Registry URL** to the same URL you entered in step 6. > 9. Click **Create Remote Repository**. > > ![Configure PyPI](https://mintcdn.com/endorlabs-b4795f4f/2AgZERBJfuccpD-9/images/package-firewall/jfrog-pypi.webp?fit=max\&auto=format\&n=2AgZERBJfuccpD-9\&q=85\&s=a1dfb3d65a1bddc405a2017f87ecc8ab) > [accordion] Configure JFrog Artifactory for a Go virtual repository > > Package Firewall uses a virtual repository URL that aggregates one or more Go remote repositories. Each remote repository routes Go module requests through Package Firewall. The virtual repository gives clients a single endpoint that forwards each request to the matching remote repository. You can use a single virtual repository to link all Go remote repositories. > > To create a Go remote repository: > > 1. [Log in to JFrog Artifactory](https://my.jfrog.com/login/). > 2. Select **Administration** > **Repositories** from the left sidebar. > 3. Click **Create a Repository** and select **Remote**. > 4. Select **Go** as the package type. > 5. Enter a **Repository Key**, for example `endor-firewall-go`. > 6. Enter the repository URL: `https://factory.endorlabs.com/v1/namespaces//firewall/go/`. Replace `` with your Endor Labs namespace. > > > [!TIP] > > > > If you use Endor Labs with an EU tenant, use `https://factory.eu.endorlabs.com/v1/namespaces//firewall/go/` instead. > 7. Enter the **User Name** and **Password** you saved when creating the API key. > 8. Click **Create Remote Repository**. > > ![Create Go remote repository](https://mintcdn.com/endorlabs-b4795f4f/2AgZERBJfuccpD-9/images/package-firewall/jfrog-go1.webp?fit=max\&auto=format\&n=2AgZERBJfuccpD-9\&q=85\&s=a8928980e8a4f9bb33ba70abb83bc745) > > To create a virtual repository: > > 1. Select **Administration** > **Repositories** from the left sidebar. > 2. Click **Create a Repository** and select **Virtual**. > 3. Select **Go** as the package type. > 4. Enter a **Repository Key**, for example `endor-firewall-go-virtual`. > 5. Under **Repositories**, select the remote repositories you want to add and click **>**. > > To make sure Package Firewall takes precedence in the virtual repository, see [Add Package Firewall to a virtual repository](#add-package-firewall-to-a-virtual-repository). > 6. Click **Create Virtual Repository**. > > ![Create Go virtual repository](https://mintcdn.com/endorlabs-b4795f4f/2AgZERBJfuccpD-9/images/package-firewall/jfrog-go2.webp?fit=max\&auto=format\&n=2AgZERBJfuccpD-9\&q=85\&s=8658270e3262e21151d9ef3807802bca) > > Your Go remote and virtual repositories are now configured to route module requests through Package Firewall. > [accordion] Configure JFrog Artifactory for a Maven remote repository > > 1. [Log in to JFrog Artifactory](https://my.jfrog.com/login/). > 2. Select **Administration** > **Repositories** from the left sidebar. > 3. Click **Create a Repository** and select **Remote**. > 4. Select **Maven** as the package type. > 5. Enter a **Repository Key**, for example `endor-firewall-maven`. > 6. Enter the repository URL: `https://factory.endorlabs.com/v1/namespaces//firewall/maven/`. Replace `` with your Endor Labs namespace. > > > [!TIP] > > > > If you use Endor Labs with an EU tenant, use `https://factory.eu.endorlabs.com/v1/namespaces//firewall/maven/` instead. > 7. Enter the **User Name** and **Password** you saved when creating the API key. > 8. Disable **Offline** to allow Artifactory to fetch remote artifacts. > 9. Select **Advanced** and enable **Store Artifacts Locally**. > > To make sure Package Firewall takes precedence in a virtual repository, see [Add Package Firewall to a virtual repository](#add-package-firewall-to-a-virtual-repository). > 10. Click **Create Remote Repository**. > > ![Configure Maven](https://mintcdn.com/endorlabs-b4795f4f/2AgZERBJfuccpD-9/images/package-firewall/jfrog-maven.webp?fit=max\&auto=format\&n=2AgZERBJfuccpD-9\&q=85\&s=a137007b4b442d570fec5cd69fc0059f) > [accordion] Configure JFrog Artifactory for a NuGet remote repository > > 1. [Log in to JFrog Artifactory](https://my.jfrog.com/login/). > 2. Select **Administration** > **Repositories** from the left sidebar. > 3. Click **Create a Repository** and select **Remote**. > 4. Select **NuGet** as the package type. > 5. Enter a **Repository Key**, for example `endor-firewall-nuget`. > 6. Enter the repository URL: `https://factory.endorlabs.com/v1/namespaces//firewall/nuget/`. Replace `` with your Endor Labs namespace. > > > [!TIP] > > > > If you use Endor Labs with an EU tenant, use `https://factory.eu.endorlabs.com/v1/namespaces//firewall/nuget/` instead. > 7. Enter the **User Name** and **Password** you saved when creating the API key. > 8. In the NuGet settings, set the **NuGet Feed Context Path** to `v3/index.json`. > 9. Set **NuGet V3 Feed URL** to `https://factory.endorlabs.com/v1/namespaces//firewall/nuget/v3/index.json`. Replace `` with your Endor Labs namespace. > > > [!TIP] > > > > If you use Endor Labs with an EU tenant, use `https://factory.eu.endorlabs.com/v1/namespaces//firewall/nuget/v3/index.json` instead. > 10. Select **Advanced** and set the following so JFrog Artifactory forwards every request to Package Firewall instead of serving a cached response: > * Disable **Store Artifacts Locally**. > * Set **Metadata Retrieval Cache Period (Sec)** to `0`. > * Set **Missed Retrieval Cache Period (Sec)** to `0`. > * Set **Assumed Offline Period (Sec)** to `0`. > 11. Click **Create Remote Repository**. > > ![Configure NuGet](https://mintcdn.com/endorlabs-b4795f4f/2AgZERBJfuccpD-9/images/package-firewall/jfrog-nuget.webp?fit=max\&auto=format\&n=2AgZERBJfuccpD-9\&q=85\&s=4a1dbc3373ba0f817feb4065415e7793) > [accordion] Configure JFrog Artifactory for a RubyGems remote repository > > 1. [Log in to JFrog Artifactory](https://my.jfrog.com/login/). > 2. Select **Administration** > **Repositories** from the left sidebar. > 3. Click **Create a Repository** and select **Remote**. > 4. Select **Gems** as the package type. > 5. Enter a **Repository Key**, for example `endor-firewall-gems`. > 6. Enter the repository URL: `https://factory.endorlabs.com/v1/namespaces//firewall/gem/`. Replace `` with your Endor Labs namespace. > > > [!TIP] > > > > If you use Endor Labs with an EU tenant, use `https://factory.eu.endorlabs.com/v1/namespaces//firewall/gem/` instead. > 7. Enter the **User Name** and **Password** you saved when creating the API key. > 8. Select **Advanced** and set the following: > > * Disable **Store Artifacts Locally**. > * Set **Metadata Retrieval Cache Period (Sec)** to `30`. > * Set **Metadata Retrieval Cache Timeout (Sec)** to `30`. > * Set **Missed Retrieval Cache Period (Sec)** to `30`. > * Set **Assumed Offline Period (Sec)** to `0`. > > JFrog Artifactory requires a metadata retrieval cache period of at least 30 seconds and a metadata retrieval timeout greater than 0 for Gems remote repositories. > 9. Click **Create Remote Repository**. > > ![Configure RubyGems](https://mintcdn.com/endorlabs-b4795f4f/a1KorRqNAAROsoE3/images/package-firewall/rubygems-jfrog.webp?fit=max\&auto=format\&n=a1KorRqNAAROsoE3\&q=85\&s=f9b9a51e088e5907f5b6a106d7432bcd) ### Add Package Firewall to a virtual repository Artifactory checks the remote repositories in a virtual repository in order and returns the first match. A package that another remote repository serves first never reaches Package Firewall, so Package Firewall does not evaluate it. Set the Package Firewall URL only on the Maven Central remote repository. Package Firewall serves only Maven Central packages, so do not change the URL of other remote repositories, such as Google's Maven repository or the Gradle Plugin Portal. To route every request for a public package through Package Firewall: 1. Select **Administration** > **Repositories** from the left sidebar. 2. Click **Repository Type** to sort the virtual repositories from the local and remote ones, and select your virtual repository. 3. In **Selected Repositories**, drag the Package Firewall remote repository to the top of the list. Remove any other remote repository that proxies the same public registry, such as a second remote repository for `registry.npmjs.org` or Maven Central. Package Firewall returns `HTTP 403` when it blocks a package, so Artifactory serves the package from any other repository that has a copy. 4. Click **Save**. 5. Go back to **Repositories**, and select the Package Firewall remote repository. 6. Select **Advanced**, and enable **Priority Resolution**. 7. Click **Save**. Enable **Priority Resolution** only on the Package Firewall remote repository, so Artifactory checks Package Firewall before any other repository in the virtual repository. A package that another repository in the virtual repository has already cached is served from that copy, not through Package Firewall. Delete the cached copy so that Artifactory fetches the package through Package Firewall. See [Configure caching for time-sensitive policies](#configure-caching-for-time-sensitive-policies) to learn how caching affects Package Firewall. > [!WARNING] > > **Other repositories in the same virtual repository are not checked** > > Package Firewall evaluates only the packages it serves. Other remote repositories in the same virtual repository, such as the Gradle Plugin Portal and Google's Maven repository, and local repositories bypass Package Firewall checks. > > The Gradle Plugin Portal also hosts Maven Central packages, which can bypass Package Firewall restrictions, including malware blocks. > > Add only the remote repositories you need. Packages served by other repositories are not evaluated. ### Configure caching for time-sensitive policies JFrog Artifactory serves cached package metadata without contacting Package Firewall until the cache expires, so long cache periods delay when policy changes reach your developers. Lower **Metadata Retrieval Cache Period (Sec)** and **Missed Retrieval Cache Period (Sec)** on each remote repository you configured to apply changes faster. Lower values send more requests to Package Firewall per installation, so balance responsiveness against request volume. 1. Select **Administration** > **Repositories** from the left sidebar. 2. Select the remote repository you configured for Package Firewall. 3. Select **Advanced**. 4. In **Metadata Retrieval Cache Period (Sec)**, enter a low value. This value controls how long Artifactory serves cached metadata before it fetches a fresh copy from Package Firewall. A value of `0` disables metadata caching. Some cloud deployments enforce a minimum, so if yours rejects `0`, enter the lowest value it accepts. 5. In **Missed Retrieval Cache Period (Sec)**, set a low value, around `30` to `60`. This value controls how long Artifactory caches a not-found (`HTTP 404`) response, which includes a version blocked by a minimum package age condition that later becomes eligible. 6. Click **Save**. ### Attribute requests to developers The remote repository sends the same credentials for every developer, so each event in the Package Firewall logs names the API key rather than a person. A worker can rewrite the outgoing authorization header on each request so the logs name the Artifactory user instead. See [User attribution](/package-firewall/user-attribution) to set it up. ### Local setup for developers Update your package manager client to use Artifactory as its source, routing all installs through Package Firewall instead of a public registry. Once you create the Artifactory remote: 1. Select **Administration** > **Repositories** from the left sidebar. 2. Click the vertical three dots next to the repository you configured and select **Set Me Up**. For Go, and for a Maven virtual repository that combines several remote repositories, select the virtual repository. 3. Enter **Your JFrog account password** if prompted. 4. Click **Generate Token & Create Instructions**. 5. Follow the instructions to configure your local machine based on your package type. Edit `.npmrc` for npm, `pip.conf` for pip, `settings.xml` for Maven, `nuget.config` for NuGet, or `.gemrc` and the Bundler configuration for RubyGems. For Go modules, select **Resolve**, copy the URL it provides, and run the following command. Replace `` with the copied URL. Ensure to URL-encode any `@` in the username as `%40`. ```bash theme={null} go env -w GOPROXY= ``` For RubyGems, run the following commands. Replace `` with your JFrog host, `` with the key of your Gems remote repository, and `` with your URL-encoded `:`. URL-encode any `@` in the username as `%40`. ```bash theme={null} gem sources --add https://@/artifactory/api/gems// gem sources --remove https://rubygems.org/ bundle config set --global mirror.https://rubygems.org/ https:///artifactory/api/gems// bundle config set --global ``` Set the Bundler mirror with `--global` as shown, not inside a project. A mirror in a project's `.bundle/config` overrides the global mirror for that project. Refer to [JFrog Artifactory documentation](https://docs.jfrog.com/artifactory/docs/use-artifactory-set-me-up-for-configuring-package-manager-clients) for more information. ![Local setup for developers](https://mintcdn.com/endorlabs-b4795f4f/Cq2jQsQZUU2aI4dH/images/package-firewall/local-setup.webp?fit=max\&auto=format\&n=Cq2jQsQZUU2aI4dH\&q=85\&s=711084e2ae8a07a5ecff7ea9dd0c390d) 6. Run the following command to verify that your local client is pointing to the Artifactory repository. Ensure the output matches the Artifactory remote URL you configured, or the virtual repository URL for Go modules and for a Maven virtual repository. * For npm packages, run `npm config get registry`. * For PyPI packages, run `pip3 config list | grep index-url`. * For Go modules, run `go env GOPROXY`. * For Maven packages, run `mvn dependency:resolve -s settings.xml`. * For RubyGems packages, run `gem sources --list` and `bundle config get mirror.https://rubygems.org/`. `gem sources --list` should show only the Artifactory URL, and the mirror should show the Artifactory URL set for the current user, with no value set for your local app. ### Verify your setup To verify your setup, install a package that Endor Labs has classified as malware. Package Firewall blocks the installation, and Artifactory returns an `HTTP 404`. The following are examples of packages classified as malware by Endor Labs. > [accordion] npm > > Run the following command to test Package Firewall with npm. > > ```bash theme={null} > npm install endor-firewall-test@1.0.0 > ``` > > When Package Firewall blocks the package, the output looks similar to the following. The `E404` error code and `404 Not Found` response confirm that the firewall blocked the package. > > ```bash theme={null} > npm error code E404 > npm error 404 Not Found - GET https://johndoe.jfrog.io/artifactory/api/npm/johndoe/endor-firewall-test/-/endor-firewall-test-1.0.0.tgz > npm error 404 > npm error 404 The requested resource 'endor-firewall-test@https://johndoe.jfrog.io/artifactory/api/npm/johndoe/endor-firewall-test/-/endor-firewall-test-1.0.0.tgz' could not be found or you do not have permission to access it. > npm error 404 > npm error 404 Note that you can also install from a > npm error 404 tarball, folder, http url, or git url. > ``` > [accordion] pip > > Run the following command to test Package Firewall with pip. > > ```bash theme={null} > pip install endor-firewall-test==1.0.0 > ``` > > When Package Firewall blocks the package, the output looks similar to the following. The `404` response confirms that the firewall blocked the package. > > ```bash theme={null} > Defaulting to user installation because normal site-packages is not writeable > Looking in indexes: https://johndoe.jfrog.io/artifactory/api/pypi/johndoe/simple > Collecting endor-firewall-test==1.0.0 > ERROR: HTTP error 404 while getting https://johndoe.jfrog.io/artifactory/api/pypi/johndoe/packages/packages/61/05/6e99035fec6c7e407fffc052a0060495f6a2fcae2143db3239c7399d5b6e/endor_firewall_test-1.0.0-py3-none-any.whl#sha256=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 (from https://johndoe.jfrog.io/artifactory/api/pypi/johndoe/simple/endor-firewall-test/) (requires-python:>=3.7) > > ERROR: Could not install requirement endor-firewall-test==1.0.0 from https://johndoe.io/artifactory/api/pypi/johndoe/packages/packages/61/05/6e99035fec6c7e407fffc052a0060495f6a2fcae2143db3239c7399d5b6e/endor_firewall_test-1.0.0-py3-none-any.whl#sha256=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 because of HTTP error 404 Client Error: for url: https://johndoe.jfrog.io/artifactory/api/pypi/johndoe/packages/packages/61/05/6e99035fec6c7e407fffc052a0060495f6a2fcae2143db3239c7399d5b6e/endor_firewall_test-1.0.0-py3-none-any.whl for URL https://johndoe.jfrog.io/artifactory/api/pypi/johndoe/packages/packages/61/05/6e99035fec6c7e407fffc052a0060495f6a2fcae2143db3239c7399d5b6e/endor_firewall_test-1.0.0-py3-none-any.whl#sha256=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 (from https://johndoe.jfrog.io/artifactory/api/pypi/johndoe/simple/endor-firewall-test/) (requires-python:>=3.7) > ``` > [accordion] Go > > Run the following command to test Package Firewall with Go. > > ```bash theme={null} > go install github.com/endorlabstest/endor-firewall-test@v1.0.0 > ``` > > When Package Firewall blocks the package, the output looks similar to the following. The `404` response confirms that the firewall blocked the package. > > ```bash theme={null} > go get github.com/endorlabstest/endor-firewall-test@v1.0.0 > go: github.com/endorlabstest/endor-firewall-test@v1.0.0: reading https://johndoe.com:xxxxx@johndoe.jfrog.io/artifactory/api/go/go-firewall-test-virtual/github.com/endorlabstest/endor-firewall-test/@v/v1.0.0.info: 404 > ``` > [accordion] Maven > > Add `io.github.endorlabs:endor-java-webapp-demo:4.1` as a dependency in your `pom.xml`, then run the following command to test Package Firewall with Maven. > > ```bash theme={null} > mvn dependency:resolve -s settings.xml > ``` > > When Package Firewall blocks the package, the output looks similar to the following. JFrog Artifactory does not serve the artifact, so resolution fails with a missing POM warning and a `Could not find artifact` error. > > ```bash theme={null} > [INFO] Scanning for projects... > [INFO] > [INFO] -----------------------< com.example:my-app >------------------------ > [INFO] Building my-app 1.0.0 > [INFO] from pom.xml > [INFO] --------------------------------[ jar ]--------------------------------- > Downloading from endor-firewall: https://johndoe.jfrog.io/artifactory/endor-firewall-maven/io/github/endorlabs/endor-java-webapp-demo/4.1/endor-java-webapp-demo-4.1.pom > [WARNING] The POM for io.github.endorlabs:endor-java-webapp-demo:jar:4.1 is missing, no dependency information available > Downloading from endor-firewall: https://johndoe.jfrog.io/artifactory/endor-firewall-maven/io/github/endorlabs/endor-java-webapp-demo/4.1/endor-java-webapp-demo-4.1.jar > [INFO] ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] ------------------------------------------------------------------------ > [INFO] Total time: 4.000 s > [INFO] Finished at: 2026-06-09T19:41:11+05:30 > [INFO] ------------------------------------------------------------------------ > [ERROR] Failed to execute goal on project my-app: Could not resolve dependencies for project com.example:my-app:jar:1.0.0 > [ERROR] dependency: io.github.endorlabs:endor-java-webapp-demo:jar:4.1 (compile) > [ERROR] Could not find artifact io.github.endorlabs:endor-java-webapp-demo:jar:4.1 in endor-firewall (https://johndoe.jfrog.io/artifactory/endor-firewall-maven) > [ERROR] > ``` > [accordion] NuGet > > Configure your client to use the Artifactory NuGet feed as described in [Local setup for developers](#local-setup-for-developers), then run the following command to test Package Firewall with NuGet. Replace the `--source` URL with your Artifactory NuGet feed URL from **Set Me Up**. > > ```bash theme={null} > dotnet add package endor-firewall-test --version 1.0.0 --source https://johndoe.jfrog.io/artifactory/api/nuget/v3/endor-firewall-nuget/index.json > ``` > > When Package Firewall blocks the package, the output looks similar to the following. The `NotFound` response confirms that the firewall blocked the package. > > ```bash theme={null} > info : GET https://johndoe.jfrog.io/artifactory/api/nuget/v3/endor-firewall-nuget/registration-semver2/endor-firewall-test/index.json > info : OK https://johndoe.jfrog.io/artifactory/api/nuget/v3/endor-firewall-nuget/registration-semver2/endor-firewall-test/index.json 1138ms > info : GET https://johndoe.jfrog.io/artifactory/api/nuget/v3/endor-firewall-nuget/Download/endor-firewall-test/1.0.0 > info : NotFound https://johndoe.jfrog.io/artifactory/api/nuget/v3/endor-firewall-nuget/Download/endor-firewall-test/1.0.0 1078ms > error: The feed 'endor-firewall [https://johndoe.jfrog.io/artifactory/api/nuget/v3/endor-firewall-nuget/index.json]' lists package 'endor-firewall-test.1.0.0' but multiple attempts to download the nupkg have failed. The feed is either invalid or required packages were removed while the current operation was in progress. Verify the package exists on the feed and try again. > error: Unable to find a resolved package for 'endor-firewall-test'. This is a tooling error. Please file an issue at https://github.com/NuGet/Home. > ``` > [accordion] Bundler > > Configure Bundler to use the Artifactory Gems repository as described in [Local setup for developers](#local-setup-for-developers), then run the following commands in an empty directory to test Package Firewall with Bundler. > > ```bash theme={null} > bundle init > bundle add endor-firewall-test --version 1.0.0 > ``` > > `bundle add` writes the test gem to the `Gemfile` even though the installation is blocked. Delete the directory after the test, or later Bundler commands try to install the gem again and Package Firewall records a new block event each time. > > When Package Firewall blocks the package, the output looks similar to the following. The `404` response confirms that the firewall blocked the package. > > ```bash theme={null} > Fetching gem metadata from https://johndoe.jfrog.io/artifactory/api/gems/endor-firewall-gems/. > Fetching endor-firewall-test 1.0.0 > Retrying download gem from https://@johndoe.jfrog.io/artifactory/api/gems/endor-firewall-gems/ due to error (2/4): Gem::RemoteFetcher::FetchError bad response 404 (https://@johndoe.jfrog.io/artifactory/api/gems/endor-firewall-gems/gems/endor-firewall-test-1.0.0.gem) > Retrying download gem from https://@johndoe.jfrog.io/artifactory/api/gems/endor-firewall-gems/ due to error (3/4): Gem::RemoteFetcher::FetchError bad response 404 (https://@johndoe.jfrog.io/artifactory/api/gems/endor-firewall-gems/gems/endor-firewall-test-1.0.0.gem) > Retrying download gem from https://@johndoe.jfrog.io/artifactory/api/gems/endor-firewall-gems/ due to error (4/4): Gem::RemoteFetcher::FetchError bad response 404 (https://@johndoe.jfrog.io/artifactory/api/gems/endor-firewall-gems/gems/endor-firewall-test-1.0.0.gem) > Bundler::HTTPError: Could not download gem from https://@johndoe.jfrog.io/artifactory/api/gems/endor-firewall-gems/ due to underlying error @johndoe.jfrog.io/artifactory/api/gems/endor-firewall-gems/gems/endor-firewall-test-1.0.0.gem)> > ``` > [accordion] gem > > Configure gem to use the Artifactory Gems repository as described in [Local setup for developers](#local-setup-for-developers), then run the following command to test Package Firewall with gem. > > ```bash theme={null} > gem install endor-firewall-test -v 1.0.0 > ``` > > When Package Firewall blocks the package, the output looks similar to the following. The `404` response confirms that the firewall blocked the package. > > ```bash theme={null} > ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) > bad response 404 (Gem::RemoteFetcher::FetchError) > ``` After you confirm that Package Firewall blocks malware, you can view the recorded events. See [View Package Firewall logs](/package-firewall/logs) to learn more. ## Troubleshooting and FAQ > [accordion] What if Artifactory has already cached a package that is declared malicious later? > > If Endor Labs flags a package as malware after Artifactory cached it, Artifactory continues to serve the cached metadata until the entry expires. Lower **Metadata Retrieval Cache Period (Sec)** on the remote repository to shorten that window. See [Configure caching for time-sensitive policies](#configure-caching-for-time-sensitive-policies) to learn more. > [accordion] How do I troubleshoot connection issues? > > * Verify that the Package Firewall URL in Artifactory is correct. > * If you use Endor Labs with an EU tenant, verify that the repository URL uses `factory.eu.endorlabs.com`. > * Ensure network connectivity from Artifactory to Package Firewall. > * Ensure the firewall rules allow outbound connections from Artifactory. > [accordion] How do I troubleshoot authentication issues? > > * Verify the API key and secret are correct and that the key has the **Package Firewall User** role. > * Ensure that the credentials are in the format Artifactory expects. > * Check the Artifactory logs for authentication errors. > [accordion] How do I troubleshoot cache issues? > > * Verify that Artifactory has sufficient storage for the cache. > * Lower **Metadata Retrieval Cache Period (Sec)** and **Missed Retrieval Cache Period (Sec)** so more requests reach Package Firewall. See [Configure caching for time-sensitive policies](#configure-caching-for-time-sensitive-policies). > * Check the cache hit and miss rates. Clear the cache if you need to test with a fresh request. > [accordion] Why does a package stay blocked after it becomes eligible? > > A package blocked by a minimum package age condition returns an `HTTP 404`, which Artifactory caches in its missed-retrieval cache separately from package metadata. After the version becomes eligible, Artifactory can keep returning `HTTP 404` until that entry expires. Lower **Missed Retrieval Cache Period (Sec)** on the remote repository so the change takes effect sooner. See [Configure caching for time-sensitive policies](#configure-caching-for-time-sensitive-policies). > [accordion] Does Package Firewall work with a self-managed Artifactory instance? > > Yes. Package Firewall behaves the same whether Artifactory is self-managed or JFrog's SaaS offering. Any IP allowlisting depends on the network rules of your organization. Package Firewall and Artifactory don't impose additional restrictions. # View Package Firewall logs Source: https://docs.endorlabs.com/package-firewall/logs/index View, filter, and query the events the Package Firewall records for blocked and warned package installations. Package Firewall records the actions it takes on package installation requests, providing an audit trail for debugging and compliance. The logs include details such as the package name, version, event time, the reason the package was flagged, and the user who initiated the request. To view Package Firewall logs: 1. Select **Package Firewall** from the left sidebar. 2. Select an event to view the package name, when the event occurred, and the following details: * **Request details**: The request type and request URL, and who made the request: user attribution, API key, and remote address. * **Action**: The action taken and the reason the event was flagged. The reason shows the policy setting that applied at that time, such as the minimum package age, the CVSS severity threshold, or the restricted license that matched. Older events show only the reason. * **Log raw data**: The full log entry in JSON format. User Attribution shows who made the request. The client adds this label to the Package Firewall credentials it sends, and the MDM deployment scripts use `@` by default. The label is free-form, so each deployment reports whatever value it sets. See [User attribution](/package-firewall/user-attribution) to learn more. For malware events, you can also view the following details: * **Malware risk details**: Explanation of why the package was flagged, the reasoning behind it, and remediation guidance. * **Malware metadata**: Package release date, advisory published date, CWE ID, and OSV ID when available. For minimum package age events, you can also view the following details: * **Actual package age**: How old the package version was when the request was made, in hours. * **Eligible by**: The date and time when the package version becomes old enough to pass your minimum package age policy. Requests for this version after this time are not blocked for package age. For restricted license events, you can also view the detected package license. For vulnerability events, you can also view the severity of the detected vulnerability. For package not evaluated events, the reason also shows whether the policy fails close or fails open, such as **Package not evaluated : Fail-close**. Older events, and events where Package Firewall could not read your policy settings or find the package's registry metadata, show only **Package not evaluated**. ![Package not evaluated event](https://mintcdn.com/endorlabs-b4795f4f/DF_KvjqvQTLJJE-U/images/package-firewall/package-not-evaluated.webp?fit=max\&auto=format\&n=DF_KvjqvQTLJJE-U\&q=85\&s=67c3f60260050f214b36b5b4d6f6bd86) For curated events, you can also view the list of unsafe versions that were blocked, each labeled with its reason for blocking, either malware or minimum package age. Versions blocked for minimum package age also show the package age, the minimum age, and the date when the version becomes eligible. See [Allow safe versions](/package-firewall/policy#allow-safe-versions) to learn more. ![Curated events](https://mintcdn.com/endorlabs-b4795f4f/qIkooNLS3r5YC59b/images/package-firewall/curated-events.webp?fit=max\&auto=format\&n=qIkooNLS3r5YC59b\&q=85\&s=15313992d49800204a33bd21f3c0f199) > [!NOTE] > > For VS Code extensions, the Package Firewall records only malware and minimum package age events. ## Filter Package Firewall logs Use filters to narrow Package Firewall logs by ecosystem, action, rule reason, or time. 1. Select **Package Firewall** from the left sidebar. 2. Toggle the filter panel to show the filters. 3. Set any of the following filters to narrow the log list. * **Ecosystem** - Filter logs by their package ecosystem. * **Action**: Filter logs by the action taken on the package installation, either **Warning**, **Blocked**, or **Allowed safe versions**. * **Reason**: Filter logs by why the package was flagged, which can be **Malware**, **Minimum Package Age**, **Restricted License**, **Vulnerability**, **Curated**, or **Package not evaluated**. * **All Time** - Filter logs by when the event was recorded. You can select **All Time**, **Last Day**, **Last Week**, **Last Month**, **Last 60 Days**, **Last 90 Days**, or a custom range. Curated events with the **Allowed safe versions** action are hidden by default. Select **Curated** in the **Reason** filter to view those logs. You can use the same filters to query logs through `endorctl`. See [Query Package Firewall logs using endorctl](#query-package-firewall-logs-using-endorctl). ## Query Package Firewall logs using endorctl The Package Firewall logs record every action the firewall takes on package installation requests. You can view them by querying the `endorctl` API. * To list all Package Firewall logs in your namespace, run the following command. Replace `` with your namespace. ```bash theme={null} endorctl api list -r PackageFirewallLog -n ``` * To list logs only for a specific ecosystem, add a filter. ```bash theme={null} endorctl api list -r PackageFirewallLog -n --filter 'spec.ecosystem==' ``` Replace: * `` with `ECOSYSTEM_NPM` for npm, `ECOSYSTEM_PYPI` for PyPI, `ECOSYSTEM_GO` for Go, `ECOSYSTEM_MAVEN` for Maven, `ECOSYSTEM_NUGET` for NuGet, `ECOSYSTEM_GEM` for RubyGems, and `ECOSYSTEM_VSCODE` for VS Code. * `` with your namespace. * To list logs for a specific package in an ecosystem, use a filter with `spec.ecosystem`, `spec.package_name`, and `spec.package_version`. ```bash theme={null} endorctl api list -r PackageFirewallLog -n --filter 'spec.ecosystem== and spec.package_name=="" and spec.package_version==""' ``` Replace: * `` with your namespace. * `` with `ECOSYSTEM_NPM` for npm, `ECOSYSTEM_PYPI` for PyPI, `ECOSYSTEM_GO` for Go, `ECOSYSTEM_MAVEN` for Maven, `ECOSYSTEM_NUGET` for NuGet, `ECOSYSTEM_GEM` for RubyGems, and `ECOSYSTEM_VSCODE` for VS Code. * `` with the package name you want to query. * `` with the package version you want to query. * To list logs attributed to a specific developer, use a filter with `spec.user`. ```bash theme={null} endorctl api list -r PackageFirewallLog -n --filter 'spec.user==""' ``` Replace: * `` with your namespace. * `` with the exact attribution label you want to query, such as `@` from the MDM scripts or an email address from a JFrog worker. * To count events for each attributed user, group logs by `spec.user`. Replace `` with your namespace. ```bash theme={null} endorctl api list -r PackageFirewallLog -n --group-aggregation-paths=spec.user ``` You can use a combination of filters to narrow your query. \- Filter: \`spec.ecosystem\` Supported values: \`ECOSYSTEM_NPM\`, \`ECOSYSTEM_PYPI\`, \`ECOSYSTEM_GO\`, \`ECOSYSTEM_MAVEN\`, \`ECOSYSTEM_NUGET\`, \`ECOSYSTEM_GEM\`, \`ECOSYSTEM_VSCODE\` Description: Ecosystem of the package. \- Filter: \`spec.package_name\` Supported values: String Description: Name of the package in the ecosystem's normal form. \- Filter: \`spec.package_version\` Supported values: String Description: Version of the package resolved for the request, when available. \- Filter: \`spec.user\` Supported values: String Description: Attribution label of the user who made the request. It is recorded only when the request carries an attribution label. \- Filter: \`spec.api_key_name\` Supported values: String Description: Name of the API key used for the request. \- Filter: \`spec.action\` Supported values: \`PACKAGE_FIREWALL_ACTION_WARN\`, \`PACKAGE_FIREWALL_ACTION_BLOCK\`, \`PACKAGE_FIREWALL_ACTION_CURATED\` Description: Action the firewall took on the request. \- Filter: \`spec.reason\` Supported values: \`PACKAGE_FIREWALL_REASON_MALWARE_DETECTED\`, \`PACKAGE_FIREWALL_REASON_CVSS_SEVERITY_DETECTED\`, \`PACKAGE_FIREWALL_REASON_MIN_AGE_NOT_MET\`, \`PACKAGE_FIREWALL_REASON_RESTRICTED_LICENSE\`, \`PACKAGE_FIREWALL_REASON_VERSIONS_CURATED\`, \`PACKAGE_FIREWALL_REASON_POLICY_NOT_EVALUATED\` Description: Reason the package was flagged. \- Filter: \`spec.package_age_hours\` Supported values: Integer Description: Number of hours since the package was published. Use when the reason is set to \`PACKAGE_FIREWALL_REASON_MIN_AGE_NOT_MET\`. \- Filter: \`spec.package_license\` Supported values: String Description: License detected on the package. Use when the reason is set to \`PACKAGE_FIREWALL_REASON_RESTRICTED_LICENSE\`. \- Filter: \`spec.cvss_severity_level\` Supported values: \`CVSS_SEVERITY_LEVEL_HIGH\`, \`CVSS_SEVERITY_LEVEL_CRITICAL\` Description: Severity of the detected vulnerability. Use when the reason is set to \`PACKAGE_FIREWALL_REASON_CVSS_SEVERITY_DETECTED\`. > [!NOTE] > > The API key created with `SYSTEM_ROLE_PACKAGE_FIREWALL` routes traffic through the Package Firewall. It does not grant access to the Package Firewall Log API. > > To query logs, create an API key with at least the **Read-only** role. For more information about roles and permissions, see [Authorization roles](/platform-administration/rbac/authorization-roles). # Deploy Package Firewall to developer machines with MDM Source: https://docs.endorlabs.com/package-firewall/mdm-deployment/index Generate self-contained scripts that configure developer machines to route package installations through Endor Labs Package Firewall, and push them with your MDM tool. This setup is a package manager client deployment. MDM pushes the Package Firewall configuration to developer machines. Mobile device management (MDM) deployment lets an IT administrator configure many developer machines at once. You generate a self-contained script, push it through your MDM tool, and it configures each machine's package manager clients to route installations through Package Firewall. Developers do nothing, and the scripts preserve existing package manager client configuration. The scripts cover the following ecosystems. \- Ecosystem: JavaScript Package_manager_clients: npm, pnpm, yarn, and bun \- Ecosystem: Go Package_manager_clients: Go modules (through GOPROXY) \- Ecosystem: Python Package_manager_clients: pip, uv, and Poetry \- Ecosystem: Maven Package_manager_clients: Maven, and Gradle when it reads \~/.m2/settings.xml \- Ecosystem: .NET (macOS and Linux only) Package_manager_clients: dotnet CLI, NuGet CLI, and IDEs that read the user-level NuGet.Config \- Ecosystem: Ruby Package_manager_clients: Bundler and the gem CLI \- Ecosystem: VS Code extensions Package_manager_clients: VS Code They are idempotent, so they are safe to re-run on every MDM check-in. Except for the VS Code script on Linux, they have no runtime dependencies beyond the shell. The Package Firewall MDM scripts also cover protection against malicious VS Code extensions from the Microsoft Marketplace. See [VS Code extensions](/package-firewall/vscode-extensions) to learn more. > [!TIP] > > The scripts are available in the [Endor Labs MDM scripts repository](https://github.com/endorlabs/mdm-scripts) under the [`package-firewall/` directory](https://github.com/endorlabs/mdm-scripts/tree/main/package-firewall). ## Before you begin Create an API key dedicated to the Package Firewall so that the deployment scripts can authenticate to it. You can create it through one of the following methods: * Using the Endor Labs user interface, with the **Package Firewall User** role. See [API keys](/platform-administration/api-keys#create-an-api-key-through-the-endor-labs-user-interface) to learn more. * Using endorctl, with the `SYSTEM_ROLE_PACKAGE_FIREWALL` role. Make sure to [install and configure endorctl](/developers-api/cli/install-and-configure) before you create the key. To create the key using endorctl, run the following command and replace: * `` with your namespace. * `` with the name of the API key for the Package Firewall use case. * `` with the API key expiration in ISO 8601 UTC format, for example `2026-12-31T23:59:59Z`. ```bash theme={null} export NAMESPACE="" export KEY_NAME="" endorctl api create -r APIKey -n "$NAMESPACE" --data '{ "meta": { "name": "'"$KEY_NAME"'" }, "spec": { "permissions": { "roles": ["SYSTEM_ROLE_PACKAGE_FIREWALL"] }, "expiration_time": "" }, "propagate": true }' ``` To deploy the VS Code script on Linux, install Python 3 on the device. The [patch method](/package-firewall/vscode-extensions#choose-a-method) also requires systemd. ## Generate the MDM scripts Clone the generator repository and run it with your namespace and Package Firewall credentials. Select your platform for the matching commands. > [!NOTE] > > The generated scripts default to `https://factory.endorlabs.com`. If you use Endor Labs with an EU tenant, set `ENDOR_FQDN=https://factory.eu.endorlabs.com` when you run the generator. The [browser generator](#generate-your-mdm-script-in-the-browser) has a region picker for the same setting. > [!TIP] > > You can also generate the scripts in the browser using the [MDM script generator](#generate-your-mdm-script-in-the-browser). The generator fetches the real source files from the Endor Labs MDM scripts repository ([https://github.com/endorlabs/mdm-scripts](https://github.com/endorlabs/mdm-scripts)). The GitHub repository is the authoritative source for the scripts. > [tab] macOS / Linux > > 1. **Clone the generator repository**: Clone the repository and change into the bash generator directory. > > ```bash theme={null} > git clone https://github.com/endorlabs/mdm-scripts > cd mdm-scripts/package-firewall/bash > ``` > > 2. **Generate the scripts**: Pass your credentials as environment variables. This keeps them out of your shell history. > > ```bash theme={null} > ENDOR_NAMESPACE= \ > ENDOR_API_KEY_ID= \ > ENDOR_API_SECRET= \ > ./generate.sh > ``` > > Alternatively, store the variables in a `.env` file, add `.env` to `.gitignore`, and source it. > > ```bash theme={null} > set -a; source .env; set +a > ./generate.sh > ``` > > The generator writes `endor-js.sh`, `endor-python.sh`, `endor-go.sh`, `endor-maven.sh`, `endor-nuget.sh`, `endor-ruby.sh`, `endor-vscode.sh`, `endor-all.sh`, and `endor-remove.sh` to `out//`. It also writes `endor-vscode-disable-patch.sh` and `endor-vscode-disable-policy.sh`, which each turn off one VS Code method. Re-running `generate.sh` overwrites the same directory. > > `endor-vscode.sh` and `endor-all.sh` leave VS Code unchanged unless you add `ENDOR_VSCODE_ENABLE_PATCH=true`, `ENDOR_VSCODE_ENABLE_POLICY=true`, or both to the generator command. [Compare the two methods](/package-firewall/vscode-extensions#choose-a-method) before you set them. With `ENDOR_VSCODE_ENABLE_POLICY=true`, the generator also writes `endor-vscode.mobileconfig` and `endor-vscode-policy.plist`, the VS Code enterprise policy for macOS. See [Deliver the enterprise policy on macOS](/package-firewall/vscode-extensions#deliver-the-enterprise-policy-on-macos). > [tab] Windows > > 1. **Clone the generator repository**: Clone the repository and change into the PowerShell generator directory. > > ```powershell theme={null} > git clone https://github.com/endorlabs/mdm-scripts > cd mdm-scripts/package-firewall/powershell > ``` > > 2. **Generate the scripts**: Set your credentials as environment variables, then run the generator. > > ```powershell theme={null} > $env:ENDOR_NAMESPACE = '' > $env:ENDOR_API_KEY_ID = '' > $env:ENDOR_API_SECRET = '' > ./generate.ps1 > ``` > > The generator writes `endor-js.ps1`, `endor-python.ps1`, `endor-go.ps1`, `endor-maven.ps1`, `endor-nuget.ps1`, `endor-ruby.ps1`, `endor-vscode.ps1`, `endor-all.ps1`, and `endor-remove.ps1` to `out//`. It also writes `endor-vscode-disable-patch.ps1` and `endor-vscode-disable-policy.ps1`, which each turn off one VS Code method. Re-running `generate.ps1` overwrites the same directory. > > `endor-vscode.ps1` and `endor-all.ps1` leave VS Code unchanged unless you set `$env:ENDOR_VSCODE_ENABLE_PATCH = 'true'`, `$env:ENDOR_VSCODE_ENABLE_POLICY = 'true'`, or both before you run the generator. [Compare the two methods](/package-firewall/vscode-extensions#choose-a-method) before you set them. > [!WARNING] > > The generated scripts contain your API key and secret in plain text, because the scripts need them to write credentials on each device. MDM deployment then copies that one credential to every enrolled machine. To limit the exposure: > > * Scope the key to the Package Firewall role only. > * Keep the scripts and the `out/` directory out of source control. > * Restrict who can view the MDM policy. > * Rotate the key on a schedule by redeploying the script. ## Upload the scripts to your MDM tool Each generated script is self-contained, so you upload it directly to your MDM tool. On macOS and Linux the scripts use the `.sh` extension. On Windows, they use `.ps1`. > [tab] macOS / Linux > > Run the scripts as `root`. The script detects the signed-in console user and writes configuration files to the correct home directory. > > When no user is signed in, such as at the login window or during Setup Assistant, the package manager scripts and `endor-all.sh` exit with code 1 and change nothing. Run them at sign-in or at a recurring check-in. `endor-vscode.sh` and the VS Code disable scripts do not need a signed-in user. > > > [accordion] Kandji > > > > 1. **Add the script**: Go to **Library** > **Custom Scripts** > **Add Script**. > > 2. **Provide the script**: Paste the script content or upload the file. > > 3. **Set the run context**: Select **Root** for **Run as**. > > 4. **Set the frequency**: Set **Execution Frequency** to **Run once per device**, or to every check-in for ongoing enforcement. > > 5. **Assign the script**: Assign the script to the relevant device blueprint. > > > [accordion] Jamf Pro > > > > 1. **Add the script**: Go to **Settings** > **Scripts** > **New** and paste the script content. > > 2. **Create a policy**: Go to **Policies** > **New Policy** > **Scripts** and add your script. > > 3. **Set the frequency**: Set the **Execution Frequency** as appropriate. > > 4. **Scope the policy**: Scope the policy to the target devices. > > > > The scripts ignore the target volume, computer name, and user that Jamf Pro passes as `$1` to `$3`. To preview the changes, set one script parameter to `--dry-run`. Leave the other parameters empty, because any other value makes the script exit with code 1. > > > [accordion] Generic MDM > > > > Upload the script file and run it as **root**. The script detects the signed-in console user and writes configuration files to the correct home directory. > [tab] Windows > > Run the scripts as **SYSTEM**. The script detects the signed-in console user through `explorer.exe` and writes configuration files to the correct user profile. > > When no user is signed in, the package manager scripts, `endor-all.ps1`, and `endor-remove.ps1` exit with code 1 and change nothing. Run them at sign-in or on a recurring schedule. `endor-vscode.ps1` and the VS Code disable scripts do not need a signed-in user. > > > [accordion] Microsoft Intune > > > > 1. **Add the script**: Go to **Devices** > **Scripts and remediations** > **Platform scripts** > **Add**. > > > > 2. **Upload the file**: Upload the `.ps1` file. > > > > 3. **Set the run context**: Set **Run this script using the logged on credentials** to **No**, so the script runs as SYSTEM. > > > > 4. **Set the signature check**: Set **Enforce script signature check** to **No**. > > > > 5. **Set the PowerShell architecture**: Set **Run script in 64-bit PowerShell** to **Yes**. > > > > 6. **Assign the script**: Assign the script to the target device group. > > > > > [!NOTE] > > > > > > Intune bypasses the execution policy for managed scripts, so you do not need to change the device policy. > > > [accordion] Generic MDM > > > > Upload the script file and run it as **SYSTEM**. The script detects the signed-in console user through `explorer.exe` and writes configuration files to the correct user profile. ## How credentials are stored The scripts write your credentials to a single source on each device and reference them from the package manager client configuration files. The storage mechanism depends on your platform. > [tab] macOS / Linux > > The scripts write all credentials to `~/.config/endor/env.sh` and set the file permissions to `600`. > > ```bash theme={null} > export ENDOR_API_KEY_ID="..." > export ENDOR_API_SECRET="..." > export ENDOR_ATTR_USER="..." # attributed Basic-auth username, see User attribution > export ENDOR_AUTH_B64="..." # base64(attributed-user:secret) for npm, pnpm, yarn, and bun > export ENDOR_API_SECRET_B64="..." > export ENDOR_NPM_REGISTRY_URL="..." # for npm and yarn 2+ > export POETRY_HTTP_BASIC_ENDOR_FIREWALL_USERNAME="..." # attributed user > export POETRY_HTTP_BASIC_ENDOR_FIREWALL_PASSWORD="..." > ``` > > Each shell profile (`.zshrc`, `.bash_profile`, and `.bashrc`) gets a one-line block that sources this file. The configuration files reference these variables instead of embedding credentials. The exceptions are `pip.conf`, `uv.toml`, and the go env file. They cannot expand variables, so the script writes a literal index URL into them at install time. > > To rotate credentials, redeploy the MDM script to update `env.sh` on the target machines. You do not need to change any configuration files. > [tab] Windows > > The scripts write persistent user-level environment variables to the `HKCU:\Environment` registry key. > > ```text theme={null} > ENDOR_API_KEY_ID = > ENDOR_API_SECRET = > ENDOR_ATTR_USER = > ENDOR_AUTH_B64 = > ENDOR_API_SECRET_B64 = > ENDOR_NPM_REGISTRY_URL = https://factory.endorlabs.com/v1/namespaces//firewall/npm/ > POETRY_HTTP_BASIC_ENDOR_FIREWALL_USERNAME = > POETRY_HTTP_BASIC_ENDOR_FIREWALL_PASSWORD = > ``` > > Every process the user starts inherits `HKCU:\Environment` variables, including Makefiles, git hooks, IDE terminals, and scheduled tasks. No shell profile sourcing is required. `pip.ini`, `uv.toml`, and the go env file cannot expand environment variables, so they get a literal index URL baked in at install time instead. > > To rotate credentials, redeploy the MDM script. It updates `HKCU:\Environment`, plus `pip.ini`, `uv.toml`, and the go env file, which hold literal credentials, in place. ## User attribution The generated scripts label each machine's Package Firewall traffic with the developer who owns it. The firewall logs then attribute activity to a person and machine rather than to a shared API key. By default the label is `@`, built at install time from the signed-in console user and the machine name. The scripts encode the label into the Basic-auth username they write for every package manager client they configure. They store the encoded username as `ENDOR_ATTR_USER` in the credential store, which is `env.sh` on macOS and Linux and `HKCU:\Environment` on Windows. See [User attribution](/package-firewall/user-attribution) to choose a different label, learn how the encoding works, or attribute traffic from the other deployment models. ## What the scripts do Each install script writes the credential store and an Endor-managed block to the package manager client configuration files. The file locations depend on your platform. > [tab] macOS / Linux > > The `endor-js.sh` script writes `~/.config/endor/env.sh` and an Endor-managed block to the following files. > > \- File: \`\~/.npmrc\` > Covers: npm (all), pnpm (8–11.x), yarn classic (1.x), bun > Credentials: References \`ENDOR_AUTH_B64\` and \`ENDOR_ATTR_USER\` > \- File: \`\~/.yarnrc.yml\` > Covers: yarn 2+ (berry) > Credentials: References \`ENDOR_ATTR_USER\` and \`ENDOR_API_SECRET\` > > > The `endor-go.sh` script writes `~/.config/endor/env.sh` and an Endor-managed block to the following file. > > \- File: \`\~/Library/Application Support/go/env\` (macOS), \`\~/.config/go/env\` (Linux) > Covers: go modules (all versions) > Credentials: Literal > > > The `endor-python.sh` script writes `~/.config/endor/env.sh` and an Endor-managed block to the following files. > > \- File: \`\~/.pip/pip.conf\` > Covers: pip (legacy path) > Credentials: Literal > \- File: \`\~/.config/pip/pip.conf\` > Covers: pip (XDG and Linux standard) > Credentials: Literal > \- File: \`\~/Library/Application Support/pip/pip.conf\` > Covers: pip (macOS primary) > Credentials: Literal > \- File: \`\~/.config/uv/uv.toml\` > Covers: uv (does not read pip.conf) > Credentials: Literal > > > The `endor-maven.sh` script writes `~/.config/endor/env.sh` and an Endor-managed block to the following file. > > \- File: \`\~/.m2/settings.xml\` > Covers: Maven (all versions), and Gradle when it reads \~/.m2 > Credentials: References \`ENDOR_ATTR_USER\` and \`ENDOR_API_SECRET\` > > > The `endor-nuget.sh` script writes `~/.config/endor/env.sh` and Endor-managed blocks to the following file. > > \- File: \`\~/.nuget/NuGet/NuGet.Config\` > Covers: dotnet CLI, NuGet CLI, and IDEs that read the user-level NuGet config > Credentials: References \`ENDOR_ATTR_USER\` and \`ENDOR_API_SECRET\` > > [tab] Windows > > The `endor-js.ps1` script writes the registry environment variables and an Endor-managed block to the following files. > > \- File: \`%USERPROFILE%\\.npmrc\` > Covers: npm (all), pnpm (8–11.x), yarn classic (1.x), bun > Credentials: References \`ENDOR_AUTH_B64\` and \`ENDOR_ATTR_USER\` > \- File: \`%USERPROFILE%\\.yarnrc.yml\` > Covers: yarn 2+ (berry, v3.1+) > Credentials: References \`ENDOR_ATTR_USER\` and \`ENDOR_API_SECRET\` > > > The `endor-go.ps1` script writes the registry environment variables and an Endor-managed block to the following file. > > \- File: \`%APPDATA%\go\env\` (path from \`go env GOENV\`) > Covers: go modules (all versions) > Credentials: Literal > > > The `endor-python.ps1` script writes the registry environment variables and an Endor-managed block to the following files. > > \- File: \`%APPDATA%\pip\pip.ini\` > Covers: pip > Credentials: Literal > \- File: \`%APPDATA%\uv\uv.toml\` > Covers: uv > Credentials: Literal > > > The `endor-maven.ps1` script writes the registry environment variables and an Endor-managed block to the following file. > > \- File: \`%USERPROFILE%\\.m2\settings.xml\` > Covers: Maven (all versions), and Gradle when it reads \~/.m2 > Credentials: References \`ENDOR_ATTR_USER\` and \`ENDOR_API_SECRET\` > ### Configure each package manager client The scripts apply a few package manager client-specific behaviors that are the same on every platform unless noted otherwise. > [accordion] JavaScript > > The scripts write `_auth` (base64) instead of `_authToken`, which bun requires. Yarn classic reads authentication from `.npmrc`, so the `.npmrc` write covers it. The scripts do not write the project-level `bunfig.toml`. > [accordion] Go > > * The scripts find the go env file with `go env GOENV` and write `GOPROXY` to it. > * If `go` is not installed, they use the default path: `~/Library/Application Support/go/env` on macOS, `~/.config/go/env` on Linux, or `%APPDATA%\go\env` on Windows. > * Credentials are written as is, because go env files cannot expand environment variables. > * `GOPROXY` ends in `,direct`, so Go downloads a module from its source if the firewall does not serve it. > * The go env file applies to every `go` command in any shell. A `GOPROXY` environment variable takes precedence, so project-level overrides still work. > [accordion] Python (pip) > > The scripts write the pip settings in a `[global]` section. If the file already has a `[global]` section, they merge the Endor keys into it, because pip rejects duplicate `[global]` sections. The scripts disable any conflicting keys, such as an existing `index-url`, with an `#endor-bak#` prefix and restore them when the remove script runs. > [accordion] Python (uv) > > uv ignores `pip.conf`, so the scripts write the user-level `uv.toml` with the firewall index URL. The scripts bake the URL in literally because uv cannot expand environment variables in its config, so it carries the attributed username. > [accordion] Python (Poetry) > > Poetry reads credentials from the `POETRY_HTTP_BASIC_ENDOR_FIREWALL_*` environment variables, so you do not need a separate write step. Add the source to your `pyproject.toml`: > > Poetry reads the registry URL from `pyproject.toml` and the credentials from environment variables. Add the Package Firewall as a source in each project. The source includes the URL only, never the credentials. > > ```toml theme={null} > [[tool.poetry.source]] > name = "endor-firewall" > url = "https://factory.endorlabs.com/v1/namespaces//firewall/pypi/simple/" > priority = "primary" > ``` > [accordion] Maven > > * The scripts write a user-level `settings.xml` (`~/.m2/settings.xml`, or `%USERPROFILE%\.m2\settings.xml` on Windows) with a `` of `*` that points at the firewall, plus a matching ``. > * Credentials are not stored in the file. The `` references `${env.ENDOR_ATTR_USER}` and `${env.ENDOR_API_SECRET}`, which Maven reads at runtime from the environment variables the credential store sets. > * Gradle uses the same settings when it reads `~/.m2/settings.xml`. > [accordion] .NET (NuGet) > > * The macOS and Linux scripts merge the Endor source into `` in `~/.nuget/NuGet/NuGet.Config`. > > * The block starts with ``, so the firewall replaces `nuget.org` and every source listed before it. > > * If the file lists a private feed, such as Artifactory or Azure Artifacts, the script warns and exits with code 1. Re-add that feed in a repository-level `nuget.config`, or use the [JFrog Artifactory](/package-firewall/jfrog-artifactory) integration instead. > > * Credentials are not stored in the file. `` references `%ENDOR_ATTR_USER%` and `%ENDOR_API_SECRET%`, which NuGet reads at runtime from the environment variables that `env.sh` sets. > > * IDEs launched outside a shell, such as from the macOS Dock, do not inherit `env.sh`. Their restores fail with a `401` error instead of bypassing the firewall. > > > [!NOTE] > > > > A repository-level `nuget.config` overrides the user-level file for that repository. A repository that commits `` followed by `nuget.org` bypasses the firewall. For full enforcement, commit `endor-firewall` as the only public source in each repository. The key must be exactly `endor-firewall` so that the user-level credentials apply. A repository `nuget.config` that only adds a source keeps that source active next to the firewall. ## Preserve existing configuration The scripts use a sentinel block pattern. Each script writes only a clearly delimited section to a configuration file and leaves everything else untouched, so existing settings survive every deployment. The following example shows an `.npmrc` file that already contains administrator settings. The script adds only the Endor-managed block between the `BEGIN` and `END` markers. ```ini theme={null} # Existing configuration — never touched legacy-peer-deps=true # ===== BEGIN ENDOR PACKAGE FIREWALL (managed — do not edit) ===== registry=https://factory.endorlabs.com/v1/namespaces//firewall/npm/ always-auth=true //factory.endorlabs.com/v1/namespaces//firewall/npm/:_auth=${ENDOR_AUTH_B64} # ===== END ENDOR PACKAGE FIREWALL ===== ``` The following table describes how the scripts handle each configuration scenario. \- Scenario: Fresh machine Behavior: The script creates the file with the Endor block only. \- Scenario: Existing file, no Endor block Behavior: The script appends the Endor block and preserves existing content. \- Scenario: Re-run or MDM check-in Behavior: The script replaces only the Endor block and leaves the rest of the file untouched. \- Scenario: Administrator edits outside the block Behavior: The script preserves the changes. \- Scenario: Administrator edits inside the block Behavior: The next MDM push overwrites the changes because the block is Endor-managed. \- Scenario: Conflicting key outside the block Behavior: The script emits a warning to the MDM log so an administrator can resolve it manually. ## Remove the configuration To offboard a machine, deploy the remove script. It strips the Endor block from every managed file and removes the credentials the install scripts added. To turn off only one VS Code method and keep the package manager configuration, deploy a VS Code disable script instead. See [Switch or turn off a VS Code method](/package-firewall/vscode-extensions#switch-or-turn-off-a-vs-code-method). > [tab] macOS / Linux > > Deploy `endor-remove.sh`. It removes the Endor block from each configuration file, the credentials in `~/.config/endor/env.sh`, and both VS Code methods. On macOS, it does not remove a configuration profile that delivers the enterprise policy, and it exits with code 1 until you remove that profile in your MDM tool. See [Remove the VS Code configuration](/package-firewall/vscode-extensions#remove-the-vs-code-configuration) for details, including the macOS daemon. > > When no user is signed in, `endor-remove.sh` removes the machine-wide configuration, such as the VS Code methods, and leaves the user's files. It then exits with code 1. Deploy it again after a user signs in. > [tab] Windows > > Deploy `endor-remove.ps1`. It removes the Endor block from each configuration file, deletes the `ENDOR_*` and `POETRY_HTTP_BASIC_ENDOR_FIREWALL_*` values from `HKCU:\Environment`, deletes configuration files that are empty after block removal, and removes both VS Code methods. See [Remove the VS Code configuration](/package-firewall/vscode-extensions#remove-the-vs-code-configuration) for details. Preview the changes with `-DryRun` before you apply them. > > ```powershell theme={null} > .\endor-remove.ps1 -DryRun > .\endor-remove.ps1 > ``` > > To turn off the VS Code methods on a machine with no signed-in user, deploy the VS Code disable scripts instead. ## Security notes The scripts store credentials on each device. Review the following before you deploy. \- Item: \`\~/.config/endor/env.sh\` (macOS and Linux) Note: Contains all credentials in plaintext, with file permissions set to \`600\`. This is the only credential file for npm, yarn, and poetry. \- Item: \`HKCU:\Environment\` (Windows) Note: Contains credentials as plain registry strings. Default Windows access control restricts them to the owning user. \- Item: \`pip.conf\` and \`pip.ini\` Note: Contain credentials in the index URL because pip cannot expand environment variables. The scripts restrict the file to the owner, and credentials can appear in verbose pip logs. \- Item: Go env file Note: Contains credentials in the \`GOPROXY\` URL because go env files cannot expand environment variables. The scripts restrict the file to the owner. \- Item: \`.gemrc\` Note: Contains credentials in the source URL because gem cannot expand environment variables. The scripts restrict the file to the owner. \- Item: \`uv.toml\` Note: Contains credentials in the index URL because uv cannot expand environment variables. The scripts restrict the file to the owner. \- Item: \`.npmrc\`, \`.yarnrc.yml\`, \`settings.xml\`, and \`NuGet.Config\` Note: Contain environment variable references only, with no credentials baked in. \- Item: VS Code \`product.json\`, \`policy.json\`, and \`HKLM\SOFTWARE\Policies\Microsoft\VSCode\` Note: Contain credentials in the Package Firewall URL, and local users can read them. Scope the key to the Package Firewall role only, and rotate it by redeploying the script. \- Item: \`endor-vscode.mobileconfig\` and \`endor-vscode-policy.plist\` Note: Contain credentials in the Package Firewall URL. The generator writes them with file permissions set to \`600\`. Restrict who can read them in your MDM tool. On a Mac, local users can read managed preferences. \- Item: Shell profiles Note: Contain a single line that sources \`env.sh\`, with no credentials. \- Item: Generated scripts Note: Contain the API key and secret in plaintext, and MDM deployment copies them to every enrolled machine. Scope the key to the Package Firewall role only, never commit the scripts or the \`out/\` directory to source control, and rotate the key on a schedule. ## Generate your MDM script in the browser Select your platform, ecosystem, MDM tool, and region, then enter your namespace and API key. The remove and VS Code disable scripts need only the namespace. Select US or EU based on where your Endor Labs tenant is hosted. The region sets the Package Firewall URL. The generator builds the script entirely in your browser. It never sends your credentials to Endor Labs or GitHub, and only bakes them into the script you download. For scripts that include VS Code, select **Patch VS Code's `product.json`**, **Set VS Code's enterprise policy**, or both. The generator selects neither by default, and without one the script leaves VS Code unchanged. [Compare the two methods](/package-firewall/vscode-extensions#choose-a-method) before you deploy. > [!WARNING] > > The generated install scripts contain your API key and secret in plain text, because they need them to write credentials on each device. MDM deployment then copies that one credential to every enrolled machine. Scope the key to the Package Firewall role only, and keep generated scripts out of source control. Restrict who can view the MDM policy, and rotate the key on a schedule by redeploying the script. # Package Firewall policy Source: https://docs.endorlabs.com/package-firewall/policy/index Configure how Package Firewall responds to flagged packages, including block, warn, and allow safe versions actions, exceptions, vulnerabilities, restricted licenses, and minimum package age. Package Firewall evaluates each request from a package manager client or a private package registry before download from a public registry. Use a policy to control which installations are blocked or allowed. For packages that fail the policy, you can block the download, allow it and record a warning, or remove only the unsafe versions so a safe version installs instead. Configure the Package Firewall policy to block a package installation, allow it and record a warning, or allow only the safe versions of a package. * **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, so it 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](#allow-safe-versions) to learn more. Package Firewall enforces these actions based on the conditions you configure in the policy. * **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, making them useful for approved packages that must remain available for critical builds and package installation workflows. 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. If a transitive dependency is flagged, it is blocked 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](/platform-administration/configure-system-settings/#configure-cvss-score-version). If a package has a known vulnerability at or above this threshold, the configured policy action is applied. * **Restricted licenses**: You can 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, helping enforce legal and open-source compliance at install time. * **Minimum package age**: Set a minimum number of hours that must pass after a version is published before it is considered safe. If a version is newer than this threshold, Endor Labs applies the configured policy action, mitigating risk from newly released packages. Endor Labs records every package installation request together with the action taken. See [View Package Firewall logs](/package-firewall/logs) to learn more. > [!NOTE] > > **License requirement** > > Ensure that you have the **Package Firewall** license to configure the policy. See [Licenses](/introduction/licenses) for more information. ### 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 so the package manager client can resolve from only safe versions. If no safe version is available, Package Firewall blocks the request. 1. When 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 only the remaining safe versions. 2. The package manager client resolves a version from the safe list using its own resolver, then requests it. 3. 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 Package Firewall log records this event with the action **Allowed safe versions** and the reason **Curated**. Package Firewall does not test whether a remaining safe version is backward compatible with your application. Test the resolved version in your own environment before you rely on this action. This action applies only to the malware and minimum package age conditions. It does not apply to restricted license or vulnerability conditions, which Package Firewall always evaluates after the package manager client selects a version. This action is available for the npm, PyPI, RubyGems, and VS Code ecosystems. See [Policy support by ecosystem](#policy-support-by-ecosystem) for the conditions and actions available in each ecosystem. Package Firewall can filter the version list only when the package manager client requests a list of available versions rather than an exact version. Package Firewall blocks the request and logs the event with the action **Blocked** and the reason **Curated** if either of the following conditions is met: * 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. This action applies only when a policy check cannot complete. Packages that fail a policy check still follow the action set for that policy. A total outage that prevents Package Firewall from reading your policy settings blocks the package with an `HTTP 502` error, whatever the action is set to, 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, whatever the action is set to. ## Configure the policy You can configure the Package Firewall policy to block or warn installations based on malware detection, exceptions, vulnerabilities, restricted licenses, and minimum package age conditions. The Package Firewall evaluates each package against the policy in the following order: **Exceptions → Malware → Vulnerability → Restricted License → Minimum Package Age**. If a package is listed as an exception, all checks are skipped. > [!NOTE] > > For VS Code extensions, the Package Firewall policy supports the malware and minimum package age conditions. If a check matches and the action is **Warn**, the event is logged and the evaluation continues. If the action is **Block**, the installation is blocked and all checks are skipped. When the malware or minimum package age action is set to allow safe versions only, Package Firewall filters the version list instead of blocking the request. See [Allow safe versions](#allow-safe-versions) to learn more. You can also set up notifications to receive Slack messages when the firewall blocks or warns on a package installation. See [notifications](#set-up-notifications) to learn more. You require **Admin** role permissions to change the Package Firewall policy. See [authorization roles](/platform-administration/rbac/authorization-roles) to learn about the different roles Endor Labs offers. Configure the Package Firewall policy once, at your tenant's root namespace, regardless of where the integration lives. The policy propagates to all child namespaces, but you cannot override it or set a separate policy for each namespace under the same tenant. Before configuring the policy, set up a Package Firewall integration in your namespace. See [Package Firewall](/package-firewall/) for setup instructions. 1. Select **User menu** > **Policies & Rules** from the left sidebar. 2. Select **Package Firewall Policies**. ### Configure malware detection Set the action the Package Firewall takes when it detects malware in a package. 1. Select **Malware**. 2. Choose **Block**, **Warn**, or **Allow safe versions only (curate)** if the package is flagged as malicious. 3. Click **Save**. ### Set a minimum package age Block or warn package installations when a version was published more recently than a threshold you define. 1. Select **Minimum Package Age**. 2. Enter the number of hours that must pass after a version is published before it can be installed in **Minimum package age in hours**. 3. Choose **Block**, **Warn**, or **Allow safe versions only (curate)** if the condition is met. 4. Click **Save**. To see how Package Firewall determines a version's age in each ecosystem, see [How minimum package age is determined per ecosystem](#how-minimum-package-age-is-determined-per-ecosystem). ### Restrict licenses Define the SPDX licenses your organization considers restricted and how Package Firewall responds when a restricted license is detected. Restricted license enforcement does not apply to the Go and VS Code ecosystems. See [Policy support by ecosystem](#policy-support-by-ecosystem) for license detection limits in other ecosystems. 1. Select **Restricted License**. 2. Click **Add Licenses**. 3. Search for and select the licenses you want to restrict. You can search by the SPDX name or identifier of the license. 4. If you don't find the licenses you are looking for, enter a comma separated list of licenses in **Add custom licenses**. 5. Click **Add & select**. 6. Click **Save**. 7. Choose to **Block** or **Warn** if the condition is met. 8. Click **Save**. ![Restricted licenses](https://mintcdn.com/endorlabs-b4795f4f/Cq2jQsQZUU2aI4dH/images/package-firewall/restricted-licenses.webp?fit=max\&auto=format\&n=Cq2jQsQZUU2aI4dH\&q=85\&s=8237ac952101f6097f61e79d736f748f) ### Set a vulnerability threshold Block or warn package installations that have vulnerabilities at or above a CVSS severity threshold. Vulnerability enforcement does not apply to the VS Code ecosystem. 1. Select **Vulnerability**. 2. Choose **Critical** or **High & Critical** in **Select CVSS severity**. 3. Choose to **Block** or **Warn** if the condition is met. Choose **Do nothing** to skip the vulnerability check. 4. 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](#action-when-a-policy-cannot-be-evaluated) to learn more. 1. Select **Package not evaluated**. 2. In **Action when a policy cannot be evaluated**, choose **Block (Fail-close)** or **Warn (Fail-open)**. 3. Click **Save**. ### Add exceptions Add packages that bypass the Package Firewall entirely, skipping all malware, license, vulnerability, and minimum-age checks for those installations. 1. Select **Exceptions**. 2. Click **Add package exceptions**. 3. Choose the **Ecosystem**. 4. Enter the package name in **Package name**. For a VS Code extension, use its identifier in `publisher.name` form, such as `ms-python.python`, which appears as the unique identifier on the extension's Marketplace page. 5. Optionally, turn on **Specify versions** and apply the exception to specific versions. If you leave this off, all versions of the package bypass the Package Firewall. * 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.3` to `3.0.0` matches version `1.1.3`, but not `3.0.0`. Click **+** to add a row for each additional version or range you want to exclude for that package. ![Add exceptions](https://mintcdn.com/endorlabs-b4795f4f/Cq2jQsQZUU2aI4dH/images/package-firewall/exceptions.webp?fit=max\&auto=format\&n=Cq2jQsQZUU2aI4dH\&q=85\&s=f8aa749fb89068c506e05f884ff23f4a) 6. Click **Save**. 7. Optionally, click **Add more** to add exceptions for other packages. To update an exception: 1. Click the vertical three dots and select **Edit**. You can update the package manager, package name, and versions. 2. Click **Save**. To delete an exception, click the vertical three dots and select **Delete**. ### Set up notifications Configure Package Firewall notifications to send a Slack message when the 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, which are supported for the ecosystem. You can configure multiple notifications for different conditions. A notification is sent only when an event matches both a selected reason and a selected action. The reason must already be configured to block or warn in your policy for it to generate a notification. 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 fails closed and a **Warn** notification if the action fails 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. Only Slack targets are supported. See [Slack integration](/integrations/slack) to set one up. 1. Select **Notifications**. 2. Click **Add notification**. 3. Enter a **Name** for the notification. 4. Select one or more reasons: **Malware**, **Minimum Package Age**, **Restricted License**, **Vulnerability**, or **Package not evaluated**. 5. Select one or more actions: **Block** or **Warn**. 6. Search for and select the Slack targets that receive the notifications. 7. Click **Save**. ![Notifications](https://mintcdn.com/endorlabs-b4795f4f/6lYarVH3K59BMBPY/images/package-firewall/notifications.webp?fit=max\&auto=format\&n=6lYarVH3K59BMBPY\&q=85\&s=3aa59c93404545c0eb367d347be52896) To edit a notification: 1. Click the vertical three dots and select **Edit**. You can update the notification name, reasons, actions, and Slack targets. 2. Click **Save**. To delete a notification, click the vertical three dots and select **Delete**. ## Policy support by ecosystem Policy support varies by ecosystem because each public registry exposes different metadata. The following table lists the conditions and actions Package Firewall supports for npm, PyPI, Go, Maven, NuGet, RubyGems, and VS Code. \- Condition: Exceptions Action: -na- npm: -yes- PyPI: -yes- Go: -yes- Maven: -yes- NuGet: -yes- RubyGems: -yes- VS_Code: -yes- \- Condition: Malware Action: Block, Warn npm: -yes- PyPI: -yes- Go: -yes- Maven: -yes- NuGet: -yes- RubyGems: -yes- VS_Code: -yes- \- Condition: Malware Action: Allow safe versions only npm: -yes- PyPI: -yes- Go: -no- Maven: -no- NuGet: -no- RubyGems: -yes- VS_Code: -yes- \- Condition: Vulnerabilities Action: Block, Warn npm: -yes- PyPI: -yes- Go: -yes- Maven: -yes- NuGet: -yes- RubyGems: -yes- VS_Code: -no- \- Condition: Restricted licenses Action: Block, Warn npm: -yes- PyPI: -yes- Go: -no- Maven: -yes- NuGet: -limited- RubyGems: -yes- VS_Code: -no- \- Condition: Minimum package age Action: Block, Warn npm: -yes- PyPI: -yes- Go: -yes- Maven: -limited- NuGet: -yes- RubyGems: -yes- VS_Code: -yes- \- Condition: Minimum package age Action: Allow safe versions only npm: -yes- PyPI: -yes- Go: -no- Maven: -no- NuGet: -no- RubyGems: -yes- VS_Code: -yes- The following table explains the conditions that are partially supported or that follow ecosystem-specific rules. \- Ecosystem: PyPI Condition: Exceptions Explanation: Package names are matched after normalizing case, underscores, hyphens, and periods, so \`Foo_Bar\`, \`foo-bar\`, and \`foo.bar\` all match the same exception. \- Ecosystem: NuGet Condition: Exceptions Explanation: Package IDs are matched case-insensitively. \- Ecosystem: RubyGems Condition: Exceptions Explanation: Gem names are matched case-sensitively. A hyphen in a prerelease version matches the RubyGems form, so \`1.0.0-rc1\` matches \`1.0.0.pre.rc1\`. \- Ecosystem: VS Code Condition: Exceptions Explanation: Extension IDs are matched case-insensitively. \- Ecosystem: NuGet Condition: Restricted licenses Explanation: A restricted license is detected only when the package declares an SPDX license expression. Packages that reference a license file or URL instead have no machine-readable identifier, so the check is skipped and the installation proceeds. \- Ecosystem: RubyGems Condition: Restricted licenses Explanation: Package Firewall converts common gemspec license names, such as \`Apache 2.0\` or \`GPL 2\`, to SPDX identifiers and compares any other name exactly as the gem declares it. To restrict such a license, add the same name as a custom license in your policy. \- Ecosystem: Maven Condition: Minimum package age Explanation: Maven metadata has no publish date, so Package Firewall uses the file modification time reported by the registry. This time is usually accurate, but it can be wrong if the registry mirror re-syncs the file. See \[How minimum package age is determined per ecosystem]\(#how-minimum-package-age-is-determined-per-ecosystem) to learn more. Package Firewall skips any condition that an ecosystem does not support. For Go, Maven, and NuGet, the **Allow safe versions only (curate)** action defaults to **Block**. ### How minimum package age is determined per ecosystem Package Firewall determines a version's age from the publish time its registry reports. Publish times are exact for every ecosystem except Maven. \- Ecosystem: npm Publish_time_source: Set by the registry when the version is published. \- Ecosystem: PyPI Publish_time_source: Set by PyPI when the file is uploaded. \- Ecosystem: Go Publish_time_source: Per-version metadata from the module proxy. \- Ecosystem: Maven Publish_time_source: No publish date exists in Maven metadata. Package Firewall uses the registry's file modification time instead. \- Ecosystem: NuGet Publish_time_source: The registration catalog's published time. If that value is a placeholder, such as for an unlisted version, Package Firewall uses the file's upload time instead. \- Ecosystem: RubyGems Publish_time_source: The \`created_at\` time in the RubyGems index. If a version has builds for several platforms, Package Firewall uses the newest build time. \- Ecosystem: VS Code Publish_time_source: Set by the Marketplace each time the extension is updated. If the registry returns a version without a publish time, Package Firewall skips the minimum package age check and allows the installation without recording an event. If Package Firewall cannot retrieve the version's metadata from the registry, it records the event with the reason **Package not evaluated**. # Configure the Package Firewall with Sonatype Nexus Repository Source: https://docs.endorlabs.com/package-firewall/sonatype-nexus-repository/index Route package installation requests through the Package Firewall by configuring Sonatype Nexus Repository proxy repositories. This setup is a private package registry deployment. Nexus Repository sits between your package manager clients and Package Firewall. Configure Sonatype Nexus Repository to use the Package Firewall URL as the remote storage for a proxy repository instead of public registries. Every package installation request flows through Endor Labs, so Package Firewall can block known malicious packages before they reach your environment. Package Firewall evaluates each package request based on the malware check and the configured [Package Firewall policy](/package-firewall/policy) conditions, and handles each request in one of the following methods: * Block the installation if the package is found in the Endor Labs malware database, or if a policy condition matches with **Block**. Nexus Repository returns `HTTP 404` response. Package Firewall records a log with the package, version, and reason. * Allow the installation if a policy condition matches with **Warn**. Package Firewall records a warning log with the package, version, and reason. * Allow the installation if the package passes all checks. No log is recorded. A Package Firewall policy change doesn't take effect immediately for packages Nexus Repository has already cached. Nexus Repository serves cached content without contacting Package Firewall, so a cached package keeps its earlier outcome until the entry expires or you invalidate it. A package cached before Endor Labs flagged it as malware continues to install, and a package blocked before you added an exception remains blocked. Configure a shorter cache lifetime in your repository settings to make policy changes take effect sooner and send more requests to Package Firewall. For more information, refer to [Configurable repository fields](https://help.sonatype.com/en/configurable-repository-fields.html). Nexus Repository returns a generic `HTTP 404` response when it blocks a request without surfacing the specific reason. To see why a package was blocked, review the [Package Firewall logs](/package-firewall/logs). A package that Package Firewall cannot evaluate returns the same `HTTP 404` block response if your policy sets the [action for packages that cannot be evaluated](/package-firewall/policy#action-when-a-policy-cannot-be-evaluated) to **Block (Fail-close)**. Review the [Package Firewall logs](/package-firewall/logs) to confirm the reason. > [!NOTE] > > **Sonatype Nexus Repository requirement** > > You must have a Sonatype Nexus Repository instance with permission to create proxy repositories and configure credentials. ## Configure the Package Firewall Complete the following steps to integrate Sonatype Nexus Repository with the Endor Labs Package Firewall: 1. [Create an API key for the Package Firewall](#create-an-api-key-for-the-package-firewall). 2. [Configure Sonatype Nexus Repository](#configure-sonatype-nexus-repository). 3. [Set up local package manager clients](#set-up-local-package-manager-clients). 4. [Verify your setup](#verify-your-setup). > [!NOTE] > > If you use Endor Labs with an EU tenant, use `https://factory.eu.endorlabs.com` instead of `https://factory.endorlabs.com`. ### Create an API key for the Package Firewall Create an API key dedicated to the Package Firewall so that Sonatype Nexus Repository can authenticate to it. You can create it through one of the following methods: * Using the Endor Labs user interface, with the **Package Firewall User** role. See [API keys](/platform-administration/api-keys#create-an-api-key-through-the-endor-labs-user-interface) to learn more. * Using endorctl, with the `SYSTEM_ROLE_PACKAGE_FIREWALL` role. Make sure to [install and configure endorctl](/developers-api/cli/install-and-configure) before you create the key. To create the key using endorctl, run the following command and replace: * `` with your namespace. * `` with the name of the API key for the Package Firewall use case. * `` with the API key expiration in ISO 8601 UTC format, for example `2026-12-31T23:59:59Z`. ```bash theme={null} export NAMESPACE="" export KEY_NAME="" endorctl api create -r APIKey -n "$NAMESPACE" --data '{ "meta": { "name": "'"$KEY_NAME"'" }, "spec": { "permissions": { "roles": ["SYSTEM_ROLE_PACKAGE_FIREWALL"] }, "expiration_time": "" }, "propagate": true }' ``` From the response, save the following values in a secure location. Use them as your Package Firewall credentials when you configure the Nexus Repository proxy repository. * **API key:** `spec.key` * **API secret:** `spec.secret` ### Configure Sonatype Nexus Repository Configure a proxy repository in Nexus Repository for each package type you want to route through the Package Firewall. A proxy repository fetches artifacts from an upstream source, so you set the Package Firewall URL as the remote storage. The remaining repository settings, such as blob store and cleanup policies, are specific to Nexus Repository. Configure them based on your requirements. > [accordion] Configure Nexus Repository for an npm proxy repository > > 1. Sign in to Sonatype Nexus Repository. > 2. Select **Settings** > **Repository** > **Repositories**. > 3. Click **Create repository**. > 4. Select **npm (proxy)** as the recipe. > 5. Enter the repository name, such as `endor-firewall-npm`. > 6. In **Remote Storage**, enter `https://factory.endorlabs.com/v1/namespaces//firewall/npm/`. Replace `` with your Endor Labs namespace. > 7. Select **Authentication** under **HTTP Authentication**. > 8. In **Authentication type**, choose **Username**. > 9. Enter the API key as the **Username** and the API secret as the **Password**. > 10. Click **Create repository**. > [accordion] Configure Nexus Repository for a PyPI proxy repository > > 1. Sign in to Sonatype Nexus Repository. > 2. Select **Settings** > **Repository** > **Repositories**. > 3. Click **Create repository**. > 4. Select **pypi (proxy)** as the recipe. > 5. Enter the repository name, such as `endor-firewall-pypi`. > 6. In **Remote Storage**, enter `https://factory.endorlabs.com/v1/namespaces//firewall/pypi/`. Replace `` with your Endor Labs namespace. > 7. Select **Authentication** under **HTTP Authentication**. > 8. In **Authentication type**, choose **Username**. > 9. Enter the API key as the **Username** and the API secret as the **Password**. > 10. Click **Create repository**. > [accordion] Configure Nexus Repository for a Go proxy repository > > 1. Sign in to Sonatype Nexus Repository. > 2. Select **Settings** > **Repository** > **Repositories**. > 3. Click **Create repository**. > 4. Select **go (proxy)** as the recipe. > 5. Enter the repository name, such as `endor-firewall-go`. > 6. In **Remote Storage**, enter `https://factory.endorlabs.com/v1/namespaces//firewall/go/`. Replace `` with your Endor Labs namespace. > 7. Select **Authentication** under **HTTP Authentication**. > 8. In **Authentication type**, choose **Username**. > 9. Enter the API key as the **Username** and the API secret as the **Password**. > 10. Click **Create repository**. > > To give clients a single endpoint that resolves across multiple Go proxy repositories, create a **go (group)** repository and add `endor-firewall-go` as a member. For more information, refer to [Repository types](https://help.sonatype.com/en/repository-types.html). > [accordion] Configure Nexus Repository for a Maven proxy repository > > 1. Sign in to Sonatype Nexus Repository. > 2. Select **Settings** > **Repository** > **Repositories**. > 3. Click **Create repository**. > 4. Select **maven2 (proxy)** as the recipe. > 5. Enter the repository name, such as `endor-firewall-maven`. > 6. In **Remote Storage**, enter `https://factory.endorlabs.com/v1/namespaces//firewall/maven/`. Replace `` with your Endor Labs namespace. > 7. Select **Authentication** under **HTTP Authentication**. > 8. In **Authentication type**, choose **Username**. > 9. Enter the API key as the **Username** and the API secret as the **Password**. > 10. Click **Create repository**. > > If you have a Maven group repository that combines multiple repositories, make sure no other member proxies Maven Central directly. Nexus Repository returns the first member that has the component, so a member with its own path to the public registry serves packages Package Firewall blocked. > [accordion] Configure Nexus Repository for a NuGet proxy repository > > 1. Sign in to Sonatype Nexus Repository. > 2. Select **Settings** > **Repository** > **Repositories**. > 3. Click **Create repository**. > 4. Select **nuget (proxy)** as the recipe. > 5. Enter the repository name, such as `endor-firewall-nuget`. > 6. In **Protocol version**, choose **NuGet V3**. > 7. In **Remote Storage**, enter `https://factory.endorlabs.com/v1/namespaces//firewall/nuget/v3/index.json`. Replace `` with your Endor Labs namespace. > 8. Select **Authentication** under **HTTP Authentication**. > 9. In **Authentication type**, choose **Username**. > 10. Enter the API key as the **Username** and the API secret as the **Password**. > 11. Click **Create repository**. > [accordion] Configure Nexus Repository for a RubyGems proxy repository > > 1. Sign in to Sonatype Nexus Repository. > 2. Select **Settings** > **Repository** > **Repositories**. > 3. Click **Create repository**. > 4. Select **rubygems (proxy)** as the recipe. > 5. Enter the repository name, such as `endor-firewall-gems`. > 6. In **Remote Storage**, enter `https://factory.endorlabs.com/v1/namespaces//firewall/gem/`. Replace `` with your Endor Labs namespace. > 7. In **Maximum component age** and **Maximum metadata age**, enter `0`. > 8. Select **Not found cache enabled** and set **Not found cache TTL** to `1`. > 9. Select **Authentication** under **HTTP Authentication**. > 10. In **Authentication type**, choose **Username**. > 11. Enter the API key as the **Username** and the API secret as the **Password**. > 12. Click **Create repository**. ### Set up local package manager clients Update your package manager client to use the Nexus Repository proxy repository as its source, routing all package installations through Package Firewall instead of a public registry. Nexus Repository serves each repository at `https:///repository//`. Replace `` with your Nexus Repository host, and the port if your instance uses one, such as `nexus.example.com:8081`. Replace `` with the repository you created. Each example includes the credentials to add when your proxy repository requires authentication. Omit them if your proxy repository allows anonymous read access. Replace `` and `` with your Nexus Repository credentials, not the Endor Labs API key and secret stored on the proxy repository. > [accordion] npm > > Run the following command to point npm at the proxy repository. > > ```bash theme={null} > npm config set registry https:///repository/endor-firewall-npm/ > ``` > > If your proxy repository requires authentication, encode your credentials as a Base64 string. > > ```bash theme={null} > echo -n ":" | base64 > ``` > > Add the following lines to your `.npmrc` file at the project level, or in the user-level file at `~/.npmrc`. Replace `` with the string you generated. > > ```text theme={null} > ///repository/endor-firewall-npm/:_auth= > always-auth=true > ``` > > Run `npm config get registry` to confirm the registry matches the repository URL. > > For more information, refer to [npm registry documentation](https://help.sonatype.com/en/npm-registry.html). > [accordion] pip > > Add the following lines to your `pip.conf` file. > > ```text theme={null} > [global] > index-url = https:///repository/endor-firewall-pypi/simple > ``` > > If your proxy repository requires authentication, include your credentials in the index URL. > > ```text theme={null} > [global] > index-url = https://:@/repository/endor-firewall-pypi/simple > ``` > > Run `pip3 config list | grep index-url` to confirm the index URL matches the repository URL. > > For more information, refer to [Configure PyPI with Nexus](https://help.sonatype.com/en/configure-pypi-with-nexus.html). > [accordion] Go > > Run the following command to point the Go module proxy at the repository. > > ```bash theme={null} > go env -w GOPROXY=https:///repository/endor-firewall-go/ > ``` > > If your proxy repository requires authentication, Go reads your credentials from a `.netrc` file rather than from the proxy URL. > > Run `go env GOPROXY` to confirm the proxy matches the repository URL. > > For more information, refer to [Configure Go with Nexus](https://help.sonatype.com/en/configure-go-with-nexus.html). > [accordion] Maven > > Add a mirror to your `~/.m2/settings.xml` file that points at the proxy repository. If your proxy repository requires authentication, add a server with the same `` as the mirror. > > ```xml theme={null} > > > > endor-firewall > Endor Package Firewall > central > https:///repository/endor-firewall-maven/ > > > > > endor-firewall > > > > > > ``` > > Run `mvn dependency:resolve` to confirm Maven resolves through the mirror. > > For more information, refer to [Maven repository documentation](https://help.sonatype.com/en/maven-repositories.html). > [accordion] NuGet > > Add the following to your `nuget.config` file to point NuGet at the proxy repository. If your proxy repository requires authentication, add the credentials as shown, otherwise skip the `packageSourceCredentials` block. > > ```xml theme={null} > > > > > > > > > > > > > > ``` > > For more information, refer to [NuGet repository documentation](https://help.sonatype.com/en/nuget-repositories.html). > [accordion] Bundler > > Run the following commands to set the proxy repository as the Bundler mirror for rubygems.org. If your proxy repository allows anonymous read access, skip the second command. > > ```bash theme={null} > bundle config set --global mirror.https://rubygems.org/ https:///repository/endor-firewall-gems/ > bundle config set --global : > ``` > > Run `bundle config get mirror.https://rubygems.org/` to confirm the mirror matches the repository URL. > > Set the mirror with `--global` as shown, not inside a project. A mirror in a project's `.bundle/config` overrides the global mirror for that project. > [accordion] gem > > Run the following commands to make the proxy repository the only gem source. If your proxy repository allows anonymous read access, remove `:@` from the URL. > > ```bash theme={null} > gem sources --add https://:@/repository/endor-firewall-gems/ > gem sources --remove https://rubygems.org/ > ``` > > Run `gem sources --list` to confirm that the proxy repository is the only source. > > For more information, refer to [RubyGems repositories](https://help.sonatype.com/en/rubygems-repositories.html). ### Verify your setup To verify your setup, install a package that Endor Labs has classified as malware. Package Firewall should block the installation and return an `HTTP 404`. The following are examples of packages classified as malware by Endor Labs. > [accordion] npm > > Run the following command to test Package Firewall with npm. > > ```bash theme={null} > npm install endor-firewall-test@1.0.0 > ``` > > When Package Firewall blocks the package, the output looks similar to the following. The `E404` error code and `404 Not Found` response confirm that the firewall blocked the package. > > ```bash theme={null} > npm error code E404 > npm error 404 Not Found - GET https://nexus.example.com/repository/endor-firewall-npm/endor-firewall-test/-/endor-firewall-test-1.0.0.tgz - Package 'endor-firewall-test' not found > npm error 404 > npm error 404 'endor-firewall-test@https://nexus.example.com/repository/endor-firewall-npm/endor-firewall-test/-/endor-firewall-test-1.0.0.tgz' is not in this registry. > npm error 404 > npm error 404 Note that you can also install from a > npm error 404 tarball, folder, http url, or git url. > ``` > [accordion] pip > > Run the following command to test Package Firewall with pip. > > ```bash theme={null} > pip3 install endor-firewall-test==1.0.0 > ``` > > When Package Firewall blocks the package, the output looks similar to the following. The `404` response confirms that the firewall blocked the package. > > ```bash theme={null} > Looking in indexes: https://nexus.example.com/repository/endor-firewall-pypi/simple > Collecting endor-firewall-test==1.0.0 > ERROR: HTTP error 404 while getting https://nexus.example.com/repository/endor-firewall-pypi/packages/endor-firewall-test/1.0.0/endor_firewall_test-1.0.0-py3-none-any.whl#sha256=4df734939186708c595e72e50f5d31296d2ea9e54d5a0afc9e69d4e7d6f0d4b9 (from https://nexus.example.com/repository/endor-firewall-pypi/simple/endor-firewall-test/) (requires-python:>=3.7) > > ERROR: Could not install requirement endor-firewall-test==1.0.0 from https://nexus.example.com/repository/endor-firewall-pypi/packages/endor-firewall-test/1.0.0/endor_firewall_test-1.0.0-py3-none-any.whl#sha256=4df734939186708c595e72e50f5d31296d2ea9e54d5a0afc9e69d4e7d6f0d4b9 because of HTTP error 404 Client Error: Not Found for url: https://nexus.example.com/repository/endor-firewall-pypi/packages/endor-firewall-test/1.0.0/endor_firewall_test-1.0.0-py3-none-any.whl (from https://nexus.example.com/repository/endor-firewall-pypi/simple/endor-firewall-test/) (requires-python:>=3.7) > ``` > [accordion] Go > > Run the following command to test Package Firewall with Go. > > ```bash theme={null} > go install github.com/endorlabstest/endor-firewall-test@v1.0.0 > ``` > > When Package Firewall blocks the package, the output looks similar to the following. The `404` response confirms that the firewall blocked the package. > > ```bash theme={null} > go: github.com/endorlabstest/endor-firewall-test@v1.0.0: reading https://nexus.example.com/repository/endor-firewall-go/github.com/endorlabstest/endor-firewall-test/@v/v1.0.0.info: 404 > ``` > [accordion] Maven > > Add `io.github.endorlabs:endor-java-webapp-demo:4.1` as a dependency in your `pom.xml`, then run the following command to test Package Firewall with Maven. > > ```bash theme={null} > mvn dependency:resolve > ``` > > When Package Firewall blocks the package, the output looks similar to the following. Nexus Repository doesn't serve the artifact, so resolution fails with a missing POM warning and a `Could not find artifact` error. > > ```bash theme={null} > [INFO] Scanning for projects... > [INFO] > [INFO] -----------------------< com.example:my-app >------------------------ > [INFO] Building my-app 1.0.0 > [INFO] from pom.xml > [INFO] --------------------------------[ jar ]--------------------------------- > Downloading from endor-firewall: https://nexus.example.com/repository/endor-firewall-maven/io/github/endorlabs/endor-java-webapp-demo/4.1/endor-java-webapp-demo-4.1.pom > [WARNING] The POM for io.github.endorlabs:endor-java-webapp-demo:jar:4.1 is missing, no dependency information available > Downloading from endor-firewall: https://nexus.example.com/repository/endor-firewall-maven/io/github/endorlabs/endor-java-webapp-demo/4.1/endor-java-webapp-demo-4.1.jar > [INFO] ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] ------------------------------------------------------------------------ > [INFO] Total time: 4.000 s > [INFO] Finished at: 2026-06-09T14:11:11Z > [INFO] ------------------------------------------------------------------------ > [ERROR] Failed to execute goal on project my-app: Could not resolve dependencies for project com.example:my-app:jar:1.0.0 > [ERROR] dependency: io.github.endorlabs:endor-java-webapp-demo:jar:4.1 (compile) > [ERROR] Could not find artifact io.github.endorlabs:endor-java-webapp-demo:jar:4.1 in endor-firewall (https://nexus.example.com/repository/endor-firewall-maven) > [ERROR] > ``` > [accordion] NuGet > > Run the following command to test Package Firewall with NuGet. > > ```bash theme={null} > dotnet add package newtonsoft.json.bson --version 1.0.3 --source https://nexus.example.com/repository/endor-firewall-nuget/index.json > ``` > > When Package Firewall blocks the package, you will see a `404` response confirming that the firewall blocked the package. > [accordion] Bundler > > Run the following commands in an empty directory to test Package Firewall with Bundler. > > ```bash theme={null} > bundle init > bundle add endor-firewall-test --version 1.0.0 > ``` > > `bundle add` writes the test gem to the `Gemfile` even though the installation is blocked. Delete the directory after the test, or later Bundler commands try to install the gem again and Package Firewall records a new block event each time. > > When Package Firewall blocks the package, the output looks similar to the following. The `Not Found 404` response confirms that the firewall blocked the package. > > ```bash theme={null} > Fetching gem metadata from https://nexus.example.com/repository/endor-firewall-gems/. > Fetching endor-firewall-test 1.0.0 > Retrying download gem from https://@nexus.example.com/repository/endor-firewall-gems/ due to error (2/4): Gem::RemoteFetcher::FetchError bad response Not Found 404 (https://@nexus.example.com/repository/endor-firewall-gems/gems/endor-firewall-test-1.0.0.gem) > Retrying download gem from https://@nexus.example.com/repository/endor-firewall-gems/ due to error (3/4): Gem::RemoteFetcher::FetchError bad response Not Found 404 (https://@nexus.example.com/repository/endor-firewall-gems/gems/endor-firewall-test-1.0.0.gem) > Retrying download gem from https://@nexus.example.com/repository/endor-firewall-gems/ due to error (4/4): Gem::RemoteFetcher::FetchError bad response Not Found 404 (https://@nexus.example.com/repository/endor-firewall-gems/gems/endor-firewall-test-1.0.0.gem) > Bundler::HTTPError: Could not download gem from https://@nexus.example.com/repository/endor-firewall-gems/ due to underlying error @nexus.example.com/repository/endor-firewall-gems/gems/endor-firewall-test-1.0.0.gem)> > ``` > [accordion] gem > > Run the following command to test Package Firewall with gem. > > ```bash theme={null} > gem install endor-firewall-test -v 1.0.0 > ``` > > When Package Firewall blocks the package, the output looks similar to the following. The `Not Found 404` response confirms that the firewall blocked the package. > > ```bash theme={null} > ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) > bad response Not Found 404 (Gem::RemoteFetcher::FetchError) > ``` After you confirm that Package Firewall blocks malware, you can view the recorded events. See [View Package Firewall logs](/package-firewall/logs) to learn more. ## Troubleshooting and FAQ > [accordion] What if Nexus Repository has already cached a package that is declared malicious later? > > If Endor Labs flags a package as malware after Nexus Repository cached it, Nexus Repository continues to serve it until the cache expires. Reduce the component and metadata maximum age on the proxy repository to shorten that window. > [accordion] Why does a package stay blocked after I add an exception? > > Nexus Repository caches negative responses in its not found cache. After Package Firewall starts allowing a package, Nexus Repository can keep returning `HTTP 404` until that entry expires. Invalidate the cache on the proxy repository to pick up the change immediately. > [accordion] How do I troubleshoot connection issues? > > * Verify that the Package Firewall URL in the proxy repository remote storage is correct. > * Ensure network connectivity from Nexus Repository to Package Firewall. > * Ensure your network firewall rules allow outbound connections from Nexus Repository. > [accordion] How do I troubleshoot authentication issues? > > * Verify the API key and secret are correct and that the key has the **Package Firewall User** role. > * Confirm that **Authentication** is selected on the proxy repository and that the credentials are saved. > * Check the Nexus Repository logs for authentication errors. > [accordion] Does Package Firewall work with a self-hosted Nexus Repository? > > Yes. Package Firewall behaves the same whether Nexus Repository runs on-premise or in the cloud. Any IP allowlisting depends on the network rules of your organization. Package Firewall and Nexus Repository don't impose additional restrictions. # Package Firewall troubleshooting and FAQ Source: https://docs.endorlabs.com/package-firewall/troubleshooting/index Answers to common questions about how the Package Firewall handles malware, transitive dependencies, performance, and version ranges. > [accordion] Does the Package Firewall block installation of all versions of a malicious package? > > No. The Package Firewall blocks only the specific package versions that Endor Labs flags as malware in the malware database. > [accordion] How does the Package Firewall handle transitive dependencies? > > The Package Firewall checks each package individually when the client requests it during installation. If any dependency, direct or transitive, contains malware, the firewall blocks that specific package installation and stops the overall installation process. > [accordion] Does the Package Firewall slow down package installations? > > No. The impact on installation time is minimal. > [accordion] What happens with package version ranges like `npm install express@^4.0.0`? > > The package manager client resolves version ranges as usual. The Package Firewall checks the resolved version when the client requests it for download. If Endor Labs flags that version as malware, the firewall blocks the installation. # User attribution Source: https://docs.endorlabs.com/package-firewall/user-attribution/index Record the developer behind each Package Firewall request instead of the shared API key. Package Firewall authenticates every request with one API key, so each event in the logs shows that key as the user instead of a person. User attribution adds a label to the credentials on each request, and Package Firewall records that label as the user on the event. Attribution is informational. Your API key and secret still control access. The label does not grant or restrict any permission, and rotating the key does not change how attribution works. You can view the attributed user on each event and query the logs by attributed user. See [View Package Firewall logs](/package-firewall/logs) to learn more. ## How the label reaches Package Firewall A client puts the label in the Basic-auth username, using the following format. The password stays your API secret. ```text theme={null} base64(base64("userattr:" +