2196 Commits
Author SHA1 Message Date
BaaRai 6fadfa2e12 Merge pull request #712 from extimsu/feat/global-proxy-test-connection
feat: test the global proxy connection from Settings
2026-12-06 02:15:57 +01:00
Sisanta Chhatoi b43ce18d63 refactor(web): useReducer for the tasks list page
Part of #546.
2026-12-06 02:15:47 +01:00
Sisanta Chhatoi 54df82114d refactor(web): useReducer for the traffic picker, link-traffic dialog, finding traffic panel and task templates
Part of #546.
2026-12-06 02:15:40 +01:00
Sisanta Chhatoi 5b70bab668 refactor(web): useReducer for the agent editor, approval records and intercept card
Part of #546.
2026-12-06 02:15:26 +01:00
Sisanta Chhatoi 3c9366868b fix(web): findings page shows the old page's rows after a filter change
The page reset now happens in the same update as the filter change. Part of #546.
2026-12-06 02:15:18 +01:00
BaaRai a0cb6cc2b7 Merge pull request #1024 from BaaRai/docs/changelog-dedupe
docs(changelog): drop the duplicate task-files entry
2026-12-06 00:55:49 +01:00
BaaRai 2e78f528cc docs(changelog): drop the duplicate task-files entry 2026-12-06 00:49:56 +01:00
BaaRai 72e27b678d Merge pull request #972 from MirzaHasnat/feat/task-files-link
feat(web): link the task page to the task's files
2026-12-06 00:17:07 +01:00
mirzahasnat 3823202bf7 feat(web): link each worker on the task page to its folder
A worker runs in tasks/<id>/i<intent id>, but the Sessions tab had no
way to open that folder. A worker whose folder exists now gets a folder
button in its row (shown on hover, like the delete button) that opens
Workspace there. The tab lists tasks/<id> once to see which folders
exist, and again every 10 s only while a running or paused worker's
folder has not appeared yet. Workers inherited from a source task get
no button. One new string in each locale.
2026-12-06 00:11:09 +01:00
mirzahasnat 77b102f09d feat(web): link the task page to the task's files
A task's agents write their output under tasks/<id> in the shared
workspace, but the task page had no way to get there: you had to open
Workspace and browse to the folder by hand. A folder button in the task
header now opens Workspace at tasks/<id>. It reuses the existing
"Task files" string, so no locale changes.
2026-12-06 00:10:44 +01:00
BaaRai 580a9358e1 Merge pull request #1000 from IhateStomachProblems/fix/pipe-into-shell-ask
fix(intercept): ask before a pipe feeds a shell
2026-12-06 00:09:45 +01:00
BaaRai 8928906dbf Merge pull request #971 from MirzaHasnat/feat/workspace-file-preview
feat(web): preview workspace files in the file sheet
2026-12-06 00:08:49 +01:00
BaaRai 40e5548921 Merge pull request #964 from renaesop/codex/startup-permission-scan
perf(server): avoid repeated workspace permission walks on restart
2026-12-06 00:08:41 +01:00
BaaRai 11de92810a intercept: keep the pipe-into-a-shell ask below the deny rules and match it on the parsed command
The ask was seeded at priority 85, above the built-in deny rules at 80.
The first matching rule decides, so curl -XDELETE http://t/api/users/1 | sh
turned from a deny into an ask. Seed it at 75. The seed is unreleased, so
the value changes in place under the same flag.

The pattern read the whole input as text. It missed wrappers, subshells,
quoting and most shells, and it matched a | inside quotes, a ||, the
content of a Write and a URL. It now reads only the value of a "command"
key, in three parts:
- on the parsed Bash form (every simple command printed with its quotes
  and backslashes removed, commands joined by "; "), a shell that is not
  the first command, after optional wrappers (sudo, doas, env, exec,
  command, setsid, nohup, busybox, stdbuf, nice, timeout), with only
  options that give it no script;
- a shell given -s, in any position;
- on the input as written, for a line the parser rejects and for the
  other command tools, a | that is not part of ||, then the same wrappers
  and shell with only such options.
shell_open {"command":"bash"} and a first-position shell without -s do
not ask.

Open forms, also listed above the pattern: a script fed without a pipe
(sh -c "$(curl x)", eval, bash <(curl x), source <(...), . /dev/stdin,
bash < file, a bare first shell with a here-document), a program word
built at run time (| $SHELL), wrappers not listed (xargs, chroot, su -c,
flock, nsenter, sudo -s), other interpreters, a bare shell after ;, &&
or || and a quoted word that contains "; sh" (the parsed form keeps
neither the operator nor word boundaries), quoted text that spells a
pipe into a shell, and fish -v.

The seed test asserts priority 75 and that every enabled built-in deny
rule sits above the ask. A new server test drives the real engine with
the seeded rules: the deny rules keep their deny, the wrapped, quoted and
subshell forms ask, and ||, quoted pipes, Write content, a URL and
shell_open do not.

Refs #966
2026-12-05 23:49:54 +01:00
renaesop 4a2321db46 perf(server): reuse completed workspace permission migrations 2026-12-05 23:49:41 +01:00
BaaRai 4e97520a49 Merge pull request #906 from Amirhosseing/fix/container-create-409-adopt
fix(sandbox): resolve container-create 409 name conflicts instead of failing
2026-12-05 23:49:15 +01:00
BaaRai bff90021ba Merge pull request #912 from renaesop/codex/runtime-script-targets
fix(intercept): defer eligible Docker script targets to runtime
2026-12-05 23:49:06 +01:00
BaaRai 44477cd38f Merge pull request #925 from thecorporatetractor/fix/kube-v6-mapped-except
fix(sandbox): never-list NAT64 forms and drop the IPv4-mapped except from IPv6 scope blocks
2026-12-05 23:48:58 +01:00
BaaRai a27a9a9e5b Merge pull request #1008 from LoniKarmon/docs/build-sandbox-images
docs: build the per-task sandbox images in every checkout path
2026-12-05 23:35:35 +01:00
BaaRai 2e123268a3 Merge pull request #1016 from sisantaChhatoi/ci/race-only
ci: run the Go suite once, under -race
2026-12-05 23:35:26 +01:00
BaaRai 426df83358 Merge pull request #975 from HalxDocs/finding-evidence-skill
skills: add finding-evidence skill (verified, traffic-bound finding reporting)
2026-12-05 23:35:17 +01:00
BaaRai fd03a38614 Merge pull request #1019 from Sinfinal/fix/config-redact-token-and-apikey-query
fix(config): mask token, api_key, and secret query parameters in Redact
2026-12-05 23:35:10 +01:00
BaaRai 2776b38b4c Merge pull request #1017 from kezyandrew/fix/docker-download-retries
fix(docker): retry transient failures on verified tool downloads
2026-12-05 23:23:44 +01:00
BaaRai 6585537565 Merge pull request #1003 from ege-arhan/fix/coverage-tool-injection
fix(tools): keep coverage-only tools out of the shared domain registry
2026-12-05 23:23:35 +01:00
BaaRai 31fa354018 Merge pull request #1011 from goul4rt/fix/ingest-body-utf8
fix(server): don't split a UTF-8 rune when truncating ingested bodies
2026-12-05 23:23:26 +01:00
BaaRai f20086dcdf Merge pull request #1018 from Sinfinal/fix/agent-provider-proxy-error-redaction
fix(agent): omit raw proxy URL from LLM provider validation errors
2026-12-05 23:23:17 +01:00
Sinfinal cb32f31faf fix(config): mask token, api_key, and secret query parameters in Redact 2026-12-06 06:03:48 +08:00
Sinfinal ffacadb458 fix(agent): omit raw proxy URL from LLM provider validation errors 2026-12-06 05:57:20 +08:00
BaaRai 7c7e04830d Merge pull request #1014 from Sinfinal/fix/config-redact-fail-closed
fix(config): fail closed in Redact on split userinfo passwords and malformed queries
2026-12-05 22:54:02 +01:00
BaaRai 4a74435d38 fix(config): redact any raw @ outside the userinfo
A raw @ in the path, query or fragment has the same shape as a password that an unencoded #, / or ? split out of the userinfo, so it now fails closed to postgres://[redacted]. The benign query test uses the percent-encoded form, and the split-after-= cases are in it.
2026-12-05 22:33:51 +01:00
BaaRai 3bdf6ba147 Merge pull request #1013 from Sinfinal/fix/bash-decoded-input-case-insensitive
fix(intercept): decode Bash command key case-insensitively in bashDecodedInput
2026-12-05 22:32:53 +01:00
BaaRai 6e580b2776 Merge pull request #932 from thecorporatetractor/fix/chatbridge-command-whitespace
fix(chatbridge): split a command from its arguments at any whitespace
2026-12-05 22:09:47 +01:00
Andrew kezyandClaude Opus 5.5 de40408af9 fix(docker): retry transient failures on verified tool downloads
The recon tool release download and the Node tarball download in the
Dockerfile used a single curl attempt, so one dropped connection or DNS
timeout failed the whole image build. Add --retry 5 --retry-all-errors
--retry-delay 2 to both curl calls. The SHA-256 checks that follow are
unchanged, so a retried download is still verified.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-06 00:03:59 +03:00
sisantaChhatoiandClaude Opus 5.5 abb25e37a6 ci: run the Go suite once, under -race
The go job ran every package plainly and then ran 16 of them, including
the slowest (server, db, agent, traffic), a second time under -race.
Nothing in the repository is excluded under the race build, so the race
run already covers what the plain run checks for those packages; the
duplicate cost about 5 of the job's ~19.5 minutes.

The race step now covers ./... except traffic/hookvm, whose memory-budget
test counts the race detector's own allocations against its 1 MiB budget;
that package keeps a plain run. The other 13 packages that only ran
plainly pass under -race. The separate artextest_race database existed
because the plain run left rows behind, so it goes too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-06 01:44:16 +05:30
Sinfinal ae9754bd62 fix(config): fail closed in Redact on split userinfo passwords and malformed queries 2026-12-06 03:23:07 +08:00
Sinfinal c9a0bbacb4 fix(intercept): decode Bash command key case-insensitively in bashDecodedInput 2026-12-06 03:17:06 +08:00
goul4rt 3a40e5ccf6 fix(server): don't split a UTF-8 rune when truncating ingested bodies 2026-12-05 18:09:54 +00:00
LoniKarmon 7991d4ea70 docs: build the per-task sandbox images in every checkout path
artex-worker and artex-egress-proxy are build-only compose services
the runner instantiates per task, and a plain docker compose up -d
--build selects neither, so a first install following the README quick
start (or INSTALL.md Option 2, the Desktop notes, docs/OPS.md, or the
manual update instructions) started a healthy-looking stack whose
first task failed with No such image: artex-egress-proxy:local and
paused as sandbox-unavailable (#900).

install.sh and update.sh already build all three images; the remaining
documented paths now show the same two build commands before up -d,
the README's description of ./update.sh matches what the script runs,
OPS.md names the required ARTEX_RUNNER_TOKEN, and the video script's
recorded commands match INSTALL.md again as its header requires.
2026-12-05 18:30:42 +02:00
Marco Azarmaneche d2f902db33 fix(sandbox): drop the IPv4-mapped except from IPv6 scope blocks
For a Kubernetes task whose scope contains ::ffff:0:0/96, such as ::/0,
::/1 or ::/8, proxyPolicyObj added ::ffff:0:0/96 from the never-list as
an except of the scope block. The API server rejects that policy ("must
be a strict subset of cidr"), so every exec of the task failed.

Skip IPv4-mapped never-prefixes when building excepts. Mapped addresses
leave the pod as IPv4, where the IPv4 rules apply, and the proxy unmaps
them before its checks.
2026-12-05 14:10:38 +02:00
Marco Azarmaneche c09be6c479 fix(sandbox): never-list the NAT64 forms of the denied IPv4 ranges
A NAT64 gateway connects 64:ff9b::a.b.c.d to a.b.c.d. A Kubernetes task
scope covering 64:ff9b::/96, such as the prefix itself, could therefore
reach loopback, the private ranges and the cluster's own ranges through
NAT64. The never-list held only the NAT64 form of link-local. The next
commit makes ::/0, ::/1 and ::/8 runnable, which would widen this.

NewKubernetesBackend now adds the NAT64 form of every IPv4 range the
proxy's public rule excepts (the defaults, ARTEX_KUBE_PROXY_DENIED_CIDRS,
the IPv4 never-list, cluster CIDRs and the API server) to the never-list,
derived from that list instead of written by hand. The proxy policy
excepts them from the IPv6 scope blocks that contain them and drops a
block inside one; the proxy refuses them through ARTEX_NEVER_CIDRS.

RFC 6052 does not allow the well-known prefix for non-global IPv4, so
for the private, loopback and link-local ranges this removes no
compliant NAT64 path.
2026-12-05 14:10:09 +02:00
Ege Arhan 2ed4e78684 fix(tools): keep coverage-only tools out of the shared domain registry
AllDomainTools is built from a task-less ToolSet and feeds buildDomainReg,
which ToolResolve uses to inject any tool bound to an agent. record_coverage
and list_untested_assets were registered there, so a worker whose
coverage_enabled=false had them dropped in its own base and then injected
back by the resolver: the model saw record_coverage and every call answered
"record_coverage requires a task context" (#892).

Signed-off-by: Ege Arhan <egearhany@gmail.com>
2026-12-05 09:31:15 +00:00
Amirhosseing 61b4f81faf fix(sandbox): never adopt a 409 holder; always reclaim by ID and recreate
Review follow-up: the adopt branch compared only labels, image tag and
ARTEX_* env, so a privileged holder with all capabilities, bridge
networking and the Docker socket mounted - or a proxy holder without the
task DNS setting - would be adopted and exec'd, while the settings gap
was invisible to the fake daemon's tests. Per review, drop the adopt
branch entirely and always reclaim by ID and recreate, which the PR
already implemented:

- adoptContainerByName is now reclaimNameHolder: the only decision left
  is foreign-vs-ours. It never returns a holder to reuse; every
  runner-managed same-task holder is removed by its inspected ID and
  recreated from the current spec, the only state the runner can vouch
  for. The image/env comparison is gone with the decision it served.
- docker.go:441 per review: a spec whose Labels are missing, nil, or of
  an unexpected type can no longer fall back to the managed-by label
  alone - same-task ownership is unprovable, so the reclaim refuses and
  nothing is removed.

Tests:
- TestCreateConflictAdoptsMatchingHolder becomes
  TestCreateConflictReclaimsMatchingHolder: even a fully matching holder
  is removed by ID and recreated (adoption removed).
- new TestCreateConflictRefusesSpecWithoutLabels: missing labels, wrong
  label type and nil labels each refuse with zero removes.
- the outdated-holder, removed-spec-key, vanished-holder, foreign-holder
  and other-task-holder tests unchanged: still reclaim/refuse correctly.

Full go test ./sandbox/ green, go vet ./sandbox clean.
2026-12-05 07:44:01 +03:30
IhateStomachProblems 6acee35d44 intercept: ask before a pipe feeds a shell
The built-in rules read the command as written, so a payload encoded
before it reaches the shell (echo <base64> | base64 -d | sh) carries no
dangerous text while it runs. Add a built-in ask on pipelines into a
shell, and on a shell told to read its script from stdin (bash -s), so
the operator sees the command before it runs without anything having to
be decoded.

The ask times out to deny after 30 minutes so an unattended task cannot
wait on it forever. The kill-switch test runs its curl | bash fixture
with an empty rule set: a test has no operator to approve the new ask,
and that test exercises the kill switch rather than the rule engine.

Refs #966
2026-12-05 10:48:21 +08:00
renaesop aaa2237986 fix(intercept): defer eligible Docker script targets to runtime 2026-12-05 10:45:09 +08:00
Marco Azarmaneche 0613d74a38 fix(chatbridge): split a command from its arguments at any whitespace
parseCommand cut "/name@bot args" only at a space. A command whose
arguments followed on the next line or after a tab kept them in the
name: "/task\n42" was answered as an unknown command, and
"/task@bot\n42" read the bot name as "bot\n42", did not match, and
was ignored as addressed to another bot.

Split at the first unicode.IsSpace rune instead. Arguments that
already followed a space are unchanged, including multi-line ones.
2026-12-05 02:07:06 +01:00
BaaRai 8f2fd634be Merge pull request #933 from thecorporatetractor/fix/format-bytes-1024
fix(web): show 1.0 MB instead of 1024.0 KB in formatBytes
2026-12-05 02:06:57 +01:00
Marco Azarmaneche 3dabb5f1ef fix(web): show 1.0 MB instead of 1024.0 KB in formatBytes
formatBytes moved to the next unit only when the value reached 1024,
but toFixed(1) already rounds 1023.95 and up to "1024.0". So
1,048,575 bytes rendered as "1024.0 KB" and 1 GiB - 1 as
"1024.0 MB".

Move to the next unit from 1023.95 above bytes, the same approach
formatTokens takes for "1000k". Bytes still switch to KB at 1024.
2026-12-05 02:04:33 +01:00
BaaRai c3950fe0cf Merge pull request #935 from thecorporatetractor/fix/retarget-whole-host
fix(db): match only whole hosts when retargeting a task
2026-12-05 02:03:18 +01:00
BaaRai 04c7d43de3 Merge pull request #949 from rsteach/patch-1
Fix ARTEX directory permissions
2026-12-05 02:01:58 +01:00
BaaRai f6a3b08390 Merge pull request #962 from kobadaidesu/docs/restore-compose-env
docs(backup): expand restore variables inside the Postgres container
2026-12-05 02:01:50 +01:00