Skip to main content
SkillTotal

Is strands-agents safe?

No malicious indicators - review capabilities before installing
Notable — review in context (a capability is not a malicious indicator):
  • 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

PyPI package · pypi:strands-agents
LOW
0
/ 100 risk score
Snapshot · scanned Nov 21, 2026 · strands-agents@1.65.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 strands-agents's authors. Report a false positive.

Capabilities — what this component can do (not a risk score):
filesystem readfilesystem writemcp tools detectednetwork egressshell execution

Behavioral traits

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

Tool surface
Tool Usage
Execution authority
Tool Access Control / Direct Tool Access
Filesystem reach
Tool Execution Context
Network egress
Interaction & Communication / Direct Communication

Findings (5)

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

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.

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

The component reads files from disk.

raw = package_copy.read_text(encoding="utf-8")
return self._resolve_path(path).read_bytes()
with open(path, encoding="utf-8") 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.

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

The component writes or deletes files on disk.

with open(tmp_path, "wb") as f:
await self._sandbox.write_text(self._artifact_path(self._METADATA_FILE), json.dumps(self._content_types))
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.

CapabilityPython network egressnot scored · severity mediumST-NET-PY

The component makes outbound network requests.

async with httpx.AsyncClient(timeout=self.timeout) as client:
async with httpx.AsyncClient(timeout=self.timeout) as httpx_client:
async with httpx.AsyncClient(timeout=httpx.Timeout(30.0)) as client:
error = httpx.HTTPStatusError(message, request=response.request, response=response)
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,
        )
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)
            )
req = urllib.request.Request(url, headers={"User-Agent": "strands-agents-sdk"})  # noqa: S310
with urllib.request.urlopen(req, timeout=30) as response:  # noqa: S310
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.

CapabilityMCP tool surface detectednot scored · severity lowST-MCP-DETECTED

An MCP tool surface (manifest or tool definitions) was found.

@tool(name="noop", description="This is a fake tool that MUST be completely ignored.")
@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?

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 →