T09 · Insecure Skill Coding Practices
- Location
SKILL.md:39- Finding
Unsafe Sourcing of a Global Environment File
- Content
View full analysis
- Remediation
View remediation
" ``` - If file-based configuration is required, use a dedicated Are.na configuration file containing only `ARENA_ACCESS_TOKEN`. - Parse the configuration file as data rather than executing it as shell code. Reject unknown keys and malformed values. - Restrict the dedicated configuration file to the owning user, such as mode `0600`, and verify its ownership before reading it. - Ensure the CLI does not log tokens, include them in saved research output, or expose them in error messages. - Run the CLI with the minimum necessary environment instead of inheriting unrelated credentials from a global configuration. ]]>
