Loading npm security reports…
Loading npm security reports…
@stacksjs/ts-cloud@0.11.2: npm security report – allowed | LPM Firewall
npm / @stacksjs/ts-cloud / 0.11.2
@stacksjs/ts-cloud@0.11.2 A lightweight, performant infrastructure-as-code library and CLI for deploying both server-based (EC2) and serverless applications.
Allowed — no malicious behavior detected
26 low-signal patterns reviewed and cleared.
AI security reviewscanned on Aug 22, 2026, 03:06 UTC · by lpm-firewall-ai Source inspection shows a deployment-focused package with no install-time execution. Flagged command and network primitives are consistent with explicit cloud provisioning rather than an unsolicited malicious chain.
Static reason
High-risk behavior combination matched malicious policy.; previous stored version diff introduced dangerous source
Trigger
User invokes the `cloud` CLI or imports deployment functionality.
Impact
May modify infrastructure selected and authorized by the user's configuration.
Mechanism
User-directed cloud provisioning and remote deployment
Evidence
package.json dist/bin/cli.js dist/bin/chunk-cq9mca3h.js dist/chunk-7xpxzbkr.js
Decision evidencepublic snapshot Evidence for AI clean decision
Declared as an infrastructure-as-code deployment library and CLI. The package exposes a user-invoked `cloud` CLI. The only lifecycle hook is `prepublishOnly`, not an install hook. Evidence against
No preinstall, install, or postinstall script was found. No confirmed credential harvesting or unsolicited exfiltration chain was found. Shell, SSH, and network primitives implement explicit infrastructure deployment behavior. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Eval · Filesystem · Network · Web socket
Supply chain High entropy strings · Minified · Possible obfuscation · URL strings
Manifest No manifest risk signals triggered.
Scanned 105 files · 7.53 MB of source
43 external domains referenced
127.0.0.1 169.254.169.254 acme-staging-v02.api.letsencrypt.org acme-v02.api.letsencrypt.org analytics.stacksjs.com api.bitbucket.org api.cloudflare.com api.github.com api.godaddy.com api.hetzner.cloud api.ote-godaddy.com api.porkbun.com api.telegram.org aws.amazon.com awscli.amazonaws.com bitbucket.org bun.sh caddyserver.com cloudfront.amazonaws.com console.aws.amazon.com deb.nodesource.com deno.land dl.cloudsmith.io fcm.googleapis.com fonts.googleapis.com gitea.com github.com gitlab.com iid.googleapis.com in-toto.io local.invalid media.invalid nodejs.org oauth2.googleapis.com raw.githubusercontent.com route53.amazonaws.com rpms.remirepo.net s3.amazonaws.com slsa.dev sqs.us-east-1.amazonaws.com ts-cloud.dev www.googleapis.com www.w3.org Findings5 critical · 8 high · 7 medium · 6 low Source & flagged code18 flagged The lines the automated scan flagged. The review checked them and cleared this version.
Medium Secret patternCleared
Package contains a possible secret pattern.
dist/bin/chunk-56wvjysz.js View on unpkg · L6 Code excerpt · 4 lines 6 patternName = generic_password
severity = medium
line = 6
matchedText = `)}funct...in(`
High Child processCleared
Package source references child process execution.
dist/chunk-7pff0rv9.js View on unpkg · L13 Code excerpt · 3 lines 13 }
14 `;function Ip(e){let t=e;return String(t?.code||t?.name||t?.statusCode||"")}function hS(e){return["NoSuchEntity","ResourceNotFoundException","404"].includes(Ip(e))}function wp(e){r...
15 `),"green")}async function fc(e,t){let r=Cn(e,t),n=new ur(r.region),i=new kt(r.region),o=await is(n,r.artifactBucket,r.slug,t);if(!o)throw Error("No previous release to redeploy. R...
High Credential redirect persistenceCleared
Manifest-reachable source sends a prompted API credential to a fixed unofficial gateway and persists the redirection.
dist/chunk-7pff0rv9.js View on unpkg Scanner record · 4 lines Manifest-reachable source captures an API credential, sends it to a fixed unofficial gateway, and persists that redirection in agent or shell configuration.
dist/chunk-7pff0rv9.js`;function Ip(e){let t=e;return String(t?.code||t?.name||t?.statusCode||"")}function hS(e){return["NoSuchEntity","ResourceNotFoundException","404"].includes(Ip(e))}function wp(e){r...
`)){let N=/^\s*([\d*/,\-\s]+?)\s{2,}(.+?)(?:\s{2,}Next Due.*)?$/.exec(q);if(N&&/[*\d]/.test(N[1])&&N[1].trim().split(/\s+/).length===5)U.push({command:N[2].trim().replace(/^php art...
`}}function om(e){let t=e.replace(/\\/g,"/");return!!t&&!t.startsWith("/")&&!/^[A-Za-z]:\//.test(t)&&!t.split("/").includes("..")&&!/[\0\r\n]/.test(t)}function sm(e,t,r={}){let n=r...
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 'acti
Low Weak cryptoCleared
Package source references weak cryptographic algorithms.
dist/chunk-7pff0rv9.js View on unpkg · L1 Code excerpt · 6 lines 1 import {ud as Sp}from "./chunk-6v4k9ekm.js" ;import {Bd as to,Cd as zp,Dd as es,Ed as Mt,Fd as ct,Gd as ns,Hd as Up}from "./chunk-1ypkh8g6.js" ;import {Jd as ai,Kd as Us,Oe as Mv,Pe as Ms...
2 const initializedAt = new Date ().toISOString ()
⋯
13 }
14 `;function Ip(e){let t=e;return String(t?.code||t?.name||t?.statusCode||"")}function hS(e){return["NoSuchEntity","ResourceNotFoundException","404"].includes(Ip(e))}function wp(e){r...
15 `),"green")}async function fc(e,t){let r=Cn(e,t),n=new ur(r.region),i=new kt(r.region),o=await is(n,r.artifactBucket,r.slug,t);if(!o)throw Error("No previous release to redeploy. R...
High EvalCleared
Package source references dynamic code evaluation.
dist/ui/_stx/runtime.c696d17a.js View on unpkg · L1 Code excerpt · 1 line 1 if (!window.__stx_early_mounts)window.__stx_early_mounts=[];if (!window.__stx_early_destroys)window.__stx_early_destroys=[];if (!window.onMount)window.onMount=function (fn){window.__st...
Medium Dynamic requireCleared
Package source references dynamic require/import behavior.
dist/chunk-s3rpd72x.js View on unpkg · L1614 Code excerpt · 3 lines 1614 `).map((o)=>o.trim()).filter(oe.test.bind(oe))){let o=await this.inspect(i);if(o)n.push(o)}return n}async create(e){let t=typeof e.desiredState.nativeName==="string"?e.desiredState...
1615 `).find((n)=>n.includes(` "Name" :"${e.providerId}" `));if(!r)return{};try{let n=JSON.parse(r);return{usedBytes:typeof n.Size==="number"?n.Size:void 0}}catch{return{}}}}class Jo{provi...
1616 ${t}
Critical Credential exfiltrationCleared
Source appears to send environment or credential material to an external endpoint.
dist/chunk-7xpxzbkr.js View on unpkg · L3 Medium Install persistenceCleared
Source writes installer persistence such as shell profile or service configuration.
dist/chunk-7xpxzbkr.js View on unpkg · L3 Shared code excerpt · 2 findings · 5 lines 3 ${wi (a)}`:c}),s=r.length-n.length,i=s>0?[` (+${s} more instance${s===1 ?"" :"s" } failed)`]:[];return[t,...n,...i].join(`
4 `)}var Je={php:"php.net",nginx:"nginx.org",composer:"getcomposer.org",mysql:"mysql.com",mariadb:"mariadb.com/server",postgres:"postgresql.org",vitess:"vitess.io",etcd:"etcd.io",red...
5 `)}function Ci(e){let t=["# Generated by ts-cloud. See /etc/mail/config.toml for the rest.",` SMTP_DB_PATH=${e.storagePath}/mail.db`,` SMTP_DELIVERY_METHOD=${e.delivery=== ? ...
Critical Same file environment network executionCleared
A single source file combines environment access, network access, and code or shell execution with blocking evidence.
dist/bin/chunk-4q6tad44.js View on unpkg · L1 Code excerpt · 5 lines 1 import {op as ye}from "./chunk-ehc63fvs.js" ;import {createRequire as Bn}from "node:module" ;import {isAbsolute as Vt,join as At,relative as Xn}from "node:path" ;import {existsSync as Ke,rea...
2 `),O=Xe(L),ce=[w,y,T,O].join(`
⋯
12 `)+`
13 `}function Oa(e){return Object.keys(e).sort().map((t)=>t.toLowerCase()).join(";")}function Et(e){let t=[];return e.forEach((a,r)=>{t.push([Ft(r),Ft(a)])}),t.sort((a,r)=>{if(a[0]<r[...
Critical Command output exfiltrationCleared
Source executes local commands and sends command output to an external endpoint.
dist/bin/chunk-cq9mca3h.js View on unpkg · L222 Code excerpt · 6 lines 222 echo "ts-cloud bootstrap complete — instance is ready for site deploys"
223 `,d}var Zr="/[redacted].04/stable/current/amd64/hvm/ebs-gp3/ami-id";function en(e){let t=[{port:22,protocol:"tcp",cidr:"0.0.0.0/0"},{port:80,protocol:"t...
224 `),"TS_CLOUD_BASH_EOF"]}async runRemoteDeploy(e){let t=this.region,r=new Je(t);if(e.targets.length>0){let s=await r.sendCommand({InstanceIds:e.targets.map((i)=>i.id),DocumentName:"...
225 write_files:
⋯
235 `}function pt(e){let t=new Set([80,443,...e.sitePorts,...e.allowedPorts??[]]);if(e.allowSsh)t.add(22);return[...t].map((r)=>({direction:"in",protocol:"tcp",port:String(r),source_ip...
236 `,"utf8"),await bi(n,r)}var jt=268435456,Ci=8000;function Y(e){return` '${e.replace(/' /g,`'"'"'` )}'`}async function Ri(e){let t=Ti("sha256");for await(l
High Cloud metadata accessCleared
Source reaches cloud instance metadata or link-local credential endpoints.
dist/chunk-gk58959n.js View on unpkg · L1 Code excerpt · 3 lines 1 import *as _ from "node:crypto" ;import {existsSync as V,readFileSync as Y}from "node:fs" ;import {homedir as W}from "node:os" ;import {join as B}from "node:path" ;var j={amp:"&" ,lt:"<" ,gt:">" ...
2 `),i="",s="",n="",a;for(let o of r){let d=o.trim();if(!d||d.startsWith("#"))continue;let p=d.match(/^\[([^\]]+)\]$/);if(p){i=p[1];continue}if(i===e){let[g,...h]=d.split("="),m=h.jo...
3
Critical Previous version dangerous deltaCleared
This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.
dist/bin/cli.js View on unpkg Scanner record · 5 lines matchType = previous_version_dangerous_delta
matchedPackage = @stacksjs/ts-cloud@0.11.0
matchedIdentity = npm:QHN0YWNrc2pzL3RzLWNsb3Vk:0.11.0
similarity = 0.962
summary = stored previous version shares package body but lacks this dangerous source file
High Trigger reachable command output exfiltrationCleared
A manifest entrypoint or package-local install chain reaches command-output exfiltration behavior.
dist/bin/cli.js View on unpkg · L355 Code excerpt · 4 lines Trigger-reachable command-output exfiltration chain: manifest.bin -> dist/bin/cli.js
355 Total: ${se (f)} across ${d.length} service${d.length===1 ?"" : } (cached, ${l.lastCacheAgeSeconds}s old — pass --no-cache to refresh)
↓
Cleared
Package metadata 8 findings
Medium Network Cleared
Medium Environment variables Cleared
Medium Structural risk force deep review Cleared
Low Non install lifecycle scripts Cleared
Low Scripts present Cleared
Low High entropy strings Cleared
18 VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 'pending' , ?, ?, ?, ?)`,[r,e.organizationId,e.provider,Rm(e.name),Em(e.host),e.owner?.trim()||null,e.authKind??(n?"access_
"ses"
"ses"
6 `)}function xi(e){let t=[e.ports.smtp,e.ports.submission,e.ports.submissions,e.ports.imap,e.ports.imaps].some((r)=>typeof r==="number"&&r<1024);return["[Unit]","Description=Mail se...
7 `)}function Ri(e){if(!e.dkim.enabled||e.domains.length===0)return[];let t=[` mkdir -p ${J}/dkim`];for(let r of
Critical Trigger reachable dangerous capabilityCleared
A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.
dist/chunk-7xpxzbkr.js View on unpkg · L3 Code excerpt · 5 lines Trigger-reachable chain: manifest.module -> dist/index.js -> dist/chunk-7xpxzbkr.js
3 ${wi (a)}`:c}),s=r.length-n.length,i=s>0?[` (+${s} more instance${s===1 ?"" :"s" } failed)`]:[];return[t,...n,...i].join(`
4 `)}var Je={php:"php.net",nginx:"nginx.org",composer:"getcomposer.org",mysql:"mysql.com",mariadb:"mariadb.com/server",postgres:"postgresql.org",vitess:"vitess.io",etcd:"etcd.io",red...
5 `)}function Ci(e){let t=["# Generated by ts-cloud. See /etc/mail/config.toml for the rest.",` SMTP_DB_PATH=${e.storagePath}/mail.db`,` SMTP_DELIVERY_METHOD=${e.delivery==="ses" ?"ses" ...
6 `)}function xi(e){let t=[e.ports.smtp,e.ports.submission,e.ports.submissions,e.ports.imap,e.ports.imaps].some((r)=>typeof r==="number"&&r<1024);return["[Unit]","Description=Mail se...
7 `)}function Ri(e){if(!e.dk
High Trigger reachable credential exfiltrationCleared
A manifest entrypoint or package-local install chain reaches credential exfiltration behavior.
dist/chunk-7xpxzbkr.js View on unpkg · L3 Code excerpt · 5 lines Trigger-reachable credential exfiltration chain: manifest.module -> dist/index.js -> dist/chunk-7xpxzbkr.js
3 ${wi (a)}`:c}),s=r.length-n.length,i=s>0?[` (+${s} more instance${s===1 ?"" :"s" } failed)`]:[];return[t,...n,...i].join(`
4 `)}var Je={php:"php.net",nginx:"nginx.org",composer:"getcomposer.org",mysql:"mysql.com",mariadb:"mariadb.com/server",postgres:"postgresql.org",vitess:"vitess.io",etcd:"etcd.io",red...
5 `)}function Ci(e){let t=["# Generated by ts-cloud. See /etc/mail/config.toml for the rest.",` SMTP_DB_PATH=${e.storagePath}/mail.db`,` SMTP_DELIVERY_METHOD=${e.delivery==="ses" ?"ses" ...
6 `)}function xi(e){let t=[e.ports.smtp,e.ports.submission,e.ports.submissions,e.ports.imap,e.ports.imaps].some((r)=>typeof r==="number"&&r<1024);return["[Unit]","Description=Mail se...
7 `)
High Trigger reachable persistenceCleared
A manifest entrypoint or package-local install chain reaches persistence behavior.
dist/chunk-7xpxzbkr.js View on unpkg · L3 Code excerpt · 5 lines Trigger-reachable persistence chain: manifest.module -> dist/index.js -> dist/chunk-7xpxzbkr.js
3 ${wi (a)}`:c}),s=r.length-n.length,i=s>0?[` (+${s} more instance${s===1 ?"" :"s" } failed)`]:[];return[t,...n,...i].join(`
4 `)}var Je={php:"php.net",nginx:"nginx.org",composer:"getcomposer.org",mysql:"mysql.com",mariadb:"mariadb.com/server",postgres:"postgresql.org",vitess:"vitess.io",etcd:"etcd.io",red...
5 `)}function Ci(e){let t=["# Generated by ts-cloud. See /etc/mail/config.toml for the rest.",` SMTP_DB_PATH=${e.storagePath}/mail.db`,` SMTP_DELIVERY_METHOD=${e.delivery==="ses" ?"ses" ...
6 `)}function xi(e){let t=[e.ports.smtp,e.ports.submission,e.ports.submissions,e.ports.imap,e.ports.imaps].some((r)=>typeof r==="number"&&r<1024);return["[Unit]","Description=Mail se...
7 `)}function Ri
Medium Secret patternCleared
Hardcoded password in dist/chunk-7xpxzbkr.js
dist/chunk-7xpxzbkr.js View on unpkg · L9 Code excerpt · 4 lines 9 patternName = generic_password
severity = medium
line = 9
matchedText = `)}funct...in(`
14 ${this .convertToYAML (i,t+1 )}`;else if(Array.isArray(i)){r+=` ${a}${n}:
High Cross file remote execution contextCleared
Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.
dist/bin/chunk-cq9mca3h.js View on unpkg · L3 Code excerpt · 7 lines Cross-file remote execution chain: dist/bin/chunk-cq9mca3h.js spawns dist/bin/cli.js; helper contains network access plus dynamic code execution.
3 ${Es (a)}`:c}),s=r.length-n.length,i=s>0?[` (+${s} more instance${s===1 ?"" :"s" } failed)`]:[];return[t,...n,...i].join(`
4 `)}class Je{client;region;constructor(e="us-east-1",t){this.region=e,this.client=new Ir}async putParameter(e){let t={Name:e.Name,Value:e.Value};if(e.Type)t.Type=e.Type;if(e.Descrip...
5 $ (free -m | awk '/^Mem:/{total=$2; used=$3} /^Swap:/{print total, used, $2, $3}' )
6 EOF`,` DISK_PCT=$ (df -P / | awk 'NR==2{gsub("%","",$5); print $5}' )`,"UPTIME_SEC=$(cut -d' ' -f1 /proc/uptime | cut -d. -f1)",` RX_BYTES=$ (awk -F'[: ]+' 'NR>2 && $2!="lo"{rx+=$3} END...
7 `)}
⋯
9 `)}
10 `}function Et(e){let t=` /etc/nginx/sites-avai
`).join(""),l=u.map((E)=>E.toLowerCase()).join(";"),C=[s,A,b,c,l,f].join(`
"s"
`),l.lastCacheAgeSeconds!==null)a(`
`);if((d.find...
356 S3 has spend but listBuckets returned 0 . The buckets are likely owned by a different account in your AWS Organization (consolidated billing rolls up to the payer account, but ListB...
357 Wrote ${g}`)}}),r.command("cost:cache:clear","Wipe the local Cost Explorer response cache").option("--all","Wipe entries for every profile (default: just the current profile)").act...
362 Known monthly savings: ${n.savingsAvailable?se (i):"unavailable (enable CUR resource IDs)" }`)}for(let i of n.inventory.warnings)R(i)}cat