Guide
Scan your website and API (DAST)
Logthread can scan your own running website or API for you, with OWASP ZAP and Nuclei. This page walks through the guided setup in the app: Code security → Website and API scans (DAST). Overview: Code and app security. The detailed reference is Managed DAST scans.
Logthread only scans a site after you prove you own it and an owner or admin accepts the terms. These are automated vulnerability scans. They are not a PCI ASV scan, a penetration test or a VAPT.
Add your website or API#
Step 1 of the setup. Give the address, for example https://staging.example.com, and the service name your logs use for this application.
- The scan starts at that address and never leaves its host and port.
- Optionally list paths to scan only (such as
/app) and paths to never touch (such as/adminor/logout). - Addresses that resolve to private or internal ranges are refused.
Production or test#
Say whether the address is production or a test system. This decides which scans you may run.
- Production: use the Baseline scan only. It looks without touching.
- Test or staging: you can use Full and API scans too. They act like an attacker, so they can create junk data or trigger alarms.
On a host that looks like production, accepting the terms for Full or API scans needs you to type the host name.
Prove you own it#
Step 2. Logthread shows a token. Prove you control the site in one of two ways, then choose Check now. Logthread checks the proof again before every scan. If you remove it, the next scan fails until you prove it again.
The file method (recommended, and required for Full and API scans).
- Create a plain text file that contains only the token.
- Serve it at
/.well-known/logthread-scan.txton the site itself, for examplehttps://staging.example.com/.well-known/logthread-scan.txt. - Open that address in a browser to check you see the token, then choose Check now.
The DNS TXT record (enough for Baseline scans only).
- Add a TXT record named
_logthread-scan.<host>with the token as its value. - The same record on a parent domain covers every sub-domain:
_logthread-scan.example.comcoversstaging.example.com. - Choose Check now. DNS can take minutes to hours to spread.
A DNS record shows you own the name, not that the server it points to is yours. That is why active scans need the file.
Common errors and fixes.
- 404 not found: the file is not served at that exact path. Check the folder name
.well-knownand the file name. Some servers hide dot folders, so allow it. - Redirect: the file must be answered directly, with no redirect. Remove redirects (such as to
wwwor to a login page) for that path. - Wrong content: the file must hold the token exactly, as plain text, with no extra HTML or quotes. Copy it again.
- File too large: the file must be under 4 KB. Keep only the token.
- TXT not propagated: wait and try Check now again. You can test with
dig TXT _logthread-scan.<host>. Check the name is exactly right and the value has no extra quotes.
Choose the scan type#
Step 3.
| Scan type | What it does | Use it on |
|---|---|---|
| Baseline | Looks without touching. Reads pages and checks them. Safe for production. | Any site |
| Full | Acts like an attacker. Tries injection, cross-site scripting and known problems. Needs the file proof. | A test site |
| API | Uses your API description (OpenAPI or GraphQL) and tests each operation. Needs the file proof. | A test API |
Start with Baseline. Limits, such as requests per second and the maximum run time, are on the setup page, with safe defaults.
Sign in (optional)#
Step 4. To scan pages behind a login, add a sign-in. Use a test account, never a real person's account. The target must use https:// with a valid certificate. The sign-in can be a bearer token, a header, a session cookie, or a login form. It is stored encrypted, never shown again and used only for that site.
Schedule#
Step 5. Choose how it runs:
- Once: run it now.
- Daily or weekly: at an hour in your time zone, in a mode you accepted the terms for.
- After each deploy: create a deploy hook, store its token as a CI secret, and call it at the end of your deploy job. The example is in Managed DAST scans.
Review and run#
Step 6. Check the summary. An owner or admin accepts the terms for the modes chosen. Logthread keeps who accepted, when, and for which scope. If you change the scope later, accept again. Then choose Run scan.
Allow the scan address#
If your site sits behind a firewall or a web application firewall, allow Logthread's scan address, so the scan is not blocked. The address is shown on the target page in the app. Every request also carries the header X-Logthread-Scan: <scan id> and a User-Agent that names Logthread-DAST. If a scan finds nothing or fails to start, a blocked address is the first thing to check.
Watch the scan and read the report#
Once it runs, you see live progress, and you can Stop it at any time. Findings appear in Findings as type Your running website and API (DAST), with the URL, method and evidence. Each scan has a report as HTML or PDF with the summary, what changed since the last scan, the consent record, and whether your own logs and detections saw the scan. If your logs saw nothing, a real attacker would not be seen either. A finding is marked fixed when the next completed Full scan no longer reports it. See Work with findings.
What it costs#
Managed scan time is metered in hours. Under a contract it is on your monthly statement at the standard scan prices unless your contract sets its own. A scan counts from when it started to when it ended. A scan that failed on Logthread's side or never started does not count. See Administration → Usage, and How scan time is metered.