Back to skill

Security audit

huawei-cloud-modelarts-vllm-ascend-model-deploy

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious with medium confidence, reporting serious transport, credential, and deployment risks alongside undeclared host changes and broad deployment guidance.

Treat this as a high-risk install decision. Before installing, review whether you accept the reported TLS and credential exposure, public inference access, root-level host changes, and deployment image or installer trust risks. Skillspector coverage was partial (67 of 68 components, with one partially inspected and a degraded static tool-misuse analyzer), so the evidence is incomplete.

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 (4)

T09 · Insecure Skill Coding Practices

Error
Location
.
Finding

Unauthenticated proxy administration permits backend replacement and conditional credential disclosure

Content
View full analysis

Impact

Unauthorized backend removal can disrupt inference. Registering an attacker-controlled receiver discloses OPENAI_API_KEY during health checking if a real key is configured, even before inference reaches that backend. An activated malicious backend can receive later inference request content. The destination control also provides a constrained server-side HTTP request primitive.

T09 · Insecure Skill Coding Practices

Error
Location
.
Finding

Disabled TLS verification exposes IAM passwords and cloud management tokens

Content
View full analysis

Impact

An active intermediary can capture IAM passwords or bearer tokens and inspect or alter management traffic. Subsequent unauthorized actions depend on the compromised identity's permissions and token validity.

T09 · Insecure Skill Coding Practices

Error
Location
.
Finding

Public HTTP inference instructions transmit authentication tokens without encryption

Content
View full analysis

Impact

Network observers can recover a supplied inference bearer token and reuse it within its authorization scope and validity. Prompts and generated responses also lack transport confidentiality and integrity; their sensitivity depends on the actual content.

T09 · Insecure Skill Coding Practices

Warning
Location
.
Finding

Mandatory insecure documentation retrieval allows deployment guidance tampering

Content
View full analysis

Impact

An intermediary can alter image-selection guidance or startup parameters used in generated deployment artifacts. The demonstrated consequence is loss of deployment-guidance integrity; arbitrary code execution was not established.

Vulnerability Patterns
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • YARA SignaturesMalware Match, Webshell Match, Cryptominer Match
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (125)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
88% confidence
Finding

The script is related to Ascend infrastructure, but its operational scope is privileged host-configuration maintenance rather than the described ModelArts deployment workflow. The description does not disclose modifying or deleting existing HIXL system configuration files. These are consequential changes to a separate resource, not merely generation of deployment artifacts. Preview-by-default and explicit execution confirmation reduce accidental changes but do not resolve the description–behavior mismatch.

Content

No source excerpt is available for this finding.

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
99% confidence
Finding

The skill mandates curl -k or --insecure for allowlisted third-party destinations, disabling TLS certificate authentication. Hostname allowlisting does not authenticate the server, so a network attacker could substitute model documentation, image-selection instructions, or configuration that the workflow subsequently treats as deployment authority.

Content

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

md
节点/PD/PD+多节点四套),填充模型文档参数后在本地产物目录保存为 `start_vllm.sh`/`health_check.sh` 上传。ModelArts 部署时**无需也不应**再传 `DEPLOY_FORM` 环境变量;PD 的 `VLLM_ROLE`、多节点的 `NODE_RANK`/`MASTER_ADDR` 等是**形式内部的实例属性**,由部署单元注入,不受此限制——**除 `VLLM_ROLE`(PD 分离由 ModelArts 3 个推理单元分别注入)外,脚本内参数(含 `PORT`/`TP_SIZE`/`DATA_PARALLEL_SIZE`/`PREFILL_DP_SIZE`/`DECODE_DP_SIZE` 等)均已在脚本中按方案固定填入默认值,无需 envs 注入**。
> **⚠️ 官方文档不可达时的强制降级与纠错机制**: 若 `docs.vllm.ai` 网络不可达,严禁改用论坛帖/博客/搜索摘要作为 tag 依据(这些是二手信息,版本常与模型文档不一致)。**先排查是否为 TLS 证书问题,再走降级**。正确做法按优先级:
> 0. **使用 curl 访问第三方服务时的安全约定**: 企业/云上环境常经安全代理(如 netentsec)转发公网请求,代理对目标站点做 TLS 中间人(MITM)证书替换,返回自签名/未知 CA 证书,默认校验失败报 `SSL certificate problem`。**执行前必须先校验目标 URL 主机名在白名单内**(docs.vllm.ai / quay.io / huggingface.co / modelscope.cn / *.myhuaweicloud.com / 127.0.0.1),**不在白名单的 URL 直接拒绝执行并请用户确认**;白名单校验通过后方可执行,必须携带 `-k`(或 `--insecure`)跳过代理 MITM 证书。校验逻辑(后缀匹配,允许子域前缀): 提取目标 host → 判断 `host in ALLOWED or any(host.endswith('.' + d) for d in ALLOWED)` → 不匹配则 `exit 1` 拒绝 → 匹配则放行执行(等效: `case "$host" in modelscope.cn|*.model

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
99% confidence
Finding

The diagnostic command disables certificate verification and treats an HTTP 200 or 302 response as justification to continue fetching documentation insecurely. Such a response proves neither server identity nor proxy legitimacy, allowing an active network attacker to supply deployment guidance; this is another occurrence of the TLS-bypass issue at line 48.

Content

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

md
rtificate problem`。**执行前必须先校验目标 URL 主机名在白名单内**(docs.vllm.ai / quay.io / huggingface.co / modelscope.cn / *.myhuaweicloud.com / 127.0.0.1),**不在白名单的 URL 直接拒绝执行并请用户确认**;白名单校验通过后方可执行,必须携带 `-k`(或 `--insecure`)跳过代理 MITM 证书。校验逻辑(后缀匹配,允许子域前缀): 提取目标 host → 判断 `host in ALLOWED or any(host.endswith('.' + d) for d in ALLOWED)` → 不匹配则 `exit 1` 拒绝 → 匹配则放行执行(等效: `case "$host" in modelscope.cn|*.modelscope.cn) ...;; esac` 兼容 `www.modelscope.cn`/`api.modelscope.cn` 等子域)。注意: `-k` 仅跳过证书校验,`-k` 后仍返回 000/超时才是真拦截;`-k` 后能拿到 200/302 即说明只是证书问题。内部/本地探活(如 `127.0.0.1` 健康检查)不使用 `-k`;
> 1. **先验证是否证书问题**: 按上述白名单校验通过后,执行 `curl -sk -o /dev/null -w "%{http_code}" --max-time 15` 探测目标(如 docs.vllm.ai 在白名单内),返回 200/302 → 加 `-k` 继续查文档,不降级;
> 2. **加 `-k` 仍不可达(代理真拦截/网络不通)**: 请求用户提供官方文档链接或页面内容(用户通常可访问,或给出如 `https://docs.vllm.ai/projects/ascend/zh-cn/latest/tutorials/models/<Model>.html` 的直达 URL);
> 3. **向用户明确披露**: "官方文档不可达,当前 tag 依据为 XX,存在不确定性,请协助确认"——不得在未披露的情况下按猜测推进;
> 4. 收到官方文档确认后,**无条件改用官方 tag**,并同步修正启动脚本与已上传 OBS 的产物(覆盖上传)。

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
99% confidence
Finding

The prerequisites repeat the requirement to bypass TLS verification for external curl requests, making insecure transport authentication a normal workflow behavior rather than an isolated diagnostic exception. The allowlist limits destination names but cannot prevent impersonation of those destinations by an on-path attacker.

Content

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

md
| **工作空间名** | 资源池/服务所属的 ModelArts 工作空间(如 `default` / `test`);**必须先确认工作空间名,再通过 API 查其 workspace-id**(`GET /v1/{project_id}/workspaces`,路径 `{project_id}` 必须用 UUID Project ID),后续 API 调用带 `X-Workspace-Id` 头;**workspace-id 不假设 UUID 格式**——多数工作空间 `id` 是 UUID,但 `default` 工作空间 `id` 实测为简写 `"0"`,以 API 返回值为准 | 用户确认工作空间名 + API 查询 workspace-id |
| 部署形式 + 节点数 | 3 种部署形式(single 单机部署 / multi_node 多机部署 / pd PD 分离部署)+ 用户可用节点数 ≥ 最小节点数(见步骤 1.2e;节点数按总卡数需求 = 部署单元(默认1)× 推理单元 × TP × 实例数 动态推导,超过单节点卡数则节点数>1,否则 1 节点即可;PD 分离三角色 proxy/prefill/decode 各自独立),确认后固定为方案输入,脚本按形式专用生成,不做运行时分支 | 模型文档核对 + 用户确认 |
| 模型权重来源 | HuggingFace 或 ModelScope 上的模型 ID;需结合 vllm-ascend 适配文档确认**权重格式**(如 BF16/W8A8)与下载来源 | 用户提供模型名 + 适配文档核对 |
| 网络 | 本地可访问 Quay.io / HuggingFace / ModelScope(必要时配代理或镜像站);**curl 访问第三方服务前先按"安全编码规范"校验目标 URL 主机在白名单内,再加 `-k` 跳过证书校验**(企业代理 MITM 常见,见"关键原则") | 实际执行验证 |
| 工具 | **OBS Python SDK(`esdk-obs-python`,上传部署产物必需)**、obsutil(可选,上传权重)、SWR 登录凭据、docker | 本机环境 |

## 交互式确认规范(强制,所有用户确认点必须遵守)

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
99% confidence
Finding

The model configuration fetch uses curl -sk, allowing a network attacker to replace config.json despite the ModelScope hostname check. Altered attention-head counts or architecture metadata could misdirect resource sizing and generated startup settings, causing deployment failures or unnecessary resource consumption; this fetch is not itself shown executing downloaded code.

Content

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

md
记录为方案输入 **`ATTENTION_HEADS`**。获取途径按优先级: ① 模型文档页面正文直接标注;② **从模型文档权重表 a 标签 href 提取真实下载链接拼接 config.json raw URL 获取**(主途径: 按用户选定权重版本匹配表格对应行,用 `re.findall(r'<a[^>]+href="([^"]+)"[^>]*>(.*?)</a>', body)` 正则提取该行 a 标签 href,**禁用 `re.sub(r'<[^>]+>',' ')` 去标签**(会丢失 href);取 href 末段为 model ID——**同一模型 BF16 与量化版可能在不同组织下**(如 Qwen3.8-27B BF16 = `Qwen/Qwen3.8-27B`,量化版 = `Eco-Tech/Qwen3.8-27B-w8a8`),**model ID 必须取自文档权重表对应权重版本行的 href,禁从启动代码示例 MODEL_PATH 跨权重版本推导**(启动示例常用量化版 MODEL_PATH,套用到 BF16 必下错);按 host 后缀匹配白名单后 `curl -sk` 拉取 `https://www.modelscope.cn/models/<id>/resolve/master/config.json`);③ **多模态/混合架构模型头数嵌套提取**(如 Qwen3.8-27B `Qwen3_5ForConditionalGeneration` 头数在 `text_config.num_attention_heads`,**先查顶层,为 None 时回退 `text_config`**);④ 用户权重 OBS 路径经 obsutil 读取;⑤ ①~④ 均不可得时 AskUserQuestion 让用户提供。
2. **计算合法 TP 候选 = 头数约数 ∩ 资源池卡数档位 ∩ 模型文档启动脚本 TP 值 ∩ 显存可容纳(KV cache 非负)**:
   - **头数约数**: H 的所有正约数(如 H=24 → 1/2/3/4/6/8/12/24)
   - **资源池卡数档位(按芯片型号直接推导,与 ShowInferServiceCluster 查询无关)**: **非 A3 芯片(910B(A2)/310P/950 系

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
99% confidence
Finding

This finding duplicates the insecure ModelScope config.json retrieval reported at the same line under finding-8466525ad64e48e580a503fec398fd2d. Disabling TLS verification permits on-path modification of configuration used for deployment planning, but the duplicate does not represent an additional independent attack surface.

Content

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

md
记录为方案输入 **`ATTENTION_HEADS`**。获取途径按优先级: 1 模型文档页面正文直接标注;2 **从模型文档权重表 a 标签 href 提取真实下载链接拼接 config.json raw URL 获取**(主途径: 按用户选定权重版本匹配表格对应行,用 `re.findall(r'<a[^>]+href="([^"]+)"[^>]*>(.*?)</a>', body)` 正则提取该行 a 标签 href,**禁用 `re.sub(r'<[^>]+>',' ')` 去标签**(会丢失 href);取 href 末段为 model ID——**同一模型 BF16 与量化版可能在不同组织下**(如 Qwen3.8-27B BF16 = `Qwen/Qwen3.8-27B`,量化版 = `Eco-Tech/Qwen3.8-27B-w8a8`),**model ID 必须取自文档权重表对应权重版本行的 href,禁从启动代码示例 MODEL_PATH 跨权重版本推导**(启动示例常用量化版 MODEL_PATH,套用到 BF16 必下错);按 host 后缀匹配白名单后 `curl -sk` 拉取 `https://www.modelscope.cn/models/<id>/resolve/master/config.json`);3 **多模态/混合架构模型头数嵌套提取**(如 Qwen3.8-27B `Qwen3_5ForConditionalGeneration` 头数在 `text_config.num_attention_heads`,**先查顶层,为 None 时回退 `text_config`**);4 用户权重 OBS 路径经 obsutil 读取;5 1~4 均不可得时 AskUserQuestion 让用户提供。
2. **计算合法 TP 候选 = 头数约数 ∩ 资源池卡数档位 ∩ 模型文档启动脚本 TP 值 ∩ 显存可容纳(KV cache 非负)**:
   - **头数约数**: H 的所有正约数(如 H=24 → 1/2/3/4/6/8/12/24)
   - **资源池卡数档位(按芯片型号直接推导,与 ShowInferServiceCluster 查询无关)**: **非 A3 芯片(910B(A2)/310P/950 系

The workflow mandates plaintext HTTP inference without warning about exposure of prompts, responses, or authentication tokens.

High
Category
Output Handling
Confidence
99% confidence
Finding

The workflow explicitly requires HTTP for a PUBLIC inference endpoint and constructs an unencrypted inference URL without warning about transport exposure. An attacker on the network path could read or alter prompts and responses and capture inference authentication tokens when present; the prototype-only disclaimer does not protect those values.

Content

No source excerpt is available for this finding.

The mandatory IAM authentication request disables TLS certificate verification without warning the user.

High
Category
Output Handling
Confidence
100% confidence
Finding

The mandatory IAM request sets verify=False while transmitting authentication credentials and receiving an access token. A network attacker capable of intercepting the connection could impersonate IAM, capture credentials or tokens, and use their associated cloud permissions.

Content

No source excerpt is available for this finding.

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
80% 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/modelarts-console-guide.md (reported line 117)May include surrounding context.

md
| 创建在线服务 | `POST /v2/{project_id}/services` |
| 查询服务列表 | `GET /v2/{project_id}/services` |
| 查询服务详情 | `GET /v2/{project_id}/services/{service_id}` |
| 删除服务 | `DELETE /v2/{project_id}/services/{service_id}`(路径以 API 文档为准) |
| 扩缩容 | UpdateInferDeploymentScale(路径以 API 文档为准) |
| 鉴权 | 请求头 `Authorization: Bearer <IAM Token>`(有效期 24h)或 AK/SK 签名 |
| 权限 | `modelarts:service:create`(Write)/ `modelarts:service:get`(Read) |

The deployment request template enables a public HTTP inference endpoint without authentication, but provides no warning about the exposure.

High
Category
Output Handling
Confidence
100% confidence
Finding

The deployment template combines internet_access_enable=true with auth_type=NONE, exposing inference to unauthenticated public callers. In a resource-intensive NPU deployment, this permits unauthorized consumption, increased costs, and service exhaustion; public HTTP also lacks transport confidentiality unless protected by another layer.

Content

No source excerpt is available for this finding.

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
80% 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/modelarts-console-guide.md (reported line 306)May include surrounding context.

md
| 创建服务 | `POST /v2/{project_id}/services` | `create` |
| 查询服务列表 | `GET /v2/{project_id}/services` | `list` |
| 查询服务详情(状态 + 调用端点) | `GET /v2/{project_id}/services/{service_id}` | `show` |
| 删除服务 | `DELETE /v2/{project_id}/services/{service_id}` | `delete` |
| 扩缩容 | UpdateInferDeploymentScale | `scale` |
| 切换部署版本 | SwitchInferDeploymentVersion | — |

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
99% confidence
Finding

The -k parameter disables certificate authentication even for an allowlisted hostname, permitting an on-path attacker to supply modified responses. Because the responses inform deployment image selection, this weakens a security boundary in the deployment supply chain.

Content

Scanner excerpt · references/troubleshooting.md (reported line 26)May include surrounding context.

md
分离)**: ① 核对 Prefill/Decode 双角色 `VLLM_ROLE` 注入正确与脚本内按角色内置的 `PORT`(proxy=8080/prefill=8080/decode=7100)未冲突;② 核对节点角色判定(经 `get_master_ip.py` 读 rank table)与端口网络可达。**multi_node(单引擎)**: ③ 放通 `--data-parallel-rpc-port`(13389);④ 核对 `get_master_ip.py` 读 rank table 角色判定正确 |
| 模型不支持 | 不在 vllm-ascend 支持列表 | 换支持列表内模型,或告知用户需自行适配 |
| 访问 docs.vllm.ai / quay.io 等第三方站点报 `SSL certificate problem: self-signed certificate in certificate chain`,或 curl 000(非代理真拦截) | **企业/云上代理对目标站点做 TLS 中间人(MITM)证书替换**,本机不信任其 CA;`getent`/直连 DNS 可能不通,但 curl 走代理不受影响 | ① 先按"安全编码规范"校验 URL 主机在白名单内(docs.vllm.ai 等),再重新用 `curl -sk <url>`(跳过证书校验)访问——多数场景实际可达;② `-k` 仅跳过证书校验,不影响"以官方文档为准"的 tag 决策;③ 若 `-k` 后仍 000/超时,才是代理白名单真拦截(如部分环境 github.com / modelscope.cn),再走降级机制 |
| 拉取镜像失败 | Quay.io 网络受限 | 配置代理;或找镜像站/自行构建后推送 SWR |
| 多机部署卡住 | HCCL 网络不通 | 检查节点间网络互通、安全组放通 |
| 跨节点 TP 部署(multi_node)报业务错误 | **超节点亲和组实例数未配置或不等于 N** | ModelArts 部署配置"超节点亲和组实例数"=N(实例数: 跨节点子场景 N=跨节点数,单节点多实例子场景 N=实例数),确保多实例调度到同一超节点(参见 ModelArts 故障排除 inference2.0-modelarts-0042) |

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
99% confidence
Finding

This finding identifies the same TLS-bypass instruction as the other TM1 finding at this location. Disabling verification makes purported official documentation replaceable by an on-path attacker; URL allowlisting does not prevent that substitution.

Content

Scanner excerpt · references/troubleshooting.md (reported line 26)May include surrounding context.

md
分离)**: 1 核对 Prefill/Decode 双角色 `VLLM_ROLE` 注入正确与脚本内按角色内置的 `PORT`(proxy=8080/prefill=8080/decode=7100)未冲突;2 核对节点角色判定(经 `get_master_ip.py` 读 rank table)与端口网络可达。**multi_node(单引擎)**: 3 放通 `--data-parallel-rpc-port`(13389);4 核对 `get_master_ip.py` 读 rank table 角色判定正确 |
| 模型不支持 | 不在 vllm-ascend 支持列表 | 换支持列表内模型,或告知用户需自行适配 |
| 访问 docs.vllm.ai / quay.io 等第三方站点报 `SSL certificate problem: self-signed certificate in certificate chain`,或 curl 000(非代理真拦截) | **企业/云上代理对目标站点做 TLS 中间人(MITM)证书替换**,本机不信任其 CA;`getent`/直连 DNS 可能不通,但 curl 走代理不受影响 | 1 先按"安全编码规范"校验 URL 主机在白名单内(docs.vllm.ai 等),再重新用 `curl -sk <url>`(跳过证书校验)访问——多数场景实际可达;2 `-k` 仅跳过证书校验,不影响"以官方文档为准"的 tag 决策;3 若 `-k` 后仍 000/超时,才是代理白名单真拦截(如部分环境 github.com / modelscope.cn),再走降级机制 |
| 拉取镜像失败 | Quay.io 网络受限 | 配置代理;或找镜像站/自行构建后推送 SWR |
| 多机部署卡住 | HCCL 网络不通 | 检查节点间网络互通、安全组放通 |
| 跨节点 TP 部署(multi_node)报业务错误 | **超节点亲和组实例数未配置或不等于 N** | ModelArts 部署配置"超节点亲和组实例数"=N(实例数: 跨节点子场景 N=跨节点数,单节点多实例子场景 N=实例数),确保多实例调度到同一超节点(参见 ModelArts 故障排除 inference2.0-modelarts-0042) |

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
100% confidence
Finding

Mandatory curl -k disables server certificate verification for documentation used to select deployment images and generate executable startup scripts. An active network attacker could replace those instructions or image references, turning a documentation-fetch weakness into deployment supply-chain compromise.

Content

Scanner excerpt · references/vllm-ascend-model-doc-guide.md (reported line 19)May include surrounding context.

md
> - `latest` 对应最新文档;若模型页面标注适配版本(如 `v0.23.0`),建议对照固定版本路径确认内容一致。
> - 一个模型系列可能共用一个页面,如 `Qwen3.5-27B-Qwen3.6-27B.html`;也可能按量化/芯片变体拆分为多个页面(如 `xxx-W8A8-310p`)。
>
> **访问方式(强制)**: 用 curl 抓取上述第三方站点(docs.vllm.ai、quay.io 等)时必须加 **`-k`(跳过证书校验)**——企业/云上代理常对公网站点做 TLS 中间人(MITM)证书替换,不带 `-k` 会报 `SSL certificate problem: self-signed certificate in certificate chain` 而失败,误判为"网络不可达"。`-k` 后仍 000/超时才是代理真拦截(详见 SKILL.md"关键原则")。示例: `curl -sk https://docs.vllm.ai/projects/ascend/zh-cn/latest/tutorials/models/`。

## 二、模型页面常见结构(按需提取)

YARA rule 'backdoor_persistence': Backdoor persistence with malicious payloads (shell commands, SSH key injection, hidden root users) [malware]

High
Category
YARA Match
Confidence
75% confidence
Finding

YARA rule matched a known malware signature (reverse shell, backdoor, ransomware, C2 framework, or info stealer).

Content

Scanner excerpt · references/vllm-ascend-model-doc-guide.md (reported line 50)May include surrounding context.

PU 卡 export OMP_PROC_BIND=false export OMP_NUM_THREADS=1 # 或按核数 export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True export HCCL_BUFFSIZE=512 export TASK_QUEUE_ENABLE=1 export VLLM_USE_V1=1 # 启用 V1 引擎(部分版本/模型) export VLLM_USE_MODELSCOPE=true # 从 ModelScope 加载权重时 export LD_PRELOAD=/usr/lib/aarch64-linux-gnu/libjemalloc.so.2 # 多卡性能优化

text
值以页面给出的为准,未给出的不要擅自补。

2. **启动命令**: 新版文档多用 `vllm serve <model> --host 0.0.0.0 --port ...`,旧版用 `python -m vllm.entrypoints.openai.api_server ...`,二者等价,ModelArts 启动脚本任选一种改写为脚本即可。注意保留模型特有参数:
- 量化: `--quantization`(如 `w8a8`、`awq`)、`--kv-cache-dtype fp8`
- MoE 模型: `--enable-expert-parallel`
- 自定义代码: `--trust-remote-code`
- 并行: `--tensor-parallel-size <

The startup-script instructions preserve --trust-remote-code without warning that it permits execution of model-repository code.

High
Category
Output Handling
Confidence
96% confidence
Finding

The guide tells generated startup scripts to preserve --trust-remote-code without explaining that it authorizes execution of model-supplied Python code. Some models legitimately need this flag, but carrying it forward without review can execute a compromised repository's code with the inference container's data access and credentials.

Content

No source excerpt is available for this finding.

Concealed Executable Artifact

High
Category
Supply Chain
Confidence
100% confidence
Finding

An executable nested in a document or hidden/disguised artifact can evade ordinary extension-based review while still being available to the skill at runtime.

Content

No source excerpt is available for this finding.

Concealed Executable Artifact

High
Category
Supply Chain
Confidence
100% confidence
Finding

An executable nested in a document or hidden/disguised artifact can evade ordinary extension-based review while still being available to the skill at runtime.

Content

No source excerpt is available for this finding.

Concealed Executable Artifact

High
Category
Supply Chain
Confidence
100% confidence
Finding

An executable nested in a document or hidden/disguised artifact can evade ordinary extension-based review while still being available to the skill at runtime.

Content

No source excerpt is available for this finding.

Concealed Executable Artifact

High
Category
Supply Chain
Confidence
100% confidence
Finding

An executable nested in a document or hidden/disguised artifact can evade ordinary extension-based review while still being available to the skill at runtime.

Content

No source excerpt is available for this finding.

Concealed Executable Artifact

High
Category
Supply Chain
Confidence
100% confidence
Finding

An executable nested in a document or hidden/disguised artifact can evade ordinary extension-based review while still being available to the skill at runtime.

Content

No source excerpt is available for this finding.

Concealed Executable Artifact

High
Category
Supply Chain
Confidence
100% confidence
Finding

An executable nested in a document or hidden/disguised artifact can evade ordinary extension-based review while still being available to the skill at runtime.

Content

No source excerpt is available for this finding.

Concealed Executable Artifact

High
Category
Supply Chain
Confidence
100% confidence
Finding

An executable nested in a document or hidden/disguised artifact can evade ordinary extension-based review while still being available to the skill at runtime.

Content

No source excerpt is available for this finding.

Concealed Executable Artifact

High
Category
Supply Chain
Confidence
100% confidence
Finding

An executable nested in a document or hidden/disguised artifact can evade ordinary extension-based review while still being available to the skill at runtime.

Content

No source excerpt is available for this finding.

Concealed Executable Artifact

High
Category
Supply Chain
Confidence
100% confidence
Finding

An executable nested in a document or hidden/disguised artifact can evade ordinary extension-based review while still being available to the skill at runtime.

Content

No source excerpt is available for this finding.