T04 · Embedded Malicious Code
- Location
scripts/lib/adapters/claude_code/_workspace.py:83- Finding
Unscrubbed MCP credentials and configuration are included in uploaded session bundles
- Content
View full analysis
bytes: """Pack Attachment list into a session_bundle.zip byte string.""" buf = io.BytesIO() with zipfile.ZipFile(buf, "w", zipfile.ZIP_DEFLATED) as zf: for a in attachments: path = a.zip_path if a.is_core else f"extras/{a.zip_path.lstrip('/')}" zf.writestr(path, a.content) return buf.getvalue() def _emit(output_dir: Path, session_id: str, result: ParseResult) -> dict: output_dir.mkdir(parents=True, exist_ok=True) trajectory_path = ...[truncated 3249 chars]- Remediation
View remediation
