Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Valid bzip2 archive: bzip2: corrupted input: invalid stream magic #2935

Open
rgmz opened this issue Jun 6, 2024 · 0 comments
Open

Valid bzip2 archive: bzip2: corrupted input: invalid stream magic #2935

rgmz opened this issue Jun 6, 2024 · 0 comments
Labels

Comments

@rgmz
Copy link
Contributor

rgmz commented Jun 6, 2024

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

  1. 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
  2. Scan with TruffleHog
  3. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant