What it detects
Three Google Web Risk threat types:MALWARE— pages distributing malware.SOCIAL_ENGINEERING— phishing or social-engineering pages.UNWANTED_SOFTWARE— sites distributing unwanted software (toolbars, bundleware).
How it works
- Extract URLs from the input using the
urlextractlibrary and a recent TLD list (refreshed when older than 7 days). - For each extracted URL, call the Web Risk API.
- Return per-URL verdicts and counts.
unsafe_urls_count metric over-reports rather than under-reports
during outages.
Parameters
This analyzer takes no parameters. Web Risk lookups always check all three threat types.Outputs and metrics
Termination signals
Output match hints (regex):
MALWARE, SOCIAL_ENGINEERING,
UNWANTED_SOFTWARE, and (MALWARE|SOCIAL_ENGINEERING|UNWANTED_SOFTWARE)
for any threat.
Limits and cost
Cost is Google Web Risk pricing — billed per URL lookup. See the
Web Risk pricing page.
Typical latency
1–50 ms total, dominated by the number of URLs found. Web Risk lookups are fast (a handful of milliseconds each); URL extraction itself is near-instant.When to use it
- Always on. URL Risk is one of the cheapest analyzers and catches a category of attack the ML analyzers do not.
- Both directions. Inbound: catches user-submitted phishing. Outbound: catches LLMs that hallucinated a malicious link.
- Pair with YARA. YARA is the right tool for URL patterns you care about beyond Web Risk’s categories (e.g. internal hostnames you do not want appearing in outputs).
Failure modes
- Web Risk error on a URL → that URL is treated as unsafe; the metric overcounts. The analyzer does not error; the run continues.
- Web Risk fully unreachable →
analyzer_unavailable503 withRetry-After.
Next
- Combined analyzer — wire
url_riskinto termination rules. - YARA — for URL patterns Web Risk does not cover.