Back to skill

Security audit

inference-aiops

Security checks for vulnerabilities and agentic risk

Overview

Review before production use: this skill can interrupt inference services, and MCP commands lack enforced approval checks.

Start with access restricted to read and metrics endpoints. Before permitting writes, enforce approval outside the model for the exact target and change; audit logs and undo are not authorization controls. Keep developer mode disabled in production, protect configured endpoints and credentials, and test changes on a non-production cluster. The Review verdict rests on these documented control gaps, not SkillSpector's score or its incomplete inspection.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (1)

T09 · Insecure Skill Coding Practices

Warning
Location
references/agent-guardrails.md
Finding

Disruptive MCP writes rely on voluntary confirmation

Content
View full analysis

Impact

An unapproved tool invocation can interrupt inference availability or drop live requests on the configured target.

Vulnerability Patterns
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Rogue AgentSelf-Modification, Session Persistence
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (8)

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
70% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · references/cli-reference.md (reported line 17)May include surrounding context.

bash
inference-aiops init                      # interactive wizard: engine (vllm/sglang/tgi) + host + port
inference-aiops doctor [--skip-auth]      # config + secret store + connectivity — vLLM: Ray + vLLM; SGLang/TGI: engine health + inventory
inference-aiops mcp                       # start the MCP server (stdio transport)

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
70% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · references/setup-guide.md (reported line 125)May include surrounding context.

text

`doctor` checks the config file, the encrypted store and its permissions (if a
token is configured), and — unless `--skip-auth` — connectivity. For a **vLLM**
target it probes the **Ray dashboard** and **vLLM** independently, so a half-up
cluster is reported precisely; for a **SGLang / TGI** target it probes the
engine's health endpoint and running-model inventory (no Ray).

Session Persistence

Medium
Category
Rogue Agent
Confidence
60% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · SKILL.md (reported line 23)May include surrounding context.

md
metadata: {"openclaw":{"requires":{"anyBins":["inference-aiops","uvx"]},"optional":{"env":["INFERENCE_AIOPS_CONFIG","INFERENCE_AIOPS_MASTER_PASSWORD"]},"homepage":"https://github.com/AIops-tools/Inference-AIops","emoji":"🚀","os":["macos","linux"]}}
compatibility: >
  Standalone, self-governed GPU-inference operations. The governance harness (audit, policy, token/runaway budget, undo, risk-tiers) is bundled in the package — no external skill-family dependency.
  All write operations are audited to a local SQLite DB under ~/.inference-aiops/ (relocatable via INFERENCE_AIOPS_HOME).
  Auth: a bearer token is OPTIONAL — many vLLM / Ray stacks run open. When the API requires one it is stored ENCRYPTED in ~/.inference-aiops/secrets.enc (Fernet/AES-128 + scrypt-derived key) — never plaintext on disk. Run 'inference-aiops init' to onboard, or 'inference-aiops secret set <target>' to add one. The store is unlocked by a master password from INFERENCE_AIOPS_MASTER_PASSWORD (non-interactive/MCP/CI)

Unsafe Defaults

Medium
Category
Tool Misuse
Confidence
85% confidence
Finding

The troubleshooting workflow recommends restarting vLLM with developer mode enabled to recover unavailable Sleep Mode routes, expanding the server's exposed administrative surface. Its production caveat reduces the risk, but it does not require isolation or access controls before enabling traffic-disrupting endpoints on an inference service.

Content

Scanner excerpt · SKILL.md (reported line 137)May include surrounding context.

md
not suspend
4. Verify: `model_is_sleeping` reports true, and GPU memory has been released (`gpu_utilization`)
5. Resume with `model_wake` (medium risk), or `inference-aiops undo apply <id>` to replay the recorded inverse. `model_wake` itself records **no** undo: vLLM reports whether the engine sleeps but never at which level, and guessing between level 1 and level 2 would be inventing a prior state
6. **Failure branch**: if any of the three tools reports that the route does not exist, the server was **not** started with `VLLM_SERVER_DEV_MODE=1`. That is a server start-up flag, not a fault in the tool and not a stale id — restart vLLM with the flag, or leave Sleep Mode off if this is a production deployment that should not expose it.

> vLLM has **no** in-place base-model swap. Sleep Mode suspends and resumes the *same* model; serving a different base model means restarting vLLM with a different `--model`. For adapter-level changes use `lora_load` (reversible) and `lora_unload` (high).

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
91% confidence
Finding

The documented MCP interface permits disruptive writes without an enforced read-only mode or approval gate; preview and confirmation depend on the model following prompt instructions. When connected with write-capable access, a mistaken or prompt-injected agent can scale to zero, drain replicas, or undeploy serving workloads, and auditing does not prevent the outage. Recommended network restrictions mitigate this only when independently implemented.

Content

Scanner excerpt · references/agent-guardrails.md (reported line 15)May include surrounding context.

md
## Authorization is not this tool's job — decide it where it belongs

Whether a write should happen is your decision, or the environment's. The tool
does not gate it — there is no read-only switch and no approval prompt to
configure. The two right places to control read vs write:

- **The environment you connect it to.** Restrict the network path so the tool

Unsafe Defaults

Medium
Category
Tool Misuse
Confidence
60% confidence
Finding

Tool defaults are unsafe or overly permissive (e.g. disabled TLS verification, no authentication, world-writable permissions). Unsafe defaults widen the attack surface.

Content

Scanner excerpt · references/capabilities.md (reported line 66)May include surrounding context.

md
| `model_sleep` | write (**high**) | vLLM | `POST /sleep?level=N` | dev-mode only; dry-run; level 1 offloads weights to CPU RAM, 2 discards them; captures `wasSleeping` → undo wakes only what it suspended |
| `model_wake` | write (med) | vLLM | `POST /wake_up` | dev-mode only; dry-run; records **no** undo — vLLM never reports the prior sleep *level*, so re-sleeping would be a guess |

> **Sleep Mode needs `VLLM_SERVER_DEV_MODE=1`.** vLLM registers `/sleep`, `/wake_up`
> and `/is_sleeping` only under that flag, so on a normal production server these
> three tools report that the route does not exist and why — a 404 here means the
> server was not started in dev mode, not that an id was stale. Sleep Mode suspends

Unsafe Defaults

Medium
Category
Tool Misuse
Confidence
80% confidence
Finding

Tool defaults are unsafe or overly permissive (e.g. disabled TLS verification, no authentication, world-writable permissions). Unsafe defaults widen the attack surface.

Content

Scanner excerpt · references/cli-reference.md (reported line 17)May include surrounding context.

bash
inference-aiops init                      # interactive wizard: engine (vllm/sglang/tgi) + host + port
inference-aiops doctor [--skip-auth]      # config + secret store + connectivity — vLLM: Ray + vLLM; SGLang/TGI: engine health + inventory
inference-aiops mcp                       # start the MCP server (stdio transport)

Unsafe Defaults

Medium
Category
Tool Misuse
Confidence
80% confidence
Finding

Tool defaults are unsafe or overly permissive (e.g. disabled TLS verification, no authentication, world-writable permissions). Unsafe defaults widen the attack surface.

Content

Scanner excerpt · references/setup-guide.md (reported line 125)May include surrounding context.

text

`doctor` checks the config file, the encrypted store and its permissions (if a
token is configured), and — unless `--skip-auth` — connectivity. For a **vLLM**
target it probes the **Ray dashboard** and **vLLM** independently, so a half-up
cluster is reported precisely; for a **SGLang / TGI** target it probes the
engine's health endpoint and running-model inventory (no Ray).