Skip to content

taOS 1.0.0-beta.59 (security release)

Choose a tag to compare

@jaylfc jaylfc released this 24 Nov 23:33
· 47 commits to master since this release
0dab4bc

Security: memory search service and shared memory

What was wrong: on a taOS machine with more than one signed-in person, one person could read or delete another person's agent memory, because the memory routes did not check who owned the agent, and the memory search service (qmd, port 7832) listened on the whole network with no sign-in of its own.

Who is affected: every install that has two or more people or agents. If you are the only person using taOS, nobody else could reach your memory through taOS, but the memory search service was still reachable from your network (see below).

What this release changes:

  • taOS now checks that you own an agent (or are an admin) before it shows, searches or deletes that agent's memory. The same check now covers the other per-agent screens: channels, the agent debugger, traces, the recycle bin, skills, framework updates, provider access requests and library import.
  • Memory you save without naming an agent now goes to your own private index, one per person. The install owner keeps the existing one.
  • taOS will not answer memory requests while the memory search service is too old to keep people apart. You will see "memory service needs updating" until the step below is done.
  • New installs set the memory search service up to listen on this machine only.

IMPORTANT: until you run the one-time command below, the memory search service on an existing install keeps listening on the network, exactly as before. Updating taOS alone does not close it. Anyone who can reach port 7832 on your machine can still use it. If your machine is on a shared or untrusted network, run the command now, or block port 7832 with your firewall.

Your older memory is not touched. Memory written before this update stays where it is. A viewer for it, for the install owner only, follows in a later release.

Upgrade instructions for owners

  1. Update taOS in Settings, Updates, as usual. Your agents keep running.
  2. After the update, a notification says "Memory service needs updating". Until you finish step 3, memory screens show "memory service needs updating" and the memory service still listens on the network.
  3. Open a terminal on the machine taOS runs on and run the one command shown in the notification. It asks for your machine password once. It installs a small helper that can only apply steps the taOS project has signed, and it applies the first one: it upgrades the memory service and makes it listen on this machine only.
  4. When it finishes, the notification disappears and memory works again, now one private index per person and per agent.
  5. From now on, core parts of taOS update with one click in Settings, with no password.

If you want the memory service reachable from other machines on purpose, set QMD_BIND in /etc/default/qmd before you run the command (a bind set only in a systemd drop-in is not read), and keep port 7832 firewalled to the machines you trust.

Fresh installs: nothing to do; the installer does all of this.

Advisory: GHSA-w7ww-v892-c2jg

Thank you to golam71 for reporting this and to i-vt for the analysis.