Your coding agent just read your API keys. I built a local check so they don't reach the model
Описание и применение
Плагин Torana проверяет вывод инструментов локальной моделью, блокируя раскрытие API‑ключей и паролей, прежде чем они попадут в облачную модель.
Задача
Coding agents can inadvertently expose API keys or passwords to hosted LLMs when they include file contents in requests.
Результат
The local scanner blocks 60 of 60 sensitive outputs while allowing most harmless outputs, with some false positives and false negatives depending on model and prompt.
Рабочий процесс
- 1. Agent reads file or runs tool.
- 2. Output sent to Torana’s pii plugin.
- 3. Plugin forwards output to a local model (e.g., Qwen2.5‑3B‑Instruct).
- 4. If model flags API key/password/PII, plugin replaces result with a short explanation.
- 5. Agent receives sanitized response and can retry with narrower scope.
Доказательства
I built it as a plugin for Torana, an open‑source, local‑first proxy that sits between your coding agent and its model provider.
If the model flags an API key, password or private personal data, the plugin replaces the whole tool result with a short explanation.
I compared seven local chat models and several specialised detectors on 60 sensitive and 60 harmless synthetic examples.
Scanning adds about a second per tool result, and large outputs that don't fit the model's context are blocked as scan failures.
- Дата записи: 2026-10-04T10:40:46.952Z