Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH 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
}
);
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 1,122 weekly downloads. As such, @transcend-io/penumbra popularity was classified as 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.