Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

sftp-zip-deploy

Latest version: v0.7.0

Overview

Last scanned
25 Nov 2026
Published
25 Nov 2026
npm package Publisher: vitaly.tomilov
2 Stars
0 Forks
40 Versions
6.5K Downloads
TypeScript Repo language

Scan summary

sftp-zip-deploy was last scanned on 25 Nov 2026 at version 0.7.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 40 versions; the latest 5 were published within 2 days (24 and 25 Nov 2026).
  • Findings: No rules fired in version 0.7.0.
  • Downloads: 6,543 downloads.

Versions

40 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.7.0 LATEST 25 Nov 2026 No rules fired
0.7.0-beta 25 Nov 2026 No rules fired
0.6.1 24 Nov 2026 No rules fired
0.6.0 24 Nov 2026 Not shown
0.5.3 24 Nov 2026 Not shown

No rules fired in 0.7.0

Findings

Findings for v0.7.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.7.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

sftp-zip-deploy

Build Status Node Version

Fast single-zip deployment over SFTP for your project's distribution folder:

  • It zips your distribution folder and sends the archive to your server via SFTP
  • It supports remote commands for before / after zip deployment, via SSH2
  • It provides details about what is going on all the way

Rationale

This library was created because file-by-file deployments over SFTP are too slow, especially for large projects.

For example, my project that produced about 100 files for distribution, was taking about 4 minutes to re-deploy, while on 1Gbt Internet. Switching over to this single-zip deployment brought the time to under 10 seconds.

Install

npm i sftp-zip-deploy

Usage

In the example below, we deploy a NodeJS project into /root/web on our remote server.

Once the zip file is deployed, we use cmd.after commands to set that folder as active, then unpack the archive and install the project's dependencies.

import {zipAndDeploy} from 'sftp-zip-deploy';

await zipAndDeploy({
    srcDir: './dist', // local folder with content to deploy
    destDir: '/root/web/', // remote folder to copy our zip file
    cn: {
        host: '1.2.3.4',
        port: 123,
        username: 'root',
        password: '#########'
    },
    // Settings below are optional
    zipFile: './release.zip', // this is the default
    cmd: {
        // remote command to execute after zip deployment:
        after: 'cd /root/web && unzip -o release.zip && npm i'

        // it also supports "before" command 
    }
});

Note that we use option -o (overwrite) with unzip, because otherwise the command may prompt for input, if files are already there, and this library doesn't work with remote prompts, it will just get stuck.

API

The main interface ISftpZipDeployConfig has a number of options, including events for providing progress details:

Below is example of using the full potential of the events supported:

{
    onZipReady(localPath, size) {
        const s = Math.round(size / 1024).toLocaleString();
        console.log(`Compressed: ${localPath} | ${s} KB`);
    },
    onZipDeployed(remotePath, size) {
        const s = Math.round(size / 1024).toLocaleString();
        console.log(`Deployed: ${remotePath} | ${s} KB`);
    },
    onCmdOutput(cmd, err, std) {
        const txt = (err || std)?.toString().trim();
        if (txt) {
            if (err) {
                console.error(txt); // err
            } else {
                console.log(txt); // std
            }
        }
    },
    // Upload steps are reported for every chunk, which is too much for
    // dumping into the console, so we throttle it to report once a second:
    onUploadStep: throttle(1000, (percent, total) => {
        const t = Math.round(total / 1024).toLocaleString();
        console.log(`${percent}% | ${t} KB`);
    })
}
function throttle<T, R, A, B, C, D, E>(delay: number, fn: (this: T, p1: A, p2: B, p3: C, p4: D, p5: E) => R)
    : (this: T, p1?: A, p2?: B, p3?: C, p4?: D, p5?: E) => R;

function throttle(delay: number, fn: (this: any, ...a: any[]) => void) {
    let lastCall = 0;
    return function (this: any, ...args: any[]) {
        const now = Date.now();
        if (now - lastCall >= delay) {
            lastCall = now;
            fn.apply(this, args);
        }
    }
}
7-zip Archives

In version 0.7.0, this library added support for 7-zip archives:

Passing in zipFile with .7z file extension automatically changes the compression to 7-zip.

7-zip compression is significantly faster and more efficient, often 60% better for text, source code and documents than zip. The only downside, you may need to install 7z unpacking tools on the server, while for zip it is a ubiquitous default.

For example, typical for Linux is p7zip-full package, and then you can use 7z x -y release.7z within cmd.after, where -y is to avoid input prompts.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm sftp-zip-deploy

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229