T09 · Insecure Skill Coding Practices
- Location
scripts/imap_utils.py:557- Finding
Mailbox credentials may be exposed through plaintext configuration files and command-line arguments
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill is a real email-management utility, but it needs review because it gives broad non-interactive mailbox control and handles mailbox passwords in risky local ways.
Before installing, treat this as granting an agent broad control over the configured mailbox. Use a dedicated app password or low-privilege mailbox if possible, keep config.json owner-only and out of shared workspaces or source control, avoid passing passwords on the command line, and require explicit confirmation for sending, deleting, moving, or emptying folders.
scripts/imap_utils.py:557Mailbox credentials may be exposed through plaintext configuration files and command-line arguments
The skill claims comprehensive Postfix/Dovecot email management, but the analysis indicates the implementation is much narrower. This mismatch is dangerous because users or orchestrators may trust it with broad email-related triggers and assume safe handling of read/delete/spam/draft workflows that are not actually implemented, leading to unsafe delegation, unexpected behavior, or fallback to insecure ad hoc actions.
The trigger list includes very broad everyday terms like 'email', 'delete', 'move', 'search', and 'read', which can cause accidental invocation during unrelated user requests. Because this skill can send mail and perform account-affecting actions, unintended routing is especially risky and could lead to destructive or privacy-impacting operations on a live mailbox.
Referenced artifact was not completely inspected
python3 scripts/imap_utils.py list-folders
Referenced artifact was not completely inspected
python3 scripts/imap_utils.py list-folders
Referenced artifact was not completely inspected
python3 scripts/imap_utils.py list-folders
Referenced artifact was not completely inspected
python3 scripts/imap_utils.py list-folders
Referenced artifact was not completely inspected
python3 scripts/imap_utils.py list-folders
Referenced artifact was not completely inspected
python3 scripts/imap_utils.py list-folders
Referenced artifact was not completely inspected
python3 scripts/imap_utils.py list-folders
Referenced artifact was not completely inspected
python3 scripts/imap_utils.py list-folders
Referenced artifact was not completely inspected
python3 scripts/imap_utils.py list-folders
Referenced artifact was not completely inspected
python3 scripts/imap_utils.py list-folders
Referenced artifact was not completely inspected
python3 scripts/imap_utils.py list-folders
Referenced artifact was not completely inspected
python3 scripts/imap_utils.py list-folders
Referenced artifact was not completely inspected
python3 scripts/imap_utils.py list-folders
Referenced artifact was not completely inspected
python3 scripts/imap_utils.py list-folders
Referenced artifact was not completely inspected
python3 scripts/imap_utils.py list-folders
Referenced artifact was not completely inspected
python3 scripts/imap_utils.py list-folders
Referenced artifact was not completely inspected
python3 scripts/imap_utils.py list-folders
Referenced artifact was not completely inspected
python3 scripts/imap_utils.py list-folders
Referenced artifact was not completely inspected
python3 scripts/imap_utils.py list-folders
Referenced artifact was not completely inspected
python3 scripts/imap_utils.py list-folders
Referenced artifact was not completely inspected
python3 scripts/imap_utils.py list-folders
Referenced artifact was not completely inspected
python3 scripts/imap_utils.py list-folders
Referenced artifact was not completely inspected
python3 scripts/imap_utils.py list-folders
No suspicious patterns detected.