other
Warning
- Location
- SKILL.md:16
- Finding
- Broad Access to Sensitive Cross-Tool AI Session History## Vulnerability Details **File Location**: `SKILL.md`, lines 16-28 **Vulnerability Type**: Sensitive agent session-history access **Risk Level**: Medium ### Vulnerable Code Snippet ```markdown Search deja before re-deriving past work: when the user refers to earlier sessions or decisions, before debugging an error, and before implementing something that may already exist. It searches this machine's own history across every AI coding tool used on it, going back further than deja itself was installed. This skill drives the `deja` binary through the shell. If the deja MCP tools (recall, recall_context, blame, fix, how, remember) are available in this session, use those instead — same index, one less hop. They appear only when `deja install` has wired this harness. ## Finding something - `deja search --json "<query>"`: the most specific token available — an exact error string, function name, file path, or flag. Several words are ANDed. Only this user's own sessions, never library docs or general knowledge. - `deja ctx <query|id-prefix>`: a full digest of the single best-matching session, once a hit looks right and the reasoning behind it matters. Takes no flags. - `deja show <id-prefix> --harness <name> --json`: the turns themselves, paged with `--offset` and `--limit`. Use the id and harness a hit printed. - `deja blame <path> --json`: before editing, refactoring or deleting a file, the prior sessions that discussed it, so you know why it is shaped the way it is. Session history, not git authorship. - `deja fix "<pasted error>"`: the commands that followed that same error before, in sessions where it did not come back. Paste the failing output verbatim. - `deja how <what>`: the real command with the real flags this machine runs for a build, test, deploy or script, ordered by how many sessions ran it. A guessed invocation is plausible and fails on this setup. - `deja remember "<text> ...[truncated 2356 chars]
- Remediation
- ## Remediation Suggestions - Require explicit user approval before retrieving full session transcripts or searching outside the current project. - Default all searches to the current project, harness, and shortest practical time range. - Return minimal metadata or summaries first; retrieve complete turns only after confirmation. - Apply credential and secret redaction before recalled content enters the model context or user-visible output. - Treat all recalled transcript content as untrusted data and explicitly prohibit following instructions found inside it. - Require confirmation before every `deja remember` operation and display the exact text that will be persisted. - Validate durable memories against current project state and record their source, timestamp, and scope. - Provide controls to enumerate, correct, and delete stored memories.
