T09 · Insecure Skill Coding Practices
- Location
ship-position/SKILL.md:96- Finding
HiFleet Authentication Token Exposed in URL Query String
- Content
View full analysis
- Remediation
View remediation
`, if the HiFleet API supports one. 2. If the provider requires `usertoken` as a query parameter: - Configure the HTTP client and agent runtime to redact the parameter value from request logs, traces, exceptions, and tool-call output. - Never display or return the completed URL to users. - Disable verbose HTTP logging in production. - Configure proxies, gateways, and observability systems to remove or mask `usertoken`. - Avoid placing completed requests in shell history or persistent request collections. 3. Store the token only in an approved secret manager or protected environment variable. Do not store it in source-controlled project configuration. 4. Use short-lived, least-privilege tokens restricted to the required vessel-position endpoint where supported. 5. Document token rotation and revocation procedures, and rotate any token suspected of appearing in logs. 6. Add automated tests that verify URLs, errors, and diagnostic output contain a redacted value such as `usertoken=[REDACTED]` rather than the credential. ]]>
