Back to skill

Security audit

Legal Consultation

Security checks for vulnerabilities and agentic risk

Overview

This skill is a simple legal triage helper with broad and Chinese-focused routing, but it does not show hidden execution, data exfiltration, persistence, or privileged behavior.

Use this as general legal triage only. Confirm that it was intentionally invoked for a legal issue, be aware that it appears optimized for Chinese-language inputs, and do not treat its output as a substitute for advice from a qualified attorney in the relevant jurisdiction.

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
  • 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 (8)

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The skill description is broad enough to capture many ordinary help-seeking requests, which can cause the agent to route non-legal conversations into this skill unnecessarily. In a legal domain, over-triggering is risky because users may receive legal-flavored guidance in situations that are not actually legal matters, increasing confusion and the chance of inappropriate reliance.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The example phrases are highly ambiguous and include generic prompts like asking what to do or what one's rights are, without clear legal qualifiers or counterexamples. This makes accidental invocation more likely and can funnel general advice requests into a legal-consultation workflow, which is especially sensitive because users may interpret the response as authoritative despite the disclaimer.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The description is broad enough to match a wide range of ordinary legal-help queries, which can cause the skill to be invoked more often than intended. In a legal domain, overbroad routing is risky because users may receive generalized or inappropriate guidance for regulated, high-stakes matters such as criminal, immigration, family, or financial disputes.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The trigger list includes very generic phrases such as '怎么办', '我的权利', and '合法吗', which can appear in many ordinary conversations unrelated to requesting this specific skill. In a legal-consultation skill, broad activation is risky because it can silently route users into legal-guidance behavior in ambiguous contexts, increasing the chance of inappropriate advice, privacy exposure, or unwanted skill invocation.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The classifier only checks for Chinese keywords, so users asking legal questions in other languages will be silently misclassified as 'general' and may not receive the appropriate specialist suggestions. In a legal-consultation skill, this can degrade guidance quality and route users away from relevant help, which is safety-relevant because legal triage depends on accurate issue identification.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
81% confidence
Finding

The common scenarios and usage examples are written exclusively in Chinese while the rest of the document is in English, which implicitly steers the skill toward a specific language context. There is no statement that the user may interact in any language or that Chinese-only examples are intentional for a region-specific deployment.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
86% confidence
Finding

All listed trigger phrases are in Chinese, and the manifest does not indicate that users may invoke the skill in other languages or opt into a Chinese-only experience. This creates a natural-language locale constraint without user choice or a documented region-specific justification.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
78% confidence
Finding

This JavaScript test file contains natural-language examples only in Chinese for core legal-consultation inputs. That can indicate an implicit language restriction without user opt-in or explicit documentation justifying the locale constraint.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.