Loading npm security reports…
Loading npm security reports…
@stacksjs/ts-cloud@0.16.49: npm security report – allowed | LPM Firewall
npm / @stacksjs/ts-cloud / 0.16.49
@stacksjs/ts-cloud@0.16.49 A lightweight, performant infrastructure-as-code library and CLI for deploying both server-based (EC2) and serverless applications.
Allowed — no malicious behavior detected
28 low-signal patterns reviewed and cleared.
AI security reviewscanned on Oct 11, 2026, 07:11 UTC · by lpm-firewall-ai Inspected source supports a cloud deployment CLI with user-invoked remote commands and route health checks. The manifest has only a prepublishOnly build hook, and the reported exfiltration behavior was not established.
Static reason
High-risk behavior combination matched malicious policy.; previous stored version diff introduced dangerous source
Trigger
A user invokes the cloud CLI to deploy or monitor configured infrastructure.
Impact
These operations support deployment and health checks; inspected excerpts do not establish credential or command-output exfiltration.
Mechanism
Deployment commands execute against configured targets and report results; monitoring performs a GET request to a route URL and checks its status.
Evidence
package.json dist/bin/chunk-03gqra5e.js dist/bin/chunk-ynwbzsz8.js dist/chunk-bdv3gpzb.js dist/bin/chunk-gyvkravq.js dist/ui/_stx/runtime.dbee66d1.js dist/bin/cli.js dist/chunk-kr8aeva1.js dist/chunk-7v7dwev4.js dist/bin/chunk-3pazrfsf.js
public snapshot
Evidence for AI clean decision
package.json has a prepublishOnly build hook and no install-time lifecycle hook. The CLI bundles cloud deployment functionality; shell commands run as part of remote deployment and return deployment results. The monitor sends a GET probe to a route URL and reads its status; this supports health checking, not command-output exfiltration. Both agent-related matches are file exclusion patterns for locks, generated files, and tests. The flagged browser runtime initializes mount and destroy hooks. Evidence against
Static hints report credential exfiltration and command-output exfiltration, but inspected source showed no supporting exfiltration sink in the flagged deployment chunk. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Eval · Filesystem · Network · Shell · Web socket
Supply chain High entropy strings · Minified · Possible obfuscation · URL strings
Manifest No manifest risk signals triggered.
Scanned 119 files · 7.52 MB of source
50 external domains referenced
127.0.0.1 169.254.169.254 169.254.170.2 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.machines.dev 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 cve.mitre.org 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 json-schema.org local.invalid localtunnel.dev media.invalid my.1password.com nodejs.org oauth2.googleapis.com raw.githubusercontent.com route53.amazonaws.com rpm.nodesource.com rpms.remirepo.net s3.amazonaws.com secretsmanager.us-east-1.amazonaws.com slsa.dev sqs.us-east-1.amazonaws.com stacksjs.com sts.amazonaws.com Findings5 critical · 10 high · 7 medium · 6 low Source & flagged code20 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-3pazrfsf.js View on unpkg · L6 Code excerpt · 3 lines 6 patternName = generic_password
severity = medium
line = 6
High Child processCleared
Package source references child process execution.
dist/bin/chunk-gyvkravq.js View on unpkg · L1 Code excerpt · 2 lines 1 import {Fe,A,Wt,Lr,Li}from "./chunk-dj03v81n.js" ;import {execSync as D}from "node:child_process" ;import {randomBytes as R}from "node:crypto" ;import {chmodSync as j,copyFileSync as x,exist...
2 `)}var Gd="dashboard";function jc(){return Fe("dashboard-credentials.json")}function F(){return R(24).toString("base64url")}function Wd(e,r,t){let s=process.env.TS_CLOUD_UI_PASSWOR...
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-03gqra5e.js View on unpkg · L128 Code excerpt · 7 lines 128 const { readFileSync, writeFileSync } = require ('node:fs' )
129 const currentPath = process.env.TS_CLOUD_RPX_CURRENT_FRAGMENT
130 const candidatePath = process.env.TS_CLOUD_RPX_CANDIDATE_FRAGMENT
⋯
137 writeFileSync (candidatePath, JSON.stringify (candidate, null , 2 ) + '\\n' , { mode: 0o600 })
138 `.trim();return[` __tsc_fragment_candidate="$(mktemp " ${e}.candidate.XXXXXX")" `,` cat > << [ -f ${...
High EvalCleared
Package source references dynamic code evaluation.
dist/ui/_stx/runtime.dbee66d1.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...
dist/ui/_stx/router.229f89ab.js#virtual:normalized:round1 View file Medium Dynamic requireCleared
Package source references dynamic require/import behavior.
dist/ui/_stx/router.229f89ab.js#virtual:normalized:round1 View on unpkg · L3 Code excerpt · 2 lines 3 `+newBlocks.join(`
4 `);return null};function getContainer(){return document.querySelector(containerSel)||document.querySelector("[data-stx-content]")||document.querySelector("main")};var layoutCache={...
Low Weak cryptoCleared
Package source references weak cryptographic algorithms.
dist/chunk-bdv3gpzb.js View on unpkg · L18 Code excerpt · 6 lines 18 }`}function ww(e,t,r){let a=t;while(a<r&&/\s/.test(e[a]))a++;let l=0,m,f=!1;for(;a<r;a++){let b=e[a];if(m){if(f){f=!1;continue}if(b==="\\"){f=!0;continue}if(b===m)m=void 0;continue...
19 `)}function Di(e){return e.replace(/\\/g,"\\\\").replaceAll(String.fromCharCode(39),"\\'").replace(/\r/g,"\\r").replace(/\n/g,"\\n")}function Dc(e){let t=e.trim();if(!/^[A-Za-z_$][...
20 `)m=!1;continue}if(f){if(k==="*"&&y==="/")f=!1,b++;continue}if(a){if(l){l=!1;continue}if(k==="\\"){l=!0;continue}if(k===a)a=void 0;continue}if(k==="/"&&y==="/"){m=!0,b++;continue}i...
⋯
25 ${f}},
26 `))}import{createHash as Iw}from"node:crypto";function Ew(e){return Iw("sha256").update(po(e)).digest("hex")}function po(e){if(Array.isArray(e))return` [${e.map ((t)=>po (t)).join ("," ...
27 const initializedAt = n
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.16.52
matchedIdentity = npm:QHN0YWNrc2pzL3RzLWNsb3Vk:0.16.52
similarity = 0.775
summary = stored previous version shares package body but lacks this dangerous source file
High Credential redirect persistenceCleared
Manifest-reachable source sends a prompted API credential to a fixed unofficial gateway and persists the redirection.
dist/bin/cli.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/bin/cli.jsimport{C,jt,n,r,a,Rr,e,d,i,s,R,u,Do,c,dn,Ce,Ms,Us,Fs,Bs,f}from"./chunk-6y6g726g.js";import{sa,H,$r,w,B,Bo,l,o,T,la,da,ua,xe,Be,tt,Vo,bn,xi,Sn,zo,fa,ha,ya,ba,va,j,b,L,rt,k,fe,qo,Ve,...
High Cloud metadata accessCleared
Source reaches cloud instance metadata or link-local credential endpoints.
dist/chunk-kr8aeva1.js View on unpkg · L1 Code excerpt · 10 lines 1 import {R,Fo}from "./chunk-x0ep5ybv.js" ;import {sn,Xe}from "./chunk-ynprwawa.js" ;var lI={backgroundJobs:{visibilityTimeout:120 ,messageRetentionPeriod:604800 ,deadLetterQueue:!0 ,maxRecei...
2 ${this .convertToYAML (l,i+1 )}`;else if(Array.isArray(l)){o+=` ${s}${c}:
⋯
5 `}else o+=` ${s}${c}: ${l}
6 `}return o}}var N={Ref:(n)=>({Ref:n}),GetAtt:(n,i)=>({"Fn::GetAtt":[n,i]}),Sub:(n,i)=>{if(i)return{"Fn::Sub":[n,i]};return{"Fn::Sub":n}},Join:(n,i)=>({"Fn::Join":[n,i]}),Select:(n,...
Critical Trigger reachable dangerous capabilityCleared
A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.
dist/chunk-7v7dwev4.js View on unpkg · L1 Code excerpt · 5 lines Trigger-reachable chain: manifest.module -> dist/index.js -> dist/chunk-7v7dwev4.js
1 import {Ld,L,d,g,Mi,Fd,Ud,fe,p,re,Xr,yt,St,er,Zr,Qi}from "./chunk-kr8aeva1.js" ;import {o}from "./chunk-jpdpr7k6.js" ;import {_,_r,Lr,u}from "./chunk-jhtp3m31.js" ;import {yi}from "./chunk-p7...
2 `),a=Math.max(1,s-12),c=Math.min(i.length,s+2),l=i.slice(a-1,c).map((m,f)=>{let b=a+f,y=/^[A-Z_][A-Z0-9_]*=/.test(m)?m.replace(/=.*/,"=<redacted>"):m;return` ${String (b).padStart (...
⋯
10 `)}\r
dist/bin/chunk-3pazrfsf.js#virtual:normalized:round1 View file High Semantic analysis limitedCleared
A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.
dist/bin/chunk-3pazrfsf.js#virtual:normalized:round1 View on unpkg Scanner record · 1 line stage = ast_semantic_analysis; reason = ast_parse_error; limitedFiles = 9
↓
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
"$__tsc_fragment_candidate"
'${r}'
`,t,r,'chmod 0600 "$__tsc_fragment_candidate"',`
if
139 `),P=["[Unit]",` Description=Issue/renew rpx gateway TLS certs for ${m} (${_})`,` After=network-online.target ${ce}`,"Wants=network-online.target","","[Service]","Type=oneshot",` Exec...
140 `),S=["[Unit]",` Description=Daily rpx gateway TLS cert issuance/renewal for ${m}`,"","[Timer]","OnCalendar=*-
Critical Credential exfiltrationCleared
Source appears to send environment or credential material to an external endpoint.
dist/bin/chunk-03gqra5e.js View on unpkg · L1 Critical Command output exfiltrationCleared
Source executes local commands and sends command output to an external endpoint.
dist/bin/chunk-03gqra5e.js View on unpkg · L1 Medium Install persistenceCleared
Source writes installer persistence such as shell profile or service configuration.
dist/bin/chunk-03gqra5e.js View on unpkg · L1 Shared code excerpt · 3 findings · 6 lines 1 import {oa,A,w,ki,aa,ca,B,T,Wt,Lr}from "./chunk-dj03v81n.js" ;import {p}from "./chunk-psvqpztv.js" ;import {v}from "./chunk-xdk0gmxt.js" ;import {Q}from "./chunk-q8b77zgw.js" ;import {g}from "./...
2 `),o=Math.max(1,s-12),a=Math.min(i.length,s+2),c=i.slice(o-1,a).map((l,u)=>{let d=o+u,m=/^[A-Z_][A-Z0-9_]*=/.test(l)?l.replace(/=.*/,"=<redacted>"):l;return` ${String (d).padStart (...
⋯
8 ${Ko (a)}`:c}),s=r.length-n.length,i=s>0?[` (+${s} more instance${s===1 ?"" :"s" } failed)`]:[];return[t,...n,...i].join(`
9 `)}class qe{client;region;constructor(e="us-east-1",t){this.region=e,this.client=new p}async putParameter(e){let t={Name:e.Name,Value:e.Value};if(e.Type)t.Type=e.Type;if(e.Descript...
10 $ (free -m | awk '/^Mem:/{total=$2; used=$3} /^Swap:/{print total, used, $2, $3}' )
11 EOF`,` DISK_PCT=$ (d
High ShellCleared
Package source references shell execution.
dist/bin/chunk-03gqra5e.js View on unpkg · L8 Code excerpt · 3 lines 8 ${Ko (a)}`:c}),s=r.length-n.length,i=s>0?[` (+${s} more instance${s===1 ?"" :"s" } failed)`]:[];return[t,...n,...i].join(`
9 `)}class qe{client;region;constructor(e="us-east-1",t){this.region=e,this.client=new p}async putParameter(e){let t={Name:e.Name,Value:e.Value};if(e.Type)t.Type=e.Type;if(e.Descript...
10 $ (free -m | awk '/^Mem:/{total=$2; used=$3} /^Swap:/{print total, used, $2, $3}' )
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-03gqra5e.js View on unpkg · L1 Code excerpt · 4 lines Cross-file remote execution chain: dist/bin/chunk-03gqra5e.js spawns dist/bin/chunk-dj03v81n.js; helper contains network access plus dynamic code execution.
1 import {oa,A,w,ki,aa,ca,B,T,Wt,Lr}from "./chunk-dj03v81n.js" ;import {p}from "./chunk-psvqpztv.js" ;import {v}from "./chunk-xdk0gmxt.js" ;import {Q}from "./chunk-q8b77zgw.js" ;import {g}from "./...
2 `),o=Math.max(1,s-12),a=Math.min(i.length,s+2),c=i.slice(o-1,a).map((l,u)=>{let d=o+u,m=/^[A-Z_][A-Z0-9_]*=/.test(l)?l.replace(/=.*/,"=<redacted>"):l;return` ${String (d).padStart (...
⋯
8 ${Ko (a)}`:c}),s=r.length-n.length,i=s>0?[` (+${s} more instance${s===1 ?"" :"s" } failed)`]:[];return[t,...n,...i].join(`
9 `)}class qe{client;region;constructor(e="us-east-1",t){this.region=e,this.client=new p}async putParameter(e){let t={Name:e.Name,Value:e.V
`),Fi.exit(D.exitCode??2)}async runMatchedCommand(){let{args:D,options:t,matchedCommand:m}=this;if(!m||!m.commandAction)return;m.checkUnknownOptions(),m.checkOptionValue(),m.checkR...
3. Run 'cloud deploy' to deploy your infrastructure`,"green")}),D.command("init:server","Initialize server-based (EC2) project").action(async()=>{i("Initializing Server-Based Proje...
`));let U=A.service.plan({projectId:A.controlPlane.project.id,scope:Ar(A,m
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: ${ln (he)} across ${ne.length} service${ne.length===1 ?"" :"s" }`),X.lastCacheAgeSeconds!==null)e(` (cached, ${X.lastCacheAgeSeconds}s old — pass --no-cache to refresh)`);if((ne....
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 ${ye}`)}}),D.command("cost:cache:clear","Wipe the local Cost Explorer response cache").option("--all","Wipe entries for every profile (default: just the current profile)").ac...
⋯
362 Known monthly savings: ${A.savingsAvailable?ln (_):"unavailable (enable CUR resource IDs)" }`)}for(let _ of A.inventory.warnings)a(_)}cat
7 `),n.summary.totalChanges===0)return i.push(` No changes detected.
60 HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \\
61 CMD curl -f http://localhost:${o}${l} || exit 1
64 CMD ["bun" , "run" , "${s}" ]
65 `,C}static generateDockerBuildCommands(n){let{repositoryUri:i,t
11
`,c=Ai(a);return{host:` mta-sts.${t}`,body:a,id:c,txt:` v=STSv1; id=${c}`}}var mg=8461;function gh(e,t=mg){return[` const policy = ${JSON.stringify (e.body)}`,"Bun.serve({",` port: ${...
12 `)}var $t={php:"php.net",nginx:"nginx.org",composer:"getcomposer.org",mysql:"mysql.com",mariadb:"mariadb.com/server",postgres:"post
High Trigger reachable credential exfiltrationCleared
A manifest entrypoint or package-local install chain reaches credential exfiltration behavior.
dist/chunk-7v7dwev4.js View on unpkg · L1 Code excerpt · 5 lines Trigger-reachable credential exfiltration chain: manifest.module -> dist/index.js -> dist/chunk-7v7dwev4.js
1 import {Ld,L,d,g,Mi,Fd,Ud,fe,p,re,Xr,yt,St,er,Zr,Qi}from "./chunk-kr8aeva1.js" ;import {o}from "./chunk-jpdpr7k6.js" ;import {_,_r,Lr,u}from "./chunk-jhtp3m31.js" ;import {yi}from "./chunk-p7...
2 `),a=Math.max(1,s-12),c=Math.min(i.length,s+2),l=i.slice(a-1,c).map((m,f)=>{let b=a+f,y=/^[A-Z_][A-Z0-9_]*=/.test(m)?m.replace(/=.*/,"=<redacted>"):m;return` ${String (b).padStart (...
⋯
10 `)}\r
11 `,c=Ai(a);return{host:` mta-sts.${t}`,body:a,id:c,txt:` v=STSv1; id=${c}`}}var mg=8461;function gh(e,t=mg){return[` const policy = ${JSON.stringify (e.body)}`,"Bun.serve({",` port: ${...
12 `)}var $t={php:"php.net",nginx:"nginx.org",composer:"getcomposer.org",mysql:"mysql.com",mariadb:"mariadb.co
High Trigger reachable persistenceCleared
A manifest entrypoint or package-local install chain reaches persistence behavior.
dist/chunk-7v7dwev4.js View on unpkg · L1 Code excerpt · 5 lines Trigger-reachable persistence chain: manifest.module -> dist/index.js -> dist/chunk-7v7dwev4.js
1 import {Ld,L,d,g,Mi,Fd,Ud,fe,p,re,Xr,yt,St,er,Zr,Qi}from "./chunk-kr8aeva1.js" ;import {o}from "./chunk-jpdpr7k6.js" ;import {_,_r,Lr,u}from "./chunk-jhtp3m31.js" ;import {yi}from "./chunk-p7...
2 `),a=Math.max(1,s-12),c=Math.min(i.length,s+2),l=i.slice(a-1,c).map((m,f)=>{let b=a+f,y=/^[A-Z_][A-Z0-9_]*=/.test(m)?m.replace(/=.*/,"=<redacted>"):m;return` ${String (b).padStart (...
⋯
10 `)}\r
11 `,c=Ai(a);return{host:` mta-sts.${t}`,body:a,id:c,txt:` v=STSv1; id=${c}`}}var mg=8461;function gh(e,t=mg){return[` const policy = ${JSON.stringify (e.body)}`,"Bun.serve({",` port: ${...
12 `)}var $t={php:"php.net",nginx:"nginx.org",composer:"getcomposer.org",mysql:"mysql.com",mariadb:"mariadb.com/server",po
Medium Secret patternCleared
Hardcoded password in dist/chunk-7v7dwev4.js
dist/chunk-7v7dwev4.js View on unpkg · L17 Code excerpt · 3 lines 17 patternName = generic_password
severity = medium
line = 17