Is semantic-kernel safe?
- Python dynamic code 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.
semantic-kernel is a PyPI package analyzed by SkillTotal's deterministic static scanner. The scan found no malicious indicators. It can: delegated authentication, dynamic code execution, filesystem read, filesystem write, mcp tools detected and network egress — capabilities are what the code can do, not a verdict on intent. Risk score 0/100 (low).
semantic-kernel 1.47.0
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 semantic-kernel'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 (6)
The code turns strings into live code at runtime (eval / new Function / exec).
self._template_compiler = Compiler().compile(self.prompt_template_config.template)
Why it matters: If those strings aren't fixed and trusted, they become a way to run arbitrary code.
Fix: Avoid evaluating dynamically constructed code; if unavoidable, ensure the input is a trusted constant and never derived from external data.
The component reads files from disk.
with open(file_path, encoding=encoding) as f:
with open(json_gen_ai_config) as file:
with open(settings.filename, "rb") as audio_file:
with open(path, "rb") as audio_file:
data = path.read_bytes()
with open(file_path) as file:
with open(path, "rb") as image_file:
with open(validated_path, "rb") as data:
with open(config_path, encoding=encoding) as config_file:
with open(prompt_path, encoding=encoding) as prompt_file:
with open(object, encoding=encoding) as file:
with open(file_path, encoding=encoding) as f:
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.
with open(path, "wb") as file:
with open(file_path, "w") as local_file:
with open(validated_path, "wb") 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.
The component makes outbound network requests.
from aiohttp import ClientSession
ClientSession() as session,
ClientSession() as session,
from aiohttp import ClientSession
ClientSession() as session,
from httpx import AsyncClient, HTTPStatusError, RequestError
async with AsyncClient(timeout=5) as client:
from httpx import AsyncClient, HTTPStatusError, RequestError
async with AsyncClient(timeout=5) as client:
import aiohttp
self._session = session if session else aiohttp.ClientSession()
from urllib.request import getproxies, proxy_bypass
original = httpx.URL(url)
parsed = httpx.URL(url)
proxies = getproxies()
return not proxy_bypass(host)
async with httpx.AsyncClient(timeout=timeout, mounts=_direct_mounts(pinned_addresses)) as client:
from httpx import AsyncClient, HTTPStatusError, RequestError
import aiohttp
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.
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. (2 occurrence(s) shown as evidence).
from msal import PublicClientApplication
"""Get the MSAL token cache."""
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.
An MCP tool surface (manifest or tool definitions) was found.
@server.list_tools()
@server.call_tool()
types.Tool(
name=tool_name,Why it matters: Just context — review which tools it offers and their permissions.
Fix: Review the declared MCP tools and their permissions.
Maintain semantic-kernel?
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 componentHow we determine this: deterministic static analysis (regex + AST), evidence-anchored, no code execution. Methodology →