Repository navigation
Closed
Labels
scope/reviewMulti-persona code review engine, verification, and findingsscope/securitySecurity linters (trivy, bandit, gitleaks, kubeconform) and Vaultsource/agentFiled by an agenttype/bugType bug: the code does not do what it must
Description
Problem
Checked at release/v0.2.29 (05e9388).
- Undocumented endpoint.
CloudflareRadarClientsendsGET https://radar.cloudflare.com/api/v1/intel/domain/{target}with no credentials (security/vulnerability_lookup.py:368,:459). Cloudflare documents the Radar API athttps://api.cloudflare.com/client/v4/radar/and requires an API token (developers.cloudflare.com/radar/get-started/first-request/). The path in use is not part of that API. - A failed lookup reads as a clean one.
- Any status other than 200 sets the summary "Domain verified in public DNS registry" (
:469), and any exception sets "Verified domain reference" (:478). - The agent's threat-intel tool hands that text to the model as the "Reputation Summary" (
ai/tools/builtin_tools.py:473-479), and the review marks the host "✓ Safe / Low Risk" (ai/review/pipeline.py:2973-2976). - So a 403, a 429, a 5xx or a network failure reads as a verified, safe domain. The evidence-first review direction has tools originate findings, and AGENTS.md forbids synthetic assessments.
- Any status other than 200 sets the summary "Domain verified in public DNS registry" (
- Client. It is a raw
httpx2.Client(:377); moving it onto the egress-checked factory is fix(security): move the remaining HTTP clients onto the egress-checked factory and delete the pre-flight resolve paths #1381's work. ThecloudflareSDK (Cloudflare; 5.9.0, released 2026-10-03) is built on httpx, not httpx2, so it cannot take the egress-checked client.
Proposed remedy
- Query a documented Radar endpoint with the configured Cloudflare token (
get_cloudflare_api_token,config/settings.py:1237), through the project's Cloudflare client or a public-level factory client. - Each lookup has an outcome of
ok,unavailableorfailed, as scanner outcomes have had since feat(cli): scanner outcome status unavailable, failed or unqueried is not clean #708. Summaries and tags come only from fields of a successful reply. With no token configured, no request is sent and the outcome isunavailable. - The review and the threat-intel tool show an
unavailableorfailedlookup as unverified, never as safe or verified. - feat(review): dependency advisories and the package inventory come from osv-scanner over the lockfiles, offline, with each advisory's own severity #1146 makes the Shodan and Radar lookups opt-in; this item applies whenever Radar runs.
Key questions
- Which documented Radar endpoint gives a domain's categories? (proposed) Pick it from Cloudflare's Radar API reference. If no documented endpoint gives categories, remove the Radar lookup instead of keeping an undocumented one.
Acceptance criteria
- The recorded request goes to
https://api.cloudflare.com/client/v4/radar/...withAuthorization: Bearer <token>. The test fails on the current code. Reserved names such as example.com are skipped before any request (fix(security): skip cloudflare radar threat intel lookups for local and reserved domains #648), so the test looks up a non-reserved name and says why. - Replies of 403, 429 and 500, and a connect error, each give outcome
failedorunavailableand no "verified" or "Safe" text in the tool output or the review's network section. These tests fail on the current code. - With no token configured, no request is recorded and the outcome is
unavailable. -
rg -n 'radar.cloudflare.com/api|Verified domain reference|verified in public DNS' srcprints nothing. - Tests run offline, with fakes only at the HTTP edge (an httpx2
MockTransport, throughtests/llm_stream_fakes.route_clientor refactor(cli): Unify HTTP and DNS seams with shared fakes #1314's fixture) or the process edge. No test patches a devops_cli name. - Each new or changed test runs in under 1 s.
-
uv run devops cipasses.
Related: #1146, #708, #648, #1137, #1381
Found by the 2026-10-08 client-library audit.
Opened as a borrow (#1153, budget/borrowed): the agent filing quota is spent for this cycle, and this is a defect or security finding of the owner-requested 2026-10-08 client-library audit.
Metadata
Metadata
Assignees
Labels
scope/reviewMulti-persona code review engine, verification, and findingsscope/securitySecurity linters (trivy, bandit, gitleaks, kubeconform) and Vaultsource/agentFiled by an agenttype/bugType bug: the code does not do what it must
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty-bot commentedon Oct 8, 2026
Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.
A security tool that reports 403/429/5xx/network failures as 'verified safe' undermines the entire review pipeline's trust and could mask real threats.Users rely on the review's 'Safe / Low Risk' verdict to make security decisions; a false 'safe' from a failed lookup is directly harmful.Requires switching to the documented Radar API with token auth, adding ok/unavailable/failed outcome handling, updating the threat-intel tool and review pipeline, and writing offline tests across several files.fix(review): the review pipeline reports the eight failures it now sw…
fix(security): query documented radar api with token and mark failed …