registry  /  @hiperplano/aluy-cli  /  1.0.0-rc.97

@hiperplano/aluy-cli@1.0.0-rc.97

Aluy CLI — TUI (Ink) + binário `aluy` + wiring. Consome @hiperplano/aluy-cli-core (engine portável). Credenciais só no keychain do SO.

AI Security Review

scanned 6d ago · by lpm-firewall-ai

No confirmed malicious attack surface. The package is a powerful user-invoked AI terminal CLI, but the risky primitives inspected are aligned with documented functionality rather than hidden install-time behavior.

Static reason
High-risk behavior combination matched malicious policy.
Trigger
Explicit runtime use of the `aluy` CLI and its subcommands, not npm install.
Impact
Can execute commands, edit project files, manage ~/.aluy state, connect configured providers/MCP servers, and persist user-created cron jobs when the user invokes those features.
Mechanism
User-invoked AI agent tools, MCP management, sidecar provisioning, web access, shell execution, and optional cron automation.
Rationale
Static inspection confirms a high-capability AI agent CLI, but no lifecycle hook, hidden import-time execution, credential exfiltration, or unconsented foreign AI-agent control-surface mutation was found. The suspicious primitives are documented, user-invoked package functionality with permission and opt-in controls.
Evidence
package.jsondist-bundle/bin/aluy.jsdist-bundle/index.jsREADME.mdassets/mem0/aluy-mem0-server.py~/.aluy/mcp.json.mcp.json~/.aluy/memory~/.aluy/cron/jobs.jsoncrontab
Network endpoints12
api.anthropic.comapi.openai.com/v1openrouter.ai/api/v1generativelanguage.googleapis.com/v1betaapi.deepseek.comapi.groq.com/openai/v1api.mistral.ai/v1api.x.ai/v1api.aluy.app/api/v1broker.dev.aluy.exampleduckduckgo.comhtml.duckduckgo.com/html/

Decision evidence

public snapshot
AI called this Clean at 88.0% confidence as Benign with low false-positive risk.
Evidence for block
  • dist-bundle/bin/aluy.js implements an AI terminal agent with shell execution, file edits, MCP, web fetch/search, sidecars, cron jobs, and optional --yolo mode.
  • dist-bundle/bin/aluy.js has user-invoked `aluy mcp add` writes to ~/.aluy/mcp.json or project .mcp.json.
  • dist-bundle/bin/aluy.js has user-invoked `aluy cron add` that can update crontab on Linux.
Evidence against
  • package.json has no preinstall/install/postinstall lifecycle scripts.
  • README.md documents agent, MCP, /init, ~/.aluy, .mcp.json, bootstrap, BYO provider, and permission model as intended CLI features.
  • No install-time or import-time mutation of Claude/Codex/Cursor configs or other foreign AI-agent surfaces found.
  • Credential handling is described and implemented through OS keychain or explicit env/provider settings, not broad harvesting.
  • Network endpoints are package-aligned: LLM providers, aluy broker/identity, DuckDuckGo search, local loopback sidecars, npm update check, Telegram connector.
Behavioral surface
Source
ChildProcessCryptoEnvironmentVarsFilesystemNativeBindingsNetwork
Supply chain
HighEntropyStringsMinifiedObfuscatedProtestwareUrlStrings
Manifest
NoLicense
scanned 2 file(s), 1.92 MB of source, external domains: 127.0.0.1, api.aluy.app, api.anthropic.com, api.deepseek.com, api.groq.com, api.mistral.ai, api.openai.com, api.telegram.org, api.x.ai, auth.openai.com, broker.dev.aluy.example, claude.ai, console.anthropic.com, duckduckgo.com, generativelanguage.googleapis.com, github.com, ollama.com, openrouter.ai, registry.npmjs.org

Source & flagged code

9 flagged · loading source
dist-bundle/bin/aluy.jsView file
129${n.snippet}`.trimEnd());return[`Resultados de busca para "${t}" (DuckDuckGo):`,...o,"","(As URLs acima N\xC3O foram buscadas. Para abrir uma, use web_fetch \u2014 ela passar\xE1 n... L130: `)}var h6,g6,CR,y6,TR,lp,_R=p(()=>{"use strict";Br();ap();Fk();h6=8;g6=Object.freeze({type:"object",properties:{url:{type:"string",description:"OBRIGAT\xD3RIO. A URL http(s) a busc... L131: ... L135: ${t.trim()}`}}function $R(t,e,o=Au){let{older:n,recent:r}=mp(t,o);if(n.length===0)return{history:t,stats:{turnsBefore:t.length,turnsAfter:t.length,summarizedTurns:0}};let s=[NR(e,n... L136: `),Au=4,up=1500,dp=.4,cp=48e3;Oi=class extends Error{constructor(){super("hist\xF3rico curto demais \u2014 nada a compactar."),this.name="NothingToCompactError"}},Eu=class{model;ke... L137: `;case"t":return" ";case"r":return"\r";case'"':return'"';case"\\":return"\\";default:throw new be(`config.toml:${e}: escape n\xE3o suportado "\\${i}".`)}})}function $6(t,e,o){let n... ... L141: `)}function sG(t,e){return t.length<=e?t:t.slice(0,e-1).trimEnd()+"\u2026"}var _O=p(()=>{"use strict"});var RO=p(()=>{"use strict";Cp();uO();dO();mO();fO();hO();vO();Km();AO();_O()... L142: `,r;try{r=EG(o,Rx.O_CREAT|Rx.O_EXCL|Rx.
Critical
Command Output Exfiltration

Source executes local commands and sends command output to an external endpoint.

dist-bundle/bin/aluy.jsView on unpkg · L129
88L89: `):void 0}function n_(t,e,o){if(o===void 0)return e;let n=zv(t.model);return n===void 0?e:o(n)}var X0,J0,Q0,Ei,Jv,Z0,e_,vW,Qv,eu,Zv=p(()=>{"use strict";wv();Kv();Yv();mi();Wv();Xf(... L90:
High
Child Process

Package source references child process execution.

dist-bundle/bin/aluy.jsView on unpkg · L88
135${t.trim()}`}}function $R(t,e,o=Au){let{older:n,recent:r}=mp(t,o);if(n.length===0)return{history:t,stats:{turnsBefore:t.length,turnsAfter:t.length,summarizedTurns:0}};let s=[NR(e,n... L136: `),Au=4,up=1500,dp=.4,cp=48e3;Oi=class extends Error{constructor(){super("hist\xF3rico curto demais \u2014 nada a compactar."),this.name="NothingToCompactError"}},Eu=class{model;ke... L137: `;case"t":return" ";case"r":return"\r";case'"':return'"';case"\\":return"\\";default:throw new be(`config.toml:${e}: escape n\xE3o suportado "\\${i}".`)}})}function $6(t,e,o){let n... ... L141: `)}function sG(t,e){return t.length<=e?t:t.slice(0,e-1).trimEnd()+"\u2026"}var _O=p(()=>{"use strict"});var RO=p(()=>{"use strict";Cp();uO();dO();mO();fO();hO();vO();Km();AO();_O()... L142: `,r;try{r=EG(o,Rx.O_CREAT|Rx.O_EXCL|Rx.O_WRONLY,OG),AG(r,n),eM(r),r=void 0,DG(o,this.file)}catch(s){if(r!==void 0)try{eM(r)}catch{}try{_G(o)}catch{}throw s}}}});function Px(t){let ... L143: `}`)}}else process.stderr.write(`${l?"\r":""} baixando ${e}... ${m} MB${l?"":`
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-bundle/bin/aluy.jsView on unpkg · L135
8${n}`,display:o}}case"text":return{ok:!0,observation:`O usu\xE1rio respondeu \xE0 pergunta "${t.question}": L9: ${e.text}`,display:o};case"unavailable":return{ok:!1,observation:`N\xE3o foi poss\xEDvel PERGUNTAR ao usu\xE1rio: ${e.reason}. Isto N\xC3O \xE9 um erro t\xE9cnico nem motivo para r... L10: `).map(s=>s.trim()===""?"":` ${s}`).join(` L11: `);return[`<<<DADO_NAO_CONFIAVEL origem=${o}>>>`,r,"<<<FIM_DADO>>>"].join(` L12: `)}var xH,SH,Py=p(()=>{"use strict";xH="<<<FIM_DADO>>>",SH="DADO_NAO_CONFIAVEL>>>"});import{randomBytes as wH}from"node:crypto";function Iy(t,e){let o=[...t,e];return o.length>Fy?o... L13: ... L23: L24: `)+G}}}]}var ys,Gy,GC,of=p(()=>{"use strict";By();lc();Wy();ys="room_post",Gy="room_read",GC=["ask","inform","result","ack"]});function nf(t,e,o){for(let n of t.rules)if(n.tool===e... L25: `);let s=o.indexOf(` ... L30: `)){if(r===""||r.startsWith(":"))continue;let s=r.indexOf(":"),i=s===-1?r:r.slice(0,s),a=s===-1?"":r.slice(s+1);a.startsWith(" ")&&(a=a.slice(1)),i==="event"?(e=a,n=!0):i==="data"&... L31: `)}:null}var hf=p(()=>{"use strict"});function PT(t=globalThis.process?.env??{}){let e=_T(t[OT]),o=_T(t[MT]);return{maxConsecutiveLineRepeats:e!==void 0
High
Sandbox Evasion Gated Capability

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

dist-bundle/bin/aluy.jsView on unpkg · L8
8${n}`,display:o}}case"text":return{ok:!0,observation:`O usu\xE1rio respondeu \xE0 pergunta "${t.question}": L9: ${e.text}`,display:o};case"unavailable":return{ok:!1,observation:`N\xE3o foi poss\xEDvel PERGUNTAR ao usu\xE1rio: ${e.reason}. Isto N\xC3O \xE9 um erro t\xE9cnico nem motivo para r... L10: `).map(s=>s.trim()===""?"":` ${s}`).join(` L11: `);return[`<<<DADO_NAO_CONFIAVEL origem=${o}>>>`,r,"<<<FIM_DADO>>>"].join(` L12: `)}var xH,SH,Py=p(()=>{"use strict";xH="<<<FIM_DADO>>>",SH="DADO_NAO_CONFIAVEL>>>"});import{randomBytes as wH}from"node:crypto";function Iy(t,e){let o=[...t,e];return o.length>Fy?o... L13: ... L23: L24: `)+G}}}]}var ys,Gy,GC,of=p(()=>{"use strict";By();lc();Wy();ys="room_post",Gy="room_read",GC=["ask","inform","result","ack"]});function nf(t,e,o){for(let n of t.rules)if(n.tool===e... L25: `);let s=o.indexOf(` ... L30: `)){if(r===""||r.startsWith(":"))continue;let s=r.indexOf(":"),i=s===-1?r:r.slice(0,s),a=s===-1?"":r.slice(s+1);a.startsWith(" ")&&(a=a.slice(1)),i==="event"?(e=a,n=!0):i==="data"&... L31: `)}:null}var hf=p(()=>{"use strict"});function PT(t=globalThis.process?.env??{}){let e=_T(t[OT]),o=_T(t[MT]);return{maxConsecutiveLineRepeats:e!==void 0
High
Cloud Metadata Access

Source reaches cloud instance metadata or link-local credential endpoints.

dist-bundle/bin/aluy.jsView on unpkg · L8
8Cross-file remote execution chain: dist-bundle/bin/aluy.js spawns dist-bundle/index.js; helper contains network access plus dynamic code execution. L8: ${n}`,display:o}}case"text":return{ok:!0,observation:`O usu\xE1rio respondeu \xE0 pergunta "${t.question}": L9: ${e.text}`,display:o};case"unavailable":return{ok:!1,observation:`N\xE3o foi poss\xEDvel PERGUNTAR ao usu\xE1rio: ${e.reason}. Isto N\xC3O \xE9 um erro t\xE9cnico nem motivo para r... L10: `).map(s=>s.trim()===""?"":` ${s}`).join(` L11: `);return[`<<<DADO_NAO_CONFIAVEL origem=${o}>>>`,r,"<<<FIM_DADO>>>"].join(` L12: `)}var xH,SH,Py=p(()=>{"use strict";xH="<<<FIM_DADO>>>",SH="DADO_NAO_CONFIAVEL>>>"});import{randomBytes as wH}from"node:crypto";function Iy(t,e){let o=[...t,e];return o.length>Fy?o... L13: ... L23: L24: `)+G}}}]}var ys,Gy,GC,of=p(()=>{"use strict";By();lc();Wy();ys="room_post",Gy="room_read",GC=["ask","inform","result","ack"]});function nf(t,e,o){for(let n of t.rules)if(n.tool===e... L25: `);let s=o.indexOf(` ... L30: `)){if(r===""||r.startsWith(":"))continue;let s=r.indexOf(":"),i=s===-1?r:r.slice(0,s),a=s===-1?"":r.slice(s+1);a.startsWith(" ")&&(a=a.slice(1)),i==="event"?(e=a,n=!0):i==="data"&... L31: `)}…
High
Cross File Remote Execution Context

Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.

dist-bundle/bin/aluy.jsView on unpkg · L8
8${n}`,display:o}}case"text":return{ok:!0,observation:`O usu\xE1rio respondeu \xE0 pergunta "${t.question}": L9: ${e.text}`,display:o};case"unavailable":return{ok:!1,observation:`N\xE3o foi poss\xEDvel PERGUNTAR ao usu\xE1rio: ${e.reason}. Isto N\xC3O \xE9 um erro t\xE9cnico nem motivo para r... L10: `).map(s=>s.trim()===""?"":` ${s}`).join(` L11: `);return[`<<<DADO_NAO_CONFIAVEL origem=${o}>>>`,r,"<<<FIM_DADO>>>"].join(` L12: `)}var xH,SH,Py=p(()=>{"use strict";xH="<<<FIM_DADO>>>",SH="DADO_NAO_CONFIAVEL>>>"});import{randomBytes as wH}from"node:crypto";function Iy(t,e){let o=[...t,e];return o.length>Fy?o... L13: ... L23: L24: `)+G}}}]}var ys,Gy,GC,of=p(()=>{"use strict";By();lc();Wy();ys="room_post",Gy="room_read",GC=["ask","inform","result","ack"]});function nf(t,e,o){for(let n of t.rules)if(n.tool===e... L25: `);let s=o.indexOf(` ... L30: `)){if(r===""||r.startsWith(":"))continue;let s=r.indexOf(":"),i=s===-1?r:r.slice(0,s),a=s===-1?"":r.slice(s+1);a.startsWith(" ")&&(a=a.slice(1)),i==="event"?(e=a,n=!0):i==="data"&... L31: `)}:null}var hf=p(()=>{"use strict"});function PT(t=globalThis.process?.env??{}){let e=_T(t[OT]),o=_T(t[MT]);return{maxConsecutiveLineRepeats:e!==void 0
Medium
Install Persistence

Source writes installer persistence such as shell profile or service configuration.

dist-bundle/bin/aluy.jsView on unpkg · L8
dist-bundle/index.jsView file
426Trigger-reachable chain: manifest.main -> dist-bundle/index.js L426: - Credencial S\xD3 no keychain do SO \u2014 nunca em texto em claro. L427: - Loop de agente + ferramentas nativas + controle de permiss\xE3o integrados.`;function Xe(t,e,o={}){let n=`--${e}=`;for(let r=0;r<t.length;r++){let s=t[r];if(s===`--${e}`){let i=t... L428: \u2026[truncado: corpo maior que ${e.maxBytes} bytes]`),m({status:O,body:X,...H?{contentType:H}:{}})}),D.on("close",()=>{if(c)return;let X=Buffer.concat(U).toString("utf8")+(W?` ... L430: \u2026[truncado: corpo maior que ${e.maxBytes} bytes]`;m({status:O,body:ne,...H?{contentType:H}:{}});return}d(X)})}),S=()=>{g.destroy(),d(new Error("cancelado"))},A=setTimeout(()=>... L431: ${nn(S)}`}}catch(h){let y=u?`o proxy n\xE3o respondeu em ${m}ms (timeout)`:h instanceof Error?h.message:String(h);return{ok:!1,display:l,observation:`headroom_retrieve: falha ao fa... L432: [arquivo truncado: lidos ${this.maxReadBytes} de ${s} bytes]`:n}async readFileMeta(e){let o=this.workspace.resolveInside(e),{content:n,truncated:r,binary:s}=await ra(o,this.maxRead...
Critical
Trigger Reachable Dangerous Capability

A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.

dist-bundle/index.jsView on unpkg · L426
assets/mem0/aluy-mem0-server.pyView file
path = assets/mem0/aluy-mem0-server.py kind = build_helper sizeBytes = 20729 magicHex = [redacted]
Medium
Ships Build Helper

Package ships non-JavaScript build or shell helper files.

assets/mem0/aluy-mem0-server.pyView on unpkg

Findings

2 Critical5 High6 Medium5 Low
CriticalCommand Output Exfiltrationdist-bundle/bin/aluy.js
CriticalTrigger Reachable Dangerous Capabilitydist-bundle/index.js
HighChild Processdist-bundle/bin/aluy.js
HighSame File Env Network Executiondist-bundle/bin/aluy.js
HighSandbox Evasion Gated Capabilitydist-bundle/bin/aluy.js
HighCloud Metadata Accessdist-bundle/bin/aluy.js
HighCross File Remote Execution Contextdist-bundle/bin/aluy.js
MediumNetwork
MediumEnvironment Vars
MediumInstall Persistencedist-bundle/bin/aluy.js
MediumProtestware
MediumShips Build Helperassets/mem0/aluy-mem0-server.py
MediumStructural Risk Force Deep Review
LowFilesystem
LowObfuscated
LowHigh Entropy Strings
LowUrl Strings
LowNo License