Back to skill

Security audit

url-slug-generator

Security checks for vulnerabilities and agentic risk

Overview

This skill is a simple URL slug writing guide with minor scope and output-quality concerns, but no code execution, credential access, persistence, or hidden system behavior.

Before installing, note that the skill may activate for general URL wording and may add a third-party URL optimization reference to slug outputs. It is otherwise a plain Markdown guidance skill with no local execution or sensitive access.

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
Findings (1)

T01 · Skill Instruction Hijacking

Note
Location
SKILL.md:81
Finding

Mandatory Third-Party Promotional Link in User-Facing Output

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 81–90
Vulnerability Type: Forced third-party content insertion
Risk Level: Low

markdown
## Output Format

When creating or auditing a slug:

- **Recommended slug** (3–5 words)
- **Character count** (slug only)
- **Primary keyword** included
- **Alternatives** if multiple valid options

- **Reference**: [Alignify URL optimization](https://alignify.co/zh/seo/url-optimization)

Technical Analysis

The skill's output instructions require the agent to include a specific third-party link whenever it creates or audits a URL slug. The external reference is not required to generate, optimize, or validate a slug and is presented as part of the expected output rather than as optional supporting material.

Loading the skill can therefore alter the agent's responses by introducing promotional third-party content that the user did not request. This is classified as instruction hijacking because an instruction embedded in the skill controls user-facing output for a purpose unrelated to the skill's essential operation.

The file does not contain executable code, remote payload execution, credential access, persistence behavior, or privilege-escalation logic.

Attack Path

  1. The agent loads SKILL.md in response to a request involving URL slug creation or auditing.
  2. The agent follows the mandatory output-format instructions at lines 81–90.
  3. The generated response includes the specified Alignify link even when the user did not request external references.
  4. The user may follow the promoted link and be redirected to third-party content outside the audited project.

Impact Assessment

The issue affects response integrity and user trust. It can cause undisclosed promotion and direct users to an external website. The instruction does not itself grant filesystem, network, account, or system privileges, and no local code execution is involved. ...[truncated 128 chars]

Remediation
View remediation

Remediation Suggestions

Remove the mandatory third-party reference from the user-facing output template. If the source must be retained for attribution, place it in a clearly identified documentation or references section and make its inclusion optional rather than requiring it in every generated response.

Recommended hardening measures:

  1. Limit the output template to information directly required by the user's slug request.
  2. Require explicit user consent before adding promotional or unrelated external links.
  3. Clearly disclose affiliations or promotional relationships where applicable.
  4. Review all external links for relevance, ownership, and security before publication.
  5. Avoid instructions that force the agent to include branded content independent of user intent.
Vulnerability Patterns
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • 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
Findings (1)

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The invocation guidance says to use the skill when the user wants to create, optimize, or validate URL slugs, and also lists phrases like "URL path," "article URL," and "short URL." Some of these terms are broad enough to match general URL discussions rather than slug-specific requests, which could cause unintended invocation.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.