Back to skill

Security audit

HIPAA Check - HIPAA合规检查

Security checks for vulnerabilities and agentic risk

Overview

This HIPAA checker is transparent about cloud scoring, but it should be reviewed before installation because it handles sensitive compliance answers/API-key data and has redirect and HTML-report hardening gaps.

Install only if you are comfortable sending HIPAA compliance answers to compliancehub.cn. Prefer preview mode first, avoid opening HTML reports from untrusted or unexpected cloud responses, and treat the API key like a credential until redirect and HTML escaping hardening are fixed.

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 (2)

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/hipaa-check.py:315
Finding

Unescaped Cloud-Controlled Fields in Generated HTML Report

Content
View full analysis
{current_cat}\n' icon = "✅" if r.get("passed") else "❌" cls = "pass" if r.get("passed") else "fail" rec = r.get("recommendation") or "Keep it up" rows += f"""{icon}{r.get('name')}{r.get('legal_ref') or ''}{cls.upper()}{rec}\n""" ``` ### Technical Analysis The HTML renderer directly interpolates `category_name`, `name`, `legal_ref`, and `recommendation` into HTML without escaping them. These values are taken from the cloud evaluation response and must therefore be treated as untrusted input. An attacker who can influence the cloud response could return fields containing HTML elements, event handlers, scripts, deceptive links, or other active content. Because no HTML escaping or Content Security Policy is applied, this content is persisted unchanged when the user generates an HTML report. For example, a malicious recommendation resembling the following would be inserted as active markup rather than displayed as text: ```html ``` ### Attack Path 1. The user runs the Skill with HTML output, such as: ```bash python3 scripts/hipaa-check.py --format html -o hipaa-check-report.html ``` 2. The Skill submits the compliance answers to the remote evaluation service. 3. An attacker compromises or otherwise gains control over report fields returned by that service. 4. The remote response includes malicious markup in a field such as `recommendation`, `name`, or `category_name`. 5. `render_html()` inserts the value int ...[truncated 936 chars]
Remediation
View remediation
``` 5. Add regression tests containing HTML metacharacters and event-handler payloads in every remotely supplied field. ]]>

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/hipaa-check.py:253
Finding

Sensitive Evaluation Request Does Not Enforce Same-Origin Redirects

Content
View full analysis
Remediation
View remediation
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 (2)

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The docstring states that item names, categories, and recommendations are presented in Chinese by default, with English available only if users request it. This imposes a default language choice rather than offering an explicit user opt-in or neutral selection, which matches the language/locale policy violation criteria.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
95% confidence
Finding

SQP-3 applies to all file types and covers language or locale policy violations in natural-language text, including comments. The only content in this file is a Chinese comment, and there is no indication that the skill offers a language choice or that a Chinese-only constraint is justified by a region-specific purpose.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.