T09 · Insecure Skill Coding Practices
- Location
SKILL.md:84- Finding
Arbitrary Python Code Execution Through Unsafe JWT Parameter Interpolation
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This is a local JWT debugging skill, but some validation commands can execute injected Python if a token or key value is maliciously crafted.
Review before installing. The skill avoids external JWT websites and has no persistence, but its validation examples should be rewritten to pass tokens, secrets, keys, and audiences through stdin, files, or environment variables read by Python, not embedded into python3 -c source. Do not run the current validation snippets on tokens or key material supplied by an untrusted party.
SKILL.md:84Arbitrary Python Code Execution Through Unsafe JWT Parameter Interpolation
The invocation guidance includes broad phrases like "decode this token", "why is auth failing", and especially the fallback condition "when troubleshooting authentication," which can overlap with many general authentication support requests. The description does not provide exclusion conditions or boundaries for when this JWT-specific skill should not activate, increasing the chance of unintended invocation.
The manifest and introductory documentation describe a troubleshooting tool for inspecting and validating existing tokens in authentication flows. The generate command expands the skill into token creation, which is a distinct capability not reflected in the stated description of decoding, validation, debugging, or diagnosis.