feat: enhance secret scanning for specific binary files #7204
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
scan/secret
Issues relating to secret scanning
target/container-image
Issues relating to container image scanning
Milestone
Description
Currently, Trivy skips binary files during secret scanning. However, recent incidents have shown that certain binary files, such as
.pyc
files, may contain valuable information for secret detection. We propose enhancing Trivy's secret scanning capabilities to include specific binary file types.Proposed Solution
.pyc
) to avoid significant performance degradation.Implementation Details
.pyc
).Here's a sample implementation of the strings-like functionality in Go:
This implementation reads the file byte by byte, extracts printable characters, and outputs strings that meet a minimum length requirement. It can be adapted and integrated into Trivy's scanning process.
Future Considerations
Benefits
Discussion
#7170
The text was updated successfully, but these errors were encountered: