registry  /  pm2-orbit  /  1.4.2

pm2-orbit@1.4.2

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

AI Security Review

scanned 8h ago · by lpm-firewall-ai

No confirmed malicious attack surface. Risky primitives are aligned with a PM2 monitoring dashboard and explicit user actions.

Static reason
High-risk behavior combination matched malicious policy.
Trigger
npm install runs informational postinstall; user runs `pm2-orbit` to start dashboard
Impact
No confirmed unauthorized exfiltration, persistence, destructive behavior, or install-time mutation
Mechanism
local PM2 monitoring server with optional CLI-triggered pm2 install
Rationale
Source inspection shows scanner hits come from bundled dependencies, local dashboard networking, alert features, and a CLI helper; the postinstall hook is informational only. No concrete malicious chain or unconsented install-time control-surface mutation was found.
Evidence
package.jsonbin/pm2-orbit.jsdist/server.jsdist-ui/assets/index-P7uIYAAo.jsdist-ui/sw.jsREADME.md~/.pm2-orbit/history.db~/.pm2-orbit/alerts.json~/.pm2-orbit/alerts-history.json
Network endpoints1
registry.npmjs.org/pm2-orbit/latest

Decision evidence

public snapshot
AI called this Clean at 90.0% confidence as Benign with low false-positive risk.
Evidence for block
  • package.json has a postinstall lifecycle hook
  • bin/pm2-orbit.js runs `npm install -g pm2` if the user invokes CLI without pm2 installed
  • dist/server.js writes local dashboard state under ~/.pm2-orbit and can send user-configured alerts
Evidence against
  • postinstall only checks require.resolve('pm2') and prints install guidance; no fetch or file mutation
  • No install-time AI-agent control-surface writes or persistence found
  • Server network activity is PM2 dashboard, WebSocket/SSE, update check, and configured alert delivery
  • No credential harvesting or hardcoded exfiltration endpoint found in dist/server.js or UI bundle
  • Child process use is limited to explicit CLI-triggered pm2 installation
Behavioral surface
Source
ChildProcessCryptoEnvironmentVarsEvalFilesystemNetworkWebSocket
Supply chain
HighEntropyStringsMinifiedObfuscatedProtestwareUrlStrings
ManifestNo manifest risk signals triggered.
scanned 9 file(s), 2.21 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, registry.npmjs.org, 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,Le._)`+${n}`);return;case"boolean":r.elseIf((0,Le._)`${n} === "false" || ${n} === 0 || ${n} === null`).... L29: || ${o} === "boolean" || ${n} === null`).assign(a,(0,Le._)`[${n}]`)}}}function Hoe({gen:e,parentData:t,parentDataProperty:i},r){e.if((0,Le._)`${t} !== undefined`,()=>e.assign((0,Le... L30: missingProperty: ${r},
High
Eval

Package source references dynamic code evaluation.

dist/server.jsView on unpkg · L28
423globstar while`,A,ie,N,le,Te),this.matchOne(A.slice(ie),N.slice(le),q))return this.debug("globstar found match!",ie,I,Te),!0;if(Te==="."||Te===".."||!F.dot&&Te.charAt(0)==="."){thi... L424: >>> no match, partial?`,A,ie,N,le),ie===I))}let Ae;if(typeof W=="string"?(Ae=ae===W,this.debug("string match",W,ae,Ae)):(Ae=W.test(ae),this.debug("pattern match",W,ae,Ae)),!Ae)retu... L425: <html lang="en"> ... L434: `;return[i,Buffer.byteLength(i)]}wW.createHtmlDocument=LAe});var EW=S((YHe,SW)=>{"use strict";function NAe(e,t){if(typeof e=="string")return[e];if(e===!1)return[];if(Array.isArray(... L435: at `+e[i].toString();return t}function HAe(e){if(!e)throw new TypeError("argument namespace is required");var t=Ky(),i=ru(t[1]),r=i[0];function n(s){Gy.call(n,s)}return n._file=r,n... L436: `,"utf8")}}}function ru(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... L437: at `+i[s].toString();return n}return t&&(n+=" at "+hO(t)),n}function XAe(e,t,i){var r="\x1B[36;1m"+this._namespace+"\x1B[22;39m \x1B[33;1mdeprecated\x1B[22;39m \x1B[0m"+e+"\x1B[39m... L438: \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 · L423
22${y}${C} L23: ${b}`),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: `),j=Fie.bind(null,{[E2]:"",[T2]:o,[O2]:L,[C2]:Ab,[kb]:O,[R2]:R}),X="";p!==null&&(f===void 0?X=j(p):X=j(Object.assign({},p,{name:f})));let B=a instanceof Function?a:a?N2:are,z=B().... L26: `:""},this._extScope=t,this._scope=new Wr.Scope({parent:t}),this._nodes=[new ww]}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,Le._)`+${n}`);return;case"boolean":r.elseIf((0,Le._)`${n} === "false" || ${n} === 0 || ${n} === null`).... L29: || ${o} === "boolean" || ${n} === null`).assign(a,(0,Le._)`[${n}]`)}}}function Hoe({gen:e,parentData:t,parentDataProperty:i},r){e.if((0,Le._)`${t} !== undefined`,()=>e.assign((0,Le... 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+=bA(o,a).slice(t.length+2... L3: `).slice(0,2).map(i=>i.trim()).join(" -- ")}OA.exports={getPluginName:nJ}});var Sh=S((X$e,PA)=>{"use strict";function sJ(e){return e!==null&&typeof e=="object"&&typeof e.then=="fun... L4: causes have become circular...`;let r=Bv(e);return r?(t.add(e),i+` L5: caused by: `+Mk(r,t)):i},FQ=e=>Mk(e,new Set),Dk=(e,t,i)=>{if(!ep(e))return"";let r=i?"":e.message||"";if(t.has(e))return r+": ...";let n=Bv(e);if(n){t.add(e);let s=typeof e.cause==... L6: ${b}`,_=`, ... L22: ${y}${C} L23: ${b}`),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: `),j=Fie.bind(null,{[E2]:"",[T2]:o,[O2]:L,[C2]:Ab,[kb]:O,[R2]:R}),X="";p!==null&&(f===void 0?X=j(p):X=j(Object.assign({},p,{name:f})));let B=a instanceof Function?a:a?N2:are,z=B().... L26: `:""},this._extScope=t,this._scope=new Wr.Scope({parent:t}),this._nodes=[new ww]}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+=bA(o,a).slice(t.length+2... L3: `).slice(0,2).map(i=>i.trim()).join(" -- ")}OA.exports={getPluginName:nJ}});var Sh=S((X$e,PA)=>{"use strict";function sJ(e){return e!==null&&typeof e=="object"&&typeof e.then=="fun... L4: causes have become circular...`;let r=Bv(e);return r?(t.add(e),i+` L5: caused by: `+Mk(r,t)):i},FQ=e=>Mk(e,new Set),Dk=(e,t,i)=>{if(!ep(e))return"";let r=i?"":e.message||"";if(t.has(e))return r+": ...";let n=Bv(e);if(n){t.add(e);let s=typeof e.cause==... L6: ${b}`,_=`, ... L22: ${y}${C} L23: ${b}`),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: `),j=Fie.bind(null,{[E2]:"",[T2]:o,[O2]:L,[C2]:Ab,[kb]:O,[R2]:R}),X="";p!==null&&(f===void 0?X=j(p):X=j(Object.assign({},p,{name:f})));let B=a instanceof Function?a:a?N2:are,z=B().... L26: `:""},this._extScope=t,this._scope=new Wr.Scope({parent:t}),this._nodes=[new ww]}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-P7uIYAAo.jsView file
1import{j as r,_ as kn}from"./cmdk-cQPtLM7A.js";import{r as Mc,g as zp,a as x,b as K,B as Ni,M as C0,c as Tp,S as Cp,W as A0,d as M0,C as R0,e as Ap,f as D0,A as xc,N as k0,H as O0,... L2: * @license React ... L16: * LICENSE file in the root directory of this source tree. L17: */var Kh;function nb(){if(Kh)return Os;Kh=1;var n=lb(),o=Mc(),u=J0();function c(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 Qn=Object.prototype.hasOwnProperty,Yl=n.unstable_scheduleCallback,ma=n.unstable_cancelCallback,Ps=n.unstable_shouldYield,ha=n.unstable_requestPaint,mt=n.unstable_now... L25: `).replace(Fx,"")}function ch(e,t){return t=uh(t),uh(e)===t}function Me(e,t,a,l,s,i){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Wl(e,l):(typeof... ... L54: `),L=new Blob([A],{type:"text/csv"}),ce=URL.createObjectURL(L),me=document.createElement("a");me.href=ce,me.download=`pm2-orbit-processes-${Date.now()}.csv`,me.click(),URL.revokeOb... L55: `);for(const W of de)if(W)try{const
Critical
Credential Exfiltration

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

dist-ui/assets/index-P7uIYAAo.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-P7uIYAAo.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