ThreatMapper icon indicating copy to clipboard operation
ThreatMapper copied to clipboard

Vulnerability Scan Failing with Minimal Context

Open sempervictus opened this issue 3 years ago • 6 comments

Describe the bug Deployed a single agent on the same node running the dockers for the console which is itself an Arch LXC inside an Arch host. Scans initiated with any option set possible fail with Vulnerability scan failed. Scan was interrupted. Please restart. which is not helpful. OS package scans can't be disabled and i highly doubt ThreatMapper has arch-audit integration... So my guess would be its failing on OS packages for lack of pacman or arch-audit interface/data (Arch has packagekit if thats a viable approach, but it does add an extra dependency to the system being scanned). The LXC running all of this is privileged with nesting for the dockers, but there's no debugfs and sysfs in general is more locked down than ThreatMapper seems to presume (modern Grsecurity system) so i had to comment those pieces out of the docker-compose and agent script.

sempervictus avatar Dec 21 '21 21:12 sempervictus

Thanks @sempervictus, could you please share the logs here. You could grab them from settings->diagnosis->global logs and agent logs

sandman137 avatar Dec 21 '21 21:12 sandman137

I would, but now i have a new bug apparently: adding extra_hosts directives to account for non-dns-resolvable hostnames in order to work around the inability to ignore cert validation (if using the IP of a registry system the cert will not match, but if its not in DNS then you need hosts entries) breaks authentication or some other back-end bits.

sempervictus avatar Dec 21 '21 22:12 sempervictus

Had to bring down and up the docker-compose, and got the system logs but it says that there are no agent logs to download... might be related? I cant drop hostnames and IPs for the environment in a public space - i'll need to sanitize them first.

sempervictus avatar Dec 21 '21 23:12 sempervictus

Hello @sempervictus , deploying the agents on the same system as the management console is not yet supported. We will add support for it shortly.

shyam-dev avatar Dec 22 '21 04:12 shyam-dev

Neither is all in one config, I think we should totally enable that so threatmapper can be quickly tried out on a single node or a laptop.

sandman137 avatar Dec 22 '21 20:12 sandman137

Thanks, it looked at first as though it was working... 😄

sempervictus avatar Dec 22 '21 21:12 sempervictus