Prioritize CVE resolution based on loaded packages¶
Note
The Runtime Reachability Assessment feature is under limited availablity. Please contact us to gain access to this feature.
Understanding the libraries and classes loaded during runtime is crucial for effective prioritization and targeted resolution of potential CVEs. This knowledge enables you to concentrate on prioritizing fixes for CVE in loaded packages.
The Lightrun Reachability feature enables you to focus on prioritizing CVEs, determining which CVEs have a higher severity since the affected packages are loaded in runtime, and assigning lower priorities to those with less severe threats. To gain further granularity, you can track specific classes within the vulnerable package that contains the vulnerability. This approach provides more precise results by determining whether those specific classes were loaded. This use case is tailored for teams already aware of specific libraries prone to CVEs. For more information, see Lightrun Runtime Reachability Assessment.
Once you have added the package and classes to the watch list, Lightrun scans the package and its components, indicating whether they are loaded or not. The results are displayed in the Loaded Packages tab, available after a one-hour period. For instructions on viewing the results, see View loaded and not loaded dynamic packages.
Proceed to add packages and classes to the watchlist either manually, one by one, or utilize bulk import through a CSV file. Additionally, you can perform a set of housekeeping tasks, including editing or removing packages from the list, as described in the following sections.
Add packages and classes to your watch list¶
- Log in to your Lightrun account.
- Click Settings on the top right-hand side of your screen to navigate to the Settings dashboard.
- Navigate to the Runtime Reachability section and click Watched Packages. The Watched Packages page opens.
-
Click +Add Package.
The Add a Package dialog opens.
-
Enter the following package details according to the Maven package naming convention:
Name
:groupId:artifactId
.artifactId
is the name of the Jar without the version using lower letters and no special characters. For example:org.xerial.snappy:snappy-java
. Note that under certain circumstances wherecannot be determined, an empty string will be displayed and only the will be displayed. Version
: This field is optional. if left empty, all versions for the package will be monitored. For example: When using version1
the following versions will be matched:1
,1.x
,1.x.y
(1
,1.2
,1.0.3
). When using version1.2
the following versions will be matched:1.2
,1.2.x
(1.2
,1.2.3
).Watched Classes
: This field is optional. Use both lower or upper class letters with periods for each class abbreviation. For example:foo.bar.ClassName
.
- Click Add. The results become available within, or up to, (it depends on when the last time the agent synced the watched packages), a 5-minute period, clearly specifying the status as either Loaded or Not Loaded in the Loaded Packages page.
Import packages in bulk¶
You can effortlessly upload multiple packages at once by utilizing a predefined CSV file.
The package names need to conform to the Maven package naming convention:
-
Name:
groupId:artifactId
.artifactId
is the name of the Jar without the version using lower letters and no special characters. For example:org.xerial.snappy:snappy-java
.
- Version: This field is optional. when left empty, all versions for the package will be monitored.
- Watched Classes: This field is optional. Use both lower or upper class letters with periods for each class abbreviation. For example:
foo.bar.ClassName
.
Import Packages in bulk using a CSV File¶
-
Create a CSV file containing the list of packages to be imported, following the format displayed in this example.
-
Log in to your Lightrun account.
- Click Settings on the top right-hand side of your screen to navigate to the Settings dashboard.
-
Navigate to the Runtime Reachability section and click Watched Packages.
The Watched Packages page opens.
-
Click Upload from CSV.
This will prompt your file explorer to open, allowing you to select your predefined CSV file.
-
Select the CSV file to upload.
The Upload from CSV dialog opens.
-
Click Upload File.
Note that all the history of your existing package included in your Watch list will be overwritten by the new packages imported from the uploaded file.
Manage your packages in the watch list¶
You can perform various tasks on your watched packages including editing and removing watched packages.
EDIT A WATCHED PACKAGE¶
In cases where an error is detected in the package name or version, follow these steps to edit the package information. Note that saving the edited package classifies it as a new package, resulting in the removal of previously collected data.
- Log in to your Lightrun account.
- Click Settings on the top right-hand side of your screen to navigate to the Settings dashboard.
- Navigate to the Runtime Reachability section and click the Watched Packages tab. The list of Loaded and Not Loaded packages is displayed.
-
In the selected package row, click .
The Edit a Package dialog opens.
-
Modify the information as required and click Save.
REMOVE A PACKAGE FROM THE WATCH LIST¶
To remove a package from your watch list, follow these steps. Be aware that all information collected for this watched package will be erased.
- Log in to your Lightrun account.
- Click Settings on the top right-hand side of your screen to navigate to the Settings dashboard.
- Navigate to the Runtime Reachability section and click the Watched Packages tab. The list of Loaded and Not Loaded packages is displayed.
-
To remove the package, click the selected package row, and click .
A confirmation message opens.
-
Click Remove. Note that all the data generated for the loaded package will be deleted.