T08 · Insecure Dependencies
- Location
assets/docker-compose.xiaohongshu-mcp.yml:3- Finding
Unpinned Third-Party Container Handles Sensitive Account Data
- Content
View full analysis
- Remediation
View remediation
``` 2. Record the corresponding source version and image provenance in the setup documentation. 3. Verify image signatures or attestations before deployment where supported. 4. Review the upstream source and build process before selecting a digest. 5. Configure a non-root container user if the image supports it: ```yaml user: ":" ``` 6. Mark mounts as read-only wherever write access is unnecessary. Separate authentication data from general content mounts. 7. Add container hardening controls where compatible: ```yaml read_only: true cap_drop: - ALL security_opt: - no-new-privileges:true ``` 8. Restrict outbound network access to destinations required for legitimate operation. 9. Regularly rotate or invalidate stored sessions after suspected image or supply-chain compromise. 10. Upgrade by explicitly reviewing and replacing the pinned digest rather than automatically following a mutable image reference. ]]>
