Repository navigation
Closed
Description
Context
Research sweep 2026-09-12 (see skill ref arxiv-harness-papers.md addendum): no formal standard governs harnesses, but OWASP Agentic/LLM Top 10 is the de-facto security checklist. tole has never been audited against it as a whole; fixes so far were finding-driven (#68, jail fixes), not threat-model-driven.
Scope
Map tole's full attack surface against OWASP Agentic/LLM Top 10 and close what is cheaply closeable:
- Threat model doc (`docs/threat-model.md`): assets (session logs, API keys, workspace files, subprocess reach), trust boundaries (provider responses, tool results, MCP servers later, workspace files authored by others).
- Checklist mapping — for each OWASP item: `control exists (where)` | `gap → fix/issue` | `N/A + rationale`. Known suspects to examine first:
- Prompt injection via tool results: read_file/job_poll log content flows into context unaudited — a malicious workspace file can steer the model. Mitigations to evaluate: injection-marker framing, result-size caps, content classification.
- run_command vs risk tiers: run_command can `rm -rf` while being gated as mere `Write` — the Destructive tier is structurally bypassable. Policy decision needed (keep + document vs classify by argv heuristic).
- Secret redaction coverage: scrub covers API key string; env inherited by child processes (run_command/job_start) can leak OTHER host secrets into logs.
- job_start log path: symlink swap between pid-write and log-write (TOCTOU window), log flooding (bounded read exists; unbounded write on disk does not).
- Workspace jail vs --workspace: wider jail = wider blast radius for injected instructions.
- Fix quick wins in the same effort; file separate issues for structural ones.
- Update .cora.yaml rules encoding the intentional patterns found.
Acceptance criteria
- docs/threat-model.md with the OWASP mapping table, every item resolved to control/gap-issue/N/A
- Quick-win fixes merged with tests
- Structural gaps tracked as their own issues
- cora scan re-run: no new CRITICAL/MAJOR open
Priority: 1st of the three roadmap focuses (cheapest, protects users now).
Metadata
Metadata
Assignees
Labels
No labels
Activity
fix: OWASP agentic hardening — fenced tool results, env scrubbing, de…