registry  /  pm2-orbit  /  1.0.1

pm2-orbit@1.0.1

High-performance PM2 monitoring dashboard — event-driven, 1000+ processes, < 150KB

AI Security Review

scanned 3d ago · by lpm-firewall-ai

No confirmed malicious attack surface was established. The package is a PM2 monitoring dashboard with user-invoked process controls and optional alert notifications.

Static reason
High-risk behavior combination matched malicious policy.
Trigger
User runs `pm2-orbit` or starts `dist/server.js`.
Impact
Can control PM2 processes and write dashboard state when deliberately started; no source-backed malware behavior found.
Mechanism
PM2 dashboard server with optional dependency auto-install and user-configured notifications
Rationale
Scanner hits are explained by the package's PM2 dashboard purpose: local server APIs, PM2 control, bundled UI, fonts, and user-configured notification webhooks. The only notable risk is CLI-time global npm auto-install, but it is visible, package-aligned, and not an install-time payload or exfiltration mechanism.
Evidence
package.jsonbin/pm2-orbit.jsdist/server.jsdist-ui/index.htmldist-ui/assets/index-pRE_kpC2.js
Network endpoints4
127.0.0.1:9823localhost:9823127.0.0.1:5151ws://127.0.0.1:5151

Decision evidence

public snapshot
AI called this Clean at 82.0% confidence as Benign with medium false-positive risk.
Evidence for block
  • bin/pm2-orbit.js auto-runs `npm install -g pm2` and `npm install -g better-sqlite3` when CLI dependencies are missing.
  • dist/server.js exposes PM2 process action APIs and websocket monitoring once the user starts the dashboard.
  • dist/server.js can POST alert notifications to WEBHOOK_URL, SLACK_WEBHOOK_URL, or DISCORD_WEBHOOK_URL environment-configured endpoints.
Evidence against
  • package.json postinstall only checks whether `pm2` resolves and prints an install suggestion; it does not install or fetch code at install time.
  • dist/server.js network sends are package-aligned alert notifications to user/env-provided URLs, not hardcoded exfiltration hosts.
  • dist/server.js stores local dashboard history and alerts under `.pm2-orbit` paths and serves bundled UI assets.
  • dist-ui/assets/index-pRE_kpC2.js uses browser fetch/websocket only for same-origin API/UI functionality; no credential harvesting or external sink found.
  • No prompt/reviewer manipulation, persistence, destructive behavior, or hidden lifecycle payload found in inspected files.
Behavioral surface
Source
ChildProcessCryptoEnvironmentVarsEvalFilesystemNetworkWebSocket
Supply chain
HighEntropyStringsMinifiedObfuscatedProtestwareUrlStrings
ManifestNo manifest risk signals triggered.
scanned 8 file(s), 2.23 MB of source, external domains: 127.0.0.1, accounts.google.com, api.nodemailer.com, discord.com, ethereal.email, fastify.dev, github.com, hooks.slack.com, json-schema.org, localhost.com, mail.google.com, nodemailer.com, plus-innovations.com, pm2.io, pm2.keymetrics.io, raw.githubusercontent.com, react.dev, systeminformation.io, www.buymeacoffee.com, www.w3.org, your-webhook-endpoint.com

Source & flagged code

10 flagged · loading source
package.jsonView file
scripts.postinstall = node -e "try{require.resolve('pm2')}catch{console.log('\n ℹ Install pm2 for process monitoring: npm install -g pm2\n')}"
Critical
Red Install Lifecycle Script

Install-time lifecycle script matches a deterministic static-gate block pattern.

package.jsonView on unpkg
scripts.postinstall = node -e "try{require.resolve('pm2')}catch{console.log('\n ℹ Install pm2 for process monitoring: npm install -g pm2\n')}"
High
Install Time Lifecycle Scripts

Package defines install-time lifecycle scripts.

package.jsonView on unpkg
bin/pm2-orbit.jsView file
67try { L68: const { execSync } = require('child_process'); L69: execSync(`npm install -g ${name}`, { stdio: 'inherit', timeout: 120000 });
High
Child Process

Package source references child process execution.

bin/pm2-orbit.jsView on unpkg · L67
dist/server.jsView file
28|| (${o} === "string" && ${n} && ${n} == +${n} && !(${n} % 1))`).assign(a,(0,ke._)`+${n}`);return;case"boolean":r.elseIf((0,ke._)`${n} === "false" || ${n} === 0 || ${n} === null`).... L29: || ${o} === "boolean" || ${n} === null`).assign(a,(0,ke._)`[${n}]`)}}}function Qce({gen:e,parentData:t,parentDataProperty:i},r){e.if((0,ke._)`${t} !== undefined`,()=>e.assign((0,ke... L30: missingProperty: ${r},
High
Eval

Package source references dynamic code evaluation.

dist/server.jsView on unpkg · L28
401globstar while`,A,ie,N,ce,Ee),this.matchOne(A.slice(ie),N.slice(ce),D))return this.debug("globstar found match!",ie,L,Ee),!0;if(Ee==="."||Ee===".."||!$.dot&&Ee.charAt(0)==="."){thi... L402: >>> no match, partial?`,A,ie,N,ce),ie===L))}let Pe;if(typeof V=="string"?(Pe=ae===V,this.debug("string match",V,ae,Pe)):(Pe=V.test(ae),this.debug("pattern match",V,ae,Pe)),!Pe)retu... L403: <html lang="en"> ... L412: `;return[i,Buffer.byteLength(i)]}d9.createHtmlDocument=JNe});var g9=S((t7e,m9)=>{"use strict";function QNe(e,t){if(typeof e=="string")return[e];if(e===!1)return[];if(Array.isArray(... L413: at `+e[i].toString();return t}function lMe(e){if(!e)throw new TypeError("argument namespace is required");var t=Yx(),i=Cu(t[1]),r=i[0];function n(s){Xx.call(n,s)}return n._file=r,n... L414: `,"utf8")}}}function Cu(e){var t=e.getFileName()||"<anonymous>",i=e.getLineNumber(),r=e.getColumnNumber();e.isEval()&&(t=e.getEvalOrigin()+", "+t);var n=[t,i,r];return n.callSite=e... L415: at `+i[s].toString();return n}return t&&(n+=" at "+VO(t)),n}function dMe(e,t,i){var r="\x1B[36;1m"+this._namespace+"\x1B[22;39m \x1B[33;1mdeprecated\x1B[22;39m \x1B[0m"+e+"\x1B[39m... L416: \x1B[36mat `+i[n].toString(
High
Same File Env Network Execution

A single source file combines environment access, network access, and code or shell execution; review context before blocking.

dist/server.jsView on unpkg · L401
22${g}${C} L23: ${v}`),m.pop(),`{${C}}`}case"number":return isFinite(h)?String(h):t?t(h):"null";case"boolean":return h===!0?"true":"false";case"undefined":return;case"bigint":if(r)return String(h)... L24: `:` L25: `),q=Kse.bind(null,{[uN]:"",[pN]:o,[dN]:k,[fN]:Iw,[kw]:R,[hN]:P}),Q="";p!==null&&(d===void 0?Q=q(p):Q=q(Object.assign({},p,{name:d})));let U=a instanceof Function?a:a?bN:moe,z=U().... L26: `:""},this._extScope=t,this._scope=new Qr.Scope({parent:t}),this._nodes=[new S_]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){retu... ... L28: || (${o} === "string" && ${n} && ${n} == +${n} && !(${n} % 1))`).assign(a,(0,ke._)`+${n}`);return;case"boolean":r.elseIf((0,ke._)`${n} === "false" || ${n} === 0 || ${n} === null`).... L29: || ${o} === "boolean" || ${n} === null`).assign(a,(0,ke._)`[${n}]`)}}}function Qce({gen:e,parentData:t,parentDataProperty:i},r){e.if((0,ke._)`${t} !== undefined`,()=>e.assign((0,ke... L30: missingProperty: ${r},
High
Command Output Exfiltration

Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.

dist/server.jsView on unpkg · L22
2`;for(let s=0;s<r;++s){let o=e.nodes[s],a=t+(s===n?" ":"\u2502 ");i+=t,i+=s===n?"\u2514\u2500":"\u251C\u2500",i+=o.nodes.length===0?"\u2500 ":"\u252C ",i+=ok(o,a).slice(t.length+2... L3: `).slice(0,2).map(i=>i.trim()).join(" -- ")}dk.exports={getPluginName:fee}});var im=S((Lze,mk)=>{"use strict";function dee(e){return e!==null&&typeof e=="object"&&typeof e.then=="f... L4: causes have become circular...`;let r=Ub(e);return r?(t.add(e),i+` L5: caused by: `+wL(r,t)):i},Kte=e=>wL(e,new Set),_L=(e,t,i)=>{if(!wp(e))return"";let r=i?"":e.message||"";if(t.has(e))return r+": ...";let n=Ub(e);if(n){t.add(e);let s=typeof e.cause=... L6: ${v}`,_=`, ... L22: ${g}${C} L23: ${v}`),m.pop(),`{${C}}`}case"number":return isFinite(h)?String(h):t?t(h):"null";case"boolean":return h===!0?"true":"false";case"undefined":return;case"bigint":if(r)return String(h)... L24: `:` L25: `),q=Kse.bind(null,{[uN]:"",[pN]:o,[dN]:k,[fN]:Iw,[kw]:R,[hN]:P}),Q="";p!==null&&(d===void 0?Q=q(p):Q=q(Object.assign({},p,{name:d})));let U=a instanceof Function?a:a?bN:moe,z=U().... L26: `:""},this._extScope=t,this._scope=new Qr.Scope({parent:t}),this._nodes=[new S_]}toString(){return this._root.render(this.opts)}name(t){retu
High
Sandbox Evasion Gated Capability

Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.

dist/server.jsView on unpkg · L2
2`;for(let s=0;s<r;++s){let o=e.nodes[s],a=t+(s===n?" ":"\u2502 ");i+=t,i+=s===n?"\u2514\u2500":"\u251C\u2500",i+=o.nodes.length===0?"\u2500 ":"\u252C ",i+=ok(o,a).slice(t.length+2... L3: `).slice(0,2).map(i=>i.trim()).join(" -- ")}dk.exports={getPluginName:fee}});var im=S((Lze,mk)=>{"use strict";function dee(e){return e!==null&&typeof e=="object"&&typeof e.then=="f... L4: causes have become circular...`;let r=Ub(e);return r?(t.add(e),i+` L5: caused by: `+wL(r,t)):i},Kte=e=>wL(e,new Set),_L=(e,t,i)=>{if(!wp(e))return"";let r=i?"":e.message||"";if(t.has(e))return r+": ...";let n=Ub(e);if(n){t.add(e);let s=typeof e.cause=... L6: ${v}`,_=`, ... L22: ${g}${C} L23: ${v}`),m.pop(),`{${C}}`}case"number":return isFinite(h)?String(h):t?t(h):"null";case"boolean":return h===!0?"true":"false";case"undefined":return;case"bigint":if(r)return String(h)... L24: `:` L25: `),q=Kse.bind(null,{[uN]:"",[pN]:o,[dN]:k,[fN]:Iw,[kw]:R,[hN]:P}),Q="";p!==null&&(d===void 0?Q=q(p):Q=q(Object.assign({},p,{name:d})));let U=a instanceof Function?a:a?bN:moe,z=U().... L26: `:""},this._extScope=t,this._scope=new Qr.Scope({parent:t}),this._nodes=[new S_]}toString(){return this._root.render(this.opts)}name(t){retu
Low
Weak Crypto

Package source references weak cryptographic algorithms.

dist/server.jsView on unpkg · L2
dist-ui/assets/index-pRE_kpC2.jsView file
1import{j as o,_ as Dn}from"./cmdk-D6Y8xHyf.js";import{r as wc,g as up,a as x,b as $,B as cp,M as Nv,c as fp,S as dp,W as Ev,d as zv,C as Tv,e as mp,f as Cv,A as fc,N as Av,H as Rv,... L2: * @license React ... L16: * LICENSE file in the root directory of this source tree. L17: */var Uh;function Wv(){if(Uh)return Os;Uh=1;var s=Fv(),i=wc(),c=Gv();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(argum... L18: at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return` ... L23: Error generating stack: `+l.message+` L24: `+l.stack}}var Xn=Object.prototype.hasOwnProperty,Yl=s.unstable_scheduleCallback,fa=s.unstable_cancelCallback,Ws=s.unstable_shouldYield,da=s.unstable_requestPaint,ut=s.unstable_now... L25: `).replace(Z0,"")}function Jm(e,t){return t=$m(t),$m(e)===t}function ze(e,t,a,l,n,r){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Wl(e,l):(typeof... ... L53: `);function mi(s){return s.label!==void 0}var Vy=3,Zy="32px",Ky="16px",Ph=4e3,$y=356,Jy=14,Fy=20,Wy=200;function Wt(...s){return s.filter(Boolean).join(" ")}function Iy(s){let[i,c]... L54: `);for(const Q of F)if(Q)try{const
Critical
Credential Exfiltration

Source appears to send environment or credential material to an external endpoint.

dist-ui/assets/index-pRE_kpC2.jsView on unpkg · L1
dist-ui/fonts/Exo-400.woff2View file
path = dist-ui/fonts/Exo-400.woff2 kind = high_entropy_blob sizeBytes = 21828 magicHex = [redacted]
High
Ships High Entropy Blob

Package ships high-entropy non-source blobs.

dist-ui/fonts/Exo-400.woff2View on unpkg

Findings

2 Critical7 High4 Medium7 Low
CriticalRed Install Lifecycle Scriptpackage.json
CriticalCredential Exfiltrationdist-ui/assets/index-pRE_kpC2.js
HighInstall Time Lifecycle Scriptspackage.json
HighChild Processbin/pm2-orbit.js
HighEvaldist/server.js
HighSame File Env Network Executiondist/server.js
HighCommand Output Exfiltrationdist/server.js
HighSandbox Evasion Gated Capabilitydist/server.js
HighShips High Entropy Blobdist-ui/fonts/Exo-400.woff2
MediumNetwork
MediumEnvironment Vars
MediumProtestware
MediumStructural Risk Force Deep Review
LowNon Install Lifecycle Scripts
LowScripts Present
LowWeak Cryptodist/server.js
LowFilesystem
LowObfuscated
LowHigh Entropy Strings
LowUrl Strings