Tool to check binaries for vulnerabilities

208 views
Skip to first unread message

Michel Casabianca

unread,
Apr 14, 2022, 1:20:28 PM4/14/22
to golang-nuts
Hello Gophers,

We, at Intercloud, have developed a tool to check dependencies embedded in Go binaries. It first lists dependencies running "go version -m mybinary", then it looks for vulnerabilities in NVD online database (at https://nvd.nist.gov/).

This tool is open source and available at https://github.com/intercloud/gobinsec.

Any comment and contribution welcome.

Enjoy!

Dan Kortschak

unread,
Apr 14, 2022, 5:55:27 PM4/14/22
to golan...@googlegroups.com
On Thu, 2022-04-14 at 03:05 -0700, Michel Casabianca wrote:
> Any comment and contribution welcome.

Can I suggest that you use golang.org/x/sys/execabs rather than os/exec
in ExecCommand?


Zhaoxun Yan

unread,
Apr 15, 2022, 2:03:38 AM4/15/22
to golang-nuts
That sounds great! Thanks.

Sean Liao

unread,
Apr 15, 2022, 5:11:09 AM4/15/22
to golang-nuts
If you only need to target 1.18+, you can use `debug/buildinfo.ReadFile` which doesn't require shelling out to go


--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/454f35cf-6599-4fc1-9dd2-602137d58cb6n%40googlegroups.com.

Michel Casabianca

unread,
Apr 18, 2022, 8:45:47 AM4/18/22
to golang-nuts
Thank you for your feedback. Nevertheless, I don't call go anymore using debug/buildinfo.ReadFile, as suggested by another feedback below.

Michel Casabianca

unread,
Apr 18, 2022, 8:48:55 AM4/18/22
to golang-nuts
Thank you very much for this feedback. I have made a pull request to use debug/buildinfo.ReadFile as suggested: https://github.com/intercloud/gobinsec/pull/7

This is far better than calling go on command line.

Best regards

Michel Casabianca

unread,
Apr 19, 2022, 10:11:25 AM4/19/22
to golang-nuts
Thank you very much for your feedback. I have made a new 0.7.0 release including your suggestions : https://github.com/intercloud/gobinsec/releases/tag/0.7.0

Enjoy!
Reply all
Reply to author
Forward
0 new messages