Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

aisquare

Latest version: v2.1.0rc3

Overview

Last scanned
20 Nov 2026
Published
20 Nov 2026
PyPI package Publisher: adityasaini-aisq, arbindpd96, reaper_113
3 Versions
4.0K Downloads

Scan summary

aisquare was last scanned on 20 Nov 2026 at version 2.1.0rc3. Risk score 45 of 100 (medium). No malicious behavior was detected.

  • Releases: 3 versions, all published within 4 days (17–20 Nov 2026).
  • Findings: 3 rules fired in version 2.1.0rc3 (6 instances: 6 medium). The score describes this version only.
  • Downloads: 4,041 downloads.

Versions

3 versions published
Versions and the rules that fired in each
VersionPublishedStatus
2.1.0rc3 LATEST 20 Nov 2026 3 rules fired
2.1.0rc2 19 Nov 2026 3 rules fired
2.1.0rc1 17 Nov 2026 3 rules fired

Rules fired in 2.1.0rc3: 3

Findings

6 Medium

Findings for v2.1.0rc3. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

Code decoded and executed

The code decodes or decrypts a string and executes code built from it, for example eval(atob(...)) or exec(base64.b64decode(...)). This is a common way to hide code from review. On its own it is not evidence of malicious behavior.

MEDIUM

Encoded string decodes to a command or instruction

MEDIUM

Windows event logs cleared, including the Security and PowerShell logs

MEDIUM
Checking access…

🔒 Create a free account to see all 6 findings with descriptions and instance counts

The score describes 2.1.0rc3; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

AISquare Explainability SDK

Lightweight Python SDK for tracing, graphing, and policy auditing of AI agents. Captures execution traces from any Python agent (Agno, LangChain, plain Python) and delivers them to the AISquare Explainability Gateway.

Installation

pip install aisquare

That is everything init() needs, including its default OTLP transport. The explainability and otlp extras still resolve and add nothing.

For the recording proxy (aisquare-proxy), which also needs FastAPI and uvicorn:

pip install "aisquare[claude]"

For Agno auto-instrumentation:

pip install "aisquare[agno]"

For Google ADK auto-instrumentation:

pip install "aisquare[adk]"

For the OpenAI Agents SDK (the openai_agents extra carries the SDK runtime, so it installs alone; it also installs beside the gateway extra, whose openai pin admits the openai 3 that openai-agents needs):

pip install "aisquare[openai_agents]"

To check a signed AISquare receipt yourself with aisquare-verify (it needs only the cryptography library, which this extra installs; see docs/reference/check-a-receipt.md in the repository):

pip install "aisquare[verify]"
aisquare-verify receipt.json --public-key key.json

A receipt someone made on request (a workspace on on-demand receipts) is checked against the fingerprint of AISquare's root key, which you take from AISquare out of band, never from the file:

aisquare-verify receipt.aisq.json --root <root key fingerprint>                 # offline
aisquare-verify receipt.aisq.json --root <fingerprint> --gateway https://...    # and ask online

The online check adds what only AISquare can say now: whether the receipt was withdrawn, erased or has expired, and whether its issuance is anchored.

Quick start

Every trace needs an agent identity on its root span — agent_name is the key the gateway routes traces by. Name your agent explicitly and pre-register it:

# .env: EXPLAINABILITY_GATEWAY_URL, EXPLAINABILITY_API_KEY,
# EXPLAINABILITY_AGENTS=support-bot   <- pre-registers; must equal agent_name below
import aisquare.explainability as sdk

sdk.init_from_env()

with sdk.AgentRunTracer(agent_name="support-bot"):
    with sdk.LLMCallTracer(model="gpt-4o", provider="openai") as llm:
        ...  # your agent logic — nested spans inherit the run's routing identity

# IMPORTANT for short-lived scripts: flush ensures traces reach the gateway
# before the process exits. Long-running services don't need this.
sdk.flush()

Using a framework instead of manual tracers? The identity contract is the same — the agent's explicit name becomes agent.name on the root span: Agno Agent(name="support-bot"), LangChain metadata={"agent_name": "support-bot"}, or AgentRunTracer(agent_name="support-bot") around code with no framework. The tools a LangChain model is bound to (create_agent, LangGraph, bind_tools) are recorded without being passed.

Automatic governance

Enable governance through the same initialization as tracing:

sdk.init_from_env(auto_instrument="agno", governance=True)
# Run ordinary framework agents and tools; no wrapper is needed.

That snippet runs on the .env from the quick start above, and the EXPLAINABILITY_AGENTS=support-bot line there is doing more than pre-registration: a roster of exactly one name is also the process's default agent identity. governance=True builds a policy client inside init(), and without an identity it raises before installing anything, so the process exits 1:

GovernanceConfigError: PolicyClient needs a studio to check against, and nothing in this process resolved one.

The message continues with a line per setting that resolves an identity, any one of which is enough. Set AISQUARE_AGENT_NAME=support-bot to state it outright rather than lean on the roster, because a roster of two or more names supplies no default identity and governance=True exits 1 there too. init(agent_name=...) also satisfies it. EXPLAINABILITY_STUDIO_ID lets init() start, but it pins the rule book, not the trace identity: with no name set, trace roots carry no agent.name and the gateway refuses them with a 409, and each check is filed under the framework's name. Set a name beside it.

Governance defaults off. Supported adapters are Agno, Google ADK, LangChain, the OpenAI Agents SDK and Pydantic AI, and init(governance=True, auto_instrument=...) is what arms them. Code with no framework passes auto_instrument=False: the same setup line then checks its @check_tool (and @trace_tool) calls before they run, the reply a @check_reply() function returns before it is sent, and the person's message given to check_message(text) before the model reads it, each under the enclosing AgentRunTracer's agent. See Lifecycle and compatibility.

Upgrading from 1.3.0

GovernedAgent is removed. One way connects an agent: init(governance=True, auto_instrument=...), naming the framework, or auto_instrument=False for code with no framework, whose tool calls, replies, messages, retrievals and file writes check_tool, check_reply, check_message, check_retrieval and check_file_write then check. Importing GovernedAgent raises ImportError saying so. Praxis lessons (AISQUARE_PRAXIS_INJECT=true) now need init(governance=True); a tracing-only process gets none. Its rule_book= argument goes with it: rule books are set up in the AISquare platform and attached to an agent there. The pre-adapter governance modules adapters.agno_governance and adapters.openai_agents_governance are removed, so is adapters.langchain_governance (its span enrichment is now internal to the LangChain adapter), and governance.runtime keeps only record_on_span.

Governance defaults off. The Agno, Google ADK and LangChain adapters defaulted to governance=True in 1.3.0, which installed each framework's legacy governance module. They default to off now, so a process that configured studio credentials and called init(auto_instrument=...) with no governance= argument traces and makes no policy call at all. What that costs is not the same for each framework.

Google ADK loses enforcement, not just telemetry. 1.3.0 attached a plugin to every ADK Runner that gated each tool call before it ran (a block replaced the tool's result with {"status": "blocked_by_policy", ...} and the tool never executed) and checked the run's final output once. Neither is installed now.

What 1.3.0 actually delivered depends on the shape, so measure yours before you read this line as a loss. Measured on google-adk 2.9.1, with the wrapper built around the same Agent object the Runner is given, 1.3.0's pre-tool gate never fired: the plugin attached and its hook ran, but ADK hands the run a copy of the agent while the plugin routes on object identity, so the denied tool RAN and the one policy call the run made was the legacy observe-only output check. In that shape an upgrade loses an observe-only check, not a working gate. One line restores the gate and goes past what 1.3.0 did:

sdk.init_from_env(auto_instrument="adk", governance=True)

A denied tool call raises PolicyDenied out of runner.run_async instead of feeding a dict back to the model, and the run's events are held until the output check passes instead of being checked after delivery.

Before assuming 1.3.0 was enforcing for you: that plugin found its kernel by the identity of the object you wrapped, and google-adk 2.x hands the callback a per-invocation clone of your agent. Measured on google-adk 2.9.1, the lookup missed, the pre-execution gate returned no verdict and the tool ran. The init(governance=True) path does not depend on that lookup.

Google ADK traces route by the root agent's name. The trace root carries the root Agent(name=...) as agent.name (each agent span carries its own agent's name), and the gateway routes the trace by it (#958). In 1.3.0 the root span carried the default identity (AISQUARE_AGENT_NAME or init(agent_name=...)) instead. A process whose default identity differs from its ADK agent's name now files its traces, and its governance checks, under the agent's name; on a workspace key that name is registered as an agent of the same workspace on first sight. Set the two equal to keep one identity.

Google ADK code executors are gated as a tool call. With governance armed, the code a client-side BaseCodeExecutor (UnsafeLocalCodeExecutor, container, Vertex AI, GKE, Agent Engine, or your own subclass) is handed is checked in the tool_call scope before it runs, under the tool name code_execution (_adk_hooks._CODE_EXECUTION_TOOL) with the code as its one parameter ({"code": ...}). A policy with a tool allowlist must list that name, or every executor run is denied. A skill script costs two checks (the skill tool call, then its code), ADK's own data-file exploration code is checked once per file, and on google-adk 1.x the check runs on the event loop, because ADK 1.x calls the executor inline there.

Google ADK answer tools are output, not tool calls. A call to finish_task (a mode="task" agent's answer) or set_model_response (an output_schema agent's answer when it also has tools) is graded in its agent's llm_output check, and ADK's own classes for them are exempt from the tool gate, so an allowlist does not list them. Their names are read from the installed ADK when governance arms, under the same missing-name rule as every patched boundary: an ADK with task mode but no FinishTaskTool refuses init(governance=True) naming it, and google-adk 2.7.0, which does not export the finish-task wrapper key, reads it as result, the value it hardcodes. An agent driven with agent.run_async(ctx) and no Runner is held and graded like a Runner's run.

LangChain loses one telemetry signal and a billable call, and no enforcement. Tracing-only init used to make one policy.scope="llm_output" call per chain end and stamp the policy.* span attributes; it now makes none. That is deliberate: a tracing-only install should not make a billable enforcement call, 1.3.0 documented no way to switch it off, and it withheld nothing in any case, because the legacy check ran with raise_on_block=False and discarded its verdict. It affects every init(auto_instrument="langchain") process, not only code that built the callback handler by hand. governance=True brings the checks back as real gates. The same applies to an adapter built by hand, on all five: AgnoAdapter, ADKAdapter, LangChainAdapter, OpenAIAgentsAdapter or PydanticAIAdapter with governance=True arms the real gates, so instrument() raises GovernanceConfigError unless gateway credentials resolve. In 1.3.0 governance=True was the default on the first three and installed the observe-only patches.

adapters.adk_governance.install_governance_patches() raises. That module shipped in the 1.2.0 wheel under a public name and its own docstring taught the import. The implementation is gone: the call raises RuntimeError naming init(governance=True, auto_instrument="adk") as what installs ADK governance instead, because an empty patch list would read as "nothing to install here" and leave the caller believing ADK is governed. Its uninstall_governance_patches() is a no-op.

Agno loses its observe-only output check and two enrichers. 1.3.0's default install added a post-hook to every Agent and Team that made one llm_output check per run with raise_on_block=False, so it withheld nothing, and stamped policy.decision on the span. Tracing-only init now makes no policy call and stamps no policy.* attribute. That install also registered the team_routing and tool_selection span enrichers; init(auto_instrument="agno") does not. The agent span's system prompt is read from the agent's own fields (system_message, else description, role, instructions, expected_output and additional_context) and not from agno's get_system_message(), so the sections agno adds at run time (tool instructions, the <additional_information> block, a Team's member list) are not in it.

Structured answers are graded as the values the caller reads. On every adapter, a structured answer (an agno output_schema result, a Pydantic AI structured result.output, an ADK answer-tool call, a LangChain tool call, or JSON the model wrote for a declared schema) is graded as its keys and string values, raw, then their JSON (adapters/_answer.py), not as its str() or json.dumps, which escape every newline and quote the model wrote, and not through its serializer: a pydantic model is read field by field, so Field(exclude=True), SecretStr, a masking serializer or a subset model_serializer hide nothing from the gate, and a RootModel[str] is graded as the string itself. A leaf the renderer cannot read as the caller reads it refuses the answer with a GovernanceConfigError naming it: a computed field that raises, or a value of a class the author wrote, whose str() shows whatever that class chose rather than the value. The same reading renders a Pydantic AI tool call's validated arguments for the tool gate. A rule written for text answers matches the same record in a structured one. The trade-off: a keyword a schema key contains matches, and a threshold rule on output_length reads a structured answer at about twice its JSON length, so a rule sized on text answers can deny a structured answer it allowed (measured: a four-field pydantic model with a 228-character repr and 234-character JSON is graded as 444 characters).

One default agent name. init(agent_name=...) owns the process default agent identity. A governance_config agent_name is a second spelling of it, in init() or in get_adapter(..., governance_config=...): equal, or given alone, it becomes the default for traces and governance alike, and two different names raise ValueError (identity.one_default_agent_name). That rule also runs under init(governance=False) when a governed adapter armed outside init() disagrees. A blank or whitespace-only name is absent: the default applies. A governed init() or init_from_env() that names no agent raises ValueError when the environment's name (AISQUARE_AGENT_NAME, EXPLAINABILITY_AGENT_NAME or a one-entry roster) differs from a name an adapter armed outside init() holds. A repeated governed init() refuses a changed EXPLAINABILITY_STUDIO_ID the way it refuses a rotated key.

The SQLite inbox is gone; OTLP is the one transport. init() and init_from_env() send every span as OTLP/HTTP protobuf to /v1/traces. A bundle the gateway does not take is kept in a per-process outbox, explainability_outbox.<pid>-<uuid8>.db in EXPLAINABILITY_OUTBOX_DIR, else in the directory of inbox_path / EXPLAINABILITY_INBOX_PATH (the working directory by default), and a retrier thread posts it again. A later process adopts the outbox file of a process that exited. EXPLAINABILITY_TRANSPORT=inbox or transport="inbox" logs one WARNING and runs OTLP; any other value but otlp raises ValueError. sweep_interval and max_retry are accepted and ignored. These variables are no longer read: EXPLAINABILITY_OUTBOX, EXPLAINABILITY_OTLP_INBOX_FALLBACK, EXPLAINABILITY_INBOX_QUEUE_MAX, EXPLAINABILITY_INBOX_QUEUE_MAX_BYTES, EXPLAINABILITY_INBOX_BATCH_SIZE, EXPLAINABILITY_INBOX_STAGING_MAX_BYTES, EXPLAINABILITY_INBOX_SPILL_PATH, EXPLAINABILITY_INBOX_SPILL_MAX_BYTES, EXPLAINABILITY_FINAL_SWEEP_CONCURRENCY, the EXPLAINABILITY_EXPORTER_* flush windows and EXPLAINABILITY_OTEL_PROCESSOR. An old inbox file left at inbox_path is delivered once: the first init() after the upgrade posts its pending rows (each under its own key, or the configured key) to /v1/traces/ingest off the calling thread, then renames the file explainability_inbox.db.migrated. A gateway that is down leaves the file for the next start.

shutdown(timeout=...) bounds the outbox drain. It tries every pending outbox bundle once inside the timeout; bundles it did not send stay in the outbox file for the next process that adopts it.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases aisquare

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Frame 2085668439 (1)
Group 1261154229