opencode icon indicating copy to clipboard operation
opencode copied to clipboard

How does opencode handle security checks?

Open qu4n opened this issue 3 weeks ago • 4 comments

Question

I noticed the "Security" blank for this project. So I implemented a fork to add some code scanning workflows: here. There appears to be a substantial number of vulnerabilities, some of which is critical:

Image

Is this being worked somewhere else?

qu4n avatar Nov 03 '25 14:11 qu4n

This issue might be a duplicate of existing issues. Please check:

  • #2887: Both issues identify missing security practices and ask if security measures are being implemented elsewhere. #2887 focuses on NPM publishing and supply chain security while this issue covers code scanning vulnerabilities.
  • #2748: Addresses security vulnerabilities in the permission system where MCP tools can bypass permission controls
  • #3585: Proposes security enhancements through pattern-based directory access restrictions to prevent exposure of sensitive files

Feel free to ignore if none of these address your specific case.

github-actions[bot] avatar Nov 03 '25 14:11 github-actions[bot]

I think some of these aren't actually as big a deal as they seem but there are some low hanging fruit and we shouldn't have blank security for this so I will take a look.

rekram1-node avatar Nov 04 '25 04:11 rekram1-node

I think some of these aren't actually as big a deal as they seem but there are some low hanging fruit and we shouldn't have blank security for this so I will take a look.

Awesome! Feel free to add these automated workflows. It would be good practice to perform these periodically to catch emerging threats/vulnerabilities.

qu4n avatar Nov 04 '25 13:11 qu4n

@qu4n I can't see what workflows you setup: https://github.com/qu4n/opencode/security/code-scanning

This appears to be private

rekram1-node avatar Nov 04 '25 15:11 rekram1-node

Hmmm, I didn't realize github did this. Maybe I'll try to mirror in gitlab to leverage their SAST.

qu4n avatar Nov 06 '25 00:11 qu4n