This guide covers the prerequisites and steps to run an analysis so you can review the findings in Sembi ASPM.
Before you begin
Make sure the following requirements are met:
- Compatible Kiuwan Local Analyzer installed: Secret Scanning requires a Kiuwan Local Analyzer (KLA) build that includes support for the ASPM scanner. KLA automatically downloads the scanner component on its first run and whenever Kiuwan publishes a new version. Kiuwan manages the scanner version; you do not need to select it.
- Secret Scanning enabled: The feature must be enabled for your account and for your user on the target application. Otherwise, the scan is blocked.
- Scan allowance: Each account has a monthly Secret Scanning limit. Once you reach the limit, Secret Scanning is disabled until the allowance renews or you increase the limit.
- Valid credentials and application access: You must be authorized to analyze the target Kiuwan application. Use the same credentials as for other KLA analyses: a username and password or a Kiuwan API token. SSO and domain ID are also supported.
- Supported source: The source folder or artifact you want to analyze must be supported.
- Network connectivity: Your environment must be able to connect to the required Kiuwan and Sembi ASPM services, including those needed to download the scanner component.
Run the analysis
- Open Kiuwan Local Analyzer and sign in.
- Select an existing application or create an application for the source you want to analyze.
- Select the folder or artifact to analyze.
- In the analysis options, select Secret Scanning.
- Review the source-upload setting before you start the analysis. Choose the setting approved for your organization.
- Select Analyze.
- Monitor the Progress column until the analysis succeeds or fails.
- Select the status icon to open the execution log.
- When the analysis succeeds, select View results to open Sembi ASPM.
Verify the result
After a successful analysis, results appear in Sembi ASPM within the expected processing time. If the scan reports no findings, the application should show a clear no-findings state.
Document success, failure, partial-result, canceled, no-findings, and delayed-result states.
Run a Secret Scan from the Command Line
Use the standard Kiuwan Local Analyzer command agent.sh on Linux and macOS or agent.cmd on Windows, and add --scanners secret to run Secret Scanning.
Keep the authentication, application, and source-folder arguments required for your usual KLA analysis.
| Goal | Command |
| Code analysis and secret scan | |
| Secret scan only | |
| Code analysis only (unchanged) | |
Add your credentials as usual (--user/--pass, or --api-token, plus --domain-id if needed). Use -c to create the application if it does not exist yet.
| Option | Description |
-s, --source-path | Folder to scan. Required with --scanners. |
-n, --software-name | Kiuwan application name. Required with --scanners. |
-l, --label | Label for the analysis. |
-c, --create | Create the application in Kiuwan if it does not exist. |
--scanners | Comma-separated scanners to run. The only supported value is secret. Not case-sensitive. Turns secret scanning on. |
--aspm-only | Run only the secret scan and skip code analysis. Only valid together with --scanners. |
Required options and error messages
Specify the source path with --source-path (-s) and the application name with --software-name(-n). Use secret the value of --scanners.
If the command is missing a required option or contains an unsupported value, KLA displays one of the following messages:
| Message | Corrective action |
The following options are required in aspm scanner: --source-path (-s), --software-name (-n) | Provide both the source path and the application name. |
Invalid scanner: <value>. Supported value: secret | Replace the unsupported scanner value with secret: --scanners secret. |
--aspm=true requires --scanners. | Include --scanners secret when using --aspm=true. |
Analysis execution order
When both Secret Scanning and code analysis run, their execution order depends on how you start the analysis:
| Method | Execution order |
| Command line | Secret Scanning runs first, followed by code analysis. |
| Graphical interface | Code analysis runs first, followed by Secret Scanning. |