Back to skill

Security audit

winskill

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this Windows server administration skill suspicious with high confidence because scanners report privileged persistent tasks, unsafe command and cleanup paths, and undeclared update behavior; inspection was partial.

Consider avoiding installation unless you can first review the reported task installation, command execution, cleanup, and update behavior and control the privileges it would use. The scan is incomplete: only 19 of 44 components were fully inspected, and static command-use analysis was partial, so the findings do not provide full coverage.

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

T09 · Insecure Skill Coding Practices

Error
Location
.
Finding

SYSTEM monitoring task executes a script stored in a user-writable profile

Content
View full analysis

Impact

After script replacement, the next scheduled run executes attacker-controlled PowerShell as SYSTEM. This does not require permission to change the scheduled task itself.

T09 · Insecure Skill Coding Practices

Error
Location
.
Finding

Read-only checklist guard permits arbitrary PowerShell execution

Content
View full analysis

Impact

A crafted check can perform unauthorized system changes or execute arbitrary commands without passing the promised write-operation confirmation workflow. Even the permitted net and auditpol prefixes include mutating operations.

T09 · Insecure Skill Coding Practices

Warning
Location
.
Finding

Report sanitizer leaves identifiers intact while reporting a clean export

Content
View full analysis

Impact

Ordinary single-label hostnames remain visible in the default compliance HTML and JSON. Pure IPv6 addresses in supported input reports also remain unchanged because no IPv6 substitution exists. The self-check inspects only IPv4 patterns, so these residual identifiers do not prevent CLEAN.

Vulnerability Patterns
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • YARA SignaturesMalware Match, Webshell Match, Cryptominer Match
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (37)

YARA rule 'reverse_shell': Reverse shell patterns in scripts or source code [malware]

Critical
Category
YARA Match
Confidence
85% confidence
Finding

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

Content

Scanner excerpt · references/modules/module-20-SSL-证书过期检测.md (reported line 122)May include surrounding context.

}

text



### 20.3 远程域名证书探测(本地无证书的站点)




```powershell
# 将下方域名替换为你需要检测的站点
$domains = @('www.baidu.com', 'www.taobao.com')  # 示例,替换为你的域名

Write-Host "════════ 远程域名 SSL 证书检测 ════════"
foreach ($domain in $domains) {
    try {
        $tcpClient = New-Object System.Net.Sockets.TcpClient($domain, 443)
        $sslStream  = New-Object System.Net.Security.SslStream($tcpClient.GetStream(), $false, { $true })
        $sslStream.AuthenticateAsClient($domain)
        $cert = $sslStream.RemoteCertificate
        $expiry = [DateTime]::Parse($cert.GetExpirationDateString())
        $daysLeft = ($expiry - (Get-Date)).Days
        $status = if ($daysLeft -lt 0) { '❌ 已过期' }
                   elseif ($daysLeft -lt 30) { '⚠️ 即将过期' }
                   else { '✅ 正常' }
        Write-Host "  $domain → 到期: $($expi

YARA rule 'reverse_shell': Reverse shell patterns in scripts or source code [malware]

Critical
Category
YARA Match
Confidence
85% confidence
Finding

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

Content

Scanner excerpt · references/modules/module-27-自动化修复向导.md (reported line 421)May include surrounding context.

��说**:"时间不准" / "时间同步"

📋 展开查看命令 — 时间同步四步流程
powershell
Write-Host "════════ 时间同步修复向导 ════════"

# Step 1: 定位
Write-Host "`n[Step 1] 问题定位..."
$localTime = Get-Date
$ntpTime = $null

# 尝试从 NTP 服务器获取时间
try {
    $tcp = New-Object System.Net.Sockets.TcpClient("time.windows.com", 123)
    $stream = $tcp.GetStream()
    $data = New-Object byte[] 48
    $stream.Read($data, 0, 48) | Out-Null
    $stream.Close()
    $tcp.Close()
    # 简化:直接用 w32tm 查询
    $ntpTime = (w32tm /stripchart /computer:time.windows.com /samples:1 /dataonly 2>$null | Select-Object -Last 1)
} catch {}

$w32tmStatus = w32tm /query /status 2>$null
if ($w32tmStatus) {
    Write-Host "  Windows Time 服务状态:"
    $w32tmStatus | Select-Object -First 5 | ForEach-Object { Write-Host "  $_" }
}

# Step 2: 预览

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The supplied chunk consists solely of a skill upgrade command. Updating the installed skill is not among the declared administrative capabilities and is materially different from the remote multi-server management module in which it appears. The command also ordinarily relies on package-registry access, conflicting with the offline claim, although actual network access and successful modification cannot be established from this chunk alone.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The supplied command requests an update to the skill itself, a materially different operation from the declared server administration functions. Updating can retrieve remote content and replace local skill files, conflicting with the offline and read-only assurances. The chunk contains no diagnostics or explicit safety-confirmation logic. Exact network and filesystem effects depend on the ClawHub implementation and update availability.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The supplied command performs a package upgrade rather than the advertised server diagnostics or guided remediation. Updating the toolkit itself is a distinct, undeclared capability, and the snippet contains no safety-confirmation gate. Such an upgrade may also retrieve packages remotely, so the code does not substantiate the description's fully offline guarantee. Successful execution and network access depend on the external SkillHub implementation.

Content

No source excerpt is available for this finding.

Cleanup can recycle recent files inside old directories despite the documented seven-day safety threshold.

High
Category
Excessive Agency
Confidence
98% confidence
Finding

The recursive enumeration selects directories as well as files using each entry's own modification time. Moving a qualifying directory can therefore remove newer descendants that never passed the seven-day filter; showing only the largest 20 entries also leaves the confirmation incomplete.

Content

No source excerpt is available for this finding.

The claimed system-directory exclusion and recoverable deletion contradict the cleanup implementations.

High
Category
Excessive Agency
Confidence
100% confidence
Finding

The cleanup uses permanent Remove-Item operations, including recursive deletion of recycle-bin contents, rather than recoverable recycling. It also trusts the TEMP environment path without enforcing the advertised directory exclusions, so elevated cleanup can irreversibly remove unintended data despite the general confirmation prompt.

Content

No source excerpt is available for this finding.

Unrestricted remote execution bypasses the module's explicitly documented operational exclusions.

High
Category
Excessive Agency
Confidence
98% confidence
Finding

The workflow evaluates an unrestricted command on every registered server using supplied administrative credentials, without enforcing the documented operational exclusions or a separate execution approval. Arbitrary execution is intentional functionality rather than proven injection, but this implementation defeats the skill's claimed restrictions and magnifies mistakes across the fleet.

Content

No source excerpt is available for this finding.

The module is marked readonly but installs and removes a privileged scheduled task without confirmation.

High
Category
Excessive Agency
Confidence
99% confidence
Finding

Despite readonly metadata, the module writes executable code and installs or removes a highest-privilege SYSTEM scheduled task without a confirmation gate. The task also executes a script from the installing user's profile without hardening its permissions, potentially allowing that user or a compromised same-user process to modify code later executed as SYSTEM.

Content

No source excerpt is available for this finding.

Cleanup recommendations omit a warning that sampled hashes do not establish exact duplicates.

High
Category
Output Handling
Confidence
99% confidence
Finding

Although a code comment mentions sampling, the user-facing report calls these matches exact duplicates and calculates their supposed wasted space without warning about unexamined content. This is the same underlying defect as the prefix-hash finding, presented as an informed-consent failure that can lead users to approve unsafe cleanup.

Content

No source excerpt is available for this finding.

The claimed output-directory-only write boundary is contradicted by privileged scheduled-task changes.

High
Category
Excessive Agency
Confidence
99% confidence
Finding

Installation creates or overwrites a recurring SYSTEM task despite the stated output-directory-only write boundary. More importantly, the task executes a script stored under the installing user's profile without hardening its permissions, allowing anyone able to modify that script to obtain SYSTEM execution; this is especially dangerous in a supposedly read-only administration tool.

Content

No source excerpt is available for this finding.

The documented read-only runner can execute configuration-changing YAML commands without confirmation.

High
Category
Excessive Agency
Confidence
100% confidence
Finding

The prefix check does not constrain PowerShell execution: an allowed Get- command can be followed by arbitrary statements, and the allowed net and auditpol prefixes themselves include configuration-changing operations. A modified YAML checklist, including one discovered through the relative-directory fallback, can therefore execute arbitrary commands with the administrator privileges used for the audit, bypassing the promised confirmation boundary.

Content

No source excerpt is available for this finding.

The exporter claims IPv6 redaction and zero IP leakage but never detects IPv6 addresses.

High
Category
Excessive Agency
Confidence
100% confidence
Finding

Neither the replacement pipeline nor its validation recognizes IPv6 addresses, so ordinary IPv6 values can remain in exported reports while the workflow announces that no real IP addresses leaked. Because these reports are expressly intended for external submission, this false assurance can directly cause disclosure of internal addressing information.

Content

No source excerpt is available for this finding.

The activation example “我遇到报错了,帮我看看” (“I encountered an error; help me check”) is not specific to Windows server operations.

Medium
Category
Trigger Abuse
Confidence
97% confidence
Finding

L034 presents a generic request for help with an error as a direct invocation phrase. Although the skill describes Windows administration capabilities, this trigger does not require a Windows or server context and could match unrelated application, programming, or service errors.

Content

No source excerpt is available for this finding.

The read-only IIS module automatically installs Windows features during its prerequisite check.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The prerequisite block actually invokes Install-WindowsFeature when the module is absent, despite presenting the module as read-only. Printing a message asking the user to run an installation does not gate the following command, so a routine status check can change server features under administrator privileges.

Content

No source excerpt is available for this finding.

The instruction to immediately disconnect networking omits a warning about service and remote-access disruption.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

The troubleshooting table recommends immediately disconnecting networking based on many connections to one IP, a condition also common in legitimate workloads. Following that advice on a remotely administered production server can interrupt services and lock out responders; the read-only code and general confirmation rule reduce, but do not eliminate, this unsafe-guidance risk.

Content

No source excerpt is available for this finding.

Troubleshooting instructs starting Task Scheduler without warning that scheduled workloads may resume.

Medium
Category
Output Handling
Confidence
96% confidence
Finding

L184 prescribes Start-Service Schedule as the remedy for a stopped Task Scheduler service. Starting it changes system state and can allow eligible tasks—including tasks being investigated—to execute, but the module gives no impact warning and presents itself as read-only at L23.

Content

No source excerpt is available for this finding.

The instruction to start dependency services lacks an operational-impact warning.

Medium
Category
Output Handling
Confidence
90% confidence
Finding

L169 directs the reader to start dependency services when they prevent a main service from starting. This changes system state and may activate workloads or network listeners, yet no impact warning is provided; L23 explicitly states that the module will not start services.

Content

No source excerpt is available for this finding.

The supposedly non-repairing integrity scan can repair kernel32.dll.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

SFC /scanfile checks and repairs the specified file when needed, whereas the comment and risk classification describe this step as non-repairing. Running it as a supposedly read-only scan can therefore modify a critical system DLL without informed approval, even though the module's broader metadata mentions confirmation.

Content

No source excerpt is available for this finding.

The troubleshooting workflow installs a Windows feature without warning that it modifies the system.

Medium
Category
Output Handling
Confidence
97% confidence
Finding

L106 prescribes Install-WindowsFeature Windows-Server-Backup when the backup feature is absent. This installs a system component rather than checking backup status, but no system-change warning or confirmation is provided, and the module is advertised as read-only.

Content

No source excerpt is available for this finding.

The repair workflows do not consistently create the promised pre-repair restore point.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

Most repair workflows omit the promised restore-point creation, and the DNS workflow suppresses checkpoint errors while reporting success. Administrators may therefore authorize disruptive changes believing rollback protection exists when it does not.

Content

No source excerpt is available for this finding.

The skill claims to operate entirely offline despite making external diagnostic connections before repair confirmation.

Medium
Category
Output Handling
Confidence
98% confidence
Finding

The offline assurance contradicts external DNS resolution, HTTPS connectivity probes, and time-server connections performed before repair confirmation. These disclose network metadata and can violate restricted-server egress policies, although the shown probes do not upload files or credentials.

Content

No source excerpt is available for this finding.

The read-only assurance omits persistent scheduled-task creation and performance-data writes.

Medium
Category
Output Handling
Confidence
99% confidence
Finding

The read-only assurance conflicts with creating an output directory, configuring a scheduled task, and repeatedly writing performance records. This misclassification can cause an agent or operator to authorize observation without understanding that ongoing collection and persistent host changes are intended; it overlaps the task-registration finding.

Content

No source excerpt is available for this finding.

The read-only baseline module installs a persistent scheduled task without confirmation.

Medium
Category
Excessive Agency
Confidence
100% confidence
Finding

The supposedly read-only baseline workflow includes scheduled-task registration without a local approval step, establishing repeated execution and data collection beyond the current session. The supplied here-string has syntax problems that prevent verbatim execution, but the workflow still directs the agent to create the task, and the task registration can remain after its seven-day trigger expires.

Content

No source excerpt is available for this finding.

Troubleshooting instructs users to reset the WMI repository without warning about its system-wide effects.

Medium
Category
Output Handling
Confidence
96% confidence
Finding

Resetting the WMI repository is a system-wide repair action, not a proportionate first response to one missing CIM class. It can discard provider registrations or disrupt dependent management, monitoring, and backup software, making this unqualified advice particularly hazardous in a read-only server-monitoring module.

Content

No source excerpt is available for this finding.