Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Include CVE data from Insights #474

Open
0 of 2 issues completed
Open
Story 🗺️
0 of 2 issues completed
@lukehinds

Description

@lukehinds

CVEs gonna be handled in a simplest way so far. We'll improve it later, if needed.

Brief explanation in a comment below

Old description

Introduce Vulnerability / Version data from insights into the Vector Search system to provide contextual augmentation of CVES and version specific fixes

┌───────────────────────────┐
│ 1. CVE / Version Info     │
│    introduced from insight│
└───────────────────────────┘
               │
               ▼
┌───────────────────────────┐
│ 2. Parse code snippet     │
│    and use existing       │
│    Package Extractor      │
│    (Package/Ecosystem)    │
└───────────────────────────┘
               │
               ▼
┌───────────────────────────┐
│ 3. Parse dependency       │
│    dependency matrix      │
│    for the specific       │
│    version of package     │
└───────────────────────────┘
               │
               ▼
┌───────────────────────────┐
│ 4. Perform similarity     │
│    search (Package &      │
│    Version)               │
└───────────────────────────┘
               │
           ┌───┴───┐
           │       │
     CVE Matched?  │
           │       │
           ▼       ▼
    ┌──────────────────────┐
    │ Yes: Augment prompt  │
    │ to guide LLM toward  │
    │ recommending action  │
    │ & fix                │
    └──────────────────────┘

    ┌──────────────────────┐
    │ No: Continue as      │
    │ normal in pipeline   │
    └──────────────────────┘

Explanation:

  1. Introduce CVE / Version Info: Collect CVE data or package version details within the insight pipeline
  2. Parse Code Snippet & Extract Package: Leverage already existing “Package Extractor” to identify which packages (and their ecosystems) are used in the snippet.
  3. Traverse dependency matrix tree: e.g. look up the currently used package(s) captured from code snippet.
  4. Perform Similarity Search: Match the discovered package and version against CVEs
  5. CVE Matched?:
    • Yes: Prompt augmentation instructs the LLM to recommend a fix (e.g., upgrade package, apply patch, warn or alternative library).
    • No: Proceed without additional guidance or continue searching other data sources.

This would be contingent upon #454 landing first.

cc @yrobla

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions