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.sh executes several system commands like pgrep, awk, sed, tr, and nohup to identify system states and manage background processes. It specifically probes /proc/<pid>/environ to extract environment variables like DISPLAY and XAUTHORITY from other running processes.
  • [PERSISTENCE]: The skill is designed to launch a viewer process that is detached from the agent's execution shell using nohup and setsid. 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 DISPLAY address, XAUTHORITY paths, 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
Risk Level
MEDIUM
Analyzed
Oct 19, 2026, 06:26 PM