Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Describe the change
This change adds
ScanSave
which exposes the raw binary contents of a file as a compressed and encoded string.Closes #358
The raw contents of a file may contain a large amount of data which is why this scanner is disabled by default in the
backend.yaml
configuration. To help reduce the size of the result a compression algorithm can be used on the data (gzip
(default),bzip2
, orlzma
). Also, to ensure character set compatibility with the JSON output, the binary data is encoded (base64
(default) orbase85
). Additional processing on this data would then be required to save the data to a file. Multiple compression and encoding algorithms are available to allow users options for compatibility, post-processing requirements, and result size.Example post-processing
Future development could add functionality to Strelka frontend commands to decode, decompress, and save the data to the local file system.
Side note: The pre-commit hook version of
isort
was updated due to a bug between old versions ofisort
and the latestpoetry
version.Describe testing procedures
docker-compose -f build/docker-compose.yaml build
docker-compose
containers locally and ran samples through usingstrelka-oneshot
save.file
output to ensure the original file was able to be reconstructedSample output
Checklist