
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@alac/decoder
Advanced tools
A decoder that turns raw ALAC data into PCM data.
npm install --save @alac/decoder
const cookie = new Uint8Array(/* ... */) // e.g. from CAF 'kuki' chunk
const packets = new Uint32Array(/* ... */) // e.g. from CAF 'pakt' chunk
const decoder = new ALACDecoder(cookie)
// This buffer will be written into from the decoder, it needs to hold at least one full decoded packet
const outputBuffer = new Uint8Array(decoder.bytesPerPacket)
for (const size of packets) {
const packet = new Uint8Array(/* ... */) // the next `size` bytes from your ALAC data
const framesWritten = decoder.decodeChunk(packet, outputBuffer)
const bytesWritten = framesWritten * decoder.bytesPerFrame
// The first `bytesWritten` bytes will now be filled with PCM data
const decodedChunk = outputBuffer.slice(0, bytesWritten)
}
FAQs
A decoder that turns raw ALAC data into PCM data.
The npm package @alac/decoder receives a total of 1 weekly downloads. As such, @alac/decoder popularity was classified as not popular.
We found that @alac/decoder 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.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.