T09 · Insecure Skill Coding Practices
- Location
scripts/gmail_labeler_runner.py:526- Finding
External LLM Review Discloses Email Content by Default
- Content
View full analysis
dict[str, Any] | None: review = config.get('llmReview', {}) body = body_text(message)[: int(review.get('maxBodyChars', 2500))] allowed = review.get('allowedCategories', []) prompt = { 'from': message.get('from'), 'subject': message.get('subject'), 'body_excerpt': body, 'heuristic_sender_type': heuristic.sender_type, 'heuristic_category': heuristic.filter_id, 'heuristic_kind': heuristic.kind, 'heuristic_confidence': heuristic.confidence, 'allowed_categories': allowed, } system = ( 'You are an email classifier. Choose exactly one category from allowed_categories and never invent a new value. ' 'Return JSON only with keys: category, actionable, confidence, archive, star, important, notify, reason. ' 'category must be exactly one string from allowed_categories. ' 'confidence must be a number between 0 and 1. ' 'archive, star, important, notify, actionable must be booleans. ' 'If unsure, choose "none". ' 'Do not output markdown, prose, or extra keys.' ) model_chain = ...[truncated 2637 chars]- Remediation
View remediation
