T09 · Insecure Skill Coding Practices
- Location
scripts/run_meeting_minutes.py:176- Finding
Indirect Prompt Injection Through Untrusted Meeting Transcripts
- Content
View full analysis
dict[str, Any]: prompt = f"""You are an AI assistant that generates meeting minutes. Analyze the following meeting transcript and return JSON with these fields: - topic - discussion_points - decisions - action_items - voice_summary_text Rules: - do not fabricate missing facts - discussion_points should be concise - decisions should only include confirmed conclusions - action_items should include owner if mentioned Transcript: {transcript} """ client = build_client() response = client.chat.completions.create( model=LLM_MODEL, temperature=0.3, messages=[ {"role": "system", "content": "Return valid JSON only."}, {"role": "user", "content": prompt}, ], ) return extract_json(extract_message_content(response)) ``` The same unsafe interpolation pattern is used during transcript cleaning: ```python def clean_transcript_with_llm(transcript: str) -> str: prompt = f"""You are an assistant that cleans meeting transcripts. Clean the transcript below: - remove filler words - remove repeated phrases - improve readability - preserve facts, names, numbers, decisions, and action items Transcript: {transcript} Return only the cleaned transcript text. """ client = build_client() response = client.chat.completions.create( model=LLM_MODEL, temperature=0.2, messages=[ {"role": "system", "content": "Return only cleaned transcript text."}, {"role": "user", "content": prompt}, ], ) return extract_message_content(response) ``` ### Technical Analysis The transcript originates from us ...[truncated 2150 chars]- Remediation
View remediation
