T08 · Insecure Dependencies
- Location
scripts/refresh-token.sh:21- Finding
Mutable Third-Party Container Image Receives Sensitive Credentials and AI Traffic
- Content
View full analysis
- Remediation
View remediation
``` 2. Publish or link the exact source revision used to build the image and provide reproducible build instructions. 3. Verify the image with a trusted signing mechanism such as Sigstore/Cosign before execution. 4. Use an automated dependency-review process that detects digest changes and requires a new security assessment. 5. Run the container as a non-root user with: - A read-only root filesystem. - Dropped Linux capabilities. - `no-new-privileges`. - Explicit CPU and memory limits. - Restricted outbound network access. 6. Avoid passing the primary account session cookie to an unaudited component. Prefer a scoped, revocable credential intended specifically for proxy/API use. 7. Document the exact image version and expected digest instead of recommending `latest`. ]]>
