immauss / openvas

Containers for running the Greenbone Vulnerability Manager. Run as a single container with all services or separate single applications containers via docker-compose.
GNU Affero General Public License v3.0
355 stars 102 forks source link

scan doesn't work #266

Closed sergeymeleschenko closed 4 months ago

sergeymeleschenko commented 5 months ago

image

when i run scan, the scan doesn't work. run to fast and 0 results, no vulnerabilities. GVM latest, NVT's db current.

rkoosaar commented 5 months ago

Anything in the logs?

sergeymeleschenko commented 5 months ago

nothing suspicious, there are no errors. i'm trying to run the oldest version 22.4.30

Anything in the logs?

immauss commented 5 months ago

@sergeymeleschenko Can you give me some more details? What is the host you are scanning? Did you give the scanner config good credentials? If it is a linux host you are scanning, can you ssh to that host with the credentials you configured from inside the container? And .. If linux host, what is the distribution of the host you are scanning?

sergeymeleschenko commented 5 months ago

it works with 22.4.30 version. It will be enough for me. I will try to find why the latest version doesn't work for me.

fredrik812 commented 5 months ago

Hi I'm having the same problem, docker logs says this:

nasl_pread: Failed to close file descriptor for child process (Operation not permitted)

Seems to be this issue: https://forum.greenbone.net/t/scans-are-working-but-return-0-results-on-gvm-22-4/12952

immauss commented 5 months ago

This is a known issue. For the gory and painful details, you can review #241 and here #242. This is a problem I have been so far unable to isolate but is only in certain distributions. The solution is to allow the container to do ... well ... anything. I spent quite a few weeks trying to isolate and come up with a better solution, so if you find it, please share. For now, the only answer is to use: --security-opt seccomp=unconfined in the start command.

-Scott