AI Security Review
scanned 13d ago · by lpm-firewall-aiNo confirmed malicious attack surface is established by source inspection. Risky primitives are aligned with an AI agent CLI and appear activated by explicit CLI/tool use rather than install or import.
Static reason
High-risk behavior combination matched malicious policy.
Trigger
User invokes freddie CLI or enables/calls specific agent tools.
Impact
Could access configured services or local files when the user/agent calls those tools, but no unconsented lifecycle execution or exfiltration path was found.
Mechanism
User-invoked agent tools for messaging, web fetch, shell, files, and integrations.
Rationale
Static inspection shows a broad plugin-based agent framework with dangerous but package-aligned, user-invoked capabilities and no install-time/import-time malware, credential harvesting loop, persistence payload, or hardcoded exfiltration endpoint. Scanner findings are explained by integrations and protocol code rather than concrete malicious behavior.
Evidence
package.jsonbin/freddie.jssrc/index.jssrc/host/host.jssrc/host/index.jsplugins/homeassistant_tool/handler.jsplugins/send_message/handler.jsplugins/platform-wecom_crypto/handler.jsplugins/env_passthrough/handler.jsplugins/web_tools/handler.js
Network endpoints4
homeassistant.local:8123raw.githubusercontent.com/AnEntrypoint/freddie-skills/main/index.jsonapi.spotify.com/v1openrouter.ai/api/v1/chat/completions
Decision evidence
public snapshotAI called this Clean at 86.0% confidence as Benign with low false-positive risk.
Evidence for block
- Agent package includes user-invoked shell/file/network tools such as plugins/bash, plugins/write, plugins/web_tools.
Evidence against
- package.json has no install/preinstall/postinstall/prepare lifecycle hooks.
- bin/freddie.js only boots plugin host and registers CLI commands when invoked.
- src/index.js is export-only and has no import-time payload behavior.
- plugins/homeassistant_tool/handler.js sends HASS_TOKEN only to configured HASS_URL or local Home Assistant API during tool use.
- plugins/send_message/handler.js dynamic import is limited to a fixed platform map, not attacker-controlled arbitrary paths.
- plugins/platform-wecom_crypto/handler.js uses SHA1/AES-CBC for WeCom protocol verification/decryption, not credential theft.
Behavioral surface
ChildProcessCryptoDynamicRequireEnvironmentVarsFilesystemNetworkShellWebSocket
HighEntropyStringsUrlStrings
GitDependencyWildcardDependency
Source & flagged code
3 flagged · loading sourceplugins/send_message/handler.jsView file
19if (!mod) return { error: 'unknown platform: ' + platform }
L20: const m = await import(mod)
L21: const cls = Object.values(m)[0]
Medium
Dynamic Require
Package source references dynamic require/import behavior.
plugins/send_message/handler.jsView on unpkg · L19plugins/platform-wecom_crypto/handler.jsView file
6export function decryptMsg(encryptedB64, encodingAesKey) {
L7: const aesKey = Buffer.from(encodingAesKey + '=', 'base64')
L8: const iv = aesKey.slice(0, 16)
Low
Weak Crypto
Package source references weak cryptographic algorithms.
plugins/platform-wecom_crypto/handler.jsView on unpkg · L6plugins/homeassistant_tool/handler.jsView file
3toolset: 'core',
L4: schema: { name: 'homeassistant_tool', description: 'Read state or call a service on Home Assistant.', parameters: { type: 'object', properties: { action: { type: 'string', enum: ['...
L5: requiresEnv: ['HASS_TOKEN', 'HASS_URL'],
L6: checkFn: () => Boolean(process.env.HASS_TOKEN),
L7: handler: async ({ action, entity_id, domain, service, data = {} }) => {
L8: const url = process.env.HASS_URL || 'http://homeassistant.local:8123'
L9: const auth = { authorization: `Bearer ${process.env.HASS_TOKEN}` }
L10: if (action === 'state') return await (await fetch(`${url}/api/states/${entity_id}`, { headers: auth })).json()
L11: if (action === 'service') return await (await fetch(`${url}/api/services/${domain}/${service}`, { method: 'POST', headers: { ...auth, 'content-type': 'application/json' }, body: JS...
Critical
Credential Exfiltration
Source appears to send environment or credential material to an external endpoint.
plugins/homeassistant_tool/handler.jsView on unpkg · L3Findings
1 Critical5 Medium5 Low
CriticalCredential Exfiltrationplugins/homeassistant_tool/handler.js
MediumDynamic Requireplugins/send_message/handler.js
MediumNetwork
MediumEnvironment Vars
MediumGit Dependency
MediumWildcard Dependency
LowScripts Present
LowWeak Cryptoplugins/platform-wecom_crypto/handler.js
LowFilesystem
LowHigh Entropy Strings
LowUrl Strings