@mastra/code-sdk@1.18.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 1d ago · by lpm-firewall-aiThe flagged execution and credential flows support the package’s agent SDK, provider, and platform functions. The reviewed flows send credentials to their corresponding services, and the package declares no install lifecycle hook.
Decision evidence
public snapshot- The package manifest contains build, check, test, and lint scripts; no install lifecycle hook is declared.
- Platform credential verification sends a Mastra platform token to the Mastra platform API when a platform session is requested.
- The Moonshot key is used only for the selected Moonshot provider and sent to api.moonshot.ai.
- The agent controller and its initialization are exposed as callable SDK operations; no import-time attack behavior was identified.
- The default Mastra gateway configuration sets routeThroughMastraGateway to false.
- The analytics factory honors MASTRA_TELEMETRY_DISABLED; no automatic call to that factory was found in the entry point.
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.18.0.
See all versions of @mastra/code-sdk for other recorded verdicts.
- Review the evidence and your use of @mastra/code-sdk@1.18.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.