T09 · Insecure Skill Coding Practices
- Location
sanitize_core.py:481- Finding
Detected prompt-injection instructions remain in sanitized LLM output
- Content
View full analysis
5: flags.append("unicode_anomaly: invisible characters detected") if VARIATION_SELECTOR_RE.search(raw_text): flags.append("unicode_anomaly: variation selectors") if TAG_CHAR_RE.search(raw_text): flags.append("unicode_anomaly: tag characters") # 10. Deduplicate flags (preserving order) flags = list(dict.fromkeys(flags)) # 11. Truncate text = truncate(text, max_len) return text, flags, original_length ``` ```python # sanitizer.py # Sanitize body (full pipeline) body_clean, body_flags, original_length = sanitize_text ...[truncated 3945 chars]- Remediation
View remediation
