virtualmin-mail
Fail
Audited by Gen Agent Trust Hub on Jul 6, 2026
Risk Level: HIGHCOMMAND_EXECUTIONCREDENTIALS_UNSAFEDATA_EXFILTRATION
Full Analysis
- [COMMAND_EXECUTION]: All provided scripts (
modify-mail.sh,search-maillogs.sh,set-spam.sh,test-imap.sh,test-pop3.sh,test-smtp.sh) execute system commands usingsudo. This grants the AI agent root-level administrative access to the underlying operating system and the Virtualmin hosting environment. - [CREDENTIALS_UNSAFE]: The scripts
test-imap.shandtest-pop3.shaccept a--passparameter to test mailbox connectivity. Passing passwords as command-line arguments is insecure because they are visible in the system's process list (e.g., via thepscommand) and are typically recorded in the shell's command history file (.bash_history). - [DATA_EXFILTRATION]: The
search-maillogs.shscript provides a mechanism to query Postfix mail logs. These logs contain sensitive metadata, including sender and recipient email addresses, timestamps, and connecting IP addresses, which could be exploited to harvest communication patterns or user information. - [PROMPT_INJECTION]: The
search-maillogs.shscript acts as an ingestion point for untrusted data from system logs. If an attacker sends an email with malicious instructions in the headers (like the Subject or From fields), those instructions will appear in the log output. - Ingestion points: System mail logs via
virtualmin search-maillogsinsearch-maillogs.sh. - Boundary markers: None. The output is processed directly by the agent.
- Capability inventory: The skill has broad
sudoaccess to modify system settings and manage mail services across all files in thescripts/directory. - Sanitization: None. The script passes raw log data back to the agent without filtering or escaping.
Recommendations
- AI detected serious security threats
Audit Metadata