Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds environment variable to exclude osv malware feeds #192

Merged
merged 1 commit into from
Oct 20, 2024

Conversation

prabhu
Copy link
Contributor

@prabhu prabhu commented Oct 20, 2024

Fixes #191

❯ python depscan/cli.py --purl "pkg:composer/phenx/[email protected]" --reports-dir /tmp/reports

██████╗ ███████╗██████╗ ███████╗ ██████╗ █████╗ ███╗   ██╗
██╔══██╗██╔════╝██╔══██╗██╔════╝██╔════╝██╔══██╗████╗  ██║
██║  ██║█████╗  ██████╔╝███████╗██║     ███████║██╔██╗ ██║
██║  ██║██╔══╝  ██╔═══╝ ╚════██║██║     ██╔══██║██║╚██╗██║
██████╔╝███████╗██║     ███████║╚██████╗██║  ██║██║ ╚████║
╚═════╝ ╚══════╝╚═╝     ╚══════╝ ╚═════╝╚═╝  ╚═╝╚═╝  ╚═══╝

INFO [2024-10-20 17:00:35,267] About to download the vulnerability database from ghcr.io/appthreat/vdbgz:v5. This might take a while ...

                                                          Dependency Scan Results (COMPOSER)
╔═════════════════════════════════════════════════════════════════════════╤══════════════════╤═══════════════════════╤══════════════════╤════════════╗
║ CVE                                                                     │ Insights         │ Fix Version           │ Severity         │      Score ║
╟─────────────────────────────────────────────────────────────────────────┼──────────────────┼───────────────────────┼──────────────────┼────────────╢
║ [email protected] ⬅ GHSA-97m3-52wr-xvv2                                 │                  │ 0.5.2                 │ CRITICAL         │       10.0 ║
╟─────────────────────────────────────────────────────────────────────────┼──────────────────┼───────────────────────┼──────────────────┼────────────╢
║ [email protected] ⬅ CVE-2023-50251                                      │                  │ 0.5.2                 │ MEDIUM           │        5.3 ║
╟─────────────────────────────────────────────────────────────────────────┼──────────────────┼───────────────────────┼──────────────────┼────────────╢
║ [email protected] ⬅ CVE-2023-50252                                      │                  │ 0.5.2                 │ CRITICAL         │        9.8 ║
╟─────────────────────────────────────────────────────────────────────────┼──────────────────┼───────────────────────┼──────────────────┼────────────╢
║ [email protected] ⬅ CVE-2024-25117                                      │                  │ 0.5.2                 │ MEDIUM           │        6.8 ║
╚═════════════════════════════════════════════════════════════════════════╧══════════════════╧═══════════════════════╧══════════════════╧════════════╝

dep-scan on  release/5.x [$?] via 🐳 desktop-linux is 📦 v5.4.7 via 🐍 v3.12.7 via 🅒 depscanv5 took 16m58s
❯ python depscan/cli.py --purl "pkg:composer/phenx/[email protected]" --reports-dir /tmp/reports

██████╗ ███████╗██████╗ ███████╗ ██████╗ █████╗ ███╗   ██╗
██╔══██╗██╔════╝██╔══██╗██╔════╝██╔════╝██╔══██╗████╗  ██║
██║  ██║█████╗  ██████╔╝███████╗██║     ███████║██╔██╗ ██║
██║  ██║██╔══╝  ██╔═══╝ ╚════██║██║     ██╔══██║██║╚██╗██║
██████╔╝███████╗██║     ███████║╚██████╗██║  ██║██║ ╚████║
╚═════╝ ╚══════╝╚═╝     ╚══════╝ ╚═════╝╚═╝  ╚═╝╚═╝  ╚═══╝


                                                          Dependency Scan Results (COMPOSER)
╔═════════════════════════════════════════════════════════════════════════╤══════════════════╤═══════════════════════╤══════════════════╤════════════╗
║ CVE                                                                     │ Insights         │ Fix Version           │ Severity         │      Score ║
╟─────────────────────────────────────────────────────────────────────────┼──────────────────┼───────────────────────┼──────────────────┼────────────╢
║ [email protected] ⬅ CVE-2023-50251                                      │                  │ 0.5.2                 │ HIGH             │        7.5 ║
╟─────────────────────────────────────────────────────────────────────────┼──────────────────┼───────────────────────┼──────────────────┼────────────╢
║ [email protected] ⬅ CVE-2023-50252                                      │                  │ 0.5.2                 │ CRITICAL         │        9.8 ║
╟─────────────────────────────────────────────────────────────────────────┼──────────────────┼───────────────────────┼──────────────────┼────────────╢
║ [email protected] ⬅ GHSA-97m3-52wr-xvv2                                 │                  │ 0.5.2                 │ CRITICAL         │       10.0 ║
╟─────────────────────────────────────────────────────────────────────────┼──────────────────┼───────────────────────┼──────────────────┼────────────╢
║ [email protected] ⬅ CVE-2024-25117                                      │                  │ 0.5.2                 │ MEDIUM           │        6.8 ║
╚═════════════════════════════════════════════════════════════════════════╧══════════════════╧═══════════════════════╧══════════════════╧════════════╝

dep-scan on  release/5.x [$?] via 🐳 desktop-linux is 📦 v5.4.7 via 🐍 v3.12.7 via 🅒 depscanv5 took 50s

Without the malware data, search takes only seconds instead of minutes!

@prabhu prabhu added enhancement New feature or request sponsored labels Oct 20, 2024
@prabhu prabhu merged commit 226e325 into release/5.x Oct 20, 2024
15 checks passed
@prabhu prabhu deleted the feature/optional-malware branch October 20, 2024 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request sponsored
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant