swoosh-emails
Pass
Audited by Gen Agent Trust Hub on Jul 24, 2026
Risk Level: SAFEPROMPT_INJECTION
Full Analysis
- [SAFE]: The skill demonstrates secure credential handling by using
System.get_env/1for the SendGrid API key inconfig/runtime.exs, preventing hardcoded secrets. - [SAFE]: The documentation in
SKILL.mdpromotes the use of Phoenix HEEX components (~H), which automatically sanitize user data to prevent HTML injection in emails. - [PROMPT_INJECTION]: The skill exhibits a surface for indirect injection in the auxiliary template file.
- Ingestion points: User attributes (
user.name,user.email) are ingested and placed directly into HTML strings inassets/mailer_template.ex. - Boundary markers: No delimiters or isolation patterns are used to distinguish user data from the template structure in the
assets/mailer_template.exfile. - Capability inventory: The skill provides instructions for delivering emails to external recipients via the
Swoosh.Mailer.deliver/1function. - Sanitization: In the
assets/mailer_template.exfile, thewelcome_htmlfunction uses raw Elixir string interpolation within a heredoc (#{user.name}) instead of the auto-escaping Phoenix components suggested in the main documentation. This bypasses default HTML sanitization for email content.
Audit Metadata