Security
- Per-task execution sandbox is the default.
Bash, custom command and script tools run in a disposableartex-workercontainer created byartex-runner, never in the panel container. Stdio MCP servers are not started on the panel in required mode; HTTP and SSE MCP clients keep their existing checks. The worker has uid/gid 10001, a read-only rootfs,cap-drop ALL, no key or database mount, only its task workspace, and only an internal task network. A per-taskartex-egress-proxyenforces a deny-by-default domain and CIDR allowlist with DNS pinning, HTTP/HTTPS CONNECT and SOCKS5, blocks IMDS, RFC1918, loopback, link-local and IPv6 unless explicitly approved, and writes its audit log outside the worker workspace. The runner and the three images are part ofdocker-compose.yml,docker-compose.ghcr.yml,install.shandupdate.sh; the release publishes the runner, worker and egress-proxy images beside the panel.ARTEX_SANDBOX=offis the explicit, loud degraded mode. - The sandbox egress allowlist is operator-owned, not agent-writable. Migration
0023_task_scope_operator_approval.sqladdstask_scope.approved_by_operator. Only operator-approved rows (Task Scope UI, operator-selected companies, operator retarget) grant egress;add_task_scope,insert_assets, agent-spawned company scope and expanded rows are coverage-only.WebFetchand the shared browser use the same policy. Existingsource='manual'rows are backfilled; goal-derived (source='agent') and auto (source='auto') scopes must be re-approved once in Task Scope. Target-gate approval clears only the tool-call gate, and the denial message says so. - Startup is fail-closed and key permissions are enforced. The isolation self-test stops the server on every platform unless
ARTEX_ALLOW_UNISOLATED=1is explicitly set. The key directory is tightened to 0700 and existing key files to 0600 at startup, so a host bind mount cannot mask the image permissions. - Secret rotation is atomic.
db.RotateSecretKey,artex -rotate-secretsandscripts/rotate-secrets.shre-encrypt every sealed database value and bumpauth.password_versionin one transaction before the new key is moved into place. Existing sessions are invalidated. - Target gate backfill and a real kill switch. Migration
0022_target_gate_backfill.sqlenables the gate on active scoped tasks that did not opt out, withtasks.target_gate_opt_outfor the explicit opt-out.Engine.PauseandEngine.BeginDeletesetPR_SET_CHILD_SUBREAPERand terminate the executor UID or task descendants from/proc; the sandbox kill scans/procfor uid 10001 and never trusts agent-writable state, with a container-removal fallback. - The panel does not start stdio MCP servers in sandbox mode. Discovery, startup auto-discovery, the operator refresh path and the Auto agent's
create_mcp/update_mcptools reject stdio transports whileARTEX_SANDBOX=required; an agent-created stdio MCP cannot be launched on the panel at the next restart. HTTP and SSE MCP clients are unchanged. This closes the remaining panel-side local execution path. - Chat bridge approval buttons recheck access. A member removed, a chat unlisted or the bridge disabled while a batch was queued can no longer spend a valid button. The handler re-reads the bridge, refuses when access or the enabled state changed, and the consume statement requires the current
config_version. Reported privately by @jamesKhor.
Breaking Changes
ARTEX_SANDBOX=requiredby default. Ifartex-runneris unavailable, ARTEX refuses to start tasks and pauses running tasks, with no local fallback.ARTEX_SANDBOX=offis the explicit degraded mode and writessandbox=offinto each task event log. The runner needs access to the Docker socket;install.shandupdate.shgenerateARTEX_RUNNER_TOKENand build the runner, worker and egress-proxy images. GHCR users pull the sandbox profile from the same release tag.- Existing task scopes need one re-approval. Operator-entered
source='manual'scopes are backfilled by migration 0023. Goal-derived and auto-discovered scopes remain coverage-only and must be re-approved once in Task Scope before sandbox egress is granted.
Credits
The execution-scope gap and its remediation were tracked in public before the November 2026 writeup: #421 and #423 by @youssefmedhatl, #554, #555 and #553 by @renaesop, with the two-sources-of-truth analysis by @Dukotah in #421. The chat bridge advisory was reported by @jamesKhor. The public writeup is by Kevin Joensen. Thank you.
The advisory batch also thanks @xfscott, @msegoviag, @Coff0xc, @dhanunjayavuppala, @Mrs-Skelli, @chaitanya0305, @kasparovabi, @LarryStewart2022, @Dev-next-gen, @neoneye, @RIPRODUCTIONS, @ldevbr and @mkilijanek for the reports, and @brixtonpham for the run-budget fix.
Added
-
The last four
src/libtest files run in CI:activity-merge,chat-mentions,formatandhttp-hrefexisted and passed, but nopackage.jsonscript named them and thewebjob runs scripts by name, so their 15 assertions could not fail a build.test:activity-merge,test:chat-mentions,test:formatandtest:http-hrefnow match the existing one-script-per-file shape and run in thewebjob;http-hrefis the guard that refusesjavascript:,data:andvbscript:URLs before they reach an href (#678). -
Custom OpenAI-compatible preset in the LLM profile form (#677): the format selector offers "Custom OpenAI-compatible", which selects the existing
openaiformat and shows the expected base-URL shape (https://<host>/v1) with a one-line hint. It is UI-only: no vendor host, no schema change, and nothing is prefilled, so an empty base URL keeps the documented public fallback. The preset is re-derived from the saved base URL when a profile reopens, and tests pin the base-URL normalization (bare/v1, trailing slash, a pasted/chat/completions, whitespace, path prefix, host:port). -
Opt-in SELinux overlay for bind mounts:
docker-compose.selinux.ymllayers private:Zlabels on./data,./keysand./skillsfor hosts with SELinux enforcing. The base file keeps its unlabelled mounts, so the overlay is opt-in and a shared:zlabel never lets another container read the encryption keys (#632). -
Browser back and forward across console views (#641): page navigation is represented in query parameters (
tab,view,c,path, and the inspector record parameters), so a user action pushes a history entry and back and forward restore the view. The native history API integrates with the Next router and a stable server snapshot keeps the static export working. Inspector payloads stay in memory and are never written to the URL or to browser storage.npm run test:navigationcovers the history logic and now runs in CI. -
Remote approvals over a chat bridge (#642): a bridged chat can now carry an operator approval as one-time buttons instead of waiting for the console. The nonce is stored as a SHA-256 hash in the new
chat_bridge_approvalstable (migration 0019), a button is consumed atomically so a double tap cannot approve twice, and a group chat only sees the approvals of its own bridge. -
Chat bridge text excerpts are opt-in (#642): migration 0018 adds
share_text, default false, so a bridge no longer forwards captured text unless the operator enables it.SafeTextalso strips more secret shapes, including quotedcurl -ucredentials, and the outbound path re-checks that the asker is still a member before delivering. -
Tampering-hook tests run in CI: the
webjob now runsnpm run test:tamper-hooks. The suite existed as a script but no workflow called it, so a regression in the tampering-hook editor's payload and validation handling could merge without failing a check. -
Opt-in shared browser with live view and take-over: disabled by default (
-shared-browserorARTEX_SHARED_BROWSER=trueto opt in). When enabled, ARTEX launches Chromium with per-task/per-session isolated profiles under<data>/browser-profiles/<scope>and bridges Playwright MCP through an authenticated server-owned CDP proxy (using--remote-debugging-pipeon Unix so Chromium exposes no unauthenticated DevTools TCP port to agentBash). Function → Browser shows the tab live and lets the operator take over for CAPTCHA/2FA/login with a configurable operator lock timeout (-shared-browser-lock-timeout/ARTEX_SHARED_BROWSER_LOCK_TIMEOUT, default15m). With traffic capture on, Chromium trusts only the recording proxy CA SPKI pin (--ignore-certificate-errors-spki-list) rather than disabling TLS verification globally, and no anti-bot stealth flags (AutomationControlledorHeadlessChromeUA rewrite) are used. -
Preinstalled Python packages for agent scripts:
requests,beautifulsoup4,lxml,urllib3,pyyaml,jinja2,coloramaandtqdmare preinstalled in the runtime image with pinned versions so agent-generated scripts run without runtime pip downloads. -
Pentest knowledge pack: the planner and the workers can call a read-only
knowledge_lookuptool to resolve a MITRE ATT&CK technique, an OWASP WSTG test or a CWE weakness by id or keyword, and cite the id in findings and facts. The pack is generated from the official sources byscripts/knowledge/build.py, with the source URL, license, retrieval date and source SHA-256 recorded, keeps its own licenses inknowledge/NOTICEandknowledge/licenses, and is embedded in the binary, so no network is needed at runtime. Descriptions are capped and each entry carries the canonical URL (#521). -
LLM profile prices in the settings dialog (follow-up to #70): the profile dialog has inputs for the four cost-ledger prices (EUR per 1M tokens), and the profile list returns them. Before this, prices could only be set through the API, and saving the profile from the UI reset them to zero because the dialog never sent them. A negative price is stored as unset, and an API save that leaves a price out keeps the stored value.
-
Wildcard domains in asset scope: a scope line such as
*.example.com, the way bug bounty programs write a domain and its subdomains, is accepted in company and task asset scope and stored as theexample.comdomain rule, which already covers its subdomains. A URL form (https://*.example.com/) works too. The wildcard is accepted only on a registrable domain:*.api.example.com,*.co.ukand*.<IP>are still rejected, because no rule covers only a subdomain's subdomains (#519). -
Stream viewer direction filter (follow-up to #380): the Traffic detail's Stream tab can show all messages, client-to-server messages or server-to-client messages. Pagination and refresh keep the selected direction, changing the filter resets the list, and opening another exchange resets the direction to all. Recording-limit warnings remain visible but are excluded from the displayed message counts.
-
Security response headers on every response:
X-Content-Type-Options: nosniff, a same-origin referrer policy,X-Frame-Options: SAMEORIGINand aframe-ancestors 'self'CSP are now set by one wrapper around the whole handler tree, so the JSON API carries them too; previously only the console route did. Console documents additionally getPermissions-Policyand COOP/CORP.Strict-Transport-Securityis sent only when the request is known to be HTTPS: directly over TLS, or viaX-Forwarded-Proto: httpsfrom a peer inARTEX_TRUSTED_PROXIES, so a direct client cannot claim HTTPS on its own. The README reverse-proxy recipe now starts with an 80 to 443 redirect. -
Global company switcher: the sidebar header carries a company picker (search, an explicit "all companies", the asset count). It persists per browser and narrows these views on the server: the findings list, grouped view, asset tree and stat cards (
GET /api/exploration/findings,/groups,/asset-tree,/statstakecompany), the dashboard findings panels (same list endpoint), the task list (GET /api/tasks?company=), the traffic list (GET /api/traffic?company=, the hosts the company owns) and the asset tabs (GET /api/assets?company_id=, plain and DSL path; the company clause is ANDed outside the compiled DSL). A finding belongs to a company through its live assets. A finding with no live asset belongs to a company only when its task is scoped to that company (task_scopekindcompany); otherwise it shows under "all companies" only. An unknown or non-numeric company id returns nothing (#425). -
Go vulnerability scanning in CI: every push and pull request runs the official
govulncheckaction against packages reachable from./..., using the Go version declared bygo.mod. Run the same check locally with./scripts/verify.sh --security.
Fixed
-
The darwin and windows release binaries build again:
server/killswitch_unix.gocalled the Linuxprctlfrom a//go:build unixfile, so the darwin build of the release failed while the Linux CI stayed green. The call moved to a linux-only file with a no-op for the other unix targets, and CI now cross-compiles darwin and windows. -
The installer checks the container engine before building (#742): a fresh install could build all four images and then fail with an unhealthy runner when the Docker CLI answered from a socket the runner does not mount.
install.shandupdate.shnow verify that the engine is reachable and that its socket is available at the mounted path, and stop with the engine error before the build. -
Startup isolation self-test verifies secret opens under each probe identity and reports file metadata:
fileToolIsolationFailuresandcheckIsolationAsExecutornow open every protected target directly withO_RDONLY|O_NONBLOCK|O_NOCTTY(avoiding a server-identityos.Statpre-check and never blocking on FIFOs), report the opened descriptor'smode,uidandgid, and surface unexpected open errors such as symlink loops (#700). -
The panel executor uid/gid 10001 has a named
artex-execpasswd/group entry: programs that look up their own user, such as ssh-based stdio MCP servers, refuse to start without one. The worker image already hadexec(10001:10001) with/home/execand/bin/bash; the panel image now definesartex-exec(/app/data/exec-home,/usr/sbin/nologin). A custom-exec-uidstill needs its own entry (#708). -
Attached curl body flags no longer bypass the stateful target guard:
ClassifyHTTPActionrequired a separator after-d,-Fand-T, but curl takes the value fully attached, socurl -dfoo=1,-Tshell.phpand-Ffile=@payloadwere classified read-only. That skipped the pre-mutation baseline gate and letRecordStatefulReadOnlystore the mutation itself as the host's read-only baseline, a fail-open on a safety invariant. The attached forms are now mutating, including a spaced value (-T shell.php), while-D(dump headers),-f,-oand wget's-Ttimeout stay read-only. A body flag inside a multi-letter cluster (-sSd...) is still not detected. -
The chat agent filter no longer keeps a thread from another agent open: switching the filter left the previously selected conversation in place, so a thread started with one agent could still be read while the filter showed another, and the draft could pick the wrong agent. The selection is now cleared when it does not belong to the new filter, and the draft uses the filtered agent.
npm run test:chat-filtercovers both helpers and now runs in CI. -
Session tokens are no longer accepted from a URL query string: the SSE, log and browser endpoints accepted
?token=, which put a console JWT into browser history, proxy logs andRefererheaders. Those endpoints now require the same Bearer header as the rest of the API; the console uses afetchbased SSE reader, the client-written auth cookie is gone, and the same-origin CORS preflight allowsAuthorizationandLast-Event-ID. Login and uploads no longer carry a token in the URL either (#660). -
CORS answers only the console's own origin: the middleware reflected the request
Originwithout checking it, so any site could read cross-origin responses with a victim's cookie. It now reflects only an exact origin match and sendsVary: Origin; a mismatchedSec-Fetch-Siteno longer causes a foreign origin to be allowed (#633). The one exception is a loopback Origin against a loopback target, so thenext devconsole on another local port keeps its live streams; the check requireAuth applies to cookie writes stays strict. -
Task text and untrusted fields are quoted in logs:
createTasklogged the description and goal raw, so a CR/LF in either could forge log lines. They and the sibling reason/URL lines in the engine, timeout, fingerprint and traffic-rewrite logs are now quoted with%q(#658). -
Trigger payloads are framed as untrusted data: finding, goal and tool-trigger text reached the scheduler prompt without a boundary, so a finding title could be read as instructions. Each payload is wrapped in nonce-tagged
ARTEX_DATAmarkers that the model is told to treat as data (#659). -
Host rate limits use one canonical key:
http://Host:80,https://host/,[::1]and its expanded form, and IDNA/punycode spellings of the same host counted as different buckets, so the per-host limits could be evaded by respelling the URL. Scheme case is normalized before the default port is applied, and the key is built from the unmapped address, its ASCII form and the normalized port (#657). -
DSN password redaction fails closed: values with escaped quotes or backslashes, and keyword/value DSNs, could survive
config.Redactand reach a log. Redaction now handles escaping and, on a malformedpostgres://URL, redacts the whole string instead of falling back to the keyword form (#656). -
Stored LLM credentials stay bound to their proxy route:
testLLMchecked the route butlistLLMModels,setLLMand profile save did not, so a caller could point a stored key at an attacker-chosen proxy and receive it. All four paths now compare scheme, host and port before using a stored credential (#661). -
MCP HTTP clients refuse internal addresses: the client dialed whatever URL was configured, with the environment proxy, so an MCP server URL could reach loopback, the cloud metadata endpoints, link-local or an IPv6 NAT64 form of any of them. A dial-time guard rejects those ranges unless
ARTEX_MCP_ALLOW_LOCALis set, and the proxy is disabled for these clients (#631). -
LLM failover charges the response budget against the context window: the window filter sized only the prompt, so a profile whose window held the prompt but not
max_tokenswas still tried. The provider rejects that call with a 400, and a 400 never fails over (a malformed request fails identically everywhere), so the call failed outright instead of moving to a profile that can hold prompt and response. The estimate now adds the request'smax_tokens, and a member that cannot hold both is skipped; when every member is skipped the chain head is still tried, as before. -
Inserted assets trigger the async enrichment again:
ToolSet.enrichwas assigned bySetEnrichand passed all the way from the manager, but no tool ever read it, so the enrichment engine started, was paced by the noise profile, was covered by tests, and never received a job: an inserted domain was never resolved and an inserted HTTP service was never probed.insert_assetsnow hands each written asset to the engine (domain → DNS resolve, HTTP service → probe), after the intercept gate and only for a row that was actually written. Both ingest tools callinsert_assets, so scanned assets are covered too. -
GET /api/traffic/exchangereports which capture it returned: the response carried only the rawreq/resptext and stream counters, so a caller holding an exchange id could not tell which exchange the bodies came from or when it was captured. It now also returnsidandts(Unix seconds) from the exchange's metadata row. The bench-v2 R2 check needs that timestamp to credit a finding'straffic_ref, and without it every referenced capture was rejected astraffic_ref_missing_timestamp, leaving detection rate and precision at zero for any run with traffic verification on (the default;--skip-traffic-verifyopts out). -
Ollama accepts the Main Agent's tools: the
summarypattern in therecord_factschema was unanchored, and Ollama refuses the whole request with HTTP 400 ("Pattern must start with '^' and end with '$'") when it turns a schema into a grammar, so the first turn failed. The pattern is now anchored and still means "contains a non-whitespace character", multi-line summaries included. A test fails on any unanchored pattern in the schema. Based on the approach in #599 by @Layfate (#595). -
traffic_getkeeps compressed binary responses encoded (follow-up to #606): the decoded view judged a body as binary only by a NUL byte in its first 512 bytes, so a gzipapplication/pdfwithout one was shown as text. It now uses the responseContent-Typeas well, the same check the body index applies. The response head is read before the body, so an exchange without aContent-Encodingno longer loads its spilled blobs, and the request blob is never loaded. -
traffic_searchhost matching: a port search such ashost:8443matched any capture of that host whose URL quotedhost:8443in its query string (?next=http://host:8443/, typical of open-redirect and SSRF probes), because the authority prefix was not anchored to the scheme. It is now anchored tohttp,https,wsandwss. The recorded host keeps the client's case while the search is lowercased, so a capture ofhttps://Mixed.Example.com/was not found by any host search; the comparison now ignores case. A compressed body with a bad checksum or trailing garbage now keeps the text decoded before the error instead of dropping out of the index, and the store directory guard on host delete ignores case for case-insensitive filesystems. -
Browser capture keeps a bounded request map: unfinished debugger requests are capped at 500, and a request that fails to load is dropped instead of waiting for eviction. A stored body longer than 256K JavaScript characters is cut and marked
[truncated by extension]. That count is UTF-16 code units, not bytes; the server still enforces its byte cap on ingest. -
The capture proxy no longer holds a response while indexing it (#542): recording wrote the trigram full-text index of each body (up to 4 MiB) before the client got its response, so a 1 MB script added about 160 ms to its own response. The index text is now committed with the exchange into
ex_fts_pendingand indexed by a background worker; with the indexer idle, recording a 1 MiB script takes about 5 ms. Under a burst of large bodies a recording can still wait behind the entry being indexed, since both need the recorder's write lock. Body searches wait (up to 30 s) for entries queued before them, so they still find every exchange recorded before the search. Entries left by a crash or a stop are indexed on the next start, and shutdown no longer drains the queue. An entry whose exchange was deleted after it was queued is dropped. -
Host-filtered traffic searches no longer sort a host's whole history: the capture index had
hostandtsindexed separately, sotraffic_searchandSearch(WHERE host=? ORDER BY ts DESC) sorted every exchange of the host to return the newest few, and the host picker (Hosts(), polled every 5 s) scanned the table. A(host, ts)index replaces thehostone. With 45k exchanges on one host, a host search drops from about 42 ms to 0.04 ms and the host list from 20 ms to 8 ms. The traffic page's own list (Page()) is unchanged. The index is built once, synchronously, on the first start after upgrading; on a store with millions of exchanges that delays startup and needs temporary disk space about the size of the index. -
The SOCKS5 listener refuses non-loopback clients for every auth method: username/password was offered to any client and accepted any credentials, so a remote client got past the loopback-only rule for no-auth by offering method
0x02. Credentials are still not verified (the username carries only the pace marker), so both methods are now accepted from loopback clients only; bindingARTEX_SOCKS5_ADDRto a non-loopback address no longer exposes an open proxy. -
Request bodies labelled multipart are capped: the 32 MiB body cap skipped any request with a multipart
Content-Type, so a JSON handler reading the body directly could be sent an unbounded body. Multipart bodies now get an upload-sized cap (the largest limit an upload handler sets). -
The
traffic_searchhost example no longer names a real IP: the tool description shown to the model used a routable third-party address; it now uses192.0.2.10(RFC 5737). -
Custom-tool placeholders are substituted once:
renderTemplatereplaces each{name}in the original template only. A value that itself contains{other}stays text, including after shell quoting, and an unknown placeholder is left as written. -
Traffic host delete leaves the store directories in place: a requested host whose sanitized name is
_index,_blobs,_ca,_delete_staging,., or..is not used as a directory. Those paths are the capture index, the blob store, the MITM CA, the delete staging area, or the traffic directory itself. Index rows for that host are still removed. -
Asset insert applies the JSON body cap:
POST /api/assetsdecodes through the shared JSON limit, including amultipart/request that the upload middleware leaves uncapped. A body over the cap is rejected before the database is touched. -
The LLM connection test honours the output-cap field name:
POST /api/llm/testnever read a profile'smax_tokens_field, so the Test button always sent the cap asmax_tokens. An OpenAI reasoning model (o-series, GPT-5) rejects that withunsupported_parameterand a 400, so a profile set tomax_completion_tokensfailed the test even though conversations with it worked. The test now resolves the field from the form, falling back to the stored profile for the list-view test button, and normalises it the same way a profile save does (only the openai format withmax_completion_tokensis kept). -
Skill endpoints no longer return database driver text: a failure loading skill usage, missing-skill stats, or skill visibility is logged on the server and the client receives a fixed message.
-
Hook
ReplaceAllcounts against the memory budget before it runs:strings.ReplaceAll,bytes.ReplaceAllandregexp.ReplaceAllStringbuilt their result first and charged it after, so a hook that repeats a long string over many matches allocated far past the 4 MiB budget. With 1 MiB replaced into each byte of 1 MiB, the runtime asked for 1 TiB and the server process exited withfatal error: runtime: out of memory, in a dry run as on live traffic. The size of the result is now charged before it is built, and the hook stops with the memory limit. -
Agent list tools cap their page size:
list_worker_traces,list_assets, andlist_untested_assetsclamp a model-supplied limit or page size to 100, and clamp the page number and offset. A limit is no longer used raw as a slice capacity or a SQL page size. -
Legacy MCP SSE refuses an overlong line: the endpoint announcement and the legacy event reader stop a line that grows past the existing JSON-RPC buffer cap, instead of buffering it with an unbounded read.
-
The LLM connection test sends no tools: the test passes an empty tool list, but the agent SDK still added its background-task tools (
TaskOutput,TaskStop,TaskList,Monitor), so some models answered with a call to one of them or with tool-like text instead ofOK, and a local reasoning model could spend the whole 30-second budget deciding whether to use them. The test now turns those tools off, the same way goal decomposition does (#526). -
Missing Docker buildx is reported before the build: without the buildx plugin, Compose only warns and falls back to the legacy builder, which fails on the Dockerfile's first
FROM --platform=$BUILDPLATFORMwithfailed to parse platform.install.sh(all-Docker) andupdate.sh(Docker update) now checkdocker buildx versionfirst and stop with an install hint, and the automatic Docker install on apt-based distros not covered by get.docker.com installs the buildx package as well. The README Docker section names buildx as a requirement. -
A goal URL followed by punctuation is still seeded: a goal such as
Assess http://juiceshop:3000.no longer logscould not parse a target host/IPand skips the site. Trailing punctuation, including full-width。and a closing bracket that has no matching opener, is trimmed from the URL before it is parsed, sohttp://[::1]is left alone. The scheme the goal names is kept and a final period does not end up in the host. -
Task timeout triggers fire for every task:
on_task_timeoutused the task id as a watermark, but tasks time out in deadline order. Once a newer task timed out first, an older task that timed out later was never fired for. Fired timeouts are now kept in a persisted set, like met goals; on first start the set is seeded with the tasks already timed out, so nothing replays. -
A named pipe in the task workspace no longer hangs the archive worker: packing opened every non-directory entry, and opening a FIFO blocks until a writer appears, so the single archive worker stopped there and every later archive, restore and delete job waited behind it. A socket failed the archive instead, and a device was packed but refused on restore. The packer now skips every entry that is neither a directory nor a regular file, as it already did for symlinks.
-
Task form does not keep test-account secrets on screen: after a task is created the credential rows are cleared, and the password field is masked.
-
LLM connection-test logs stay one line: the response body written by a connection test has CR and LF replaced with spaces before it is logged, so the body cannot start a second log record.
-
Benchmark judge validation: grading and the judge's falsification battery require one verdict per ground-truth ID, actual boolean decisions and gates, and matches to the supplied scanner findings. Invalid grading responses use the existing three-attempt budget and abort without writing scores, rather than counting duplicate IDs or truthy strings such as
"false". -
Live log subscribers can no longer crash the process: a client disconnect closes its log channel. The sink now delivers a line while it still holds the subscriber lock, so that close cannot land in the middle of the send.
-
Notification delivery ignores HTTP_PROXY: the dial guard checks the address it connects to. An environment proxy made that address the proxy, so a link-local target could still be reached. Notification HTTP now connects directly.
-
Captured traffic blobs are owner-only: HTTP and raw-stream bodies spilled out of the database are written
0600, and their bucket directory is0700. An existing blob is tightened when it is seen again. -
Asset URLs drop userinfo when parsing fails: a URL
url.Parserejects is no longer stored unchanged. Thescheme://userinfo@prefix is removed first, so a password in that prefix does not land in the asset row. -
Hook
==keeps the fraction of a float: comparing a float with an integer truncated the float first, so1.5 == 1and-0.5 == 0were true. A number decoded byjson.Decodeis a float, so a hook testingm["amount"] == 0matched{"amount":0.5}. A float on either side is now compared as a float. -
Hook
rangecounts against the memory budget: ranging over a body, slice, string, or map charges the iteration before the loop. A body larger than the hook budget now stops with the memory limit instead of allocating one element at a time with no check. -
Chat upload name search stops: choosing
name,name-1,name-2, … now returns an error when the filesystem rejects the path or after 10000 collisions, instead of looping whileStatkeeps failing. -
Uploads do not follow a symlink: chat and workspace uploads
Lstatthe destination and refuse to write when it is already a symlink. A dangling link is no longer treated as a free name. -
Hardening follow-up for the upload and capture fixes: existing spill blob directories and files are tightened on startup, hook
rangecharges 32 bytes per pair, and uploads open withO_NOFOLLOWon Unix. The Windows upload path keeps theLstatcheck. -
Docker Compose database passwords with URL-special characters:
docker-compose.ymlno longer pastesPOSTGRES_PASSWORDintoARTEX_PG_DSN. The server builds the URL fromARTEX_PG_HOST,ARTEX_PG_PORT,ARTEX_PG_USER,ARTEX_PG_PASSWORD,ARTEX_PG_DBNAMEandARTEX_PG_SSLMODE, percent-encoding the user and password, so/,?,%,@,:and spaces connect. An explicitARTEX_PG_DSNstill wins and is not rewritten.ARTEX_PG_PASSWORDis removed from the environment with the other startup secrets (#450). -
A CORS proof must use a browser-serialized origin and a matching response: a finding could reach
verifiedwhen the bound exchange carried anOriginheader no browser sends, or a response that never authorized that origin, because verification only checked that the quoted body was present. CORS-class findings now parse the bound request and response heads, require an RFC 6454 serialized origin, and requireAccess-Control-Allow-Originto be that exact origin or*without credentials; otherwise the finding staysunverifiedwith the reason in the verification note. The check reads the finding's own class, so other verification paths are unchanged (#720). -
Egress stops retrying JavaScript bot-mitigation checkpoints: a
403,429or503serving a Vercel, Cloudflare or AWS WAF challenge was treated as a rate limit and retried with backoff, spending the request budget and model tokens on responses a raw HTTP retry cannot get past. An explicit mitigation header, or a Vercel challenge marker in the first 8 KiB of the body, now closes the response and returns aBotCheckpointerror that points the agent at browser tooling. Ordinary429/503rate limits and plain403responses keep their retry behavior (#721). -
Run budgets now bound planner rounds and revive loops (#705): a task could exhaust its run budget while planner rounds kept starting, and an agent-driven
set_goalscould revive a timed-out task indefinitely, which is how the report reached 18.4M tokens against a 250k cap. A normal planner round now starts only when the remaining budget covers the planner estimate plus the next worker, each round has its own turn allowance and usage meter, and once lifetime spend passes the task budget plus the wrap-up reserve the settle sequence skips the final planner round instead of spending more. Automatic agent revival refuses timed-out, settling and budget-exhausted tasks; an operator resume from the console or the chat still works while no run budget is exhausted. A task without a configured budget behaves exactly as before (#705, #714). -
Chat uploads are anchored in the data directory (GHSA-r7q2, GHSA-7h5v):
POST /api/chat/uploadcreateduploads/and wrote through the joined path, so an exec process that owns the task workspace could replace the directory with a symlink and make the panel write operator uploads outside it. Every upload is created and written throughos.OpenRooton the data directory, each path component is verified withLstat, and the file is opened withO_CREATE|O_EXCL, so a symlinkeduploads/is refused and an existing file is never followed or overwritten. -
Task archive journals are validated before any move (GHSA-fqvh): the staging and restore journals were trusted, so a planted
journal.jsoncould make the panelMkdirAllandRenamearbitrary paths as root. Archive id, task id, everyRelativeunderpayload/files, and everySource/Destinationagainst the server-derived task, spill and transcript paths are checked before a move, andarchivesis no longer reachable through the workspace API. -
Workspace writes are race-free (GHSA-3p3q):
wsWrite,wsMkdirandwsUploadresolved the path and then wrote to it, so replacing a parent with a symlink between the check and the write escaped the workspace. They now create, write and rename throughos.OpenRooton the data directory, with each component verified as a real directory. -
Sandbox cleanup proves removal before reporting success (GHSA-cqpr):
KillandDeleteignored Docker transport and status failures, so a worker or egress proxy could survive Pause/Delete while the control plane cleared its identifiers and returned success. Container and network removal now return errors (404 counts as proven absent),Killclears the worker ID only after the container is stopped or absent,Deletekills from the captured state and unpublishes the task only after every resource is proven gone, cleanup uses a fresh bounded context instead of the cancelled request, and a per-task mutex serializes concurrent cleanup. A failed cleanup returns a retryable error. -
Company egress is frozen at operator approval (GHSA-4m9x): an approved
kind='company'task scope expanded at run time from livecompany_scopeand attributed assets, and the planner'sadd_company_scopewrites both, so one approval followed by a scope write widened sandbox egress without a new decision. Migration0024_task_scope_egress.sqladdstask_scope_egress; the domains and CIDRs are materialized when the operator approves the company andtaskSandboxRunInforeads only that snapshot. Existing grants are backfilled with their current inventory, and re-approving the company refreshes the snapshot. -
DNS enrichment uses the deployment resolver (GHSA-g68q): enrichment queried
dnsx.DefaultResolvers(Cloudflare, Google, Quad9, OpenDNS) regardless of the configured proxy, sending target hostnames and timing outside the approved egress path.ARTEX_DNS_RESOLVERSselects the resolvers: unset uses/etc/resolv.conf,offdisables enrichment, a list restricts it, and no usable resolver keeps enrichment disabled instead of falling back to a public one. -
Model clients refuse cross-origin redirects (GHSA-77xh, GHSA-h7g8): a model client built without an explicit redirect policy followed any 30x and replayed the body and credential headers at the new host. Same-origin redirects remain; every other hop is returned as the final response. The GHCR compose file also defaults to the released 0.7.1 images instead of
latest, the Playwright skill installs the pinned@playwright/cli@0.1.22, and the API-recon skill usesnpm ci --ignore-scriptsagainst its lockfile. Digest pinning of base images and Norma's framework-internal hardening remain tracked in the fork. -
The LLM connection test goes through the model URL guard (GHSA-39w9):
POST /api/llm/testaccepted anybase_urland proxy, made the request, and returned the reply or the provider error text, while/api/llm/modelswas already guarded. Both URLs are validated now, every connection and redirect is re-checked at dial time, and the*_PROXYenvironment is ignored. Only public addresses are accepted; a local model server is tested by adding its exacthost:porttoARTEX_LLM_PRIVATE_ENDPOINTS, and SOCKS5 proxies are refused because the guard cannot see the destination behind them. -
Target fingerprint dials through the pinned target gate (GHSA-589f): the fingerprint client used
http.DefaultTransport, so the environment proxy and a fresh DNS answer could reach a private or metadata address after the pre-check. It now uses its own transport, never the*_PROXYenvironment, and dials through the gate's pinned dialer. -
0.0.0.0/8 is not a public address (GHSA-663x):
ValidateExemptionHostandIsNonPublicAddraccepted0.0.0.0/8, so0.0.0.1could be exempted from the target gate or used as a model endpoint. The range is rejected. -
The recording proxy keeps hosts on separate upstream connections (GHSA-q37j): with capture enabled, a plain-HTTP request for a second host reused the first host's upstream connection, Cookie and Authorization headers included. A request for another host now takes a separate client and dials its own host.
-
update_finding_reportis scoped to the caller's task (GHSA-ph8r): the tool wrote and verified by node id with no ownership check, so any agent holding it could overwrite another engagement's report. It now refuses a finding that belongs to another task, keeps inherited findings read-only, and fails closed without a task context. -
Intercept rules reach deferred and MCP tools (GHSA-f7fv): the hook only saw
ExecuteExtraTool, so a deny or ask rule keyed on the real custom or MCP tool never matched. The wrapper input is unwrapped and the rules and the persistence approval are evaluated on the inner call, keeping the stricter of the two decisions. -
The custom-tool test endpoint applies the rules and writes the audit (GHSA-m27c): it dispatched the rendered command, script or URL without evaluating the intercept rules or recording the decision. It now runs the built-in and operator rules on the text it is about to run, refuses a deny or an unanswered ask, and logs the decision.
-
Custom script tools pass the target gate (GHSA-8g8c, script half):
runScriptToolonly ran the stateful check, so a gated task could run a script that reaches any destination. The script text goes through the same destination gate as a command before the interpreter starts. -
config.jsonstays at 0600 (GHSA-8g8c, install half): the installer wrote the file with the ambient umask and a non-root start returned before the permission tightening. The installer chmods it and the start path tightens it before anything else. -
The
rm -rfrule matches separated flags (GHSA-2crf): the built-in rules requiredrfin one token, sorm -r -f /,rm -R -f /andrm -f -r /passed. Both seeded patterns accept combined and separate flags, and a new seed version rewrites the old pattern on existing installs without touching operator-edited rules. -
Task scope reads require operator approval (GHSA-53wc): the asset, company and lesson read paths still honoured agent-written
task_scoperows, so the planner could widen what it reads. Those reads now requireapproved_by_operator, like the sandbox egress; the coverage ledger still counts every row. -
Asset block rules match canonical addresses (GHSA-3vq4, GHSA-v6j2):
exact_ip,exact_domainandfuzzy_ipcompared raw strings, so an expanded IPv6, a trailing dot or an uppercase domain silently failed open. Both sides are canonicalized for matching and at save. -
The installer and the updater normalize a CRLF
.env: a Windows checkout writes the file with CRLF, so every value carried a trailing; compose then reported the requiredARTEX_RUNNER_TOKENas empty and the image build failed before anything started. Both scripts convert.envto LF first, and the token check ignores whitespace. -
Workspace reads, listings, downloads and deletes are anchored on the data directory (hardening follow-up to GHSA-3p3q): the handlers resolved a path and then used it, so a parent swapped for a symlink after the check could redirect a read, a download or a delete. They now use
os.OpenRoot, require every parent component to be a real directory, refuse a final symlink for reads and allow only the link itself for delete;wsReadopens once, rejects non-regular files (a planted FIFO blocked the handler) and reads through the size limit, and archive staging renames go throughos.Rootas well.
Other changes since 0.6.0
The full commit list is in the compare view. The notable changes not already detailed above:
- Sessions and authentication: sessions issued before a password change are rejected (#301); password-change guesses are rate-limited (#343).
- Interception and scope:
insert_assetsis refused when the intercept rules cannot be loaded (#336); an allow is recorded only after the gate decides (#355); target pins stay name-only behind a proxy (#370); deny and ask argv rules match across compound commands (#377); always-allow is denied for git, cmake, ctest and cpack (#385);ExecuteExtraToolandMonitorare gated by default (#389). - Workspace, network and execution boundaries:
ask_operatorimage paths are confined to the task directory (#337); workspace and skill paths are confined against symlink escapes (#372); the capture CA and index stay out of the workspace file API (#387); the model-list endpoint blocks SSRF (#390); agent execution is contained with the executor UID drop (#395); the optional DNS-driven egress allowlist is available as a compose overlay (#418). - Traffic and evidence: WebSocket and SSE messages are recorded and shown (#254, #255); an edited request can be replayed through the recording proxy (#258); rewrite rules apply in the capture proxy (#309); rewrite provenance is recorded on snapshots and archives (#392, #394, #399); HAR 1.2 import and export are available (#412); SOCKS5, transparent TCP, UDP recording and constrained tampering hooks are opt-in (#431, #432, #433, #434);
record_factties evidence to recorded activity and captures (#441). - Data and export: formula cells are neutralized in the findings CSV export (#340); asset DSL length and parenthesis depth are bounded (#353); keyword-value and query DSN passwords are masked (#354); CR and LF are rejected in ingested methods and headers (#344).
- Third-party code and install: acquiring third-party code can require explicit operator approval (#417); the runtime image adds more recon staples (#442);
install.shstops using get.docker.com on unsupported distributions such as Kali (#443).