You can also use GitHub Actions to scan demo projects.
Quick start with GitHub App
This guide provides instructions on how to get started with Endor Labs using the Endor Labs GitHub App. You can install the GitHub App or the GitHub App (Pro).
Note
The GitHub App (Pro) facilitates PR remediation. See PR remediation for more information.
Prerequisites for GitHub App
Before installing and scanning projects with Endor Labs GitHub App, make sure you have:
A GitHub cloud account and organization. If you don’t have one, create one at GitHub.
Administrative permissions to your GitHub organization. Installing the Endor Labs GitHub App in your organization requires approval or permissions from your GitHub organizational administrator.
Endor Labs GitHub App requires read permissions to Dependabot alerts, actions, administration, checks, code, commit statuses, issues, metadata, packages, pull requests, repository hooks, and security events. It does not need write access to any resources.
Quickstart with GitHub App
Sign in to Endor Labs and select Getting Started from the left sidebar.
Select SCAN WITH GITHUB APP and click Install GitHub App.
You can only install either the GitHub App or the GitHub App (Pro) in your environment.
Choose the user and the organization where you wish to install the app.
Select whether to install and authorize Endor Labs on all your repositories or select the specific repositories that you wish to scan.
Click Install & Authorize.
If the button to install says Install and Request instead of Install and Authorize, you don’t have permission to install the GitHub App. Select Install and Request to notify your organizational administrator of your request.
Select the Endor Labs namespace that you want to use and click Next.
Select the scan types to enable under SCANNERS.
The following scanners are available:
SCA: Perform software composition analysis and discover AI models used in your repository.
RSPM: Scan the repository for misconfigurations.
Secret: Scan the repository for exposed secrets.
CI/CD: Scan the repository and identify all the CI/CD tools used in the repository.
SAST: Scan your source code for weakness and generate SAST findings.
Select Include Archived Repositories to scan your archived repositories. By default, the GitHub archived repositories aren’t scanned.
Select the PULL REQUEST SCANS to automatically scan the PRs submitted by users.
Select Pull Request Comments to enable GitHub Actions to comment on PRs for policy violations.
In Define Scanning Preferences, select either:
Quick Scan to gain rapid visibility into your software composition. It performs dependency resolution but does not conduct reachability analysis to prioritize vulnerabilities. The quick scan enables users to swiftly identify potential vulnerabilities in dependencies, ensuring a smoother and more secure merge into the main branch.
Full Scan to perform dependency resolution, reachability analysis, and generate call graphs for supported languages and ecosystems. This scan enables users to get complete visibility and identifies all issues dependencies, call graph generation before merging into the main branch. Full scans may take longer to complete, potentially delaying PR merges.
See GitHub scan options for more information on the scans that you can do with the GitHub App.
Click Create.
You will be redirected back to Endor Labs.
After installation, Endor Labs scans your repositories and generates findings. Subsequently, Endor Labs scans your repository every 24 hours. See Findings for more information on the findings generated by the scans.
Select your project to view the findings page. See Findings for more information.
Quick start with endorctl
This guide provides step-by-step instructions to set up and configure an Endor Labs tenant while getting started with your first project scan in your local system.
Use the following steps to scan your first project with Endor Labs:
Install or update the Endor Labs CLI (endorctl) for your operating system.
macOS
brew tap endorlabs/tap
brew install endorctl
npm install -g endorctl
### Run the following command to get the npm global bin directory:npm config get prefix
### Open your shell configuration file and insert the path you obtained with the above command:exportPATH="/path/to/npm/global/bin:$PATH"### Reload your shell configuration and verify endorctl is installed:endorctl --version
### Download the latest CLI for MacOS ARM64curl https://api.endorlabs.com/download/latest/endorctl_macos_arm64 -o endorctl
### Verify the checksum of the binaryecho"$(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 executablechmod +x ./endorctl
### Create an alias endorctl of the binary to ensure it is available in other directoryaliasendorctl="$PWD/endorctl"
### Download the latest CLI for MacOS AMD64curl https://api.endorlabs.com/download/latest/endorctl_macos_amd64 -o endorctl
### Verify the checksum of the binaryecho"$(curl -s https://api.endorlabs.com/sha/latest/endorctl_macos_amd64) endorctl"| shasum -a 256 -c
### Modify the permissions of the binary to ensure it is executablechmod +x ./endorctl
### Create an alias endorctl of the binary to ensure it is available in other directoryaliasendorctl="$PWD/endorctl"
Linux
npm install -g endorctl
### Run the following command to get the npm global bin directory:npm config get prefix
### Open your shell configuration file and insert the path you obtained with the above command:exportPATH="/path/to/npm/global/bin:$PATH"### Reload your shell configuration and verify endorctl is installed:endorctl --version
### Download the latest CLI for Linux amd64curl https://api.endorlabs.com/download/latest/endorctl_linux_amd64 -o endorctl
### Verify the checksum of the binaryecho"$(curl -s https://api.endorlabs.com/sha/latest/endorctl_linux_amd64) endorctl"| sha256sum -c
### Modify the permissions of the binary to ensure it is executablechmod +x ./endorctl
### Create an alias endorctl of the binary to ensure it is available in other directoryaliasendorctl="$PWD/endorctl"
### Download the latest CLI for Linux arm64curl https://api.endorlabs.com/download/latest/endorctl_linux_arm64 -o endorctl
### Verify the checksum of the binaryecho"$(curl -s https://api.endorlabs.com/sha/latest/endorctl_linux_arm64) endorctl"| sha256sum -c
### Modify the permissions of the binary to ensure it is executablechmod +x ./endorctl
### Create an alias endorctl of the binary to ensure it is available in other directoryaliasendorctl="$PWD/endorctl"
Windows
npm install -g endorctl
### Run the following command to get the npm global bin directory:npm config get prefix
### Add the path from the above command to the System property 'Path' in your Environment variable settings.### Open a new Command prompt and verify endorctl is installed:endorctl --version
### Download the latest CLI for Windowscurl -O https://api.endorlabs.com/download/latest/endorctl_windows_amd64.exe
### Check the expected checksum of the binary filecurl https://api.endorlabs.com/sha/latest/endorctl_windows_amd64.exe
### Verify the expected checksum and the actual checksum of the binary matchcertutil -hashfile .\endorctl_windows_amd64.exe SHA256
### Rename the binary fileren endorctl_windows_amd64.exe endorctl.exe
To authenticate your client with Endor Labs, utilize the built-in command endorctl init along with an external identity provider. Endor Labs supports multiple identity providers, including Google, GitHub, GitLab, Email link authentication, and Custom Identity Provider through Enterprise SSO. Examples of such enterprise SSO solutions include Google, GitHub, GitLab, or your organization’s specific choice.
Upon successful authentication to Endor Labs using endorctl, proceed to clone the repository you intend to scan. If you prefer initiating with a dummy app for scanning, feel free to skip to the next step.
To clone a Git repository, use the git clone command followed by the clone link of the repository. You can find the URL on the repository’s page on a platform like GitHub or GitLab. For example,
When performing a scan, you can specify a namespace. If left unspecified, projects are created in the root namespace of the tenant. This is important if the user or token has restricted access to specific namespaces. See Namespaces in Endor Labs to learn more about namespaces.
Scan for OSS risk
Follow these steps to scan with Endor Labs for open source risk:
A runtime environment and build tools for supported software development languages your team uses must be installed on any system used for testing. For more information, see Supported languages and frameworks.
For more information on supported languages, package managers and build systems and the requirements for each language, see their respective page.
To run a complete and accurate scan with Endor Labs, ensure that the software can be successfully built, incorporating well-formatted manifest files. To maximize the benefits of an Endor Labs OSS scan, you should perform a comprehensive testing as a post-build step, either locally or in a CI pipeline. Use the following commands to verify that the software can be built successfully with well-formatted manifest files before initiating the scan.
mvn dependency:tree
mvn clean install
gradle dependencies --configuration compileClasspath
./gradlew assemble
# Use `gradle assemble` if you do not have a gradle wrapper# in your repository
To scan and monitor all packages in a given repository from the root of the repository, run the following command:
endorctl scan
Scanning an example repository
To scan an example repository https://github.com/OWASP-Benchmark/BenchmarkJava.git, you must perform the following steps after successfully authenticating to Endor Labs:
Clone the repository https://github.com/OWASP-Benchmark/BenchmarkJava.git
The following procedure should be used to scan with Endor Labs for potential secrets leaked into your source code.
To scan for all potentially leaked secrets in the checked out branch of your repository, run the following command:
endorctl scan --secrets
Often, secrets are leaked outside the context of your repositories main branch and can be found in older branches or those that are under active development. To identify these, Endor Labs inspects the Git logs of the repository.
To scan for all potentially leaked secrets in all branches of your repository, run the following command:
endorctl scan --secrets --git-logs
Scan for GitHub misconfigurations
Endor Labs allows teams to scan their repository for configuration best practices in alignment with organizational policy.
Pre-requisites
To scan the GitHub repository, you must have:
The GitHub repository HTTPS clone URL
A personal access token with access administrative access to the repository. For help creating a personal access token see GitHub documentation.
If you are on a self-hosted GitHub Enterprise Server, you should also have:
The GitHub API URL (This is typically the FQDN of the GitHub server)
A local copy of the CA Certificate if the certificate is self-signed or from a private CA
Running a misconfiguration scan
To scan a GitHub repository for misconfigurations:
Export your personal access token as an environment variable:
exportGITHUB_TOKEN=<personal_access_token>
Scan the repository to retrieve configuration information and analyze the configuration against organizational policy or configuration best practices:
The Findings section provides a summary of vulnerabilities found in each project, categorized by severity:
C: Critical
H: High
M: Medium
L: Low
Under Packages, the number indicates the identified packages. Click on the icon next to the number to open a right sidebar containing the following details :
Project metadata: Information such as UUID, repository details, dependencies, and repository versions.
Findings: A breakdown of the detected vulnerabilities categorized by dependency, package, repository, secrets, and CI workflows.
Tools used during analysis: A list of tools involved in the scanning process.
Select your project to view its details. See Findings for more information.
Endor Labs License Types
Endor Labs application is available as the following offerings:
Offering
Description
Endor Core
Endor Core includes SCA with reachability, AI model discovery, OSS package/model curation, SBOM and VEX generation, and top 10 OSS risk detection.
Endor Pro
Endor Pro includes all components of Endor Core with upgrade impact analysis, container scanning, binary scanning, artifact signing, CI/CD security, GitHub security posture management, and GitHub Actions security.
Endor Patches
Endor Patches allows you to patch OSS vulnerabilities without upgrading dependencies. Available as standalone, or along with Endor Core or Endor Pro.
Endor Code
Endor Code includes SAST and secrets detection. Available as an addon with Endor Core or Endor Pro.
Endor SBOM Hub
Endor SBOM Hub allows you to store, manage, and analyze first-party and third-party SBOMs with continuous risk monitoring. Available as an addon with Endor Core or Endor Pro.
For more details on Endor Labs’ offerings and the features they include, see Pricing and packaging.
Endor Labs user interface
The Endor Labs user interface is designed for efficient navigation, with the primary menu located in the left sidebar.
To access the Endor Labs user interface, sign into Endor Labs with your credentials.
The Endor Labs user interface page is structured into 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.
Dashboard
The Dashboard gives a quick and clear view of your projectβs security status.
The AI Inventory page helps you find and evaluate AI models used in your projects, providing insights into their usage, status, and impact. These models are flagged during scans and are evaluated for risks and operational security.
Do not use! Draft content. Development in progress.
Vulnerabilities
Vulnerabilities are issues in software components that may introduce flaws that threaten the confidentiality, integrity, or availability of your software.
The Vulnerability Database feature allows users to search for security vulnerabilities in open-source software. By searching the top open-source vulnerabilities, you can make informed decisions before integrating them into your projects.
See Search Vulnerability Database for more information.
Tools
The Tools page lists all detected CI/CD tools in the environment. Users can filter these tools based on categories such as build systems, version control, and deployment tools, helping them identify and manage security risks effectively.
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.
The Access Control page lets you manage who can access your workspace and how they authenticate.
It includes the following features:
Auth Policy: Set rules for user authentication and access control, including password policies, multi-factor authentication (MFA) requirements, and session management settings, ensuring that only authorized users can access the system.
API Keys: Users can create and manage API keys to enable secure system access for automated processes, integrations, and external applications.
Custom Identity Provider: Connects third-party authentication providers to enable Single Sign-On (SSO) and centralized authentication for user.
Invitations: Users can send and manage invitations for new users to join the workspace. It allows to invite users via email, track the status of invitations, and resend or revoke invitations.
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.
The Notifications page keeps you updated on security events and policy violations.
It is organized into three categories:
Open: Displays active notifications that require attention.
Resolved: Displays notifications that have been addressed.
All: Displays a complete history of all notifications.
Users can set up notification integrations for email, Jira, Slack, Vanta, webhooks, GitHub 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.
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 certain findings can be marked as exceptions. This helps in filtering out known issues that have been 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 are used to detect and manage exposed secrets within the codebase. They help in identifying sensitive information.
CI/CD Rules: These are rules specifically designed to enforce security standards within CI/CD pipelines. They ensure that security checks are integral to the build process.
SAST Rules: These rules enable users to perform automated analysis on their source code to detect potential security vulnerabilities.
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 and features.
System Settings: These settings allow users to manage essential configurations such as Data Privacy, Endor Patches, Policies & Rules, and SBOM configurations.
Saved Filters: Users can create and manage reusable filters for findings and dependencies. They help users 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, DroidGPT, and C/C++ embeddings.
The Getting started page is designed to help 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.