实测超32万公开LLM服务,40%用明文传输,安全风险普遍
Unveiling the Landscape of LLM Deployment in the Wild: An Empirical Study
- 通过全网扫描发现32万+公开部署的LLM服务,覆盖15个框架
- 超40%接口使用明文HTTP,21万以上缺少有效TLS证书信息
- 部分框架默认开放未授权访问,存在模型泄露和系统被攻破风险
大型语言模型(LLMs)正通过开源与商业框架广泛部署,使个人与组织可自建高级LLM能力。随着其在工业界普及,保障其安全可靠运行成为关键问题。然而,不安全的默认设置与配置错误常导致LLM服务暴露于公网,带来严重安全与工程风险。本研究开展大规模实证调查,分析公开可访问的LLM部署情况,涵盖服务数量、暴露特征、系统漏洞及关联风险。通过互联网范围测量,共识别出15个框架下的320,102个公开服务,提取158个唯一API端点,按功能与安全风险分为12类。结果显示,超过40%的端点使用明文HTTP协议,超过210,000个端点缺乏有效的TLS元数据。API暴露极不一致:例如,Ollama对超过35%的未认证请求有响应,约15%会泄露模型或系统信息;其他框架则实施更严格控制。普遍发现使用不安全协议、糟糕的TLS配置以及关键操作无认证访问。这些安全风险如模型泄露、系统入侵、未授权访问普遍存在,凸显需采用‘默认安全’框架与更强部署实践。
原文摘要 · Abstract (English)
Large language models (LLMs) are increasingly deployed through open-source and commercial frameworks, enabling individuals and organizations to self-host advanced LLM capabilities. As LLM deployments become prevalent, particularly in industry, ensuring their secure and reliable operation has become a critical issue. However, insecure defaults and misconfigurations often expose LLM services to the public internet, posing serious security and system engineering risks. This study conducted a large-scale empirical investigation of public-facing LLM deployments, focusing on the prevalence of services, exposure characteristics, systemic vulnerabilities, and associated risks. Through internet-wide measurements, we identified 320,102 public-facing LLM services across 15 frameworks and extracted 158 unique API endpoints, categorized into 12 functional groups based on functionality and security risk. Our analysis found that over 40% of endpoints used plain HTTP, and over 210,000 endpoints lacked valid TLS metadata. API exposure was highly inconsistent: some frameworks, such as Ollama, responded to over 35% of unauthenticated API requests, with about 15% leaking model or system information, while other frameworks implemented stricter controls. We observed widespread use of insecure protocols, poor TLS configurations, and unauthenticated access to critical operations. These security risks, such as model leakage, system compromise, and unauthorized access, are pervasive and highlight the need for a secure-by-default framework and stronger deployment practices.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。