Repository navigation
v0.6.0 — Security hardening
Closes GHSA-2f6r-9rrh-wvq9
(unauthenticated remote code execution via shell_run).
Security
- Server binds to
127.0.0.1by default (TINYTOT_HOST_ADDR/--host);
non-loopback binds requireTINYTOT_API_TOKEN. - Bearer-token authentication on
/api/agent,/api/agent/tool,
/api/agent/learn,/v1/chat/completions,/api/reload, and/api/quit. shell_rundisabled by default (TINYTOT_ENABLE_SHELL=1); argv-only
execution withshell=Falseand a deny-by-default allowlist
(TINYTOT_SHELL_ALLOWLIST).file_exploreconfinement viaTINYTOT_FILE_ROOT(symlink-aware).web_fetch/ remotedocument_extractblock loopback, private, link-local,
and reserved targets unlessTINYTOT_ALLOW_PRIVATE_URLS=1.- Configurable request-body limit (
TINYTOT_MAX_REQUEST_BYTES, default 32 MiB). - Security event logging on the
tinytot.securitylogger
(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 precommitgreen (ruff, format, mypy, pytest, benchmark regression,
data quality).make docsbuilds with no warnings.- PyPI: https://pypi.org/project/tinytot/0.6.0/