session-context
Warn
Audited by Gen Agent Trust Hub on Jul 31, 2026
Risk Level: MEDIUMDATA_EXFILTRATIONPROMPT_INJECTION
Full Analysis
- [DATA_EXFILTRATION]: The skill recommends a method for propagating session context (Method A) that encodes the entire context object into a URL parameter using Base64.
- Evidence: In
SKILL.md, Step 5 suggests:const encoded = btoa(JSON.stringify(context)); const url = \${baseUrl}?ctx=${encodeURIComponent(encoded)}`. This practice exposes potentially sensitive user query history and session metadata to server logs, browser history, and HTTPReferer` headers. - [PROMPT_INJECTION]: The skill facilitates the storage and retrieval of untrusted user queries to maintain context across multi-turn interactions, creating a surface for indirect prompt injection.
- Ingestion points: Untrusted user input enters the system via
SessionContextManager.addQuery(entry)inSKILL.md. - Boundary markers: The implementation lacks boundary markers or instructions to the agent to ignore instructions embedded within the retrieved
queriesarray. - Capability inventory: The stored context is intended to be consumed by classification pipelines and recommendation engines (described in Step 2 and 3), which influence agent logic and tool selection.
- Sanitization: No sanitization, filtering, or validation is performed on the
querycontent before it is stored insessionStorageor the server-side KV store.
Audit Metadata