sync-agent-policy
Pass
Audited by Gen Agent Trust Hub on Sep 14, 2026
Risk Level: SAFECOMMAND_EXECUTIONPERSISTENCEINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill configures agent environments to execute a local hook script via the Python interpreter.
- Evidence: In
scripts/sync.py, the skill defines a command stringcmd = f"{sys.executable} {dst}"(wheredstis the hook script) and injects it into the configuration files of Claude, Grok, and Cursor. - Evidence: The test suite in
tests/test_sync.pyusessubprocess.runto execute the sync and hook scripts during automated testing. - [PERSISTENCE]: The skill establishes persistence by registering hooks that run every time the AI agent performs specific actions.
- Evidence:
scripts/sync.pymodifies persistent configuration files including~/.claude/settings.json,~/.grok/config.toml, and~/.cursor/hooks.jsonto ensure thedeny_read_hook.pyscript is invoked during agent sessions. - [INDIRECT_PROMPT_INJECTION]: The skill processes external configuration data that could be manipulated to influence agent behavior.
- Ingestion points: The skill reads a user-defined
policy.tomland existing agent configuration files (settings.json,config.toml,cli-config.json) as described inscripts/sync.pyandscripts/deny_read_hook.py. - Boundary markers: No explicit boundary markers or instructions to ignore embedded commands are present in the scripts.
- Capability inventory: The skill has the capability to write files, create symlinks, modify security settings, and install execution hooks across multiple agent harnesses.
- Sanitization: The skill uses
tomllibandjsonfor structured data parsing but does not perform higher-level validation of the policy content. - [DYNAMIC_EXECUTION]: The skill dynamically configures execution paths for its internal security hooks at runtime.
- Evidence:
scripts/sync.pycalculates the installation path for the hook script and registers this path within the agent's configuration for execution when tools are used or files are read.
Audit Metadata