persistent-image-preview
Warn
Audited by Gen Agent Trust Hub on Oct 19, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONPERSISTENCEDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/open_image_persistent.shexecutes several system commands likepgrep,awk,sed,tr, andnohupto identify system states and manage background processes. It specifically probes/proc/<pid>/environto extract environment variables likeDISPLAYandXAUTHORITYfrom other running processes. - [PERSISTENCE]: The skill is designed to launch a viewer process that is detached from the agent's execution shell using
nohupandsetsid. This allows the process to survive after the agent completes its task, which is a technique used in persistence mechanisms to keep code running in the background. - [DYNAMIC_EXECUTION]: The script dynamically constructs a launch command based on available viewers found on the system (e.g.,
eog,loupe,feh,xdg-open). It then executes this command using environment variables harvested from the system at runtime. - [DATA_EXPOSURE]: The script records sensitive session information such as the
DISPLAYaddress,XAUTHORITYpaths, and the PID of the launched process into a state directory (~/.local/state/persistent-image-preview). While this is used for state tracking, it creates a local record of user session metadata.
Audit Metadata