user-preferences
Pass
Audited by Gen Agent Trust Hub on Sep 28, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill's core functionality involves storing user-provided strings and instructing the agent to 'load' and 'honor' these as constraints in subsequent sessions. This creates a surface where instructions could be persisted and influenced by external data if the user records preferences based on untrusted content.
- Ingestion points: User-provided text is captured through the
setandnoteoperations inscripts/prefs.pyand stored in~/.claude/memory/preferences/. - Boundary markers: The
loadcommand prints active preferences as a list without specific delimiters or instructions to the agent to treat the values as untrusted data. - Capability inventory: The skill has the capability to write to and read from the local file system using the
prefs.pyscript. - Sanitization: The script proactively uses a
_onelinefunction to collapse whitespace, preventing multi-line inputs from injecting new keys into the markdown frontmatter (schema confusion mitigation). - [DYNAMIC_EXECUTION]: The test script
tests/test_prefs.pyuses dynamic loading to execute code from local paths. - Evidence: The script uses
importlib.util.spec_from_file_locationandexec_moduleto loadscripts/prefs.pyand a missing_meta/memory_primer.pyfrom relative paths. - Risk: This is standard for unit testing but involves executing code from computed paths on the disk.
Audit Metadata