
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.
@transcend-io/penumbra
Advanced tools
Display an encrypted file
// Decrypt and display text
getDecryptedContent(fileUrl, key, iv, authTag, 'text/plain')
.then(decryptedText => {
document.getElementById('my-paragraph').innerText = decryptedText;
});
// Decrypt and display media
getDecryptedContent(url, key, iv, authTag, 'image/jpeg')
.then(imageSrc => {
document.getElementById('my-img').src = imageSrc;
});
Download an encrypted file
downloadEncryptedFile(
`https://s3-us-west-2.amazonaws.com/bencmbrook/africa.topo.json.enc`,
key,
iv,
authTag,
{
fileName: 'myFile.json', // optional values
progressEventName: 'download-progress' // defaults to the url
}
);
You can listen to a download progress event. The event type is the same as the url
parameter
window.addEventListener(url, e => {
console.log(`${e.detail}% done`);
});
Note: this feature requires the Content-Length
response header to be exposed. This works by adding Access-Control-Expose-Headers: Content-Length
to the response header (read more here and here)
On Amazon S3, this means adding the following line to your bucket policy, inside the <CORSRule>
block:
<ExposeHeader>Content-Length</ExposeHeader>
FAQs
Crypto streams for the browser.
The npm package @transcend-io/penumbra receives a total of 216 weekly downloads. As such, @transcend-io/penumbra popularity was classified as not popular.
We found that @transcend-io/penumbra demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.