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 set and note operations in scripts/prefs.py and stored in ~/.claude/memory/preferences/.
  • Boundary markers: The load command 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.py script.
  • Sanitization: The script proactively uses a _oneline function 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.py uses dynamic loading to execute code from local paths.
  • Evidence: The script uses importlib.util.spec_from_file_location and exec_module to load scripts/prefs.py and a missing _meta/memory_primer.py from relative paths.
  • Risk: This is standard for unit testing but involves executing code from computed paths on the disk.
Audit Metadata
Risk Level
SAFE
Analyzed
Sep 28, 2026, 12:52 PM