@mastra/code-sdk@1.5.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-aiThis release is the Mastra Code agent SDK with ordinary build scripts and no npm lifecycle hooks. File writes, shell use, and PostHog telemetry are caller-invoked product features rather than a hidden install attack.
Decision evidence
public snapshot- package.json has no preinstall, install, or postinstall hooks; scripts are only build, typecheck, test, and lint.
- dist/index.js is a library entry that imports the Mastra coding-agent SDK and related local modules, with no install-time side effect.
- saveSettings writes JSON under the package settings path returned by getSettingsPath, which joins the app data directory and settings.json.
- Product telemetry posts usage metadata to us.posthog.com and is turned off when MASTRA_TELEMETRY_DISABLED is set.
- Shell spawn, git, clipboard, LSP, and hook execution exist for coding-agent features and are not tied to an npm lifecycle script.
- The package does not depend on its own name and does not mutate foreign agent control files at install time.
Source & flagged code
4 flaggedPackage source references dynamic require/import behavior.
dist/plugins/loader.jsView on unpkg · L115Source 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.5.0.
See all versions of @mastra/code-sdk for other recorded verdicts.
- Review the evidence and your use of @mastra/code-sdk@1.5.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.