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

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

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 2h ago · by lpm-firewall-ai

Review flagged AI-agent configuration or capability changes. This remains warn-only unless evidence shows foreign-agent hijack through preinstall/install/postinstall, hidden persistence, exfiltration, remote code execution, or other concrete malicious behavior.

Static reason
High-risk behavior combination matched malicious policy.
Trigger
User runs `aluy` and explicitly invokes its MCP, setup, or sidecar features.
Impact
Can alter first-party Aluy configuration and execute local sidecars after explicit runtime use; no unconsented credential theft, cloud-metadata access, or command-output exfiltration was confirmed.
Mechanism
User-invoked AI CLI configuration and local sidecar management.
Rationale
Not malicious: source inspection found no lifecycle execution, credential exfiltration, metadata access, or remote payload chain. Downgraded to warn because this is an AI CLI that can explicitly manage agent/MCP configuration and launch sidecars.
Evidence
package.jsondist-bundle/bin/aluy.jsdist-bundle/index.jsassets/mem0/aluy-mem0-server.py
Network endpoints4
api.aluy.app/api/v1api.openai.com/v1127.0.0.1:11435/health127.0.0.1:11434/api/tags

Decision evidence

public snapshot
AI called this Suspicious at 88.0% confidence as Dangerous Capability with medium false-positive risk.
Evidence for warning
  • `dist-bundle/bin/aluy.js` manages user-invoked MCP settings under `~/.aluy/mcp.json` and scaffolds `.aluy/` files.
  • `dist-bundle/bin/aluy.js` starts bundled/local sidecars, including `assets/mem0/aluy-mem0-server.py` on loopback.
Evidence against
  • `package.json` contains no `preinstall`, `install`, `postinstall`, or `prepare` lifecycle hook.
  • No `eval` or `new Function` usage was found in either bundled entrypoint.
  • The `169.254.169.254` references are explicit SSRF-deny logic, not metadata requests.
  • Shell/network patterns are permission-policy checks or user-invoked CLI/sidecar behavior.
  • The bundled Mem0 server binds to `127.0.0.1` and persists local memory state; no exfiltration path was confirmed.
Behavioral surface
Source
ChildProcessCryptoEnvironmentVarsFilesystemNativeBindingsNetwork
Supply chain
HighEntropyStringsMinifiedObfuscatedProtestwareUrlStrings
Manifest
NoLicense
scanned 2 file(s), 2.01 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
132${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... L133: `)}var ZG,e9,lM,t9,cM,Jp,dM=g(()=>{"use strict";Kr();Xp();Wx();ZG=8;e9=Object.freeze({type:"object",properties:{url:{type:"string",description:"OBRIGAT\xD3RIO. A URL http(s) a busc... L134: ... L138: ${t.trim()}`}}function kM(t,e,o=cd){let{older:n,recent:r}=tg(t,o);if(n.length===0)return{history:t,stats:{turnsBefore:t.length,turnsAfter:t.length,summarizedTurns:0}};let s=[vM(e,n... L139: `),cd=4,Zp=1500,eg=.4,Qp=48e3;Yi=class extends Error{constructor(){super("hist\xF3rico curto demais \u2014 nada a compactar."),this.name="NothingToCompactError"}},ld=class{model;ke... L140: `;case"t":return" ";case"r":return"\r";case'"':return'"';case"\\":return"\\";default:throw new ye(`config.toml:${e}: escape n\xE3o suportado "\\${i}".`)}})}function S9(t,e,o){let n... ... L143: `)}function j9(t,e){return t.length<=e?t:t.slice(0,e-1).trimEnd()+"\u2026"}var aL=g(()=>{"use strict"});var lL=g(()=>{"use strict";gg();zM();KM();YM();VM();JM();lk();Lf();nL();aL()... L144: `,r;try{r=iz(o,IS.O_CREAT|IS.O_EXCL|IS.
Critical
Command Output Exfiltration

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

dist-bundle/bin/aluy.jsView on unpkg · L132
91L92: `):void 0}function $R(t,e,o,n,r){let s=$i(t.model);switch(s.kind){case"tier":return o?o(s.key):e;case"custom":return n?n(s.slug):e;case"local":{if(s.slug===void 0)return e;if(!r)th... L93:
High
Child Process

Package source references child process execution.

dist-bundle/bin/aluy.jsView on unpkg · L91
138${t.trim()}`}}function kM(t,e,o=cd){let{older:n,recent:r}=tg(t,o);if(n.length===0)return{history:t,stats:{turnsBefore:t.length,turnsAfter:t.length,summarizedTurns:0}};let s=[vM(e,n... L139: `),cd=4,Zp=1500,eg=.4,Qp=48e3;Yi=class extends Error{constructor(){super("hist\xF3rico curto demais \u2014 nada a compactar."),this.name="NothingToCompactError"}},ld=class{model;ke... L140: `;case"t":return" ";case"r":return"\r";case'"':return'"';case"\\":return"\\";default:throw new ye(`config.toml:${e}: escape n\xE3o suportado "\\${i}".`)}})}function S9(t,e,o){let n... ... L143: `)}function j9(t,e){return t.length<=e?t:t.slice(0,e-1).trimEnd()+"\u2026"}var aL=g(()=>{"use strict"});var lL=g(()=>{"use strict";gg();zM();KM();YM();VM();JM();lk();Lf();nL();aL()... L144: `,r;try{r=iz(o,IS.O_CREAT|IS.O_EXCL|IS.O_WRONLY,fz),az(r,n),ML(r),r=void 0,uz(o,this.file)}catch(s){if(r!==void 0)try{ML(r)}catch{}try{dz(o)}catch{}throw s}}}});function BS(t){let ... L145: `}`)}}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 · L138
10${o.join(` L11: `)}`}async function Bq(t,e){if(!e.capabilities)return{ok:!1,observation:"capabilities: indispon\xEDvel nesta sess\xE3o (sem porta de capacidades)."};let o=t.filter,n=typeof o=="str... L12: `).map(s=>s.trim()===""?"":` ${s}`).join(` L13: `);return[`<<<DADO_NAO_CONFIAVEL origem=${o}>>>`,r,"<<<FIM_DADO>>>"].join(` L14: `)}var o3,n3,Ib=g(()=>{"use strict";o3="<<<FIM_DADO>>>",n3="DADO_NAO_CONFIAVEL>>>"});import{randomBytes as r3}from"node:crypto";function Fb(t,e){let o=[...t,e];return o.length>Nb?o... L15: ... L25: L26: `)+I}}}]}var xs,zb,iD,Hf=g(()=>{"use strict";Ub();zc();Gb();xs="room_post",zb="room_read",iD=["ask","inform","result","ack"]});function l3(t){let e=t.command;if(typeof e!="string"|... L27: `);let s=o.indexOf(` ... L32: `)){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"&... L33: `)}:null}var ep=g(()=>{"use strict"});function YD(t=globalThis.process?.env??{},e){let o=op(t[GD])??op(e?.maxConsecutiveLineRepeats),n=op(t[zD])??op(e?.minCycleSpanChars);return{ma... L34: ${s}`:(r+s).trim()}function Z_(t,e){let o=Math.min(t.lengt
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 · L10
10${o.join(` L11: `)}`}async function Bq(t,e){if(!e.capabilities)return{ok:!1,observation:"capabilities: indispon\xEDvel nesta sess\xE3o (sem porta de capacidades)."};let o=t.filter,n=typeof o=="str... L12: `).map(s=>s.trim()===""?"":` ${s}`).join(` L13: `);return[`<<<DADO_NAO_CONFIAVEL origem=${o}>>>`,r,"<<<FIM_DADO>>>"].join(` L14: `)}var o3,n3,Ib=g(()=>{"use strict";o3="<<<FIM_DADO>>>",n3="DADO_NAO_CONFIAVEL>>>"});import{randomBytes as r3}from"node:crypto";function Fb(t,e){let o=[...t,e];return o.length>Nb?o... L15: ... L25: L26: `)+I}}}]}var xs,zb,iD,Hf=g(()=>{"use strict";Ub();zc();Gb();xs="room_post",zb="room_read",iD=["ask","inform","result","ack"]});function l3(t){let e=t.command;if(typeof e!="string"|... L27: `);let s=o.indexOf(` ... L32: `)){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"&... L33: `)}:null}var ep=g(()=>{"use strict"});function YD(t=globalThis.process?.env??{},e){let o=op(t[GD])??op(e?.maxConsecutiveLineRepeats),n=op(t[zD])??op(e?.minCycleSpanChars);return{ma... L34: ${s}`:(r+s).trim()}function Z_(t,e){let o=Math.min(t.lengt
High
Cloud Metadata Access

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

dist-bundle/bin/aluy.jsView on unpkg · L10
10Cross-file remote execution chain: dist-bundle/bin/aluy.js spawns dist-bundle/index.js; helper contains network access plus dynamic code execution. L10: ${o.join(` L11: `)}`}async function Bq(t,e){if(!e.capabilities)return{ok:!1,observation:"capabilities: indispon\xEDvel nesta sess\xE3o (sem porta de capacidades)."};let o=t.filter,n=typeof o=="str... L12: `).map(s=>s.trim()===""?"":` ${s}`).join(` L13: `);return[`<<<DADO_NAO_CONFIAVEL origem=${o}>>>`,r,"<<<FIM_DADO>>>"].join(` L14: `)}var o3,n3,Ib=g(()=>{"use strict";o3="<<<FIM_DADO>>>",n3="DADO_NAO_CONFIAVEL>>>"});import{randomBytes as r3}from"node:crypto";function Fb(t,e){let o=[...t,e];return o.length>Nb?o... L15: ... L25: L26: `)+I}}}]}var xs,zb,iD,Hf=g(()=>{"use strict";Ub();zc();Gb();xs="room_post",zb="room_read",iD=["ask","inform","result","ack"]});function l3(t){let e=t.command;if(typeof e!="string"|... L27: `);let s=o.indexOf(` ... L32: `)){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"&... L33: `)}:null}var ep=g(()=>{"use strict"});function YD(t=globalThis.process?.env??{},e){let o=op(t[GD])…
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 · L10
10${o.join(` L11: `)}`}async function Bq(t,e){if(!e.capabilities)return{ok:!1,observation:"capabilities: indispon\xEDvel nesta sess\xE3o (sem porta de capacidades)."};let o=t.filter,n=typeof o=="str... L12: `).map(s=>s.trim()===""?"":` ${s}`).join(` L13: `);return[`<<<DADO_NAO_CONFIAVEL origem=${o}>>>`,r,"<<<FIM_DADO>>>"].join(` L14: `)}var o3,n3,Ib=g(()=>{"use strict";o3="<<<FIM_DADO>>>",n3="DADO_NAO_CONFIAVEL>>>"});import{randomBytes as r3}from"node:crypto";function Fb(t,e){let o=[...t,e];return o.length>Nb?o... L15: ... L25: L26: `)+I}}}]}var xs,zb,iD,Hf=g(()=>{"use strict";Ub();zc();Gb();xs="room_post",zb="room_read",iD=["ask","inform","result","ack"]});function l3(t){let e=t.command;if(typeof e!="string"|... L27: `);let s=o.indexOf(` ... L32: `)){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"&... L33: `)}:null}var ep=g(()=>{"use strict"});function YD(t=globalThis.process?.env??{},e){let o=op(t[GD])??op(e?.maxConsecutiveLineRepeats),n=op(t[zD])??op(e?.minCycleSpanChars);return{ma... L34: ${s}`:(r+s).trim()}function Z_(t,e){let o=Math.min(t.lengt
Medium
Install Persistence

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

dist-bundle/bin/aluy.jsView on unpkg · L10
dist-bundle/index.jsView file
428Trigger-reachable chain: manifest.main -> dist-bundle/index.js L428: - Credencial S\xD3 no keychain do SO \u2014 nunca em texto em claro. L429: - Loop de agente + ferramentas nativas + controle de permiss\xE3o integrados.`;function ot(t,e,o={}){let n=`--${e}=`;for(let r=0;r<t.length;r++){let s=t[r];if(s===`--${e}`){let i=t... L430: \u2026[truncado: corpo maior que ${e.maxBytes} bytes]`),m({status:_,body:z,...P?{contentType:P}:{}})}),w.on("close",()=>{if(c)return;let z=Buffer.concat($).toString("utf8")+(N?` ... L432: \u2026[truncado: corpo maior que ${e.maxBytes} bytes]`;m({status:_,body:te,...P?{contentType:P}:{}});return}d(z)})}),E=()=>{h.destroy(),d(new Error("cancelado"))},k=setTimeout(()=>... L433: ${dn(E)}`}}catch(g){let y=u?`o proxy n\xE3o respondeu em ${m}ms (timeout)`:g instanceof Error?g.message:String(g);return{ok:!1,display:l,observation:`headroom_retrieve: falha ao fa... L434: [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 Sa(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 · L428
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