T08 · Insecure Dependencies
- Location
SKILL.md:163- Finding
Unpinned Gradle Plugin Retrieved and Executed from a Third-Party Repository
- Content
View full analysis
- Remediation
View remediation
' ``` 2. Confirm and document that the repository is the SDK vendor's authoritative distribution endpoint. 3. Enable Gradle dependency verification and commit trusted checksums or signatures in `gradle/verification-metadata.xml`. 4. Use Gradle dependency locking so subsequent builds resolve the same reviewed artifacts. 5. Do not automatically execute Gradle immediately after changing dependency configuration. First display the exact repository, artifact, and resolved version and obtain explicit confirmation. 6. Avoid `--refresh-dependencies` during routine integration unless a refresh is necessary and the resulting artifacts will be independently verified. 7. In CI, execute Gradle in an isolated, least-privileged environment without unnecessary signing keys, deployment credentials, or access to unrelated repositories. ]]>
