Skip to main content
Scans/npm/@agentstep/gateway

@agentstep/gateway

npm

Share

Summary

@agentstep/gateway v0.3.8 was classified as CRITICAL RISK with a risk score of 6230. Sigil detected 478 findings across 3 files, covering phases including install hooks, code patterns, network exfiltration, credential access, obfuscation. Review the findings below before installing this package.

CRITICAL RISK(6230)

v0.3.8

30 April 2026, 07:58 UTC

by Sigil Bot

Risk Score

6230

Findings

478

Files Scanned

3

Provenance

Findings by Phase

Phase Ordering

Phases are ordered by criticality, with the most dangerous at the top. Click any phase header to expand or collapse its findings. Critical phases are expanded by default.

install-pip-setup-exec

CRITICAL

setup.py executes code at install time

package/dist/gateway.js:5757

    init_wrapper_script2();
    init_setup();
    opencodeBackend = {
Why was this flagged?

This setup.py calls subprocess, os.system, exec, or eval during package installation. Legitimate packages rarely need to execute arbitrary commands at install time. This pattern is commonly used by malicious packages to download and run payloads, exfiltrate environment variables, or establish persistence. Rated CRITICAL because it runs with the installer's full permissions.

install-pip-setup-exec

CRITICAL

setup.py executes code at install time

package/dist/gateway.js:75602

    var create = function create2() {
      return util4.Buffer ? function create_buffer_setup() {
        return (Writer2.create = function create_buffer() {
Why was this flagged?

This setup.py calls subprocess, os.system, exec, or eval during package installation. Legitimate packages rarely need to execute arbitrary commands at install time. This pattern is commonly used by malicious packages to download and run payloads, exfiltrate environment variables, or establish persistence. Rated CRITICAL because it runs with the installer's full permissions.

install-pip-setup-exec

CRITICAL

setup.py executes code at install time

package/dist/gateway.js:84337

    }
    function setup() {
      (0, admin_1.registerAdminService)(getChannelzServiceDefinition, getChannelzHandlers);
Why was this flagged?

This setup.py calls subprocess, os.system, exec, or eval during package installation. Legitimate packages rarely need to execute arbitrary commands at install time. This pattern is commonly used by malicious packages to download and run payloads, exfiltrate environment variables, or establish persistence. Rated CRITICAL because it runs with the installer's full permissions.

install-pip-setup-exec

CRITICAL

setup.py executes code at install time

package/dist/gateway.js:158883

  "../../node_modules/debug/src/common.js"(exports2, module2) {
    function setup(env2) {
      createDebug.debug = createDebug;
Why was this flagged?

This setup.py calls subprocess, os.system, exec, or eval during package installation. Legitimate packages rarely need to execute arbitrary commands at install time. This pattern is commonly used by malicious packages to download and run payloads, exfiltrate environment variables, or establish persistence. Rated CRITICAL because it runs with the installer's full permissions.

install-pip-setup-exec

CRITICAL

setup.py executes code at install time

package/dist/gateway.js:167090

}
function getIntegrationsToSetup(options) {
  const defaultIntegrations = options.defaultIntegrations || [];
Why was this flagged?

This setup.py calls subprocess, os.system, exec, or eval during package installation. Legitimate packages rarely need to execute arbitrary commands at install time. This pattern is commonly used by malicious packages to download and run payloads, exfiltrate environment variables, or establish persistence. Rated CRITICAL because it runs with the installer's full permissions.

install-pip-setup-exec

CRITICAL

setup.py executes code at install time

package/dist/gateway.js:171790

        name: INTEGRATION_NAME11,
        setup(client2) {
          addConsoleInstrumentationHandler(({ args, level }) => {
Why was this flagged?

This setup.py calls subprocess, os.system, exec, or eval during package installation. Legitimate packages rarely need to execute arbitrary commands at install time. This pattern is commonly used by malicious packages to download and run payloads, exfiltrate environment variables, or establish persistence. Rated CRITICAL because it runs with the installer's full permissions.

install-pip-setup-exec

CRITICAL

setup.py executes code at install time

package/dist/gateway.js:183346

        name: "LocalVariablesAsync",
        async setup(client2) {
          const clientOptions = client2.getOptions();
Why was this flagged?

This setup.py calls subprocess, os.system, exec, or eval during package installation. Legitimate packages rarely need to execute arbitrary commands at install time. This pattern is commonly used by malicious packages to download and run payloads, exfiltrate environment variables, or establish persistence. Rated CRITICAL because it runs with the installer's full permissions.

install-pip-setup-exec

CRITICAL

setup.py executes code at install time

package/dist/gateway.js:199620

        },
        setup(client2) {
          if (!getPrismaTracingHelper()) {
Why was this flagged?

This setup.py calls subprocess, os.system, exec, or eval during package installation. Legitimate packages rarely need to execute arbitrary commands at install time. This pattern is commonly used by malicious packages to download and run payloads, exfiltrate environment variables, or establish persistence. Rated CRITICAL because it runs with the installer's full permissions.

install-pip-setup-exec

CRITICAL

setup.py executes code at install time

package/dist/gateway.js:205971

}
function kickoffEnvironmentSetup(envId) {
  runEnvironmentSetup(envId).catch((err) => {
Why was this flagged?

This setup.py calls subprocess, os.system, exec, or eval during package installation. Legitimate packages rarely need to execute arbitrary commands at install time. This pattern is commonly used by malicious packages to download and run payloads, exfiltrate environment variables, or establish persistence. Rated CRITICAL because it runs with the installer's full permissions.

install-pip-setup-exec

CRITICAL

setup.py executes code at install time

package/dist/gateway.js:214387

\${JSON.stringify(l)}
\`),typeof u=="string"||u instanceof Uint8Array)o(u);else{let d;try{d=JSON.stringify(u)}catch{d=JSON.stringify(No(u))}o(d)}}return typeof r=="string"?r:fz(r)}function fz(e){const t=e.reduce((o,a)=>o+a.length,0),n=new Uint8Array(t);let r=0;for(const o of e)n.set(o,r),r+=o.length;return n}function hz(e){const t=typeof e.data=="string"?bb(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]
Why was this flagged?

This setup.py calls subprocess, os.system, exec, or eval during package installation. Legitimate packages rarely need to execute arbitrary commands at install time. This pattern is commonly used by malicious packages to download and run payloads, exfiltrate environment variables, or establish persistence. Rated CRITICAL because it runs with the installer's full permissions.

install-pip-setup-exec

CRITICAL

setup.py executes code at install time

package/dist/gateway.js:214395

Event: \${Ma(e)}.
Url: \${jp(e)}\`),!0}return!1}function NL(e,t){return t?.length?IN(e).some(n=>lm(n,t)):!1}function jL(e,t){if(!t?.length)return!1;const n=e.transaction;return n?lm(n,t):!1}function ML(e,t){if(!t?.length)return!1;const n=jp(e);return n?lm(n,t):!1}function AL(e,t){if(!t?.length)return!0;const n=jp(e);return n?lm(n,t):!0}function OL(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}f
Why was this flagged?

This setup.py calls subprocess, os.system, exec, or eval during package installation. Legitimate packages rarely need to execute arbitrary commands at install time. This pattern is commonly used by malicious packages to download and run payloads, exfiltrate environment variables, or establish persistence. Rated CRITICAL because it runs with the installer's full permissions.

Badge

Sigil scan badge for npm/@agentstep/gateway

Markdown

[![Sigil Scan](https://sigilsec.ai/badge/npm/@agentstep/gateway)](https://sigilsec.ai/scans/030985C4-2A60-4410-A6FB-DCA0DAA096FE)

HTML

<a href="https://sigilsec.ai/scans/030985C4-2A60-4410-A6FB-DCA0DAA096FE"><img src="https://sigilsec.ai/badge/npm/@agentstep/gateway" alt="Sigil Scan"></a>

Run This Scan Yourself

Scan your own packages

Run Sigil locally to audit any package before it touches your codebase.

curl -sSL https://sigilsec.ai/install.sh | sh
Read the docs →Free. Apache 2.0.

Early Access

Get cloud scanning, threat intel, and CI/CD integration.

Join 150+ developers on the waitlist.

Get threat intelligence and product updates

Security research, new threat signatures, and product updates. No spam.

Other npm scans

Believe this result is incorrect? Request a review or see our Terms of Service and Methodology.

Scanned bySigil Bot