Skip to content

Security & Privacy

Megalith edited this page Jan 9, 2026 · 1 revision

UEC files are meant to be portable. That means they can carry sensitive content. Treat them like you would any personal data file.

Key considerations

1) External URLs may leak data

  • avatar and chatBackground can be https URLs.
  • When a client fetches these, it may expose IP address, user agent, or access patterns to the host.
  • If privacy matters, prefer base64 data URIs or proxy images through a trusted service.

2) Base64 images can bloat files

  • Base64 assets can make cards large and slow to share.
  • Consider size limits and compression.
  • Some apps may choose to strip or downscale media.

3) Prompts can contain sensitive info

  • systemPrompt, definitions, and rules can include personal or private content.
  • If you export/share a card, it may expose creator notes or hidden instructions.

4) Extensions are untrusted

  • extensions is open by design.
  • Treat all extension data as untrusted input.
  • Validate and sandbox before use in your app.

5) Sanitization and rendering

  • If you display content from a UEC in UI, escape or sanitize to prevent injection issues.
  • Do not render raw HTML unless explicitly allowed by your platform.

6) Attribution & licensing

  • Use the meta.license and meta.authors fields to preserve attribution.
  • Consumers should respect the license when redistributing cards.

Clone this wiki locally