Skip to content

Fix insecure toolchain download in build.yml - #160

Merged
jwhui merged 1 commit into
openthread:mainfrom
jwhui:fix_buganizer_issue_528819441
Jul 28, 2026
Merged

Fix insecure toolchain download in build.yml#160
jwhui merged 1 commit into
openthread:mainfrom
jwhui:fix_buganizer_issue_528819441

Conversation

@jwhui

@jwhui jwhui commented Jul 28, 2026

Copy link
Copy Markdown
Member

Remove the --no-check-certificate flag from wget when fetching the GNU ARM toolchain tarball in the GitHub Actions workflow. Disabling TLS certificate verification exposed the CI pipeline to potential machine-in-the-middle (MITM) attacks where an adversary could substitute a malicious toolchain.

This change re-enables TLS certificate validation and adds cryptographic checksum pinning by verifying the SHA-256 hash (bcd840f839d5bf49279638e9f67890b2ef3a7c9c7a9b25271e83ec4ff41d177a) of gcc-arm.tar.bz2 prior to extraction.

@gemini-code-assist

Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

Remove the --no-check-certificate flag from wget when fetching
the GNU ARM toolchain tarball in the GitHub Actions workflow.
Disabling TLS certificate verification exposed the CI pipeline
to potential machine-in-the-middle (MITM) attacks where an
adversary could substitute a malicious toolchain.

This change re-enables TLS certificate validation and adds
cryptographic checksum pinning by verifying the SHA-256 hash
(bcd840f839d5bf49279638e9f67890b2ef3a7c9c7a9b25271e83ec4ff41d177a)
of gcc-arm.tar.bz2 prior to extraction.
@jwhui
jwhui force-pushed the fix_buganizer_issue_528819441 branch from 2565a26 to a9b642e Compare July 28, 2026 15:47
@jwhui
jwhui merged commit d90fd1c into openthread:main Jul 28, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant