News for hackers. Stuff that matters.
Re:Flan Scan: Lightweight Network Vulnerability Scanner by hannob on Friday November 22, 2019 @10:28AM (#21606382)
I ran it against a few servers I'm responsible for. I'm not impressed.

I got a large number of reports for a Debian system running Apache. These were all old vulnerabilities where fixes were backported to Debian's packages, so these are false positives. Also got a warning for another server about the recent XMSS issue in OpenSSH, which is code that is disabled by default (and disabled on the scanned server).

It seems all this tool does is some kind of version matching (i.e. "a CVE has been reported for version x.y.z of software A, so a server running x.y.z is vulnerable"). This is a poor proxy for the actual existence of a vulnerability. It's not a "vulnerability scanner" in a sense that it actually tests for the presence of a vulnerability.

(Full disclosure: Just copied over my comment I posted on reddit earlier today)

Re:Flan Scan: Lightweight Network Vulnerability Scanner by thaumaturgy on Friday November 22, 2019 @10:36AM (#21606477)
This has been my experience with similar tools (mostly openvas / greenbone) and companies peddling vulnerability tests for compliance purposes. There doesn't seem to be a lot of "functional scanning" in this space, like you're talking about.

So I agree the false positives are a pain in networks with patched systems but this also seems to be standard behavior.

Re:Flan Scan: Lightweight Network Vulnerability Scanner by ejcx on Friday November 22, 2019 @10:45AM (#21606586)
Yes it’s unfortunately standard for expensive scanners too.

Our goal was to make something easy to run and deploy with similar results to something like openvas or Nessus.

I personally think accuracy issues are because security vendors don’t want to show that their expensive software found nothing, so they dial down the accuracy. This works using the same methods as a Nessus, banner grabbing and indexing issues.

We are going to keep working on this and look for ways to make it more accurate, but I’d say our results with this versus our expensive scanners was pretty much the same.

Re:Flan Scan: Lightweight Network Vulnerability Scanner by thaumaturgy on Friday November 22, 2019 @11:18AM (#21606942)
Yeah. FWIW those openvas reports really satisfied the C-level itch to have some kind of work product in the form of an official-looking report, and your looks identical. Overall you seem to have built an awesome toolkit to start with. Greenbone is a total pain to get working initially and openvas updates are broken out-of-the-box. If I were still doing this kind of stuff I'd be immediately trying out Flan Scan.
Re:Flan Scan: Lightweight Network Vulnerability Scanner by jascii on Friday November 22, 2019 @11:59AM (#21607421)
"I personally think accuracy issues are because security vendors don’t want to show that their expensive software found nothing"

That might be a bit cynical, not sure I'd call openvas expensive.. I think it comes down to the fact that the damage of a single false negative can far outweigh the cost of the false positives. In the end, these scanners are mostly a tool to help document your security efforts, often for compliance reasons, making you think about and document the choices you make from a security perspective.

Re:Flan Scan: Lightweight Network Vulnerability Scanner by ejcx on Friday November 22, 2019 @01:20PM (#21608319)
Definitely a little cynical =]. I think the same thing about a lot of 3rd party security consulting.

OpenVAS is free, but the big issue we've had with it is the complexity of setting it up and maintaining it. We are a security team, and would rather not spend our time managing servers, especially since we aren't the best people to do that at Cloudflare.

Re:Flan Scan: Lightweight Network Vulnerability Scanner by bostik on Friday November 22, 2019 @01:59PM (#21608750)
Yeah, OpenVAS is a nasty piece of work to set up and operate reliably. Especially headless.

Shameless plug: I got it to work. Will be doing a talk about the experience at week's DC4420 meeting.

Re:Flan Scan: Lightweight Network Vulnerability Scanner by papower on Wednesday November 27, 2019 @07:03AM (#21647176)
Are you in a position to share that session online or perhaps a blog post on your experience and approach ?

I've looked at it (openvas), got something working, but was never happy with it and ended up returning to a simpler/proven nmap base that I could manage better and add complexity if/when needed.

Re:Flan Scan: Lightweight Network Vulnerability Scanner by bostik on Wednesday November 27, 2019 @04:40PM (#21652385)
I was planning to do a blog post in about a month's time. The DC4420 meetings and/or talks are not recorded (luckily!), but I intend to polish the talk up for a future re-run.

On the other hand.. I do have something that might be enough to get you going. The setup we built is open: https://github.com/smarkets/vuln-scanner - go have a look.

The glue code has comments on some of the stranger bugs I had to work around. So does the readme. If something isn't clear, feel free to ask.

Re:Flan Scan: Lightweight Network Vulnerability Scanner by papower on Thursday November 28, 2019 @07:27AM (#21656749)
Thanks, looks promising.

One of my challanges was understanding the the zoo of tests OpenVAS would run and trying to reliably select which ones to apply. Did you, or anyone here, ever spot a way of outputting all the tests (nmap scripts etc.) that a particular run would trigger (but without actually running them)

Re:Flan Scan: Lightweight Network Vulnerability Scanner by bostik on Thursday November 28, 2019 @02:50PM (#21659764)
Sadly no. We tried to figure out a way to reliably and permanently disable a whole suit of test scripts, but that got surprisingly fiddly.

I think there might be a way to choose categories to include/exclude but haven't had the time to actually investigate.

Re:Flan Scan: Lightweight Network Vulnerability Scanner by brightball on Friday November 22, 2019 @01:35PM (#21608479)
This is accurate. Various types of scanners and sensors are standard requirements for even the most basic SOC2.
Re:Flan Scan: Lightweight Network Vulnerability Scanner by tssva on Friday November 22, 2019 @11:13AM (#21606885)
Most vulnerability scanners with functional scanning capabilities are run without them. Enterprises are concerned about the effect of functional scanning upon their production systems, is it going to bring something down, and functional scanning often requires a level of system access which enterprises are usually not comfortable giving. Since they are rarely used vendors don't invest heavily in developing them.
Re:Flan Scan: Lightweight Network Vulnerability Scanner by bitminer on Saturday November 23, 2019 @03:35PM (#21616360)
My experience in corporate and government is the opposite. They require functional scanning. Always.

But they also required expensive functional scammer/scanner subscriptions. I see this basic tool plus some scraping of changelogs (included in suse and redhat binary rpms) for cve numbers should substantially reduce the false positives. For the price of another 50 lines of python.

Don't know what other distros or the BSDs have available.

Re:Flan Scan: Lightweight Network Vulnerability Scanner by tssva on Monday November 25, 2019 @03:20PM (#21632341)
We have had completely opposite experiences then. I have almost never never had a corporate or government entity require a functional scan in a production environment. Some have started off asking for one but in the end I have never had one actually do one. They always end up balking at the need to supply credentials and are uneasy with the risk to the stability of production system inherent in a functional scan. Instead they settle for the non-functional scan from the expensive subscription tools such as Qualys which they use.

The majority of time these reports are being produced to fulfill an auditing or FISMA requirement and not considered worth the risk to systems a functional scan could present.

Re:Flan Scan: Lightweight Network Vulnerability Scanner by sigio on Friday November 22, 2019 @10:45AM (#21606587)
Yup.... I haven't encountered products yet that actually report useful information on systems that receive regular automated software updates. All you get are loads of false-positives.
Re:Flan Scan: Lightweight Network Vulnerability Scanner by jascii on Friday November 22, 2019 @12:09PM (#21607535)
In some industries you actually have to document and prove that. That's where these tools shine.
Re:Flan Scan: Lightweight Network Vulnerability Scanner by gwittel on Friday November 22, 2019 @03:41PM (#21609836)
Similar experience. Many scanners seem to be designed around showing 'value' to management vs real value for engineering and security teams. Another example is Blackduck. Its slow, noisy, has tons of FPs (which you cannot globally ignore), etc. It ends up being a tool users fight against instead of work with.

Another caveat -- scanners usually do not account for the current v vulnerable configuration. So while they may flag a vulnerability, its often a potential vulnerability. Its a mixed bag -- at scan time the system may be secure, but a future change may result in a vulnerable system. Unless you're religious about scanning after each build/config change; this could bite you as well. It would be nice to know these minutiae without digging into each CVE report.

Re:Flan Scan: Lightweight Network Vulnerability Scanner by bostik on Saturday November 23, 2019 @04:21AM (#21613253)
> scanners usually do not account for the current v vulnerable configuration. So while they may flag a vulnerability, its often a potential vulnerability.

This is a straight-up artifact from the fact that the scanners (which essentially have to operate in non-destructive mode) rely on banner grabbing and very basic service behaviour pattern matching. Hence for every service they find, they report - quoting your words here - the potential vulnerability.

Which basically is what you want. Trying to intelligently reduce noise would be really cool, but the moment the intelligence suppresses a finding that you WOULD have wanted to know about, you're screwed. It's bad either way, but the worst-case scenarios of the two are asymmetrical.

I personally find point-in-time scans a useless exercise. Findings from individual cans are one thing, the difference over time is what really matters.

Re:Flan Scan: Lightweight Network Vulnerability Scanner by Hitton on Friday November 22, 2019 @10:48AM (#21606624)
But what else would you propose? Only thing you could do which would be more accurate is to try to exploit all the issues it found, which isn't really practical, because POCs are not always available and if they are, you would have to build some kind of database with all of them. Maybe it could be combined with Metasploit...
Re:Flan Scan: Lightweight Network Vulnerability Scanner by jascii on Friday November 22, 2019 @12:06PM (#21607494)
Tools like Metasploit can often be destructive, not sure I would want to run them against production by default.. A more reasonable approach would be to set up a lab when needed when one of the less invasive scanners flags a potential issue.
Re:Flan Scan: Lightweight Network Vulnerability Scanner by cabaalis on Friday November 22, 2019 @10:52AM (#21606658)
I think I'd prefer a tool that identifies points of interest for my team to investigate rather than one that actually tries to execute a hack against my servers, introducing possible instability.
Re:Flan Scan: Lightweight Network Vulnerability Scanner by justin66 on Friday November 22, 2019 @10:35AM (#21606465)
> It seems all this tool does is some kind of version matching (i.e. "a CVE has been reported for version x.y.z of software A, so a server running x.y.z is vulnerable"). This is a poor proxy for the actual existence of a vulnerability

It sounds as though it's illustrative of a problem with either the index the scanner software is referring to or the update methodology the distro relies on. Debian don't really fix the software without incrementing the version number in some fashion, do they?

Re:Flan Scan: Lightweight Network Vulnerability Scanner by zerocrates on Friday November 22, 2019 @11:08AM (#21606834)
It's pretty typical for these "backported" packages to have version numbers that only differ from the original by a suffix, and that suffix often only appears in the package manager.

For example, the Debian stable Apache package is currently version 2.4.38-3+deb10u3, but Apache will typically report something less than all that information, like just 2.4.38.

If it's really just looking at exposed version numbers, there's plenty of other problems, like servers that are configured to not expose their version numbers.