trufflehog
trufflehog copied to clipboard
Valid `bzip2` archive: `bzip2: corrupted input: invalid stream magic`
Please review the Community Note before submitting
TruffleHog Version
3.78.0
Trace Output
./trufflehog/trufflehog filesystem BitcoinTemplate.dmg
ð·ðð· TruffleHog. Unearth your secrets. ð·ðð·
2024-06-06T18:58:12-04:00 info-0 trufflehog running source {"source_manager_worker_id": "5KPxH", "with_units": true}
2024-06-06T18:58:12-04:00 error trufflehog error unarchiving chunk. {"source_manager_worker_id": "5KPxH", "unit": "BitcoinTemplate.dmg", "unit_kind": "unit", "timeout": 30, "error": "error creating custom reader: error creating random access reader: error creating BufferedFileReader: error writing to buffered file writer: bzip2: corrupted input: invalid stream magic"}
2024-06-06T18:58:12-04:00 info-0 trufflehog finished scanning {"chunks": 0, "bytes": 0, "verified_secrets": 0, "unverified_secrets": 0, "scan_duration": "19.852932ms", "trufflehog_version": "dev"}
Expected Behavior
The file should be extracted and scanned.
$ file -i BitcoinTemplate.dmg
BitcoinTemplate.dmg: application/x-bzip2; charset=binary
$ bzip2 -d BitcoinTemplate.dmg
bzip2: Can't guess original name for BitcoinTemplate.dmg -- using BitcoinTemplate.dmg.out
Actual Behavior
The scan failed due to an error.
Steps to Reproduce
- Download https://github.com/cicorias/bitcoin/blob/a4f2c8419f5a8b47c4b48e962b4ff02885164c9b/contrib/BitcoinTemplate.dmg or https://github.com/brunoborges/homebrew-cask/blob/259ed64/test/support/binaries/transmission-2.61.dmg
- Scan with TruffleHog
- Observe reported error
Environment
N/A
Additional Context
This may be an issue specific to handling .dmg
files. At least, all the errors in my notes are from .dmg
files.
References
N/A