Is e2b safe?
- Node.js filesystem read
- Node.js network egress
e2b is an AI npm_package analyzed by SkillTotal's deterministic static scanner. The scan found no malicious indicators, though 2 risky constructs are reported for review. It can: filesystem read and network egress — capabilities are what the code can do, not a verdict on intent. Risk score 0/100 (low).
e2b 2.51.0
Automated static-analysis result. It can contain false positives and false negatives, and is not a claim about the intent of e2b's authors. Report a false positive.
Behavioral traits
How this component maps to the CSA agentic threat model. Descriptive — it never affects the risk score.
Findings (2)
The component reads files from disk.
return fs.readFileSync(dockerignorePath, "utf-8").split("\n").map((line) => line.trim()).filter((line) => line && !line.startsWith("#"));const content = fs.readFileSync(file.fullpath());
if (typeof pathOrContent === "string") return fs.readFileSync(path.join(contextPath, pathOrContent), "utf-8");
body: stream.Readable.toWeb(fs.createReadStream(filePath)),
if (fs.existsSync(dockerfileContentOrPath) && fs.statSync(dockerfileContentOrPath).isFile()) dockerfileContent = fs.readFileSync(dockerfileContentOrPath, "utf-8");
Why it matters: Usually legitimate, but worth confirming it can't be steered into reading sensitive files.
Fix: Confirm which files are read and that paths cannot be influenced by untrusted input to reach sensitive locations.
The component makes outbound network requests.
* template.npmInstall(['lodash', 'axios'])
* template.bunInstall(['lodash', 'axios'])
return ((input, init) => globalThis.fetch(input, init));
return ((input, init) => globalThis.fetch(input, init));
Why it matters: Usually legitimate, but confirm the destinations are expected and no sensitive data leaves.
Fix: Confirm the destination hosts are expected and that no sensitive data is sent off-host.
Check your own component
Run the same evidence-backed scan on any MCP server, agent skill, or package.
Scan your own componentHow we determine this: deterministic static analysis (regex + AST), evidence-anchored, no code execution. Methodology →