Is langchain-anthropic safe?
- Python filesystem read
- Python filesystem write/delete
- MCP tool surface detected
What to do: Nothing here argues against installing it. Grant the capabilities it lists only if you expect the tool to need them.
langchain-anthropic is a PyPI package analyzed by SkillTotal's deterministic static scanner. The scan found no malicious indicators. It can: filesystem read, filesystem write and mcp tools detected — capabilities are what the code can do, not a verdict on intent. Risk score 0/100 (low).
langchain-anthropic 1.7.5
Automated static-analysis result. It can contain false positives and false negatives, and is not a claim about the intent of langchain-anthropic'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 (3)
The component reads files from disk.
content = full_path.read_text()
content = full_path.read_text()
content = full_path.read_text()
content = pyproject_path.read_text(encoding="utf-8")
content = version_path.read_text(encoding="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 writes or deletes files on disk.
full_path.write_text(file_text + "\n")
full_path.write_text(new_content)
full_path.write_text(new_content)
shutil.rmtree(full_path)
Why it matters: Usually legitimate, but worth confirming the paths can't be controlled by untrusted input.
Fix: Confirm which files are written/deleted and that paths cannot be influenced by untrusted input.
An MCP tool surface (manifest or tool definitions) was found.
@tool(parse_docstring=True)
@tool(tool_name)
@tool(tool_name)
Why it matters: Just context — review which tools it offers and their permissions.
Fix: Review the declared MCP tools and their permissions.
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 →