Content-Security-Policy.
The engine is ZAP, the Zed Attack Proxy (Apache
License 2.0; formerly OWASP ZAP). TRUSTIVAN runs it as a separate, isolated
service and turns its alerts into ordinary findings.
Two kinds of scan
Which one runs is decided when the scan runs, not when it is requested.
Ownership is checked again at that moment. If the proof is still published the
scan is active; if it has gone, the target is marked unverified and the scan is
passive. If the check gets no answer, a DNS timeout for instance, that one scan is
passive and the target stays verified. See
Limits.
What keeps a scan inside your application
- Ownership. Nobody can start an active scan of a host they have not proven they control. See Add and verify a target.
- Scope. A scan reaches one origin: the scheme, host and port of the target’s URL. A link or a redirect to anywhere else is not followed.
- Address checks at connection time. Loopback, private, link-local and cloud-metadata addresses are refused when the connection is made, after DNS has answered, for every connection including the ones a redirect leads to. A name that resolves somewhere private is refused even though its spelling looks public.
- Rate and time limits, which you set per target. See Limits.
- Cancel. A running scan stops within a few seconds of being cancelled.
Checks TRUSTIVAN adds to the engine
The engine’s active scanner covers reflected cross-site scripting, SQL injection, path traversal and open redirects. A few classes it does not cover in its pinned image, so TRUSTIVAN tests them itself during an active scan, against the endpoints the crawl found, and records any hit as an ordinary finding.
The TLS checks (expired, untrusted or hostname-mismatched certificates, and
legacy protocols) are TRUSTIVAN’s too, and run in either mode on an
https
target. The JWT checks run only when the scan is configured with a bearer JWT in
its authentication header and an
endpoint that the token unlocks is found.
API targets
Point the scan at the operations that no page links to by supplying an API description with the target:- OpenAPI / Swagger. Upload an OpenAPI 3 or Swagger 2 document; every operation it describes is crawled and tested.
- GraphQL. In the target’s Settings, give the GraphQL endpoint’s path
on the target (for example
/graphql) and, optionally, its schema: SDL or a JSON introspection result, up to 1 MB, so the operations are known even when introspection is off. Both are stored with the target and used by every active scan; the schema is never shown again, only its size. The engine’s GraphQL add-on generates a query and a mutation per operation and the active scanner tests them. - SOAP. In the same Settings, give the path where the target serves its
WSDL (for example
/ws?wsdl), or upload the WSDL itself (WSDL 1.1 or 2.0, up to 1 MB), which is then used instead of the path. The engine’s SOAP add-on sends one request per operation to the service address the WSDL names, and the active scanner tests them, including its SOAP action spoofing and SOAP XML injection rules. The service address must be on the target’s origin: a request anywhere else is refused and counted in the scan’s warnings. A WSDL path is fetched by TRUSTIVAN’s worker before the scan (on the target’s origin, with the scan’s authentication header, no redirects, up to 1 MB), not by the engine, and either WSDL is handed to the engine only if it passes the same check: noDOCTYPE(or any other<!...>declaration), no processing instruction other than the XML declaration, and noimport,includeorredefineother than an absolutehttp://orhttps://URL on the target’s origin. The add-on parses the WSDL in the shared scan engine and would read a relative or file path from the engine’s own disk. A WSDL that fails is not imported, and the scan says why in its warnings; an upload that fails is refused when it is saved. - gRPC. Give the gRPC server’s
host:port, on the target’s own host. The engine does not speak gRPC, so TRUSTIVAN checks it itself (see the table above): whether it accepts plaintext, whether its reflection service lists its services to a caller with no credentials, and the TLS of its port. It sends only the reflection service’s list request: none of your methods is called and nothing is fuzzed. It also asks the target’s web origin for a gRPC-Web method that does not exist; an answer in gRPC is reported as a scan warning, because the scan does not test gRPC-Web methods. An address that answers neither TLS nor plaintext gRPC leaves the scan incomplete, so gRPC findings stay open.
Findings
A dynamic finding has the kinddynamic_analysis. It carries the rule, the
HTTP method, the endpoint and parameter, the CWE and OWASP Top 10 (2021)
category, the engine’s remediation text, and an excerpt of the request and
response that showed it.
Everything else about it is what you already know from other findings. It
keeps its identity across scans, so a decision you make stays attached. It
moves through the same lifecycle, counts toward
the same risk score and remediation SLA, can be
suppressed,
is evaluated by policies, and is delivered to
webhooks and
notifications. Filter for it with
kind=dynamic_analysis in the API or Kind → Running application (DAST) on
the Findings page.
Identity
A finding is identified by rule + method + endpoint + parameter. The query string is not part of it, so/search?q=shoes today and /search?q=boots
tomorrow are the same finding. A path segment that is a record identifier (all
digits, a UUID, a long hexadecimal string) is treated as a placeholder, so
/orders/41 and /orders/42 are one endpoint.
Problems that belong to the application rather than to one page (a missing
header, a cookie flag) are reported once, with the pages they were seen on
listed in the finding, instead of once per page.
Evidence and secrets
The request and response excerpts are redacted before they are stored:Authorization, Cookie and Set-Cookie values, the header you configured
for authenticated scans and its
value wherever it appears, JSON Web Tokens, and password=-style pairs are
replaced with [redacted].
Severity
Severity is the engine’s own: high, medium or low. The engine has no “critical” level and TRUSTIVAN does not invent one. The TLS, injection, JWT and gRPC checks, which are TRUSTIVAN’s rather than the engine’s, use the same three levels. Alerts the engine marks informational are observations, not findings, and are not recorded.Scheduling
A target is an asset, so it is scheduled like one: hourly, daily or weekly, from the target’s page or withPUT /assets/{id}/schedule. A scheduled scan
checks ownership before it runs and counts toward the one dynamic scan your
organization may have queued or running, the same as a manual one. See
Schedule rescans.