Back to skill

Security audit

code-visual-review

Security checks for vulnerabilities and agentic risk

Overview

This skill is a local code-review visualization helper and I found no hidden execution, credential use, network retrieval, or persistence.

Use this skill when you are comfortable letting the agent read the code or diffs you ask it to visualize and create local HTML reports. For untrusted diffs, make sure generated report content is escaped before opening it in a browser, and avoid placing credentials or sensitive source snippets in shareable reports.

Vulnerability Patterns
  • 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
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (5)

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

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

Review 模式 HTML 结构

html
<!-- 风险标签 -->
<span class="risk risk-safe">🟢 safe</span>
<span class="risk risk-worth">🟡 worth a look</span>
<span class="risk risk-attention">🔴 needs attention</span>

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · templates/base.html (reported line 179)May include surrounding context.

html
</head>
<body>

  <!-- ═══════════════════════════════════════════
       CONTENT STARTS HERE
       Replace this section with actual content
       ═══════════════════════════════════════════ -->

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The template sets <html lang="zh-CN">, which forces a specific language/locale for rendered content. Under the policy, locale-specific behavior should either be user-selectable or clearly documented as a justified regional constraint.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
90% confidence
Finding

The natural-language instructions throughout the skill are presented in Chinese, which can amount to a language policy constraint if users are not given a choice of output language. The file does not state that Chinese is optional, user-selected, or required for a justified regional context.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
84% confidence
Finding

This markdown file documents a behavior where the skill will write generated HTML to files when canvas is unavailable, and may split output into multiple files. The description does not include any explicit user warning about local file creation, output paths, or avoiding overwriting existing files, which is a user-impacting filesystem operation.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.