Loading npm security reports…
Loading npm security reports…
@stacksjs/ts-cloud@0.16.81: npm security report – allowed | LPM Firewall
npm / @stacksjs/ts-cloud / 0.16.81
@stacksjs/ts-cloud@0.16.81 A lightweight, performant infrastructure-as-code library and CLI for deploying both server-based (EC2) and serverless applications.
Allowed — no malicious behavior detected
30 low-signal patterns reviewed and cleared.
AI security reviewscanned on Oct 29, 2026, 23:22 UTC · by lpm-firewall-ai The manifest has no install hook, and prepublishOnly only builds the package. The flagged credential handling belongs to explicit Git integration commands and uses the selected provider; the AWS metadata references fit the package’s cloud credential support.
Static reason
High-risk behavior combination matched malicious policy.; previous stored version diff introduced dangerous source
Trigger
Cloud and Git operations run through explicit CLI commands; no install hook is present.
Impact
No malicious impact identified from the reviewed source.
Mechanism
AWS credential discovery supports cloud operations, while Git credentials are associated with the selected provider connection.
Network endpoints5
169.254.169.254 169.254.170.2 api.github.com api.telegram.org analytics.stacksjs.com
public snapshot
Evidence for AI clean decision
The manifest exposes a CLI binary; its only publish lifecycle hook runs the build. Git provider tokens are read from provider-specific environment variables, and provider URLs default to the matching Git service. The Git integration stores the token with the selected provider and host when creating a connection. The `git:add` action asks for confirmation before connecting unless the user supplies `--yes`. Evidence against
The package describes itself as an infrastructure-as-code library and CLI, consistent with its cloud-provider and deployment functionality. The flagged AWS metadata access is part of AWS credential loading; notification requests use configured Telegram or webhook destinations. 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 126 files · 7.64 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 Findings9 critical · 10 high · 5 medium · 6 low Source & flagged code22 flagged The lines the automated scan flagged. The review checked them and cleared this version.
Critical Critical secretCleared
Package contains a critical-looking secret pattern.
dist/bin/chunk-z03ytarv.js View on unpkg · L134 Critical Secret patternCleared
RSA private key in dist/bin/chunk-z03ytarv.js
dist/bin/chunk-z03ytarv.js View on unpkg · L134 Shared code excerpt · 2 findings · 3 lines 134 patternName = private_key_rsa
severity = critical
line = 134
Critical Secret patternCleared
EC private key in dist/bin/chunk-z03ytarv.js
dist/bin/chunk-z03ytarv.js View on unpkg · L134 Code excerpt · 3 lines 134 patternName = private_key_ec
severity = critical
line = 134
Critical Secret patternCleared
OpenSSH private key in dist/bin/chunk-z03ytarv.js
dist/bin/chunk-z03ytarv.js View on unpkg · L134 Code excerpt · 3 lines 134 patternName = private_key_openssh
severity = critical
line = 134
High Child processCleared
Package source references child process execution.
dist/bin/chunk-20rfyk4x.js View on unpkg · L1 Code excerpt · 2 lines 1 import {ze,I,er,Vr,Gi}from "./chunk-sacx9p6f.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 eu="dashboard";function el(){return ze("dashboard-credentials.json")}function F(){return R(24).toString("base64url")}function tu(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-hgs5fr4v.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/bin/chunk-1wgyq50e.js View on unpkg · L1 Code excerpt · 6 lines 1 import {Xt,p}from "./chunk-btrxye8p.js" ;import {Gr}from "./chunk-2h1q758c.js" ;import *as c from "node:crypto" ;import {readFileSync as B}from "node:fs" ;import {readdir as L}from "node:fs/prom...
2 `)){let h=u.trim();if(!h||h.startsWith("#")||h.startsWith(";"))continue;let m=h.match(/^\[([^\]]+)\]$/);if(m){if(a===e&&l&&d)return{accessKeyId:l,secretAccessKey:d,sessionToken:y};...
3 <CreateBucketConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/" >
4
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.80
matchedIdentity = npm:QHN0YWNrc2pzL3RzLWNsb3Vk:0.16.80
similarity = 0.950
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,Kt,n,r,a,_r,e,u,i,s,P,d,Ko,c,vn,Ee,ia,oa,sa,aa,f}from"./chunk-qpasspad.js";import{ga,H,Fr,w,U,Qo,l,o,T,ha,ya,ba,$e,He,st,Zo,An,ji,Rn,es,Ta,Ea,wa,Aa,Ia,j,b,M,at,N,ye,rs,qe,...
High Cloud metadata accessCleared
Source reaches cloud instance metadata or link-local credential endpoints.
dist/chunk-5rds38z9.js View on unpkg · L1 Code excerpt · 10 lines 1 import {k,na}from "./chunk-928z0h9b.js" ;import {An,st}from "./chunk-9pwvnh3f.js" ;var Nm={};An (Nm,{default :()=>Rr,handler:()=>At});var Bm={};An (Bm,{default :()=>Pr,handler:()=>Ct});var E...
2 ${this .convertToYAML (u,i+1 )}`;else if(Array.isArray(u)){o+=` ${s}${c}:
⋯
5 `}else o+=` ${s}${c}: ${u}
6 `}return o}}var x={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-svvfj380.js View on unpkg · L1 Code excerpt · 5 lines Trigger-reachable chain: manifest.module -> dist/index.js -> dist/chunk-svvfj380.js
1 import {il,Q,l,p,b,Ze,Ji,w,ce,m,de,un,kt,Nt,pr,mr,Zi}from "./chunk-5rds38z9.js" ;import {o}from "./chunk-c8kf2268.js" ;import {U,zr,d}from "./chunk-dh5m9b05.js" ;import {po,dd,Cp,Ep,B,rr,j,z...
2 `),a=Math.max(1,s-12),c=Math.min(i.length,s+2),f=i.slice(a-1,c).map((g,h)=>{let S=a+h,_=/^[A-Z_][A-Z0-9_]*=/.test(g)?g.replace(/=.*/,"=<redacted>"):g;return` ${String (S).padStart (...
⋯
10 `)}\r
11 `,c=ta(a);return{host:` mta-sts.${t} v=STSv1; id=${c} policy = ${JSON. (e.body)} port: ${...
dist/bin/chunk-byqyjckv.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-byqyjckv.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 `),k=["[Unit]",` Description=Issue/renew rpx gateway TLS certs for ${m} (${B})`,` After=network-online.target ${we}`,"Wants=network-online.target","","[Service]","Type=oneshot",` Exec...
140 `),D=["[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-hgs5fr4v.js View on unpkg · L1 Critical Command output exfiltrationCleared
Source executes local commands and sends command output to an external endpoint.
dist/bin/chunk-hgs5fr4v.js View on unpkg · L1 Medium Install persistenceCleared
Source writes installer persistence such as shell profile or service configuration.
dist/bin/chunk-hgs5fr4v.js View on unpkg · L1 Shared code excerpt · 3 findings · 6 lines 1 import {p}from "./chunk-btrxye8p.js" ;import {ma,I,w,Y,jr,fa,Xo,le,U,T,er,Vr}from "./chunk-sacx9p6f.js" ;import {v}from "./chunk-yf2drw7r.js" ;import {Q}from "./chunk-cgyk48s5.js" ;import {g}fr...
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 ${za (a)}`:c}),s=r.length-n.length,i=s>0?[` (+${s} more instance${s===1 ?"" :"s" } failed)`]:[];return[t,...n,...i].join(`
9 `)}function Fa(e){return` /etc/ts-cloud/${e}-upgrade.env`}function Ba(e){return` ${e}-upgrade`}function fo(e){if(!e||e.length===0)return[];let t=["mkdir -p /etc/ts-cloud"],r=[];for(l...
10 $ (free -m | awk '/^Mem:/{total=$2; used=$3} /^Swap:/{print total, used, $2, $3}' )
11 EOF`,'DISK_PCT=0;
High ShellCleared
Package source references shell execution.
dist/bin/chunk-hgs5fr4v.js View on unpkg · L8 Code excerpt · 3 lines 8 ${za (a)}`:c}),s=r.length-n.length,i=s>0?[` (+${s} more instance${s===1 ?"" :"s" } failed)`]:[];return[t,...n,...i].join(`
9 `)}function Fa(e){return` /etc/ts-cloud/${e}-upgrade.env`}function Ba(e){return` ${e}-upgrade`}function fo(e){if(!e||e.length===0)return[];let t=["mkdir -p /etc/ts-cloud"],r=[];for(l...
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-hgs5fr4v.js View on unpkg · L1 Code excerpt · 4 lines Cross-file remote execution chain: dist/bin/chunk-hgs5fr4v.js spawns dist/bin/chunk-sacx9p6f.js; helper contains network access plus dynamic code execution.
1 import {p}from "./chunk-btrxye8p.js" ;import {ma,I,w,Y,jr,fa,Xo,le,U,T,er,Vr}from "./chunk-sacx9p6f.js" ;import {v}from "./chunk-yf2drw7r.js" ;import {Q}from "./chunk-cgyk48s5.js" ;import {g}fr...
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 ${za (a)}`:c}),s=r.length-n.length,i=s>0?[` (+${s} more instance${s===1 ?"" :"s" } failed)`]:[];return[t,...n,...i].join(`
9 `)}function Fa(e){return` /etc/ts-cloud/${e}-upgrade.env`}function Ba(e){return` ${e}-upgrade`}function fo(e){if(!e||e.length===0)return[];
<LocationConstraint>${this .region}</LocationConstraint>
5 </CreateBucketConfiguration>`,s["Content-Type"]="application/xml";await this.client.request({service:"s3",region:this.region,method:"PUT",path:` /${e}`,headers:s,body:i})}async dele...
6 `).join(""),x=Object.keys(S).sort().map((P)=>P.toLowerCase()).join(";"),C=["PUT",d,"",f,x,b]
`),Li.exit(R.exitCode??2)}async runMatchedCommand(){let{args:R,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")}),R.command("init:server","Initialize server-based (EC2) project").action(async()=>{i("Initializing Server-Based Proje...
`));let z=k.service.plan({projectId:k.controlPlane.project.id,scope:nr(k,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: ${fn (se)} across ${X.length} service${X.length===1 ?"" :"s" }`),Z.lastCacheAgeSeconds!==null)e(` (cached, ${Z.lastCacheAgeSeconds}s old — pass --no-cache to refresh)`);if((X.fin...
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 ${le}`)}}),R.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: ${k.savingsAvailable?fn (I):"unavailable (enable CUR resource IDs)" }`)}for(let I of k.inventory.warnings)a(I)}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}${u} || exit 1
64 CMD ["bun" , "run" , "${s}" ]
65 `,C}static generateDockerBuildCommands(n){let{repositoryUri:i,t
`,body:a,id:c,txt:`
`}}var _g=8461;function Fh(e,t=_g){return[`
const
stringify
`,"Bun.serve({",`
12 `)}var Ot={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-svvfj380.js View on unpkg · L1 Code excerpt · 5 lines Trigger-reachable credential exfiltration chain: manifest.module -> dist/index.js -> dist/chunk-svvfj380.js
1 import {il,Q,l,p,b,Ze,Ji,w,ce,m,de,un,kt,Nt,pr,mr,Zi}from "./chunk-5rds38z9.js" ;import {o}from "./chunk-c8kf2268.js" ;import {U,zr,d}from "./chunk-dh5m9b05.js" ;import {po,dd,Cp,Ep,B,rr,j,z...
2 `),a=Math.max(1,s-12),c=Math.min(i.length,s+2),f=i.slice(a-1,c).map((g,h)=>{let S=a+h,_=/^[A-Z_][A-Z0-9_]*=/.test(g)?g.replace(/=.*/,"=<redacted>"):g;return` ${String (S).padStart (...
⋯
10 `)}\r
11 `,c=ta(a);return{host:` mta-sts.${t}`,body:a,id:c,txt:` v=STSv1; id=${c}`}}var _g=8461;function Fh(e,t=_g){return[` const policy = ${JSON.stringify (e.body)}`,"Bun.serve({",` port: ${...
12 `)}var Ot={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-svvfj380.js View on unpkg · L1 Code excerpt · 5 lines Trigger-reachable persistence chain: manifest.module -> dist/index.js -> dist/chunk-svvfj380.js
1 import {il,Q,l,p,b,Ze,Ji,w,ce,m,de,un,kt,Nt,pr,mr,Zi}from "./chunk-5rds38z9.js" ;import {o}from "./chunk-c8kf2268.js" ;import {U,zr,d}from "./chunk-dh5m9b05.js" ;import {po,dd,Cp,Ep,B,rr,j,z...
2 `),a=Math.max(1,s-12),c=Math.min(i.length,s+2),f=i.slice(a-1,c).map((g,h)=>{let S=a+h,_=/^[A-Z_][A-Z0-9_]*=/.test(g)?g.replace(/=.*/,"=<redacted>"):g;return` ${String (S).padStart (...
⋯
10 `)}\r
11 `,c=ta(a);return{host:` mta-sts.${t}`,body:a,id:c,txt:` v=STSv1; id=${c}`}}var _g=8461;function Fh(e,t=_g){return[` const policy = ${JSON.stringify (e.body)}`,"Bun.serve({",` port: ${...
12 `)}var Ot={php:"php.net",nginx:"nginx.org",composer:"getcomposer.org",mysql:"mysql.com",mariadb:"mariadb.com/server",po