Back to skill

Security audit

智护 AIOps

Security checks for vulnerabilities and agentic risk

Overview

This appears to be a legitimate AIOps integration, but it needs review because it can handle admin and host passwords over unsafe defaults and make persistent platform changes.

Install only for a trusted internal Zhihu AIOps deployment. Require HTTPS for non-local endpoints, use least-privilege platform accounts, avoid reusable host passwords where possible, confirm create/delete/import/export actions before running them, and make sure agent logs and platform logs redact passwords and tokens.

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

T09 · Insecure Skill Coding Practices

Error
Location
SKILL.md:38
Finding

Credential-Bearing API Requests Permit Plaintext HTTP Transport

Content
View full analysis
\", \"monitorPort\": \"\", \"monitorIp\": \"\", \"password\": \"\", \"pmMonitorType\": 2, \" ...[truncated 3857 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
SKILL.md:317
Finding

Passwords Are Embedded in Process Command-Line Arguments

Content
View full analysis
\", \"monitorPort\": \"\", \"monitorIp\": \"\", \"password\": \"\", \"pmMonitorType\": 2, \"modelCode\": \"operatesystem\" }" ``` ### Technical Analysis Shell expansion occurs before `curl` starts. Consequently, the expanded JSON body—including passwords—is passed to `curl` as a command-line argument. Depending on the opera ...[truncated 1960 chars]
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (36)

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
详细参数见:`references/api_victoriametrics.md`

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
详细参数见:`references/api_victoriametrics.md`

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
详细说明见:`references/api_snmp_metrics.md`

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
详细说明见:`references/api_snmp_metrics.md`

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
详细流程见:`references/add-os-monitor.md`

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
详细流程见:`references/add-os-monitor.md`

External Script Fetching

High
Category
Supply Chain
Confidence
90% confidence
Finding

Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.

Content

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

查询告警统计

bash
TOKEN=$(curl -sS -X POST "${ZHIHU_API_URL}/system/auth/login" \
  -H "Content-Type: application/json" \
  --data '{"username":"'"${ZHIHU_USER}"'","password":"'"${ZHIHU_PASSWORD}"'","captchaVerification":""}' \
  | python3 -c 'import sys,json; print((json.load(sys.stdin).get("data") or {}).get("accessToken", ""))')

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
- v1.0.0 (2026-05-28): 初始 ClawHub 注册版本,整理 `SKILL.md` 和 `references/`。

External Script Fetching

High
Category
Supply Chain
Confidence
90% confidence
Finding

Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.

Content

Scanner excerpt · references/add-os-monitor.md (reported line 46)May include surrounding context.

bash
API_URL="${ZHIHU_API_URL:-http://localhost:1024}"
TOKEN=$(curl -s -X POST "${API_URL}/admin-api/system/auth/login" \
  -H "Content-Type: application/json" \
  -d "{
    \"username\": \"${ZHIHU_USER:-admin}\",

External Script Fetching

High
Category
Supply Chain
Confidence
90% confidence
Finding

Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.

Content

Scanner excerpt · references/add-os-monitor.md (reported line 65)May include surrounding context.

2a. 通过模型列表查询 modelId

bash
MODEL_INFO=$(curl -s --connect-timeout 10 -X POST "${API_URL}/admin-api/cqt/asset-model/page" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer ${TOKEN}" \
  -d '{"pageNo":1,"pageSize":50}' | python3 -c "

External Script Fetching

High
Category
Supply Chain
Confidence
90% confidence
Finding

Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.

Content

Scanner excerpt · references/add-os-monitor.md (reported line 82)May include surrounding context.

2b. 通过 modelId 获取完整模型信息(含 items)

bash
curl -s --connect-timeout 10 -X POST "${API_URL}/admin-api/cqt/asset-model/get" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer ${TOKEN}" \
  -d "{\"id\": ${MODEL_INFO}}" | python3 -c "

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill’s title and descriptive instructions are presented only in Chinese, and the rest of the document continues in that locale. Under the policy provided, forcing a specific language without user opt-in is a natural-language policy violation unless the locale restriction is explicitly documented and justified.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

智护平台 API 使用登录接口获取访问令牌:

bash
curl -sS -X POST "${ZHIHU_API_URL}/system/auth/login" \
  -H "Content-Type: application/json" \
  --data '{
    "username": "'"${ZHIHU_USER}"'",

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

智护平台 API 使用登录接口获取访问令牌:

bash
curl -sS -X POST "${ZHIHU_API_URL}/system/auth/login" \
  -H "Content-Type: application/json" \
  --data '{
    "username": "'"${ZHIHU_USER}"'",

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

md
--data '{"username":"'"${ZHIHU_USER}"'","password":"'"${ZHIHU_PASSWORD}"'","captchaVerification":""}' \
  | python3 -c 'import sys,json; print((json.load(sys.stdin).get("data") or {}).get("accessToken", ""))')

curl -sS -X POST "${ZHIHU_API_URL}/dashboard/alarms/summary" \
  -H "Authorization: Bearer ${TOKEN}" \
  -H "Content-Type: application/json" \
  --data '{}'

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

该技能要求用户提供 SSH 用户名和密码,并将其发送到平台 API,但没有在用户交互层明确提示这是敏感凭据、将被如何使用、发送到哪里以及是否会被存储。这会降低用户对高敏感数据处理的知情权,并增加凭据误交、误传或被不当记录的风险。

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · references/add-os-monitor.md (reported line 46)May include surrounding context.

bash
API_URL="${ZHIHU_API_URL:-http://localhost:1024}"
TOKEN=$(curl -s -X POST "${API_URL}/admin-api/system/auth/login" \
  -H "Content-Type: application/json" \
  -d "{
    \"username\": \"${ZHIHU_USER:-admin}\",

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · references/add-os-monitor.md (reported line 65)May include surrounding context.

2a. 通过模型列表查询 modelId

bash
MODEL_INFO=$(curl -s --connect-timeout 10 -X POST "${API_URL}/admin-api/cqt/asset-model/page" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer ${TOKEN}" \
  -d '{"pageNo":1,"pageSize":50}' | python3 -c "

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · references/add-os-monitor.md (reported line 82)May include surrounding context.

2b. 通过 modelId 获取完整模型信息(含 items)

bash
curl -s --connect-timeout 10 -X POST "${API_URL}/admin-api/cqt/asset-model/get" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer ${TOKEN}" \
  -d "{\"id\": ${MODEL_INFO}}" | python3 -c "

External Transmission

Medium
Category
Data Exfiltration
Confidence
86% confidence
Finding

该步骤会将用户提供的 SSH 用户名和密码发送到平台 API 进行连通性测试,这是高敏感凭据的外部传输。虽然业务上可能需要,但文档未要求使用 HTTPS,也未明确说明凭据的存储、日志处理和最小化保留策略;再加上默认 API 地址是明文 HTTP,本上下文使风险明显上升。

Content

Scanner excerpt · references/add-os-monitor.md (reported line 104)May include surrounding context.

使用用户提供的 IP、端口、用户名、密码测试 SSH 连通性:

bash
curl -s -X POST "${API_URL}/admin-api/zhihu/snmp/testConnect" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer ${TOKEN}" \
  -d "{

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

This markdown file describes a delete operation for asset types but provides no warning about data removal, reversibility, or need for confirmation. For markdown files, destructive behaviors that can affect user data should be accompanied by a warning so users understand the impact before invoking the skill or API.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The file includes an endpoint for deleting assets but does not warn users that the action may remove asset records and impact system data integrity. Under the markdown-specific warning rule, destructive operations should be clearly disclosed to users.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
79% confidence
Finding

The import and export sections describe moving asset data into and out of the system, which can affect user data and potentially expose sensitive inventory information, but no warning is provided. Markdown skill documentation should disclose behaviors that may affect privacy or system data handling.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

This markdown file documents potentially impactful behaviors such as deleting scan tasks and exporting discovered asset data, but it does not include any warning about deletion effects, data sensitivity, or operator caution. Under the markdown-specific warning criterion, behaviors affecting user data or system integrity should be disclosed to users.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
83% confidence
Finding

The create dialing task section allows users to configure HTTP/TCP/PING monitoring tasks, including a concrete HTTP request target, but does not warn that created tasks may generate ongoing network traffic and repeated checks against the specified systems. That omission is relevant for markdown under SQP-2 because it can affect external systems and operational integrity.

Content

No source excerpt is available for this finding.