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.
Decode .bmp
images
npm install --save decode-bmp
const decodeBmp = require('decode-bmp')
const fs = require('fs')
const source = fs.readFileSync('foobar.bmp')
const image = decodeBmp(source)
console.log(image)
//=> { width: 32, height: 32, data: Uint8ClampedArray(...), colorDepth: 32 }
decodeBmp(source: ArrayBuffer | Buffer) => ImageData
Decodes the .bmp
file in the given buffer, and returns an image.
The image has the following properties:
width: number
- The width of the image, in pixelsheight: number
- The height of the image, in pixelsdata: Uint8ClampedArray
- The data of the image, in the RGBA
formatcolorDepth: number
- The color depth of the image as the number of bits used per pixelFAQs
Decode `.bmp` images
The npm package decode-bmp receives a total of 46,282 weekly downloads. As such, decode-bmp popularity was classified as popular.
We found that decode-bmp 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.