Skip to content

fix: pin SHA-256 checksum for sentrux binary install (RGS-018) - #46555

Merged
pelikhan merged 2 commits into
mainfrom
copilot/rgs-018-fix-suspicious-payload-execution
Jul 19, 2026
Merged

fix: pin SHA-256 checksum for sentrux binary install (RGS-018)#46555
pelikhan merged 2 commits into
mainfrom
copilot/rgs-018-fix-suspicious-payload-execution

Conversation

Copilot AI commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

The Install sentrux step in shared/mcp/sentrux.md downloaded and executed a binary from GitHub Releases with no integrity check — a supply-chain risk (runner-guard RGS-018). A compromised or swapped release asset would run attacker-controlled code with the job's token scope.

Changes

  • shared/mcp/sentrux.md — pins SENTRUX_SHA256 for sentrux-linux-x86_64 v0.5.7 and verifies with sha256sum -c - before chmod +x, so the binary is never made executable if the hash doesn't match:
SENTRUX_SHA256="3237f80fe20d54aad4deefa8a143f0d60543bb5d2d6ad891eb42432f155725a6"
curl -fsSL -o /tmp/gh-aw/agent/sentrux "https://github.com/sentrux/sentrux/releases/download/v${SENTRUX_VERSION}/sentrux-linux-x86_64"
echo "${SENTRUX_SHA256}  /tmp/gh-aw/agent/sentrux" | sha256sum -c -
chmod +x /tmp/gh-aw/agent/sentrux
  • daily-sentrux-report.lock.yml — regenerated via make recompile.

…-018)

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix suspicious payload execution pattern in daily-sentrux-report.lock.yml fix: pin SHA-256 checksum for sentrux binary install (RGS-018) Jul 19, 2026
Copilot AI requested a review from pelikhan July 19, 2026 07:18
@pelikhan
pelikhan marked this pull request as ready for review July 19, 2026 07:20
Copilot AI review requested due to automatic review settings July 19, 2026 07:20
@pelikhan
pelikhan merged commit 7c1bf90 into main Jul 19, 2026
@pelikhan
pelikhan deleted the copilot/rgs-018-fix-suspicious-payload-execution branch July 19, 2026 07:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Pins and verifies the sentrux binary checksum to mitigate the RGS-018 supply-chain risk.

Changes:

  • Adds the verified SHA-256 digest for sentrux v0.5.7.
  • Regenerates the compiled workflow with checksum validation.
Show a summary per file
File Description
.github/workflows/shared/mcp/sentrux.md Verifies the binary before execution.
.github/workflows/daily-sentrux-report.lock.yml Applies the generated verification step.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Medium

@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.82.14

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.

[static-analysis] RGS-018: Suspicious Payload Execution Pattern in daily-sentrux-report.lock.yml

3 participants