@mastra/code-sdk@1.8.0
Mastra Code SDK: the agent core behind Mastra Code (everything except the TUI) — build your own UIs and surfaces on top of it
AI Security Review
scanned 1mo ago · by lpm-firewall-aiThe published package is a Mastra Code agent library with no npm lifecycle hook and no self-executing entrypoint. Shell use, local settings writes, and optional telemetry are reached only through caller-invoked SDK APIs that match that product.
Decision evidence
public snapshot- package.json has no preinstall, install, or postinstall scripts; its scripts are only build, typecheck, test, and lint.
- The published entry dist/index.js exports a caller-invoked Mastra Code agent factory and does not execute that factory at import or install time.
- Settings persistence writes settings.json under the package app-data directory only when settings APIs run.
- Shell, LSP, hook, and clipboard helpers use child_process only from explicit coding-agent features.
- Optional PostHog telemetry is created by createMastraCodeAnalytics and can be turned off with MASTRA_TELEMETRY_DISABLED.
Source & flagged code
4 flaggedPackage source references dynamic require/import behavior.
dist/plugins/loader.jsView on unpkg · L116Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
Findings
Affected versions and remediation
This report applies to @mastra/code-sdk@1.8.0.
See all versions of @mastra/code-sdk for other recorded verdicts.
- Review the evidence and your use of @mastra/code-sdk@1.8.0 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.