Skip to content

Security: ixchio/terx

Security

SECURITY.md

Security Policy

Supported versions

Version Supported
Latest stable release Yes
Older releases No

Upgrade with pip install --upgrade terx.

Reporting a vulnerability

Do not open a public issue. Use GitHub private vulnerability reporting or the maintainer address in PyPI metadata. Include impact, a minimal reproduction, and suggested remediation if available.

Trust boundary

The full threat model, including residual risks, is in docs/threat-model.md.

TERX connects to a Chrome instance exposed through a local CDP WebSocket. CDP has the authority of that browser profile. Use a dedicated profile for browser automation and never expose its debugging port to an untrusted network.

TERX is a replay gate, not a sandbox. A cached workflow is eligible only when its caller scope, route, precondition, DOM structure, workflow version, and expiry match. Postconditions must pass before a cold run is cached and after a warm replay completes. Destructive replays require a host approval verifier to atomically validate and consume an opaque approval token. TERX rejects any decision that is not both approved and consumed; a non-empty token alone has no authority.

Only TERX.navigate, TERX.click, TERX.type, TERX.check, TERX.select, and TERX.press (Enter, Tab, or Escape only) are persisted. Arbitrary CDP commands, other keyboard and mouse events, coordinate clicks, and arbitrary JavaScript are not replayable. Ambiguous or missing semantic targets, and targets whose recorded signals disagree, are refused, not guessed. Replayable navigation excludes query strings, fragments, and embedded credentials, and a {{placeholder}} may appear only in a URL's path, never its host.

Replay policy conditions allow only non-empty URL, title, visible-text, and selector checks. Arbitrary JavaScript conditions cannot enter the replay cache. The complete contract is checked with a fingerprint; condition values are not persisted in the cache's policy summary.

Data handling

  • Cache and audit data are written locally under .terx/ by default. Treat this directory as sensitive application data.
  • Cached CDP response payloads are discarded. Audit records use the same semantic, redacted action representation as the cache.
  • Typed values must be supplied through named variables to be cacheable. TERX stores placeholders such as {{email}}, not those variable values.
  • Password, token, key, card, and other configured sensitive field names are redacted at persistence and audit boundaries. TERX_REDACT_FIELDS extends this label policy.
  • Scope IDs are stored as an HMAC-SHA256 digest keyed by a random local key (.terx/scope.key, mode 0600), so a digest shown by browser_tool_list or terx inspect cannot be reversed by guessing likely scopes. Processes that share a cache must share the key (or pass MemoryCache(scope_key=...)). Entries written by earlier releases with an unkeyed SHA-256 digest are re-keyed the first time a caller presents that scope.
  • A scope ID is a namespace the caller asserts, not an authentication credential. Any MCP client that knows a scope ID can use that scope; use an opaque, high-entropy scope ID where that matters.
  • MCP clients can only replace or delete a saved tool, or invalidate cached workflows, for a scope they present. A tool can only be saved when a live recorded workflow matches its task, scope, version, and policy.
  • TERX does not capture or store screenshots during recording or replay.
  • Conditions accept only url_contains, title_contains, text_contains, and selector_exists; any other key fails closed rather than running script. MCP navigation refuses browser-internal pages (chrome:, devtools:, chrome-extension:, view-source:, and about: other than about:blank).

Network egress

Normal cache recording and replay make no network calls beyond the CDP browser traffic already initiated by the workflow. TERX contains no model client and never calls an LLM provider.

Response targets

We aim to acknowledge reports within 48 hours and provide an initial assessment within five business days. Disclosure is coordinated after a fix is available.

There aren't any published security advisories