Back to skill

Security audit

广告合规性审查工具

Security checks for vulnerabilities and agentic risk

Overview

This is a Chinese-language ad compliance review helper with no bundled executable code or persistence; the main cautions are external API submission and weaker prompt-injection boundaries for reviewed ad content.

Install this only if a Chinese-language ad compliance workflow fits your use case. Be aware that materials may be sent to external review services through the referenced skills, and reports should be treated as advisory because adversarial text inside ads could try to manipulate the model unless the workflow adds stronger untrusted-content handling.

Vulnerability Patterns
  • 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
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (1)

T09 · Insecure Skill Coding Practices

Warning
Location
prompt_template.txt:17
Finding

Untrusted Review Content Can Hijack Model Instructions

Content
View full analysis

Vulnerability Details

File Location: prompt_template.txt, lines 17–24
Vulnerability Type: Indirect prompt injection through untrusted template variables
Risk Level: Medium

Vulnerable Code

text
**1. 待审文案 (从图片OCR或视频语音中提取):**

{{TEXT_TO_REVIEW}}

text

**2. 待审画面描述 (由多模态模型生成,描述了图片或视频关键帧的内容):**

{{IMAGE_DESCRIPTION_TO_REVIEW}}

text

The vulnerable template is invoked by the workflows described in SKILL.md, particularly lines 24–27 and 57–59.

Technical Analysis

The template interpolates advertisement text, OCR output, video transcripts, and generated image descriptions directly into the same prompt context as trusted compliance-review instructions. These inputs are attacker-controlled or derived from attacker-controlled media.

Markdown code fences are presentational syntax and do not establish an instruction or trust boundary for a language model. The template does not explicitly state that the inserted values are untrusted evidence, that instruction-like content within them must not be followed, or that such content must never override the compliance rules and required output format.

Consequently, an advertisement may contain adversarial text such as an instruction to ignore the knowledge base, assign a low-risk rating, omit findings, or generate unrelated output. Once OCR or transcription places that text into TEXT_TO_REVIEW, the model may interpret it as an instruction rather than solely as material under review.

Attack Path

  1. An attacker embeds instruction-like content in advertising copy, an image, or video speech.
  2. OCR, speech transcription, or multimodal description processing extracts the adversarial content.
  3. The extracted content is inserted into {{TEXT_TO_REVIEW}} or {{IMAGE_DESCRIPTION_TO_REVIEW}}.
  4. The resulting prompt places trusted workflow instructions and untrusted content in a shared instruction context.
  5. The model may follow the embedded instructions and suppress findings, alter the ri ...[truncated 663 chars]
Remediation
View remediation

Remediation Suggestions

  1. Add an explicit trust-boundary instruction before all interpolated fields, stating that their contents are untrusted evidence and that any commands, role declarations, formatting requests, or policy overrides within them must never be followed.
  2. Require the model to analyze instruction-like text as potentially malicious advertisement content and report it rather than execute it.
  3. Pass review inputs through structured serialization such as JSON, with distinct fields and robust escaping, instead of relying only on Markdown code fences.
  4. Separate trusted instructions from untrusted review data through system, developer, and user message roles where the execution framework supports that separation.
  5. State an explicit precedence rule: compliance policies and the fixed output schema always override instructions found in reviewed content.
  6. Validate the generated report against a fixed schema. Reject and retry responses that omit required fields, contain unrelated actions, or fail structural validation.
  7. Consider preprocessing OCR and transcript results to detect and flag common prompt-injection patterns, while retaining the original content for compliance analysis.
  8. Apply the same controls to the video workflow and any externally supplied prompt templates or multimodal descriptions.
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 (3)

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

The file consists entirely of Chinese-language phrases and provides no indication that language selection is optional or configurable. Under the stated policy, forcing a specific language without user opt-in is a natural-language policy violation unless the locale constraint is explicitly documented and justified.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

This markdown file consists entirely of Chinese phrases and provides no indication that the skill is region-specific or that users may choose another language. Under the policy, forcing a specific language without opt-in or justification is a natural-language policy violation.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The entire prompt is written as mandatory Chinese-language instructions, including required output headings and review directions, with no opt-in or alternative locale. This can violate language/locale policy because it imposes a specific language on users regardless of their preferences or operating context.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.