
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
@alac/encoder
Advanced tools
An encoder that produces raw ALAC data from PCM data.
npm install --save @alac/encoder
// The raw data you want to encode, could also be a stream or generated on the fly
const pcmData = new Uint8Array(/* ... */)
const encoder = new ALACEncoder()
// This buffer will be written into from the encoder, it needs to hold the largest possible packet size
const outputBuffer = new Uint8Array(encoder.bytesPerPacket + ALACEncoder.maxEscapeHeaderBytes)
for (let pos = 0; pos < pcmData.byteLength; pos += encoder.bytesPerPacket) {
// Take the next `encoder.bytesPerPacket` bytes from the raw PCM data
const chunk = pcmData.subarray(pos, pos + encoder.bytesPerPacket)
// Encode those bytes into one packet
const bytesWritten = encoder.encodeChunk(chunk, outputBuffer)
// Read the first `bytesWritten` bytes of the output buffer to get the final packet
const packet = outputBuffer.slice(0, bytesWritten)
}
FAQs
An encoder that produces raw ALAC data from PCM data.
We found that @alac/encoder 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
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.