Back to skill

Security audit

Clawguard Release

Security checks for vulnerabilities and agentic risk

Overview

ClawGuard is mostly a local proof tool, but it also includes under-scoped host security scanning and cleanup behavior that can inspect or delete local data beyond the proof workflow.

Review carefully before installing. Use only if you are comfortable with a proof tool that can also inspect local OS/network state, and avoid the clean command unless the working directory is disposable. Do not rely on the legal, ISO, malware-safety, or ransomware-integrity claims until the proof validation, scan logic, and user warnings are fixed.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • 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
Findings (8)

T09 · Insecure Skill Coding Practices

Error
Location
ransomware_protection.py:66
Finding

File integrity verification accepts altered files without comparing hashes

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
scan_files.py:103
Finding

Files are classified as proven and safe solely by filename

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
init.py:338
Finding

Proof verification accepts partial identifiers through substring matching

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scan_network.py:166
Finding

Suspicious network connection scan always returns a passing result

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scan_os.py:75
Finding

Windows update check assumes the system is secure without evaluating update state

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scan_network.py:75
Finding

Open-port scan unconditionally marks discovered listening ports as safe

Content
View full analysis
Remediation
View remediation

T05 · Unauthorized Access and Privilege Escalation

Note
Location
scan_network.py:75
Finding

Host security and network reconnaissance exceeds the core proof operation

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
init.py:363
Finding

Cleanup command recursively deletes common directories outside a skill-owned root

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • YARA SignaturesMalware Match, Webshell Match, Cryptominer Match
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (64)

Tp4

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

Windows security scanning, PowerShell execution, firewall and antivirus inspection, network port enumeration, and process inspection are unrelated to the declared asset-proof use case. In this context, the mismatch strongly suggests covert reconnaissance capability, making the skill far more dangerous than the description implies.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

Windows security scanning, PowerShell execution, firewall and antivirus inspection, network port enumeration, and process inspection are unrelated to the declared asset-proof use case. In this context, the mismatch strongly suggests covert reconnaissance capability, making the skill far more dangerous than the description implies.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

Windows security scanning, PowerShell execution, firewall and antivirus inspection, network port enumeration, and process inspection are unrelated to the declared asset-proof use case. In this context, the mismatch strongly suggests covert reconnaissance capability, making the skill far more dangerous than the description implies.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

Windows security scanning, PowerShell execution, firewall and antivirus inspection, network port enumeration, and process inspection are unrelated to the declared asset-proof use case. In this context, the mismatch strongly suggests covert reconnaissance capability, making the skill far more dangerous than the description implies.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

Windows security scanning, PowerShell execution, firewall and antivirus inspection, network port enumeration, and process inspection are unrelated to the declared asset-proof use case. In this context, the mismatch strongly suggests covert reconnaissance capability, making the skill far more dangerous than the description implies.

Content

No source excerpt is available for this finding.

Missing User Warnings

High
Category
Not specified by scanner
Confidence
96% confidence
Finding

The clean_all function recursively deletes directories such as pycache, logs, cache, tmp, and temp using shutil.rmtree. Although the command returns the removed names afterward, there is no prior confirmation, prompt, or warning before performing this irreversible filesystem action.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The manifest frames the skill as an offline-first digital asset proof system with local blockchain and format support, which suggests evidence/provenance functionality. In contrast, the code exposes commands for file security scanning, operating system security checks, network scanning, and a combined scan mode, which is a substantially different product behavior.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
95% confidence
Finding

The CLI explicitly offers operating system and network security scans, and all invokes both in addition to file scanning. Those capabilities are not an obvious or necessary implementation detail of a digital asset proof system, especially one described as offline-first and focused on proofing assets.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
Not specified by scanner
Confidence
97% confidence
Finding

This file performs broad host network reconnaissance even though the skill metadata describes a digital-asset proof/blockchain function, not local security auditing. That mismatch is dangerous because users or calling systems may grant trust or permissions based on the declared purpose while the code collects unrelated sensitive host information.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The skill launches shell/PowerShell commands to enumerate host network state without clear justification from the manifest. In an agent environment, this can expose local system details such as listening services and network posture, creating privacy and reconnaissance risk beyond the skill's stated purpose.

Content

No source excerpt is available for this finding.

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% confidence
Finding

Using subprocess.run with shell=True grants the shell authority to interpret the command, which is an unsafe execution pattern in agent tools even when the current string is constant. In hostile or misconfigured environments, shell resolution, PATH hijacking, or future code changes that add variable input can turn this into command-execution abuse.

Content

Scanner excerpt · scan_network.py (reported line 80)May include surrounding context.

python
common_ports = [80, 443, 8080, 3306, 5432]
    try:
        cmd = 'powershell -Command "Get-NetTCPConnection -State Listen | Select-Object LocalPort"'
        result = subprocess.run(cmd, shell=True, capture_output=True, text=True, timeout=10)
        
        open_ports = []
        for line in result.stdout.split('\n'):

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% confidence
Finding

This tool call uses shell=True for a host-enumeration command, which is an unsafe primitive for an agent skill. Even without immediate injection, the pattern enables shell-mediated execution behavior that can be abused via environment manipulation or later modifications.

Content

Scanner excerpt · scan_network.py (reported line 108)May include surrounding context.

python
"""检查网络连接"""
    try:
        cmd = 'powershell -Command "Get-NetTCPConnection | Measure-Object | Select-Object -ExpandProperty Count"'
        result = subprocess.run(cmd, shell=True, capture_output=True, text=True, timeout=10)
        
        count = int(result.stdout.strip()) if result.stdout.strip().isdigit() else 0

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% confidence
Finding

The DNS inspection command is executed through shell=True, exposing unnecessary shell semantics for a task that does not require them. In agent contexts this is dangerous because it normalizes risky command execution and increases the chance of abuse through environmental control or future parameterization.

Content

Scanner excerpt · scan_network.py (reported line 139)May include surrounding context.

python
trusted_dns = ['114.114.114.114', '8.8.8.8', '1.1.1.1', '223.5.5.5']
    try:
        cmd = 'powershell -Command "Get-DnsClientServerAddress | Select-Object -ExpandProperty ServerAddresses"'
        result = subprocess.run(cmd, shell=True, capture_output=True, text=True, timeout=10)
        
        dns_servers = result.stdout.strip().split('\n')
        is_trusted = any(dns in str(dns_servers) for dns in trusted_dns)

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% confidence
Finding

Running the suspicious-connection check through shell=True uses a high-risk tool parameter for local host enumeration. Combined with the misleading success result, this creates both execution-surface risk and deceptive security signaling.

Content

Scanner excerpt · scan_network.py (reported line 170)May include surrounding context.

python
"""检查可疑连接"""
    try:
        cmd = 'powershell -Command "Get-NetTCPConnection | Select-Object RemoteAddress,State"'
        result = subprocess.run(cmd, shell=True, capture_output=True, text=True, timeout=10)
        
        # 简单检查:未发现明显异常
        return {

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% confidence
Finding

This Wi-Fi inspection relies on shell=True, which is an unnecessarily permissive execution mode for collecting host network details. In an agent skill, such patterns are risky because they can be repurposed or become exploitable when the environment or command source changes.

Content

Scanner excerpt · scan_network.py (reported line 191)May include surrounding context.

python
"""检查 WiFi 安全"""
    try:
        cmd = 'powershell -Command "(netsh wlan show interfaces) -match \'Authentication\'"'
        result = subprocess.run(cmd, shell=True, capture_output=True, text=True, timeout=10)
        
        if "WPA3" in result.stdout:
            return {

Description-Behavior Mismatch

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The file performs host operating-system security scanning even though the declared skill purpose is a digital asset proof system. This capability mismatch is dangerous because it expands access to sensitive host-state information without a clear, user-justified need, making the skill more suspicious in context.

Content

No source excerpt is available for this finding.

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% 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 · scan_os.py (reported line 80)May include surrounding context.

python
try:
        # PowerShell 检查最后更新时间
        cmd = 'powershell -Command "Get-WindowsUpdateLog -ErrorAction SilentlyContinue; (Get-ItemProperty HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\WindowsUpdate\\Auto Update).LastSuccessSyncTime"'
        result = subprocess.run(cmd, shell=True, capture_output=True, text=True, timeout=30)
        
        # 简化检查:假设系统已更新
        return {

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% 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 · scan_os.py (reported line 101)May include surrounding context.

python
try:
        # PowerShell 检查最后更新时间
        cmd = 'powershell -Command "Get-WindowsUpdateLog -ErrorAction SilentlyContinue; (Get-ItemProperty HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\WindowsUpdate\\Auto Update).LastSuccessSyncTime"'
        result = subprocess.run(cmd, shell=True, capture_output=True, text=True, timeout=30)
        
        # 简化检查:假设系统已更新
        return {

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% 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 · scan_os.py (reported line 129)May include surrounding context.

python
try:
        # PowerShell 检查最后更新时间
        cmd = 'powershell -Command "Get-WindowsUpdateLog -ErrorAction SilentlyContinue; (Get-ItemProperty HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\WindowsUpdate\\Auto Update).LastSuccessSyncTime"'
        result = subprocess.run(cmd, shell=True, capture_output=True, text=True, timeout=30)
        
        # 简化检查:假设系统已更新
        return {

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% 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 · scan_os.py (reported line 158)May include surrounding context.

python
try:
        # PowerShell 检查最后更新时间
        cmd = 'powershell -Command "Get-WindowsUpdateLog -ErrorAction SilentlyContinue; (Get-ItemProperty HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\WindowsUpdate\\Auto Update).LastSuccessSyncTime"'
        result = subprocess.run(cmd, shell=True, capture_output=True, text=True, timeout=30)
        
        # 简化检查:假设系统已更新
        return {

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% 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 · scan_os.py (reported line 192)May include surrounding context.

python
try:
        # PowerShell 检查最后更新时间
        cmd = 'powershell -Command "Get-WindowsUpdateLog -ErrorAction SilentlyContinue; (Get-ItemProperty HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\WindowsUpdate\\Auto Update).LastSuccessSyncTime"'
        result = subprocess.run(cmd, shell=True, capture_output=True, text=True, timeout=30)
        
        # 简化检查:假设系统已更新
        return {

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
97% confidence
Finding

Enumerating listening ports and local processes gives the skill visibility into host security posture and running tools, which is unrelated to a digital asset proof workflow. In this context, such reconnaissance-like behavior is more dangerous because it could be repurposed to fingerprint defenses or discover security tooling on the machine.

Content

No source excerpt is available for this finding.

YARA rule 'info_stealer': Information stealer patterns (credential harvesting, browser data theft) [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 · scan_os.py (reported line 189)May include surrounding context.

python
message": "未发现开放的高危端口",
                "recommendation": ""
            }
    except:
        return {
            "name": "高危端口",
            "status": "warning",
            "message": "无法检查端口状态",
            "recommendation": "手动检查网络设置"
        }

def check_suspicious_processes():
    """检查异常进程"""
    suspicious_names = ['mimikatz', 'pwdump', 'procdump']
    try:
        cmd = 'powershell -Command "Get-Process | Select-Object ProcessName"'
        result = subprocess.run(cmd, shell=True, capture_output=True, text=True, timeout=10)
        
        found = []
        for name in suspicious_names:
            if name.lower() in result.stdout.lower():
                found.append(name)
        
        if found:
            return {
                "name": "异常进程",
                "status": "critical",
                "message": f"发现可疑进程:{', '.join(found)}",
                "recommendation": "

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

This markdown file advertises clean, backup, and restore management commands, including cache cleaning and configuration restore, but provides no warning about potential data loss, overwriting, or the need to verify targets before use. For markdown files, safety-relevant behaviors that can affect user data or system integrity should be accompanied by user-facing warnings.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The document makes affirmative legal-compliance claims tied to PRC Copyright Law and recommends direct evidentiary use without clearly limiting the claim to a jurisdiction-specific context or adding a legal disclaimer. In a security/legal-proof skill, users may rely on these statements as authoritative and use the system in unsuitable jurisdictions or overestimate evidentiary weight, creating compliance, fraud, or legal-risk exposure.

Content

No source excerpt is available for this finding.