Skip to main content
SkillTotal

Is langsmith safe?

No malicious indicators - review capabilities before installing
Notable — review in context (a capability is not a malicious indicator):
  • Python shell/command execution
  • Python filesystem read
  • Python network egress

What to do: Nothing here argues against installing it. Grant the capabilities it lists only if you expect the tool to need them.

langsmith is a PyPI package analyzed by SkillTotal's deterministic static scanner. The scan found no malicious indicators. It can: delegated authentication, filesystem read, filesystem write, network egress, scoped identity and shell execution — capabilities are what the code can do, not a verdict on intent. Risk score 0/100 (low).

langsmith 0.16.0

PyPI package · pypi:langsmith
LOW
0
/ 100 risk score
Snapshot · scanned Nov 21, 2026 · langsmith@0.16.0 · engine 1.8.0 / ruleset 107

Get notified when this component changes

Change alerts aren't live yet. Leave your email and we'll let you know when they launch. We use it only for this and delete it on request.

Automated static-analysis result. It can contain false positives and false negatives, and is not a claim about the intent of langsmith's authors. Report a false positive.

Capabilities — what this component can do (not a risk score):
delegated authenticationfilesystem readfilesystem writenetwork egressscoped identityshell execution

Behavioral traits

How this component maps to the CSA agentic threat model. Descriptive — it never affects the risk score.

Execution authority
Tool Access Control / Direct Tool Access
Filesystem reach
Tool Execution Context
Network egress
Interaction & Communication / Direct Communication
Delegated authentication
Tool Execution Context / User Delegated Credentials
Scoped / least-privilege identity
Tool Execution Context / Least-Privilege Service Identity

Findings (6)

CapabilityPython shell/command executionnot scored · severity highST-SHELL-PY

The component can run operating-system commands or spawn processes.

return subprocess.check_output(["git"] + command, encoding="utf-8", stderr=subprocess.DEVNULL).strip()
docker_version = subprocess.check_output(["docker", "--version"]).decode("utf-8").strip()
docker_compose_version = subprocess.check_output(["docker-compose", "--version"]).decode("utf-8").strip()
subprocess.check_call(
            ["docker", "compose", "--version"],
            stdout=subprocess.DEVNULL,
            stderr=subprocess.DEVNULL,
        )
subprocess.check_call(
                ["docker-compose", "--version"],
                stdout=subprocess.DEVNULL,
                stderr=subprocess.DEVNULL,
            )

Why it matters: Powerful and often legitimate — confirm the commands aren't built from untrusted input.

Fix: Confirm the command and its arguments are fully controlled and not derived from untrusted input; avoid shell=True.

CapabilityPython filesystem readnot scored · severity mediumST-FS-PY-READ

The component reads files from disk.

return (path.name, path.read_bytes())
return pathlib.Path(file).read_bytes()
return (path.name, await path.read_bytes())
return await anyio.Path(file).read_bytes()
with open(os.path.join(lock_dir, _LOCK_METADATA_FILE), encoding="utf-8") as f:
file = open(data_or_path, "rb")
raw = json.loads(path.read_text(encoding="utf-8"))
raw = json.loads(self._state.path.read_text(encoding="utf-8"))
binary = data.read_bytes()
binary = await anyio.Path(data).read_bytes()
contents = Path(path).read_bytes()
with open(csv_file, "rb") as f:
file = open(attachment_data, "rb")

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.

CapabilityPython filesystem write/deletenot scored · severity mediumST-FS-PY-WRITE

The component writes or deletes files on disk.

with open(file, mode="wb") as f:
with open(file, mode="wb") as f:
temp_path.write_text(json.dumps(envelope))
with open(temp_path, "w") as f:

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.

CapabilityPython network egressnot scored · severity mediumST-NET-PY

The component makes outbound network requests.

from httpx import (
        URL,
        Proxy,
        Client,
        Limits,
        Request,
        Timeout,
        Response,
        AsyncClient,
        BaseTransport,
        MockTransport,
from httpx._config import (
        DEFAULT_TIMEOUT_CONFIG,  # pyright: ignore[reportPrivateImportUsage]
    )
from httpx import (
            URL,
            Proxy,
            Client,
            Limits,
            Request,
            Timeout,
            Response,
            AsyncClient,
            BaseTransport,
            MockTransport,
from httpx._config import DEFAULT_TIMEOUT_CONFIG
from urllib3 import __version__ as urllib3version  # type: ignore[import-untyped]
from urllib3 import connection  # type: ignore[import-untyped]
headers["User-Agent"] = connection._get_default_user_agent()
import aiohttp.streams as aiohttp_streams
response = requests.get(
            url,
            headers={"Accept": "application/json"},
            timeout=timeout,
        )
response = requests.post(
            token_endpoint,
            data={
                "grant_type": "refresh_token",
                "client_id": _OAUTH_CLIENT_ID,
                "refresh_token": refresh_token,
            }, …
from urllib import parse as urllib_parse
from requests import adapters as requests_adapters
from urllib3.poolmanager import PoolKey  # type: ignore[attr-defined, import-untyped]
from urllib3.util import Retry  # type: ignore[import-untyped]
requests_defaults = requests.utils.default_headers()
session_ = session if session else requests.Session()
response = requests.get(full_url, stream=True)
from urllib import parse as urllib_parse
from urllib3.util import Retry  # type: ignore[import-untyped]
raise requests.HTTPError(str(e), response.text, response=cast(requests.Response, response)) from e

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.

CapabilityDelegated authentication (OAuth 2.0 / OIDC)not scored · severity lowST-AUTH-DELEGATED

An OAuth 2.0 / OpenID Connect delegated-authentication flow was detected (authorization-code / refresh-token / token-exchange grant, an OIDC authorize/discovery endpoint or id_token, or a delegation library). Tools authenticate with the end user's delegated, scoped credentials rather than a long-lived embedded service credential.

"grant_type": "refresh_token",

Fix: Delegated auth is a lower-blast-radius execution context than an embedded static credential. Confirm the requested scopes are minimal and that tokens are never logged or forwarded off-host.

CapabilityScoped / least-privilege identitynot scored · severity lowST-AUTH-SCOPED

A short-lived, scoped, assumed identity was detected - an STS AssumeRole / session token, a cloud managed or workload identity, an impersonated service account, a projected Kubernetes service-account token, or a dynamic-secret broker. Tools authenticate with a narrowly-scoped credential that expires, rather than a long-lived embedded service credential. (8 occurrence(s) shown as evidence).

IAM role to assume with AssumeRoleWithWebIdentity, using a short-lived OIDC
IAM role to assume with AssumeRoleWithWebIdentity, using a short-lived OIDC
IAM role to assume with AssumeRoleWithWebIdentity, using a short-lived OIDC
IAM role to assume with AssumeRoleWithWebIdentity, using a short-lived OIDC
IAM role to assume with AssumeRoleWithWebIdentity, using a short-lived OIDC
IAM role to assume with AssumeRoleWithWebIdentity, using a short-lived OIDC
IAM role to assume with AssumeRoleWithWebIdentity, using a short-lived OIDC
IAM role to assume with AssumeRoleWithWebIdentity, using a short-lived OIDC

Fix: A scoped, short-lived identity is the smallest-blast-radius execution context. Confirm the assumed role / requested scope grants only the permissions the tool needs, and that the token lifetime is minimal.

How attackers abuse these capabilities

Interactive labs on the attack class behind the rules above. They show the technique, not anything found in langsmith.

Maintain langsmith?

Check the next package before your agent installs it

The free Claude Code plugin scans each npm, PyPI or MCP package with this report's open-source engine before the install command runs. It runs on your machine and needs no account.

Check your own component

Run the same evidence-backed scan on any MCP server, agent skill, or package.

Scan your own component

How we determine this: deterministic static analysis (regex + AST), evidence-anchored, no code execution. Methodology →