
Security Fundamentals
Turtles, Clams, and Cyber Threat Actors: Shell Usage
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.
A simple file storage for NodeJS using a FTP server.
npm install ftp-bucket
Make sure directory listing is disable on the FTP server.
To prevent directory listings, create a .htaccess
file following which includes the following text:
IndexIgnore *
const FTPBucket = require('ftp-bucket');
const bucketURL = 'sftp://username:password@example.com/path';
let bucket = new FTPBucket(bucketURL);
// Save stream
let stream = fs.createReadStream(...);
bucket.saveStream(stream)
.then((info) => {
console.log('id: ' + info.id); // id: 60f7ac7d-ae83-4c15-8c9d-710e2861bdde
})
.catch((err) => {
console.log(err);
});
// Get stream
const idGet = '60f7ac7d-ae83-4c15-8c9d-710e2861bdde';
bucket.getStream(idGet)
.then((file) => {
console.log('id: ' = file.id); // id: 60f7ac7d-ae83-4c15-8c9d-710e2861bdde
})
.catch((err) => {
console.log(err);
});
// Remove file
const idRemove = '60f7ac7d-ae83-4c15-8c9d-710e2861bdde';
bucket.remove(idRemove)
.then((info) => {
console.log('id: ' + info.id); // id: 60f7ac7d-ae83-4c15-8c9d-710e2861bdde
})
.catch((err) => {
console.log(err);
});
TODO
TODO
FAQs
A FTP storage bucket implementation for NodeJS
The npm package ftp-bucket receives a total of 6 weekly downloads. As such, ftp-bucket popularity was classified as not popular.
We found that ftp-bucket 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 Fundamentals
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.
Security News
At VulnCon 2025, NIST scrapped its NVD consortium plans, admitted it can't keep up with CVEs, and outlined automation efforts amid a mounting backlog.
Product
We redesigned our GitHub PR comments to deliver clear, actionable security insights without adding noise to your workflow.