T09 · Insecure Skill Coding Practices
- Location
scripts/major_disease_assess.py:72- Finding
Unredacted Medical Records Are Transmitted to a Remote Service
- Content
View full analysis
Dict[str, Any]: record = dict(data.get("medicalRecord") or {}) docs = record.get("docs") if not isinstance(docs, list): raise PreprocessError("medicalRecord.docs must be a list.") normalized_docs: List[Dict[str, Any]] = [] for item in docs: if not isinstance(item, dict): continue text = item.get("format_page_text") or item.get("text") or item.get("content") doc_type = item.get("docType") or infer_doc_type(str(text or "")) built = build_doc(str(doc_type), str(text or "")) if built: normalized_docs.append(built) if not normalized_docs: raise PreprocessError("medicalRecord.docs did not contain any usable document text.") record["docs"] = normalized_docs paylo ...[truncated 2154 chars]- Remediation
View remediation
