- Scanning
- Run a scan
- Scan Source Code
Source Code Scanning
Source Code Scanning helps you identify security vulnerabilities directly in your source code before they reach production. By connecting your source code repository to Ostorlab, you can scan your projects for common security issues, review actionable findings, and prioritize remediation early in the development lifecycle.
This guide walks you through configuring a source code integration and launching your first scan.
⚙️ Configure a Source Code Integration
Before you can scan a repository from a Git provider, you need to connect the provider to Ostorlab.
- Click the menu icon on the left of the top bar.
- Click Integrations/API, then Integrations.

- Select the Source Code category.

- Click Configure on the source code provider you want to connect (GitHub, GitLab, Bitbucket, Azure DevOps, or Self-Hosted Git).

- Follow the provider-specific configuration steps to authorize access to your repositories.
Once the integration is complete, your repositories will be available when creating a Source Code Scan. To scan code without connecting a provider, select the Repository Archive asset instead and upload an archive of your repository.
🚀 Create a New Source Code Scan
Step 1: Run a New Scan
- Click New Scan in the top bar.

- (Optional) Provide a descriptive title for your security audit in the Title field.
Step 2: Select the Scan Asset
- Select Code Repository as the scan asset.

- Choose the repository you want to scan.
- Select the Target Type (Branch, Tag, or Commit) and the branch, tag, or commit to scan.

- Click Continue. The Extra Context step that follows is optional: click Continue again to skip it.
Step 3: Select a Scan Profile
Select the scan profile, then click Continue:
- Source Code Fast Scan: a fast scan of the source code in the repository.
- Source Code Deep Agentic Scan: an agentic, AI-driven scan that runs using Ostorlab’s Cybermodels or your custom API key via Bring Your Own Key (BYOK).
- Repository Single Vulnerability Assessment: identifies and confirms exploitable vulnerabilities through targeted validation.

The Advanced Settings step that follows is optional. For the Source Code Deep Agentic Scan, the next steps configure the AI agents.
Step 4: Review the Guardrails
Choose whether the AI agents run risky actions on their own or ask you first, and optionally set the vulnerability scope, blocked IPs, and additional instructions. Click Continue.

Step 5: Configure the AI Provider
Select the AI provider you want to use for the scan: Cybermodels runs the scan with your Cybermodels tokens, while BYOK Simple and BYOK Advanced use your own API key. Click Continue.

Step 6: Configure the Effort Level
The effort level determines how extensively Ostorlab analyzes your repository. Higher effort levels provide broader code coverage and more in-depth analysis, but may increase scan duration and AI token consumption.
- Choose the effort level that best fits your repository and security requirements:
- Core (50 tokens): Performs a fast baseline analysis, making it ideal for quick security checks during development.
- Advanced (200 tokens): Provides a deeper analysis with broader code coverage to identify a wider range of security issues.
- Elite (400 tokens): Performs the most comprehensive analysis, maximizing coverage to detect complex and difficult-to-find vulnerabilities.
- Custom Tokens: sets your own token budget. Click Estimate this scan to get a token estimate and an effort recommendation for your repository.

- Click Continue.
Step 7: Start the Scan
The Prompts and Tags steps are optional. Click Start scan to start the scan.

Step 8: Review the Results
Follow the scan from Scans in the top bar. Once the scan is complete, open it to review the detected findings.
Each finding includes its severity, affected files, and remediation guidance to help you prioritize and resolve security issues.

🌍 Supported Languages
The level of depth and analysis technique differs based on whether a repository is scanned with Fast Scan (deterministic SAST, secrets, and SCA) or Deep Agentic Scan (AI-driven autonomous reasoning, cross-file data flows, and logic flaw validation).
| Language / Framework | Fast Scan | Deep Agentic Scan | Scope & Analyzers |
|---|---|---|---|
| Python | Supported | Supported | SAST rules, OSV lockfiles (requirements.txt, Pipfile.lock, poetry.lock), AI context tracing, logic flaw discovery |
| JavaScript / TypeScript | Supported | Supported | SAST rules, OSV (package-lock.json, yarn.lock, pnpm-lock.yaml), TruffleHog, AI taint analysis, prototype pollution |
| Java | Supported | Supported | SAST rules, OSV (pom.xml, build.gradle), Spring Security audit, AI exploit chaining |
| Kotlin | Supported | Supported | SAST rules, OSV (build.gradle.kts), Android and backend security logic |
| Go (Golang) | Supported | Supported | SAST rules, OSV (go.sum, go.mod), concurrency issues, memory/goroutine patterns, AI logic analysis |
| C / C++ | Supported | Supported | SAST pattern checks, memory safety misuses, buffer handling, AI semantic evaluation |
| C# / .NET | Supported | Supported | SAST rules, OSV (packages.lock.json), ASP.NET security architecture, deserialization |
| PHP | Supported | Supported | SAST rules, OSV (composer.lock), SQL injection, object injection, AI auth flows |
| Ruby | Supported | Supported | SAST rules, OSV (Gemfile.lock), Rails security patterns, mass assignment |
| Rust | Supported | Supported | SAST rules, OSV (Cargo.lock), unsafe block audits, panic patterns |
| Scala | Supported | Supported | SAST rules, OSV (build.sbt), functional pattern security |
| Swift / Objective-C | Supported | Supported | SAST rules, OSV (Package.resolved, Podfile.lock), iOS secure storage & IPC |
| Dart / Flutter | Supported | Supported | OSV (pubspec.lock), secret detection, mobile logic exploration |
| Solidity / Smart Contracts | Secrets & Static | Supported | Reentrancy, access control bypasses, oracle manipulation, AI reasoning |
| Terraform / IaC / Docker | Supported | Supported | IaC misconfigurations, container privilege escalation, secret exposures |
| Other Languages (Elixir, Erlang, Haskell, Julia, Lua, Perl, COBOL, Fortran, etc.) | Secrets & SCA | Supported | TruffleHog secret scanning, lockfile SCA (via OSV), and generalized LLM code reasoning |