News for hackers. Stuff that matters.
Re:Vulnerability Management for Go by goodpoint on Tuesday September 06, 2022 @12:26PM (#32739396)
If only it was language-independent I would consider it.

Reinventing supply chain and vulnerability management for each language... not a good use of our time.

Re:Vulnerability Management for Go by psanford on Tuesday September 06, 2022 @12:52PM (#32739784)
Strong disagree.

Every "generic" vulnerability scanner still needs some language specific knowledge for how to determine what is an included dependency. The better you want to suppress false positives, the more in-depth knowledge the tool will need about each language/runtime.

The end result of this is that all the existing generic scanners just use least common denominator heuristics for determining vulnerable dependencies (i.e. just look at the lock file).

For large teams, this can be a huge waste of time patching vulnerabilities that don't actually apply to your code just because the scanning tool is too stupid to know better.

I'll take Govulncheck (and similar tools for other languages) any day over the mediocre generic tools.

Re:Vulnerability Management for Go by goodpoint on Wednesday September 07, 2022 @10:01AM (#32750760)
> The end result of this is that all the existing generic scanners just use least common denominator heuristics

Wrong. You can have specialized backends and language-agnostic everything-else.

Re:Vulnerability Management for Go by klysm on Tuesday September 06, 2022 @12:46PM (#32739694)
It doesn't seem possible to implement that in a language agnostic way. How do you propose doing such a thing?
Re:Vulnerability Management for Go by goodpoint on Wednesday September 07, 2022 @09:58AM (#32750729)
Very simple: implement language-specific static analysis backends and a general frontend and vuln management.

Just like every Linux distribution does distributes packages and manages security in a language-agnostic way. Nothing new.

Amazing how people here dismissed my point by downvoting and providing no reasoning.

Re:Vulnerability Management for Go by klysm on Wednesday September 07, 2022 @10:57AM (#32751497)
> language-specific static backends

I guess it sounded like you meant a general solution that wasn’t language specific. I’m still not sure if there’s an abstraction you could use to make language aspects marked as vulnerable - the semantics between languages are just so varied.

Anyway we need the language specific ones first.

Re:Vulnerability Management for Go by goodpoint on Thursday September 08, 2022 @09:22AM (#32765125)
> Anyway we need the language specific ones first.

No, we have language-agnostic vuln management since decades and a good tool could use a fall back to the traditional method when a language-specific backend is not available.

Re:Vulnerability Management for Go by klysm on Thursday September 08, 2022 @03:44PM (#32771015)
I mean language agnostic vuln management that’s capable of marking a particular subset of functionality as vulnerable like this is.
Re:Vulnerability Management for Go by teraflop on Tuesday September 06, 2022 @01:36PM (#32740359)
Let's train a neural network to take source code in an arbitrary language as input, and produce a call graph as output. What could go wrong?
Re:Vulnerability Management for Go by klysm on Tuesday September 06, 2022 @03:59PM (#32742448)
Side-note: how do you make a nn output a graph topology? I'm having a hard time imagining how to make a matrix represent that.
Re:Vulnerability Management for Go by haneefmubarak on Tuesday September 06, 2022 @04:20PM (#32742696)
Graph Neural Networks! https://distill.pub/2021/gnn-intro/

In a nutshell, you perform NN operations on the nodes and edges of the graph and then send updates across the graph

Re:Vulnerability Management for Go by tgv on Tuesday September 06, 2022 @02:12PM (#32740861)
And then clamp the output to generate vulnerabilities? Could be worth a shot.
Re:Vulnerability Management for Go by throwaway894345 on Tuesday September 06, 2022 @01:10PM (#32740022)
Until we can figure out how to translate semantics across languages, we have to reinvent almost everything for each language. We can abstract out some things, but not others. As far as "a good use of our time", the alternative is "no vulnerability scanning" or "package level vulnerability scanning" which probably waste more time or expose more risk for most organizations.
Re:Vulnerability Management for Go by politician on Tuesday September 06, 2022 @12:43PM (#32739653)
Is it even technically possible to do (edit: useful) vulnerability analysis in a pure black box configuration?
Re:Vulnerability Management for Go by a1369209993 on Tuesday September 06, 2022 @11:18PM (#32745977)
Sure: it's called "fuzz testing".