Skip to content

πŸ›‘οΈ Sentinel: Fix insecure SSH upload practices in CI#235

Merged
github-actions[bot] merged 1 commit into
mainfrom
harden-ssh-upload-security-1561495136014994700
May 26, 2026
Merged

πŸ›‘οΈ Sentinel: Fix insecure SSH upload practices in CI#235
github-actions[bot] merged 1 commit into
mainfrom
harden-ssh-upload-security-1561495136014994700

Conversation

@remimixo

Copy link
Copy Markdown
Member

This PR improves the security of the KibaOS Build workflow by hardening the SSH connection used for uploading ISOs to SourceForge.

🚨 Severity: HIGH

πŸ’‘ Vulnerability: Insecure SSH practices

The previous implementation used sshpass -p which can expose secrets in process listings, and StrictHostKeyChecking=no which disabled host identity verification, making the workflow vulnerable to Man-in-the-Middle (MITM) attacks.

🎯 Impact:

A malicious actor could potentially intercept the SSH connection and redirect the upload to a rogue server or perform a MITM attack.

πŸ”§ Fix:

  • Replaced sshpass -p "$SF_PASS" with sshpass -e and mapped ${{ secrets.SF_PASS }} to the SSHPASS environment variable.
  • Added a ssh-keyscan step to verify the SourceForge host key before connecting.
  • Removed the -o StrictHostKeyChecking=no flag from the rsync command.

βœ… Verification:

  • Verified the workflow YAML syntax and formatting.
  • Confirmed the changes align with repository security audit standards.

PR created automatically by Jules for task 1561495136014994700 started by @christopherfoxjr

- Switch from `sshpass -p` to `sshpass -e` for safer secret handling.
- Implement host key verification with `ssh-keyscan`.
- Remove insecure `StrictHostKeyChecking=no` flag from rsync.

Co-authored-by: christopherfoxjr <213370400+christopherfoxjr@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

πŸ‘‹ Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a πŸ‘€ emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@github-actions github-actions Bot added bug Something isn't working workflows labels May 26, 2026

@github-actions github-actions Bot 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.

Automatically approved as it only affects build workflow files and is from a trusted contributor.

@github-actions github-actions Bot merged commit 5813a26 into main May 26, 2026
148 of 220 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size/xs workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant