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.
@auser/wasm-flate
Advanced tools
[![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=The%20fastest%20compression%20library%20in%20your%20browser.&url=https://github.com/drbh/wasm-flate&hashtags=wasm,js,webdev,rust,compress
WebAssembly powered compression and decompression in the browser and server.
var flate = require('wasm-flate');
var pako = require('pako');
var data = new Uint8Array( Buffer.from('Hello World') );
// Uint8Array [
// 72, 101, 108, 108,
// 111, 32, 87, 111,
// 114, 108, 100
// ]
compress with wasm-flate
flate.deflate_encode_raw(data)
// Uint8Array [
// 243, 72, 205, 201, 201,
// 87, 8, 207, 47, 202,
// 73, 1, 0
// ]
Then compress with pako
pako.deflateRaw(data)
// Uint8Array [
// 243, 72, 205, 201, 201,
// 87, 8, 207, 47, 202,
// 73, 1, 0
// ]
you can see the output is the same 🎉
you can even compress with one library and decompress with the other one
var data = new Uint8Array( Buffer.from('Hello World') );
var compressed_with_wasm_flate = flate.deflate_encode_raw(data)
var decompressed_with_pako = pako.inflateRaw(compressed_with_wasm_flate)
// covert to a string - since JS doesnt let us directly compare UintArrays
var original = new TextDecoder("utf-8").decode(data)
var evaluated = new TextDecoder("utf-8").decode(decompressed_with_pako)
original === evaluated
// true
If you found wasm-flate
useful feel free to buy me a beer 🍺 or two 😀
BTC - 3QVK6D5QCZDSyLzFL3ZbELokyuSprRQQZF
FAQs
[![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=The%20fastest%20compression%20library%20in%20your%20browser.&url=https://github.com/drbh/wasm-flate&hashtags=wasm,js,webdev,rust,compress
The npm package @auser/wasm-flate receives a total of 6 weekly downloads. As such, @auser/wasm-flate popularity was classified as not popular.
We found that @auser/wasm-flate demonstrated a not healthy version release cadence and project activity because the last version was released 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.