Third party components are not getting detected when python files are scanned. This may even result in Highlight to not report CVE's.
Details
- Source code files may have extensions that do not match the extensions detected by the Code Reader. It is recommended to rename the file extensions as needed to match the extensions recognized by the Code Reader. For Python the extensions should be .py, .pyw. Please see the section on file extensions supported in Getting-Started-Guide.pdf for more details.
- Check the CSVs uploaded into the portal for framework files. If no framework CSVs are there HL will not produce any results, since there are no files to produce a fingerprint that would generate a CVE.
-
Ensure that the requirements.txt encoding is in UTF8. Check the framework.validated.csv for any null characters. Please refer CAST HIGHLIGHT - Results Upload - Cannot upload frameworks_validate.csv - "no version found (or invalid format) for framework"
- Dependency discovery through dependency files and package managers require supported framework files which are poetry.lock, pyproject.toml, requirements.txt and setup.py. Please refer automated framework discovery
-
-
- Check if the poetry.lock file have some processing issues. (
If poetry.lock is included, requirements.txt and setup.py files will be ignored.
When included, pyproject.toml file is used to extract first-level dependencies and exclude unused dependencies found in poetry.lock (e.g., test, development dependencies).
poetry.lock is used to resolve dependency versions and complete the OSS dependency map.) - Check if the pyproject.toml file by itself with a python file or in a directory without a poetry.lock file could be analyzed.
- Check if the poetry.lock file have some processing issues. (
-
-
- For CLI include the option "--includeAllDependencies" in the command to detect all dependencies. See the documentation for the CLI
- Check if the latest version of Code reader is used,also try upgrading to the latest version, the CLI associated with the Code Reader
Related Articles
CAST HIGHLIGHT - Results - SCA - CVE's fewer than expected
Additional Resources
CAST Highlight Troubleshooting Guides
CAST Highlight Product Documentation
Ticket
27319, 50757,51890, 53243, 52063, 52821
Comments