Is strands-agents safe?
- Python shell/command execution
- Python network egress
- Python filesystem read
What to do: Nothing here argues against installing it. Grant the capabilities it lists only if you expect the tool to need them.
strands-agents is a PyPI package analyzed by SkillTotal's deterministic static scanner. The scan found no malicious indicators. It can: filesystem read, filesystem write, mcp tools detected, network egress and shell execution — capabilities are what the code can do, not a verdict on intent. Risk score 0/100 (low).
strands-agents 1.65.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 strands-agents'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 (5)
The component can run operating-system commands or spawn processes.
proc = await asyncio.create_subprocess_exec(
program,
*args,
stdin=asyncio.subprocess.PIPE if input is not None else None,
stdout=asyncio.subprocess.PIPE,
stderr=asyncio.subprocess …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.
The component reads files from disk.
with open(config_path) as f:
raw = package_copy.read_text(encoding="utf-8")
return self._resolve_path(path).read_bytes()
with open(path, encoding="utf-8") as f:
with open(path, "rb") as f:
config_dict = json.loads(path.read_text())
return path.read_text(encoding="utf-8")
parsed = json.loads(path.read_text(encoding="utf-8"))
return path.read_text(encoding="utf-8")
return file_path.read_bytes(), content_type
raw = await self._sandbox.read_text(self._artifact_path(self._METADATA_FILE))
result: dict[str, str] = json.loads(metadata_path.read_text(encoding="utf-8"))
skill = Skill.from_content(await sandbox.read_text(md_path), strict=self._strict)
content = skill_md_path.read_text(encoding="utf-8")
content = await active.read_text(path)
file_content = await sandbox.read_text(file_path)
file_content = await sandbox.read_text(file_path)
file_text = await sandbox.read_text(file_path)
content = await active.read_text(path)
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_bytes(content)
os.unlink(tmp_path)
shutil.rmtree(session_dir)
with open(tmp_path, "wb") as f:
os.unlink(tmp_path)
os.unlink(path)
await self._sandbox.write_text(self._artifact_path(self._METADATA_FILE), json.dumps(self._content_types))
host_path.write_bytes(content)
metadata_path.write_text(json.dumps(self._content_types), encoding="utf-8")
await active.write_text(path, content.replace(old_str, new_str, 1))
await sandbox.write_text(file_path, file_text)
await sandbox.write_text(file_path, new_content)
await sandbox.write_text(file_path, new_content)
await active.write_text(path, content)
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.
import httpx
async with httpx.AsyncClient(timeout=self.timeout) as client:
async with httpx.AsyncClient(timeout=self.timeout) as httpx_client:
import httpx
async with httpx.AsyncClient(timeout=httpx.Timeout(30.0)) as client:
error = httpx.HTTPStatusError(message, request=response.request, response=response)
import httpx
import httpx
import httpx
timeout_obj = httpx.Timeout(
connect=timeout[0] if len(timeout) > 0 else None,
read=timeout[1] if len(timeout) > 1 else None,
write=timeout[2] if len(timeout) > 2 else None,
po …timeout_obj = httpx.Timeout(timeout or 30.0)
self.client = httpx.AsyncClient(
base_url=self.base_url,
timeout=timeout_obj,
)import httpx
return httpx.Response(response.status_code, headers=headers, content=response_body, request=step)
translated_request = httpx.Request(
str(request.method), str(request.url), headers=request.headers.raw, content=_loaded_content(request)
)import httpx
import urllib.request
req = urllib.request.Request(url, headers={"User-Agent": "strands-agents-sdk"}) # noqa: S310with urllib.request.urlopen(req, timeout=30) as response: # noqa: S310
import httpx
active_client = httpx.AsyncClient()
import httpx
active_client = client if client is not None else httpx.AsyncClient(follow_redirects=True)
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 MCP tool surface (manifest or tool definitions) was found.
@tool(context=True)
@tool(context=True)
@tool(context=True)
@tool(name="noop", description="This is a fake tool that MUST be completely ignored.")
@tool(context=True)
@tool(context=True)
@tool(name=name, description=description)
@tool(name=name, description=description, context="tool_context")
@tool(name=name, description=description, context="tool_context")
@tool(name=name, description=description, inputSchema={"json": input_schema}, context="tool_context")@tool(name=name, description=description, context="tool_context")
@tool(name=name, description=description, context=True)
@tool(name=name, description=description, context="tool_context")
@tool(name=name, description=description, context="tool_context")
@tool(name=name, description=description, context="tool_context")
@tool(name=name, description=description, context="tool_context")
@tool(name=name, description=description, context="tool_context")
@tool(name=name, description=resolved_description)
@tool(name=name, description=description, context="tool_context")
@tool(name=name, description=description, inputSchema={"json": input_schema}, context="tool_context")@tool(name=name, description=resolved_description, context=True)
@tool(name=name, description=resolved_description, context=True)
@tool(name=name, description=description, context="tool_context")
Why it matters: Just context — review which tools it offers and their permissions.
Fix: Review the declared MCP tools and their permissions.
How attackers abuse these capabilities
Interactive labs on the attack class behind the rules above. They show the technique, not anything found in strands-agents.
Maintain strands-agents?
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 →