Commit Graph
1096 Commits
Author SHA1 Message Date
BaaRai ba84c374a3 Merge pull request #390 from BaaRai/security/llm-models-ssrf
security(server): block SSRF in POST /api/llm/models
2026-11-20 02:58:03 +01:00
BaaRai b27ac66009 security(server): block SSRF in POST /api/llm/models (GHSA-7w8h) 2026-11-20 02:35:39 +01:00
BaaRai 0a22c9583f Merge pull request #389 from BaaRai/security/intercept-default-tools
fix(intercept): gate ExecuteExtraTool and Monitor by default
2026-11-20 02:01:35 +01:00
BaaRai 29edd24285 Merge pull request #388 from BaaRai/security/asset-dsl-or-scope
fix(db): parenthesise a top-level OR in asset DSL queries
2026-11-20 01:53:07 +01:00
BaaRai 46751cfb9e fix(intercept): gate ExecuteExtraTool and Monitor by default
The default intercept-enabled set left out ExecuteExtraTool (the dispatcher for MCP and deferred tools) and Monitor (background commands), so calls through them bypassed every rule unless the operator had saved their own enabled-tools list.

A malformed intercept_enabled_tools value also produced an empty set, which turned the rule system off; it now falls back to the defaults, and GetEnabledTools reports the parse error instead of pretending nothing is gated.
2026-11-20 01:48:50 +01:00
BaaRai 4677c1b6f6 Merge pull request #387 from BaaRai/security/workspace-platform-deny
fix(server): keep the capture CA and index out of the workspace file API
2026-11-20 01:37:49 +01:00
BaaRai 4d4b42586e Merge pull request #386 from BaaRai/security/mcp-sse-origin
fix(mcp): keep the legacy SSE message endpoint on the configured origin
2026-11-20 01:37:43 +01:00
BaaRai 84a623bf2d fix(db): parenthesise a top-level OR in asset DSL queries
QueryDSLInScope builds the DSL clause and then appends the task-scope clause with AND. An OR node joined its children without wrapping the whole group, so '(a) OR (b) AND id IN (scope)' let the first branch return assets outside the task scope. Wrap the whole disjunction; the children are already parenthesised.

Tests: the pure builder shape, and a PostgreSQL case where the bare-text branch matches both an in-scope and an out-of-scope asset (fails before the fix).
2026-11-20 01:34:28 +01:00
BaaRai 43f1c893c4 Merge pull request #385 from BaaRai/security/denylist-git-cmake
fix(intercept): deny always-allow for git, cmake, ctest and cpack
2026-11-20 01:34:21 +01:00
BaaRai 4a29dbfd6d Merge pull request #384 from BaaRai/fix/llm-rotate-context
fix(server): attach the rotated LLM profile pin after execContextFor
2026-11-20 01:28:50 +01:00
BaaRai 73ab430c6a fix(server): keep the capture CA and index out of the workspace file API
The workspace file manager roots every path at the data directory, so the
capture proxy CA private key under traffic/_ca and the SQLite exchange index
under traffic/_index were listable, downloadable, overwritable and deletable
through /api/workspace/*. Refuse those two subtrees after resolving the path,
so a symlink alias or a Windows spelling a trailing dot cannot reach them.
2026-11-20 01:23:50 +01:00
BaaRai 7cd9faf1f9 fix(mcp): keep the legacy SSE message endpoint on the configured origin
readSSEEndpoint accepted any absolute URL, and legacyRoundTrip copied every
configured header (Authorization included) to it. Resolve the announced
endpoint against the configured SSE URL, refuse a different scheme, host or
effective port, refuse userinfo, and apply the same origin check to every
redirect hop for both the legacy SSE and Streamable HTTP clients.
2026-11-20 01:23:48 +01:00
BaaRai 02a67bf9c5 fix(intercept): deny always-allow for git, cmake, ctest and cpack
The argv allow denylist is the only gate that stops an always-allow rule
from naming a program whose flags can run arbitrary commands. git (aliases,
hooks, -c), cmake (-P), ctest and cpack run commands from user-controlled
files, so an allow prefix for them is never safe. Also key the arity table
by the normalised program name so a path-qualified binary derives the same
prefix length as the bare name.
2026-11-20 01:23:45 +01:00
BaaRai b3c9708bf3 fix(server): attach rotated LLM profile pin after execContextFor (#376) 2026-11-20 01:01:08 +01:00
BaaRai d41da1b2bb Merge pull request #383 from BaaRai/chore/export-ignore-offensive-skills
chore: exclude the offensive research skills from generated source archives
2026-11-20 00:50:22 +01:00
BaaRai 4c7dace5f2 chore: exclude the offensive research skills from generated source archives 2026-11-20 00:50:05 +01:00
BaaRai 0255f6af2c Merge pull request #377 from BaaRai/fix/argv-compound-matching
intercept: match deny/ask argv rules across compound commands
2026-11-19 20:33:57 +01:00
BaaRai 5c95f13403 Merge pull request #378 from BaaRai/chore/export-ignore-pocs
chore: exclude the php2shell PoCs from generated source archives
2026-11-19 20:31:35 +01:00
BaaRai 6c121845d7 chore: exclude the php2shell PoCs from generated source archives 2026-11-19 20:31:17 +01:00
BaaRai bbdb064afc fix(intercept): over-approximate unknown options on known wrappers and expand parallel flags 2026-11-19 18:56:42 +01:00
BaaRai 0258a0570b fix(intercept): parse command lines after parallel ::: when no command precedes it 2026-11-19 18:18:18 +01:00
BaaRai da00bf7c8a fix(intercept): close shell-option, env -S, xargs -l and find -exec argv bypasses 2026-11-19 17:57:59 +01:00
BaaRai 8f0b73f514 fix(intercept): match argv deny and ask rules across compound and wrapped Bash commands 2026-11-19 17:15:53 +01:00
BaaRai 8e6acb0638 Merge pull request #371 from mathkartel/docs/openai-compatible-gateways
docs: recipe for OpenAI-compatible gateways
2026-11-19 16:31:32 +01:00
BaaRai 35fbda765a Merge pull request #372 from BaaRai/fix/workspace-symlink-confinement
fix(server): confine workspace and skill paths against symlink escapes
2026-11-19 16:28:24 +01:00
BaaRai 39990fe7e4 docs(changelog): note the workspace and skill symlink confinement 2026-11-19 16:10:12 +01:00
BaaRai b1ccac4c9a fix(server): confine workspace and skill file paths against symlink escapes (#367) 2026-11-19 16:10:02 +01:00
BaaRai 90ca982c5e Merge pull request #370 from BaaRai/fix/target-gate-proxy-name-only
fix(intercept): make target pins name-only behind any proxy
2026-11-19 16:04:16 +01:00
mathkartel 95dd5e9711 docs: recipe for OpenAI-compatible gateways (NotHoly example) 2026-11-19 11:58:37 -03:00
BaaRai 9f892e4e95 fix(intercept): make target pins name-only behind any proxy
The gate treated a call as direct whenever only the recording proxy or a
custom tool's own proxy was in the path, so it stored IP pins the proxy
did not enforce. ProxyAddr now covers the recording and global proxies,
a per-tool check covers a custom http tool's own proxy, and the gate
marks the pin name-only for any of them.

Closes #368.
2026-11-19 15:47:36 +01:00
BaaRai e5fe5b2878 Merge pull request #346 from mervedalgin/i18n-turkish
web: add UI translation layer and Turkish locale
2026-11-19 15:43:22 +01:00
BaaRai d577d7e3b2 fix(web): guard t() against prototype keys and check the dictionary in CI
t() looked a key up with dict[key] ?? key, so t("constructor") returned
Object and t("toString", {}) threw. Backend values are used as keys, so
this was reachable. Use an own-property check for the dictionary and the
vars, and commit the key-check script as npm run test:i18n in the web
job so tr.json cannot drift.
2026-11-19 15:40:49 +01:00
BaaRai 5ada6ecd86 Merge pull request #369 from BaaRai/docs/provider-policy
docs(contributing): keep provider support generic
2026-11-19 15:31:08 +01:00
BaaRai 08544a652e docs(contributing): keep provider support generic
A vendor-specific provider format, logo or promotional code is not what
we want for a base URL that the generic OpenAI profile already reaches.
State the rule before the next request.
2026-11-19 15:30:51 +01:00
BaaRai c2ddd1c6ba Merge pull request #363 from chetanvhsk-wq/chetanvhsk-wq-postgres-readiness-probe
feat(server): add PostgreSQL-backed readiness probe
2026-11-19 14:28:40 +01:00
BaaRai a88bc26144 Merge pull request #349 from anqorithm/abdallah/console-browser-protections
feat(server): add browser protections for the operator console
2026-11-19 14:28:25 +01:00
BaaRai ce8c90c2dd Merge pull request #348 from anqorithm/abdallah/private-reporting-link
docs(security): link the private vulnerability report form
2026-11-19 14:28:10 +01:00
BaaRai b8ec69d6ab Merge pull request #357 from Coff0xc/fix/mcp-rpc-limit
fix(mcphttp): cap JSON-RPC response bodies
2026-11-19 14:27:43 +01:00
Coff0xc 9b1fe50d66 fix(mcphttp): cap JSON-RPC response bodies
Streamable HTTP decoded the whole response with no byte limit, so a
remote MCP server could force an unbounded allocation.
2026-11-19 14:27:20 +01:00
BaaRai fbcbe3ac04 Merge pull request #356 from Coff0xc/fix/llm-capture-cap
fix(llmrec): cap captured provider response bodies
2026-11-19 14:27:09 +01:00
Coff0xc 53f764babf fix(llmrec): cap captured provider response bodies
TeeResponse mirrored every byte of every attempt into memory with
no limit, so a large or retrying stream could exhaust RAM.
2026-11-19 14:26:30 +01:00
BaaRai ae068f29cf Merge pull request #355 from Coff0xc/fix/audit-final
fix(guard): record allow only after intercept decides
2026-11-19 14:25:56 +01:00
Coff0xc eddc4ba339 fix(guard): record allow only after intercept decides
preToolUse wrote an allow audit row before applyIntercept, so a
denied or gated call still showed as allowed in the audit ring.
2026-11-19 14:25:42 +01:00
BaaRai b3c9375101 Merge pull request #354 from Coff0xc/fix/dsn-redact
fix(config): mask keyword-value and query DSN passwords
2026-11-19 14:25:37 +01:00
Coff0xc 7d28638980 fix(config): mask keyword-value and query DSN passwords
Redact only rewrote URL userinfo, so libpq keyword DSNs and
?password= query values reached ping-failure logs in full.
2026-11-19 14:25:24 +01:00
BaaRai 8f92caa042 Merge pull request #353 from Coff0xc/fix/dsl-nesting-limit
fix(db): bound asset DSL length and parenthesis depth
2026-11-19 14:25:18 +01:00
Coff0xc 16b04cfb48 fix(db): bound asset DSL length and parenthesis depth
ParseDSL recursed on every '(' with no depth or size cap, so a
query of nested parentheses could grow the goroutine stack until
the process died. Cap input at 4 KiB and nesting at 32.
2026-11-19 14:25:04 +01:00
BaaRai 432c882bca Merge pull request #352 from Coff0xc/fix/conv-messages-limit
fix(server): cap conversation message page size
2026-11-19 14:24:31 +01:00
Coff0xc bf6feefbdf fix(server): cap conversation message page size
GET /api/conversations/{id}/messages passed limit through to the
database with no upper bound, so a huge query could load the whole
transcript. Clamp history pages to 200 and keep the since tail at 1000.
2026-11-19 14:24:11 +01:00
BaaRai cdc39ed776 Merge pull request #351 from Coff0xc/fix/retry-after-overflow
fix(egress): reject overflowing Retry-After values
2026-11-19 14:23:56 +01:00