@mastra/code-sdk@1.17.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 5d ago · by lpm-firewall-aiThe analytics helper includes the machine hostname in telemetry and defaults to enabled without an explicit consent step. Since the package entry point does not invoke it automatically, this is a warning-level telemetry concern rather than a block-worthy attack.
Decision evidence
public snapshot- The analytics helper sends the machine hostname as `machineId` alongside runtime and platform details.
- The analytics factory is enabled unless `MASTRA_TELEMETRY_DISABLED` is set to a truthy value; it does not request user consent.
- The package entry point is `dist/index.js`; the inspected entry-point code does not call the analytics helper.
- Platform credentials are sent to the Mastra Platform API for token verification and refresh.
- The VM call is limited to forcing garbage collection during an explicit vacuum operation.
- The analytics code is a helper factory, not an import-time PostHog client or automatic capture.
- The analytics helper reports recognizable runtime and platform fields with a random distinct ID, but also includes the hostname.
- Platform credential handling targets Mastra’s own platform endpoint, and browser login is an explicit operation.
- Plugin code is dynamically imported only for enabled plugin records.
Source & flagged code
6 flaggedPackage source references child process execution.
dist/platform/index.jsView on unpkg · L1A single source file combines environment access, network access, and code or shell execution; review context before blocking.
dist/platform/index.jsView on unpkg · L1Findings
Affected versions and remediation
This report applies to @mastra/code-sdk@1.17.0.
See all versions of @mastra/code-sdk for other recorded verdicts.
- Review the evidence and your use of @mastra/code-sdk@1.17.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.