Skip to content

Creating a Scan with an SBOM or Lockfile

This guide walks you through uploading a Software Bill of Materials (SBOM) or lock file to improve your scan's findings in the application. An SBOM is a detailed list of all the components used in an application. Performing a scan with an SBOM extends dependency detection.


Steps to Create a Scan

1. Click "New Scan"

Start by clicking the New Scan icon in the top bar.

Top bar highlighting the 'New Scan' icon

2. Select Asset Type

Choose Android App or iOS App depending on your target scan. Supported formats are .apk, .aab, and .ipa.

Asset type selection showing Android and iOS options

3. Upload Application File

Drag and drop the application file onto the designated area, or click it to select the file.

Drag and drop area for the application file

4. Click "Continue"

Proceed by clicking the Continue button. The Extra Context step that follows is optional: click Continue again to skip it.

Continue button

5. Select Your Scan Profile

Choose one of the scan profiles, then click Continue:

  • Fast Scan: Static-only checks such as configuration issues, outdated dependencies, secrets, and vulnerable coding patterns.
  • Full Scan: Static, dynamic, and backend vulnerability checks.
  • Privacy Scan: Identifies privacy risks including exposed sensitive data and misconfigurations.
  • Mobile Deep Agentic Scan: AI-powered penetration testing for complex logical flaws and exploit validation.
  • Mobile Single Vulnerability Assessment: Validates and confirms exploitable vulnerabilities through targeted validation.
  • Mobile Shielding Scan: Evaluates obfuscation, anti-tampering, anti-debugging, and root detection protections.

Scan profile selection screen

6. Upload SBOM or Lock File

In the SBOM Files step, drag and drop your SBOM or lock file onto the upload area, or click it to select the file. The supported files are listed above the upload area.

SBOM or lock file uploaded in the SBOM Files step

7. Configure the Optional Steps

The next steps are optional. Depending on the profile, they include Test Credentials, Advanced Settings, Prompts, Custom Checks, and Tags.

Note: The custom scan agent feature may not be enabled for your account. Contact support for details about enabling custom agents to enhance your scans.

8. Start the Scan

Click Start scan in the summary panel on the right. The Fast Scan takes about 20 minutes.

Start scan button

9. Follow the Scan

A Scan created message confirms creation. To reopen the scan later, click the Scans icon in the top bar and select it from the list.

The scan in the scans list


10. Generate a gradle lockfile for Android

Check your project for a gradle.lockfile file. If it does not exist, follow these steps to generate one.

  • Add the following to your build.gradle.kts or build.gradle file:
    dependencyLocking {
        lockAllConfigurations()
    }
    

Generate a gradle lockfile for Android

11. Generate the Flutter lock file

Check your project for a pubspec.lock file. If it does not exist, you can generate one by running flutter pub get.

Generate the Flutter lock file

12. Generate an SBOM for Android, iOS or Flutter

Numerous SBOM generation tools are available that simplify the process of listing all the components of an application. We're going to use Syft to generate an SBOM for our Android, iOS or Flutter application.

In the root of your project, type syft . -o {file_format}, for example:

syft . -o spdx
Example output of SPDX SBOM for Android

Supported SBOM/Lock files

  • SPDX
  • CycloneDX
  • gradle.lockfile
  • pubspec.lock
  • buildscript-gradle.lockfile
  • pnpm-lock.yaml
  • package-lock.json
  • packages.lock.json
  • pom.xml
  • Gemfile.lock
  • yarn.lock
  • Cargo.lock
  • composer.lock
  • conan.lock
  • mix.lock
  • go.mod
  • requirements.txt
  • Pipfile.lock
  • poetry.lock