Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Python function to construct a ZIP archive with stream processing - without having to store the entire ZIP in memory or disk
Python function to construct a ZIP archive on the fly - without having to store the entire ZIP in memory or disk. This is useful in memory-constrained environments, or when you would like to start returning compressed data before you've even retrieved all the uncompressed data. Generating ZIPs on-demand in a web server is a typical use case for stream-zip.
Offers similar functionality to zipfly, but with a different API, and does not use Python's zipfile module under the hood. Creates both Zip32/2.0/Legacy and Zip64 files.
To unZIP files on the fly try stream-unzip.
In addition to being memory efficient (with some limitations) stream-zip:
Constructs ZIP files that can be stream unzipped, for example by stream-unzip
Can construct Zip64 ZIP files. Zip64 ZIP files allow sizes far beyond the approximate 4GiB limit of the original ZIP format
Can construct ZIP files that contain symbolic links
Can construct ZIP files that contain directories, including empty directories
Can construct password protected / AES-256 encrypted ZIP files adhering to the WinZip AE-2 specification.
Allows the specification of permissions on the member files and directories (although not all clients respect them)
By default stores modification time as an extended timestamp. An extended timestamp is a more accurate timestamp than the original ZIP format allows
Provides an async interface (that uses threads under the hood)
Visit the stream-zip documentation for usage instructions.
FAQs
Python function to construct a ZIP archive with stream processing - without having to store the entire ZIP in memory or disk
We found that stream-zip demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.