Scanning
Repository Scanning with DeepScan
DeepScan analyzes your entire codebase, not just recent pull requests, to find vulnerabilities that accumulate over time.
Overview
What Is DeepScan? #
DryRun Security's standard PR Code Review analyzes changes as they arrive in each pull request. This is highly effective for catching new vulnerabilities before they merge, but it doesn't address risk that was already present in the codebase before DryRun Security was installed - or vulnerabilities that were introduced gradually across many small commits.
DeepScan solves this by triggering a full-repository analysis. Rather than examining a diff, DeepScan ingests and analyzes the complete codebase, tracing data flows across files, identifying vulnerable patterns in legacy code, and surfacing risks that would never appear in a PR-only workflow.
Each DeepScan also builds or updates the repository's SecMap, a security context graph that connects application features and security controls to the code behind them.
Use cases
When to Use DeepScan #
DeepScan is most valuable in several scenarios:
- Initial onboardingRun a DeepScan when first connecting a repository to DryRun Security to establish your baseline security posture.
- After a security incidentUse DeepScan to sweep a repository for related vulnerabilities after a finding is reported.
- Compliance and audit preparationGenerate a comprehensive findings report for auditors or regulators who need evidence of security review.
- Periodic security reviewsSchedule DeepScans on a regular cadence to catch drift and regression that PR-level analysis might miss across long periods.
- Major refactors or dependency upgradesWhen significant portions of the codebase change outside of a single PR, DeepScan ensures the full scope of changes is reviewed.
Settings
DeepScan Configuration #
DeepScan configuration is managed under Settings > Configuration > DeepScan. Like PR scanning configuration, you can work with a default configuration that applies to all repositories, or create named configurations that target a specific subset of repositories.
Default and Named Configurations #
The default configuration applies to all repositories not covered by a named configuration. Named configurations let you select which repositories they apply to and define their own notification and context settings independently.
Notifications #
Each configuration includes a Notifications tab that sends DeepScan events to your webhooks. With Enable notifications turned on, choose:
- Webhooks: where notifications are delivered. Slack and generic webhooks are both supported.
- Events: which DeepScan events trigger a notification:
- Started: a DeepScan begins. Includes who started it.
- Completed: a DeepScan finishes. Includes the scan duration and finding counts by severity.
- Failed: a DeepScan stops before completing. Includes the error code and message.
Every notification includes the repository, branch, scan ID, and a link to the scan in the dashboard. Notifications follow the configuration that covers the repository: a named configuration if one applies, otherwise the default configuration. See DeepScan Payload for the payload format.
Context #
Each configuration includes a Context tab where you can select a context file to apply to DeepScan runs against the target repositories. Context files are created and managed in the Context section of the dashboard - see Repository Context for details on creating one.
When a context file is configured, it is automatically applied every time DeepScan runs against the target repositories.
When a context file is configured for a DeepScan run, DryRun Security uses the configured context instead of any AGENTS.md file in the repository. If your repository relies on AGENTS.md for security context, review your configured context to ensure it covers the same ground before applying it.
Run a scan
Triggering a DeepScan #
A DeepScan can be started from the DeepScan page by selecting a repository and branch. DryRun Security pre-selects the repository's default branch automatically, so most scans require only a repository selection to proceed. Any branch can be targeted when a different scope is needed.
Once a scan starts, the DeepScan page updates in real time to show which analysis phase is running, from initial codebase profiling through security domain reviews to report generation. Findings are published as they are validated and will begin appearing before the scan completes.
DeepScans can also be triggered programmatically. See the DryRun API page for endpoint details.
How it works
DeepScan Workflow #
- Understand the codebase - Profile the app’s language, frameworks, components, and data stores.
- Gather security-relevant info - Map routes, auth files, configs, and authorization patterns.
- Plan the review - Generate a targeted attack plan for each security domain.
- Run the reviews - Analyze each domain (auth, injection, crypto, config, SCA, etc.). As each finding is validated, it is published to the dashboard in real time.
- Clean up the report - Calibrate severities, remove hallucinations, deduplicate, and add exec summary and recommendations.
- Publish and triage - When the scan completes, the full report is finalized. Findings can be triaged and annotated as they appear during the scan and after it completes.
Each completed scan shows a Scan Pipeline that summarizes how findings moved through review. See Scan Pipeline.
Results
DeepScan Findings #
Findings are published to the dashboard as they are validated during the scan, so you can begin reviewing and triaging before the scan finishes. Once the scan completes, the full report is finalized. There are two ways to review findings:
Option 1 - Risk Register #
Filter the Risk Register by DeepScan to see all findings surfaced by DeepScan across repositories. This gives a unified view alongside PR scan findings for triage and prioritization.
Option 2 - DeepScan Page #
From the DeepScan page, click a scanned repository to open its latest scan. The page shows a severity summary across Critical, High, Medium, and Low, then the Scan Pipeline, then the findings list. Previous scans can be reviewed by date, and findings can be filtered by risk level, SCA, or dismissed status.
Clicking a finding opens a pop-out with the finding detail, the DeepScan summary, and any artifact files. Scan Details, in the top right, has two tabs:
- Scan Details: the full scan report. Download Report saves a copy.
- App Details: the repository's SecMap, the SBOM, the application files DeepScan identified (such as authentication, authorization, configuration, and HTTP route files), and the Discarded Findings log.
Scan Pipeline #
The Scan Pipeline is a collapsible chart above the findings list. It shows how DeepScan narrows the candidates it identifies down to the findings in the report. Hover over any stage or flow to see its count.

The chart has two paths:
- Code findings: Potential Findings are the candidate issues DeepScan identifies during analysis. Prior Findings are findings from the previous scan that are carried forward to be revalidated. Candidates go through a security review, and some also go through a quality review. A candidate either becomes a Final Finding or leaves the pipeline as one of the following:
- Not Vulnerable: the review determined the code isn't exploitable.
- Discarded (Duplicates): merged into another finding that reports the same issue.
- Discarded: dropped during quality review.
- Unknown: discarded for a reason that doesn't fit the other categories.
- SCA findings: SCA Vulnerabilities are the known vulnerabilities in the repository's dependencies. Reachability analysis sorts them into SCA Reachable and SCA Not Reachable, and both flow into Final Findings.
The chart starts at the review stage. The analysis that produces the candidates, such as codebase profiling and review planning, isn't shown. Findings that reach Final Findings appear in the findings list below the chart. Findings that leave the pipeline are listed in the Discarded Findings log.
Discarded Findings #
To review findings that left the pipeline, open Scan Details, select App Details, and download Discarded Findings.

The JSON file lists every finding discarded during the scan:
| Field | Description |
|---|---|
file_path | File where the finding was located |
category | Vulnerability category |
severity | Severity assigned before the finding was discarded |
classification | Classification label, if one was assigned |
discarded_by | Pipeline stage that discarded it: reviewer, triage, classifier, or dedupe |
discarded_reason | Reason code: marked_not_vulnerable, validator_dropped, triage_suppressed, no_valid_location, discarded, or merged_duplicate |
reasoning | Explanation for the decision, when one was recorded |
If a scan discarded no findings, no log is available to download.
Findings dismissed with a useful explanation are learned immediately, so the next DeepScan benefits from the triage. See Finding Tuning for details on how dismissals are learned.
Coverage
Vulnerability Categories #
DeepScan detects a broad set of vulnerability categories across your codebase. For the complete list of all finding types surfaced by DeepScan, PR scanning, and SCA, see the Vulnerability Coverage Matrix.
Coverage
Supported Languages #
DeepScan supports all programming languages and frameworks with text-based source code. For the stacks with specific optimizations, and for SCA ecosystem coverage, see Language and Framework Support.
Under the hood
Git Behavioral Analysis #
DryRun Security constructs a Git Behavioral Graph before its AI agent reads a single line of code - analyzing commit history across five behavioral axes to steer the scanner toward the code that matters most.
The techniques described here are grounded in Adam Tornhill's Your Code as a Crime Scene (2nd ed., Pragmatic Programmers, 2024). DryRun Security engineered these forensic principles into a pipeline that steers an AI agent with deterministic precision. Read the full blog post for additional context.
Why Git History Matters for Security #
Traditional static analysis lacks a fundamental dimension of context: the human element. Vulnerabilities are rarely just syntactical errors - they are the byproduct of diffuse ownership, shifting requirements, and knowledge decay. The Git Behavioral Graph provides a deterministic, high-signal heuristic to prioritize the agent's attention before it reads any code.
The Five Behavioral Axes #
- Code churnFiles with high revision counts and many distinct contributors historically correlate with vulnerability density. The pipeline quantifies this as a normalized churn score.
- Contributor couplingWhen many authors touch the same file, implicit knowledge can be lost. The ratio of unique contributors to total revisions produces a diffuse-ownership signal.
- Temporal couplingFiles that change together frequently suggest hidden dependencies. If a change to
auth_middleware.pyalways accompanies changes tosession_handler.py, a change to one without the other is suspicious. - Recency weightingRecent changes carry more risk than ancient stable code. The pipeline applies exponential decay weighting so churn from last week outweighs churn from last year.
- Complexity hotspot scoringCombining churn and contributor metrics with code complexity produces composite hotspot scores that identify the files most likely to harbor latent vulnerabilities.
See adversarial review in action.
15 minutes with a security expert.