AI Security Review
scanned 4d ago · by lpm-firewall-aiNo confirmed malicious install-time or import-time attack surface. The package is an agent harness whose shell, messaging, and integration capabilities activate through its CLI/runtime tools and configured credentials.
Static reason
High-risk behavior combination matched malicious policy.
Trigger
User runs the `freddie` CLI or enables/invokes an agent tool or local plugin.
Impact
Authorized runtime actions may include shell execution, outbound messaging, and Home Assistant API calls; no covert package-originated attack chain is established.
Mechanism
Explicit plugin-based agent tooling and configured service integrations.
Rationale
Static source inspection confirms a feature-rich agent framework, not malware. Scanner hits map to explicit, package-aligned tools and configured integrations; no lifecycle execution or concrete unconsented malicious behavior was found.
Evidence
package.jsonbin/freddie.jssrc/host/host.jssrc/toolsets.jsplugins/terminal/handler.jsplugins/send_message/handler.jsplugins/homeassistant_tool/handler.jsplugins/platform-wecom_crypto/handler.jsplugins/gm-skill/plugin.jssrc/cli/uninstall.js
Network endpoints1
homeassistant.local:8123
Decision evidence
public snapshotAI called this Clean at 89.0% confidence as Benign with low false-positive risk.
Evidence for block
- `src/host/host.js` dynamically imports discovered `plugin.js` modules when the CLI/runtime boots.
- `plugins/terminal/handler.js` exposes a core tool that spawns a shell after an agent/user invokes it.
- `plugins/homeassistant_tool/handler.js` sends its configured `HASS_TOKEN` only to the user-configured Home Assistant URL.
Evidence against
- `package.json` has no `preinstall`, `install`, `postinstall`, `prepare`, or uninstall lifecycle script.
- `bin/freddie.js` only boots the plugin host and dispatches explicit CLI commands.
- `plugins/send_message/handler.js` has a fixed allowlist of package gateway adapters and imports only the selected adapter.
- No inspected source shows automatic credential harvesting, covert exfiltration, remote payload download, or foreign AI-agent configuration writes.
- `src/cli/uninstall.js` only removes the package's own Freddie home directory when explicitly called with data removal enabled.
Behavioral surface
ChildProcessCryptoDynamicRequireEnvironmentVarsFilesystemNetworkShellWebSocket
HighEntropyStringsUrlStrings
WildcardDependency
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 Critical4 Medium5 Low
CriticalCredential Exfiltrationplugins/homeassistant_tool/handler.js
MediumDynamic Requireplugins/send_message/handler.js
MediumNetwork
MediumEnvironment Vars
MediumWildcard Dependency
LowScripts Present
LowWeak Cryptoplugins/platform-wecom_crypto/handler.js
LowFilesystem
LowHigh Entropy Strings
LowUrl Strings