mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-28 01:21:43 +00:00
- Sanitize filenames in cache_document_from_bytes to prevent path traversal (strip directory components, null bytes, resolve check) - Reject documents with None file_size instead of silently allowing download - Cap text file injection at 100 KB to prevent oversized prompt payloads - Sanitize display_name in run.py context notes to block prompt injection via filenames - Add 35 unit tests covering document cache utilities and Telegram document handling Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| agent | ||
| cron | ||
| gateway | ||
| hermes_cli | ||
| integration | ||
| tools | ||
| __init__.py | ||
| conftest.py | ||
| test_hermes_state.py | ||
| test_model_tools.py | ||
| test_run_agent.py | ||
| test_toolset_distributions.py | ||
| test_toolsets.py | ||