
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@cumulus/sftp-client
Advanced tools
A Promise-based SFTP client
npm install @cumulus/sftp-client
const { SftpClient } = require("@cumulus/sftp-client");
(async () => {
const sftpClient = new SftpClient({
host: "ssh.example.com",
port: 2222,
username: "my-username",
password: "my-password"
});
console.log(await sftpClient.list("./"));
})();
Type: object
Type: string
The hostname or IP address of the remote SFTP server.
Type: number
Default: 22
The TCP port to connect to.
Type: string
The username to use when connecting to the SFTP server.
Type: string
The password to use when connecting to the SFTP server.
Type: string
A private key to use when connecting to the SFTP server.
Download a remote file to disk. Returns a Promise
that resolves to a string
containing the local path that the file was saved to.
Type: string
The full path to the remote file to be fetched
Type: string
The full local destination file path
Close the connect to the SFTP server.
Returns a Promise
that resolves to an array
of object
s containing information about discovered files.
The returned file object
s will each contain name
, path
, type
, size
, and time
fields.
Type: string
The remote path to be listed.
Returns the ssh2-sftp-client
Client as a convenience.
Returns a Promise
that resolves to undefined
once a file has been transferred from S3 to the SFTP server.
Type: object
Type: string
The bucket containing the S3 object to be transferred to the SFTP server.
Type: string
The key of the S3 object to be transferred to the SFTP server.
Type: string
The full remote destination file path.
Returns a Promise
that resolves to a string
containing the S3 URI of the destination file
Type: string
The full path to the remote file to be fetched
Type: string
Destination S3 bucket of the file
Type: string
Destination S3 key of the file
Returns a Promise
that resolves to undefined
once the remote file has been deleted.
Type: string
The path to file on the SFTP server to be deleted
FAQs
A Promise-based SFTP client
We found that @cumulus/sftp-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.