Skip to content

v0.6.0 — Security hardening

Latest

Choose a tag to compare

@guilt guilt released this 08 Nov 02:54

v0.6.0 — Security hardening

Closes GHSA-2f6r-9rrh-wvq9
(unauthenticated remote code execution via shell_run).

Security

  • Server binds to 127.0.0.1 by default (TINYTOT_HOST_ADDR / --host);
    non-loopback binds require TINYTOT_API_TOKEN.
  • Bearer-token authentication on /api/agent, /api/agent/tool,
    /api/agent/learn, /v1/chat/completions, /api/reload, and /api/quit.
  • shell_run disabled by default (TINYTOT_ENABLE_SHELL=1); argv-only
    execution with shell=False and a deny-by-default allowlist
    (TINYTOT_SHELL_ALLOWLIST).
  • file_explore confinement via TINYTOT_FILE_ROOT (symlink-aware).
  • web_fetch / remote document_extract block loopback, private, link-local,
    and reserved targets unless TINYTOT_ALLOW_PRIVATE_URLS=1.
  • Configurable request-body limit (TINYTOT_MAX_REQUEST_BYTES, default 32 MiB).
  • Security event logging on the tinytot.security logger
    (TINYTOT_LOG_LEVEL).

Added

  • New Security and Hardening guide.
  • Regression tests for authentication, request limits, shell gating, SSRF,
    file-root confinement, logging, and host configuration.

Verified

  • 696 passed, 7 skipped under Python 3.8.
  • make precommit green (ruff, format, mypy, pytest, benchmark regression,
    data quality).
  • make docs builds with no warnings.
  • PyPI: https://pypi.org/project/tinytot/0.6.0/