@whalent/agent-core@0.3.468
Core runtime for Whalent Agent
AI Security Review
scanned 27d ago · by lpm-firewall-aiThe bundle can mutate other agents' skill and MCP configuration, which is a real control-surface capability, but package.json has no install hook and the MCP daemon requires an explicit token argument. Obfuscation hides the exact consent gate, so the behavior is a guarded first-party setup risk rather than a proven install-time hijack.
Decision evidence
public snapshot- package.json has no install lifecycle scripts. The bin command whalent-core points at dist/index.cjs, and dependencies are only ssh2 plus optional node-pty.
- dist/mcp.cjs maps Claude and cursor_cli platforms onto home agent directories, including a literal .cursor directory.
- writeSkillFiles writes supplied skill file contents under those resolved directories after rejecting absolute paths and paths that escape the skill root.
- injectClaudeMcpServer reads .claude.json, inserts an mcpServers entry, and writes the file back. Similar helpers exist for other agent MCP configs such as mcp.json.
- The mcp.cjs entrypoint only starts its daemon after command-line arguments supply a token. It is not wired to an npm install hook.
- No preinstall, install, or postinstall script is declared, and the package does not depend on its own name.
- The daemon startup path exits when the token argument is missing.
- Skill file writes are confined by a path check before writeFile.
- The only clearly decoded service host is an origin fallback limited to memory.whalent.com and numbered api hosts under that domain.
Source & flagged code
7 flagged · loading sourceSource contains an obfuscated payload loader that reconstructs and executes hidden code.
dist/mcp.cjsView on unpkg · L1A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.
dist/mcp.cjsView on unpkgFindings
Affected versions and remediation
This report applies to @whalent/agent-core@0.3.468.
See all versions of @whalent/agent-core for other recorded verdicts.
- Review the evidence and your use of @whalent/agent-core@0.3.468 before allowing it. Restrict the permissions described in this report.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
Evidence last updated: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.