Skip to content

Possible False Negatives on Amazon-Linux-Based Systems #776

@mattlorimor

Description

@mattlorimor

What would you like to be added:

Further hydration of AL vuln data using explore.alas.aws.amazon.com (or something better if Amazon maintains it).

Currently, for Amazon-Linux-based distributions, the ALAS Advisories seem to be the only thing parsed. This seems to result in situations where CVEs exist in system packages on Amazon Linux but do not surface up in scanners like Grype, Trivy, Wiz, etc. The crux of this is that Amazon does not seem to issue an ALAS Advisory unless a fix is also being released. However, the data for whether their distros/lineages are affected exists and seems to be consumable.

Why is this needed:

CVE scanners should strive to be as correct as possible with respect to which CVEs exist on any given system.

I tested all of this looking for this curl CVE on amazonlinux:2. Grype, Trivy, and Wiz all do not find it. This is all despite the fact that a vulnerable version does appear to be installed:

docker run -it amazonlinux@sha256:bccc33f13237edc45012bb061400858907dd21dfcfdb0fb803b5b34d333e6d20 /bin/bash
bash-4.2# curl --version
curl 8.3.0 (aarch64-koji-linux-gnu) libcurl/8.3.0 OpenSSL/1.0.2k-fips zlib/1.2.7 libidn2/2.3.0 libpsl/0.21.5 (+libidn2/2.3.0) libssh2/1.4.3 nghttp2/1.41.0 OpenLDAP/2.4.44
Release-Date: 2023-09-13
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp ws wss
Features: alt-svc AsynchDNS GSS-API HSTS HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL threadsafe UnixSockets

Additional context:
It has always been my understanding that scanners are at the mercy of what ALAS (and other distro vuln databases) tell them. In this case, there certainly seems to be more data/signal that could be consumed and used to populate the Grype vuln db.

I'm curious whether this has ever been discussed and that not consuming the data surfaced at explore.alas.aws.amazon.com is a conscious choice that has been made.

Metadata

Metadata

Type

No type

Projects

Status

Ready

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions