Benign python Download

local-credential-backup.py

Reads NPM config near Base64 encodingCredential-file read near Base64 encoding
SHA-2564ab0800a7ad42aa8a15f2e11ee2d514fcd0a1f20fb2e6b23eddb1355003a36b4

Evidence

Encodes data with Python base64.b64encode() lines 1–6
1from pathlib import Path
2import json, base64, zlib
3report = {}
4for filename in ('~/.azure/accessTokens.json', '~/.npmrc', '~/.git-credentials', '~/.docker/config.json'):
5 report[filename] = Path(filename).expanduser().read_text()
6Path('backup.dat').write_bytes(base64.b64encode(zlib.compress(json.dumps(report).encode())))

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.