How Application Scanning Works
Application Scanning follows a five-step pipeline to test your web applications: asset selection, scan profile configuration, crawling, assessment, and reporting.
Step 1: Asset Selection
Select the asset you want to scan. The target must be a verified asset: a domain, a subdomain of it, or an IP address. Assets are added and verified on the Surface Monitoring page. See Adding Assets.
To test only part of a domain, configure the scope in the scan profile with Paths and URLs.
Step 2: Scan Profile Configuration
A scan profile holds all the configuration for scanning one web application, including:
- Scope: which subdomains, paths and ports to include or avoid
- Authentication: how the scanner logs in, for testing behind login
- Schedule: a single scheduled scan, or recurring scans daily, every 7 days, every 14 days or every month. You can also start scans manually or through the API
- Request limit: the maximum number of requests per second, if your application needs one
You can run a scan profile any number of times, one scan at a time.
Step 3: Crawling
First, the scan gathers general information about the application, such as DNS records and TLS/SSL certificates. For each hostname and port, it checks both HTTP and HTTPS and crawls the ones the application supports.
For each origin (protocol, hostname and port), crawling starts from the application root (/) and from a variety of other common starting points, such as /admin and /wp-content. The scan also uses external sources such as the Internet Archive to find historical pages, and any paths you add to Include paths/URLs.
Headless Chrome Rendering
The crawler loads each page in headless Chrome, runs JavaScript, and interacts with the DOM, so it finds content that’s rendered in the browser, including routes in single-page applications. It loads resources such as JavaScript and images from both inside and outside the scanned endpoint, to render the page fully. By default, it avoids resources that may cause side effects, such as analytics services.
Graph-Based Crawling
The crawler notes which action leads to which page. If it takes action A, it sees page X, and from page X it can take action B, C or D to reach page Y or Z. This builds a graph of how a person can move around the application.
For flows the crawler can’t complete on its own, such as a checkout, use Recorded Crawling.
The crawling stage times out after 4 hours.
Page Deduplication
The crawler groups structurally similar pages, such as /product/1 and /product/2, and keeps the content it considers unique for testing. This reduces scan time on large applications.
To see what the scan crawled, open the Crawled URLs finding in the scan results.
Step 4: Assessment
Static Analysis
The scan analyzes the crawled content for common mistakes, such as invalid TLS certificates, incorrectly configured login forms, error messages and database backups.
Technology Fingerprinting
The scanner identifies the technologies your application runs, such as its web server, framework and programming language. This tells you what software you expose, and decides which tests are relevant: the scan doesn’t run tests for technologies your application doesn’t use. Each technology gets a confidence percentage, and below 30% the scan doesn’t run tests for it. The Fingerprinted Software finding lists what was found.
Payload Testing
The scanner selects from 1,765+ Crowdsource modules and sends payloads to the input fields, URL parameters and headers it found during crawling. It analyzes the responses for signs of a vulnerability, such as a payload that comes back unchanged, an error message, or an out-of-band callback.
Step 5: Reporting
Each finding shows:
- Details: what the finding is based on
- Request and response: the HTTP request Detectify sent and the response it received
- Severity: based on the finding’s CVSS score
- Location: where the finding was found
- References: resources that help you understand and fix the issue
Vulnerabilities are reported as soon as they’re found, so findings appear while the scan runs. The latest report is incomplete until the scan finishes.
Scan Duration
A scan takes anywhere from 15 minutes up to 48 hours, depending on factors such as the request limit, the size of the application and how quickly it responds.
You can stop a running scan at any time from the Application Scanning page or through the Detectify API. Vulnerabilities found before you stop the scan stay available.
Next Steps
- Scan Profiles — Create and manage scan profiles
- Coverage — What vulnerabilities the scanner tests for
- Authentication — Set up authenticated scanning