Back to skill

Security audit

谷歌字体工具

Security checks for vulnerabilities and agentic risk

Overview

This is mostly a Google Fonts guidance skill, but its broad triggers and tool authority are not scoped tightly enough for that purpose.

Review this skill before installing. It appears non-malicious and mostly provides Google Fonts advice, but its invocation rules should be narrowed to font selection, loading, fallback stacks, and frontend performance, and its tool access should be limited to what those tasks actually require.

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
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (6)

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 71)May include surrounding context.

场景一:正确加载字体

html
<!-- 双 preconnect + display=swap -->
<link rel="preconnect" href="https://fonts.googleapis.com">
gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap" rel="stylesheet">

Vague Triggers

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The trigger is overly broad and explicitly targets content-creation use cases outside the skill’s domain. Over-broad routing is dangerous because it can cause automatic or heuristic invocation of this skill in unrelated sessions, expanding attack surface and enabling confused-deputy behavior with its declared tool access.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The description states '支持中文交互' in a way that presents Chinese as the interaction mode, and the document does not clearly offer a language choice or opt-in mechanism. Under the policy, language or locale constraints should be optional or explicitly justified.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill is declared as a narrow Google Fonts helper, but the body introduces generic create/query/modify/delete, import/export, save, and convert behaviors that are unrelated to font loading guidance. This kind of scope expansion can cause an agent to over-trust the skill for tasks outside its stated purpose, increasing the chance of unintended tool use or unsafe delegation.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

The trigger conditions say to use the skill for marketing copy, title optimization, and content creation, which conflicts with the declared developer-focused font tool purpose. A mismatched trigger increases the likelihood that an agent invokes this skill in unrelated contexts, where its instructions and tool permissions may be inappropriate or misleading.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Low
Category
Not specified by scanner
Confidence
93% confidence
Finding

The document states no extra API key is required, yet the security section advises configuring API keys via environment variables. This inconsistency can confuse users about secret handling, leading them to provision or expose credentials unnecessarily in a skill that should not require them.

Content

No source excerpt is available for this finding.