ARTEX/intercept
BaaRai f67f7ef4be fix: close fuzzy fullwidth dot bypass and reject URL chars in intercept domains
A fuzzy_domain pattern written with ideographic or fullwidth dots became a
doubled dot only after canonicalisation, so "a。。example.com" was stored as
"a..example.com" and "example.com.." as "example.com..". Check the canonical
form as well.

ValidInterceptDomain now rejects "*", "/" and ":" too: exact_domain accepted
"https://example.com" and "*.example.com", which were stored and never matched.

Replace the tautological IDN test, which compared hostProfile with itself, with
a NormalizeTarget versus db.CanonicalInterceptDomain comparison, and cover task
rule create and update in the PostgreSQL API test.
2026-12-02 14:27:13 +01:00
..
alwaysallow_denylist.go fix(intercept): deny always-allow for git, cmake, ctest and cpack 2026-11-20 01:23:45 +01:00
alwaysallow_denylist_test.go fix(intercept): deny always-allow for git, cmake, ctest and cpack 2026-11-20 01:23:45 +01:00
argv.go fix(intercept): deny always-allow for git, cmake, ctest and cpack 2026-11-20 01:23:45 +01:00
argv_compound.go fix(intercept): over-approximate unknown options on known wrappers and expand parallel flags 2026-11-19 18:56:42 +01:00
argv_compound_test.go fix(intercept): over-approximate unknown options on known wrappers and expand parallel flags 2026-11-19 18:56:42 +01:00
argv_test.go fix(intercept): deny always-allow for git, cmake, ctest and cpack 2026-11-20 01:23:45 +01:00
assessment_identification.go Limit generated assessment labels to configured HTTP origins 2026-11-23 17:55:39 +08:00
closed_judge.go Intercept judge: review fixes for the closed-question mode 2026-11-13 08:40:02 +01:00
closed_judge_pg_test.go Intercept judge: closed-question mode, fail-closed to ask 2026-11-12 22:35:11 +01:00
closed_judge_test.go Intercept judge: review fixes for the closed-question mode 2026-11-13 08:40:02 +01:00
default_tools_test.go fix(intercept): gate ExecuteExtraTool and Monitor by default 2026-11-20 01:48:50 +01:00
enrich_probe_test.go enrich: route the HTTP probe through the pinned dialer (F13) 2026-11-12 11:53:33 +01:00
export_test.go enrich: route the HTTP probe through the pinned dialer (F13) 2026-11-12 11:53:33 +01:00
intercept.go chore: migrate log.Printf to log/slog in llmpool, llmrec, intercept and db 2026-11-23 18:31:30 -08:00
persistence.go fix(intercept): fail closed when the rule store cannot be read 2026-11-21 07:34:29 +01:00
persistence_test.go security(server): keep server secrets from agent processes 2026-11-20 05:35:53 +01:00
prompt.go Intercept judge: closed-question mode, fail-closed to ask 2026-11-12 22:35:11 +01:00
prompt_test.go Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
review_context.go Intercept judge: closed-question mode, fail-closed to ask 2026-11-12 22:35:11 +01:00
review_context_test.go Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
risk.go fix(intercept): destructive commands score high; chunk batch decisions to the server limit 2026-11-14 22:46:18 +01:00
risk_test.go fix(intercept): destructive commands score high; chunk batch decisions to the server limit 2026-11-14 22:46:18 +01:00
stateful_guard.go fix(intercept): treat curl's attached body values as mutating 2026-11-29 17:50:04 +08:00
stateful_guard_test.go fix(intercept): treat curl's attached body values as mutating 2026-11-29 17:50:04 +08:00
store_error_test.go fix(intercept): fail closed when the rule store cannot be read 2026-11-21 07:34:29 +01:00
target.go fix: reject malformed intercept domains and align the IDN profile 2026-12-02 12:28:31 +01:00
target_declared_test.go fix(intercept): match block rules on the declared targets before any lookup 2026-11-11 15:47:58 +01:00
target_dial.go fix(intercept): keep the TCP dialer TCP-only after adding UDP parsing 2026-11-21 00:34:27 +01:00
target_dial_pg_test.go feat(intercept): pinned dialer for WebFetch and the custom http tool (S3b 2.1) 2026-11-11 19:19:55 +01:00
target_dial_test.go feat(intercept): pinned dialer for WebFetch and the custom http tool (S3b 2.1) 2026-11-11 19:19:55 +01:00
target_exempt.go fix(intercept): treat 0.0.0.0/8 as non-public 2026-11-30 23:54:02 +01:00
target_exempt_test.go fix(intercept): treat 0.0.0.0/8 as non-public 2026-11-30 23:54:02 +01:00
target_extract.go fix(guard): decide ExecuteExtraTool calls on the inner tool (GHSA-f7fv) 2026-11-30 23:22:42 +01:00
target_gate.go fix(intercept): make target pins name-only behind any proxy 2026-11-19 15:47:36 +01:00
target_gate_pg_test.go feat(intercept): target extraction, resolver, exemptions and the gate in the hook (S3b 1.5-1.7) 2026-11-11 00:34:55 +01:00
target_gate_test.go fix(intercept): make target pins name-only behind any proxy 2026-11-19 15:47:36 +01:00
target_idn_test.go fix: close fuzzy fullwidth dot bypass and reject URL chars in intercept domains 2026-12-02 14:27:13 +01:00
target_redirect.go feat(intercept): check every redirect hop against the target gate (S3b 1.9) 2026-11-11 17:07:35 +01:00
target_redirect_pg_test.go feat(intercept): check every redirect hop against the target gate (S3b 1.9) 2026-11-11 17:07:35 +01:00
target_redirect_test.go feat(intercept): check every redirect hop against the target gate (S3b 1.9) 2026-11-11 17:07:35 +01:00
target_rendered.go fix(intercept): match block rules on the declared targets before any lookup 2026-11-11 15:47:58 +01:00
target_rendered_test.go feat(intercept): gate the rendered targets of custom tools (S3b 1.8) 2026-11-11 15:04:42 +01:00
target_request.go feat(intercept): pinned dialer for WebFetch and the custom http tool (S3b 2.1) 2026-11-11 19:19:55 +01:00
target_request_test.go Refactor PostgreSQL test skipping logic 2026-11-19 14:23:29 -03:00
target_resolve.go feat(intercept): pinned dialer for WebFetch and the custom http tool (S3b 2.1) 2026-11-11 19:19:55 +01:00
target_test.go feat(traffic): record WebSocket and SSE stream messages 2026-11-16 07:47:25 +01:00
testmain_test.go feat(intercept): target-gate schema, opt-in flag and approval requests (S3b 1.2-1.4) 2026-11-10 23:05:47 +01:00
trace.go Intercept judge: closed-question mode, fail-closed to ask 2026-11-12 22:35:11 +01:00
trace_test.go Translate all Chinese text to English 2026-10-08 23:14:34 +02:00