The Security Toolkit for LLM Interactions
protectai/llm-guard 的健康指数为 100 分中的 19 分,处于「危急」区间。 其得分最高的类别是Engineering Quality(89/100),最低的是Vitality(34/100)。 该仓库已归档,预计不会再有维护。
指标归入加权类别,统一采用 1–100 量表。总体分先取类别加权平均,再依据公开记录的分布进行校准,使各等级具有百分位含义;当公开证据触发高风险司法辖区政策时,评级会按政策调整,并设置 34(存在风险)的上限。
每条轴代表一个类别。形状比平均值更重要——健康的对象会填满整个图形,而“一峰一谷”式画像意味着某一维度的优势正掩盖另一维度的风险。
加权总体分 64 经校准后在公布的指数量表上为 73(记录校准 2026-08-02)。
| 注册表 | 软件包 | 版本 | 月下载量 | 版本数 | 最近发布 | 标签 |
|---|---|---|---|---|---|---|
| PyPI | llm-guard | 0.3.16 | - | 26 | 450 天前 | llmlanguage-modelsecurityadversarial-attacksprompt-injectionprompt-leakagepii-detectionself-hardeningfirewall |
项目是否仍有生命——是否仍在编写代码,是否仍在发布版本?
仅有沉默从不构成判定——一个小而完备的库可能多年无需提交。此提示需同时满足两点:长期没有人类提交,且项目明显未履行应尽的义务。自动化提交不计作维护。
弃置状态如何评估| 18/36 | 推送新近度 — 最近一次推送于 35 天前 |
| 1.4/36 | 提交节奏 — 52 周中有 2 周有提交 |
| 4.3/18 | 提交量 — 最近一年 2 次提交 |
| 0/10 | OpenSSF Scorecard:Maintained — project is archived |
| commits_last_year | 2 |
| human_commit_share | 0.72 |
| days_since_last_push | 35 |
| active_weeks_last_year | 2 |
| 16.2/27 | 有发布版本 — 23 个版本标签(无 GitHub 发布版本) |
| 7.2/36 | 发布时效 — 最近一次发布版本于 450 天前 |
| 19.8/27 | 发布节奏 — 约每 60.1 天发布一次 |
| 0/10 | OpenSSF Scorecard:Signed-Releases — 无数据 |
| releases_count | 23 |
| latest_release_tag | v0.3.16 |
| releases_from_tags | 是 |
| days_since_latest_release | 450 |
| mean_days_between_releases | 60.1 |
项目是否拥有用户、下载量与关注度,并具备欢迎贡献者参与的配置?
| 56.9/60 | 星标 — 3,201 个星标 |
| 22/25 | 复刻 — 440 个复刻 |
| 8/15 | 关注者 — 29 位关注者 |
| forks | 440 |
| stars | 3,201 |
| watchers | 29 |
| growth_state | unverified |
| growth_factor_pct | 100 |
| growth_unverified_reason | no_history |
| 22.5/22.5 | README |
| 22.5/22.5 | 许可证 — 可识别的许可证(MIT) |
| 18/18 | CONTRIBUTING 指南 |
| 0/13.5 | 行为准则 |
| 0/7.2 | 议题模板 |
| 6.3/6.3 | PR 模板 |
| has_readme | 是 |
| has_license | 是 |
| readme_badges | 4 |
| has_contributing | 是 |
| has_issue_template | 否 |
| has_code_of_conduct | 否 |
| readme_badge_services | shields.io |
| has_pull_request_template | 是 |
项目能否在其成员之外延续——巴士系数、响应能力、由谁支持,以及软件包的维护状况?
| 9/54 | 巴士系数 — 1 位贡献者贡献了半数提交 |
| 1.6/22.5 | 提交分布 — 头号贡献者编写了 93% 的提交 |
| 13.5/13.5 | 贡献者广度 — 20 位贡献者 |
| 0/10 | OpenSSF Scorecard:Contributors — project has 0 contributing companies or organizations -- score normalized to 0 |
| bus_factor | 1 |
| contributors_sampled | 20 |
| top_contributor_share | 0.927 |
| 37.7/42 | 议题解决 — 90% 的议题已关闭 |
| 16.5/30 | PR 接受 — 已裁定的 PR 中 113/206 已合并 |
| 0/13 | Newcomer PR acceptance — 30 天内没有首次贡献者的 PR 得到裁决 |
| 12/15 | OpenSSF Scorecard:Code-Review — Found 16/18 approved changesets -- score normalized to 8 |
| merged_prs | 113 |
| open_issues | 12 |
| closed_issues | 104 |
| prs_merged_7d | 0 |
| prs_decided_7d | 0 |
| prs_merged_30d | 0 |
| prs_decided_30d | 0 |
| issue_closed_ratio | 0.897 |
| closed_unmerged_prs | 93 |
| first_time_authors_30d | 0 |
| first_time_prs_merged_30d | 0 |
| first_time_prs_decided_30d | 0 |
| 30/30 | 所有权背书 — 组织持有 |
| 0/20 | 已验证域名 — 未读取该组织的域名验证状态 |
| 20.8/25 | 所有者影响力 — protectai 有 777 位关注者 |
| 17.7/25 | 既往记录 — 16 个公开仓库,账户约 4 年 |
| followers | 777 |
| owner_type | Organization |
| is_verified | — |
| owner_login | protectai |
| public_repos | 16 |
| account_age_days | 1,591 |
| 25/25 | 已发布且可解析 — pypi 上有 1 个软件包 |
| 14/35 | 发布时效 — 最近一次发布于 450 天前 |
| 20/20 | 版本历史 — 26 个已发布版本 |
| 20/20 | 未被弃用 — 活跃,未被弃用或撤回 |
| packages | llm-guard |
| ecosystems | pypi |
| any_deprecated | 否 |
| min_days_since_publish | 450 |
基础的工程与文档实践是否到位?
| 24/24 | CI 工作流 — 4 个工作流 |
| 24/24 | 存在测试 |
| 16/16 | Linter 配置 — .ruff.toml |
| 9.6/9.6 | Pre-commit 钩子 |
| 6.4/6.4 | .editorconfig |
| 8/20 | OpenSSF Scorecard:CI-Tests — 10 out of 21 merged PRs checked by a CI test -- score normalized to 4 |
| has_ci | 是 |
| has_tests | 是 |
| has_editorconfig | 是 |
| has_linter_config | 是 |
| has_precommit_config | 是 |
| 30/30 | README |
| 25/25 | 文档目录 |
| 15/15 | 文档 / 主页站点 — https://protectai.github.io/llm-guard/ |
| 10/10 | 仓库描述 |
| 10/10 | 主题标签 — 10 个主题标签 |
| 0/10 | Wiki |
| topics | large-language-models, llm, chatgpt, security-tools, adversarial-machine-learning, prompt-engineering, prompt-injection, llmops, llm-security, transformers |
| has_wiki | 否 |
| homepage | https://protectai.github.io/llm-guard/ |
| docs_site | https://protectai.github.io/llm-guard/ |
| has_readme | 是 |
| has_docs_dir | 是 |
| has_description | 是 |
可见的安全与供应链实践是否稳固,且不存在未解决的高风险司法辖区暴露?
| 7.5/7.5 | Binary-Artifacts — no binaries found in the repo |
| 0.8/7.5 | Branch-Protection — branch protection is not maximal on development and all release branches |
| 1/2.5 | CI-Tests — 10 out of 21 merged PRs checked by a CI test -- score normalized to 4 |
| 0/2.5 | CII-Best-Practices — no effort to earn an OpenSSF best practices badge detected |
| 6/7.5 | Code-Review — Found 16/18 approved changesets -- score normalized to 8 |
| 0/2.5 | Contributors — project has 0 contributing companies or organizations -- score normalized to 0 |
| 10/10 | Dangerous-Workflow — no dangerous workflow patterns detected |
| 7.5/7.5 | Dependency-Update-Tool — update tool detected |
| 0/5 | Fuzzing — project is not fuzzed |
| 2.5/2.5 | 许可证 — license file detected |
| 0/7.5 | Maintained — project is archived |
| 0/5 | Packaging — 无数据 |
| 0/5 | Pinned-Dependencies — dependency not pinned by hash detected -- score normalized to 0 |
| 4/5 | SAST — SAST tool detected but not run on all commits |
| 5/5 | Security-Policy — security policy file detected |
| 0/7.5 | Signed-Releases — 无数据 |
| 0/7.5 | Token-Permissions — detected GitHub workflow tokens with excessive permissions |
| 7.5/7.5 | Vulnerabilities — 0 existing vulnerabilities detected |
| source | openssf_scorecard |
| checks_evaluated | 16 |
| scorecard_version | v5.5.0 |
| checks_inconclusive | 2 |
| scorecard_aggregate | 5.6 |
| 6.8/35 | 直接依赖不含已知公告 — 2 个受影响:transformers 4.51.3 (critical 9.6), json-repair 0.44.1 (high 7.5) |
| 8.6/25 | 间接依赖不含已知公告 — 1 个受影响:cryptography 44.0.3 (high 8.2) |
| 27.7/40 | 没有长期未处理的公告 — 2 个携带公告的软件包超过 90 天未处理;最早一条发布于 401 天前 |
| source | osv |
| advisories | 38 |
| affected_packages | 3 |
| assessed_packages | 74 |
| unassessed_packages | 0 |
| affected_by_severity | critical 1, high 2 |
| direct_affected_packages | 2 |
该仓库在多大程度上具备与 AI 编码代理协同开发与维护的条件?权重刻意设小(4%):代理工具链是一项真实的维护信号,但完全不具备的仓库仍可达到 100/100。
| 0/45 | 代理指令 — 没有 CLAUDE.md / AGENTS.md / 编辑器规则 |
| 0/15 | 机器可读文档(llms.txt) |
| 18.5/40 | 可读的提交历史 — 72 次人类提交中有 25 次说明了意图(结构化标题或解释性正文) |
| has_llms_txt | 否 |
| llms_txt_url | — |
| legible_history_share | 0.347 |
| agent_instruction_files | — |
| agent_instruction_max_bytes | — |
| 18/18 | 一条命令的引导启动 — Makefile, llm_guard_api/Makefile |
| 22/22 | 自动化测试 |
| 11/11 | Lint / 格式化配置 — .ruff.toml |
| 11/11 | 静态类型检查 — pyrightconfig.json |
| 10/10 | 可复现环境 — Dockerfile |
| 2/10 | 已体现的代理实践 — 最近 100 次提交中有 1 次由代理编写或署名代理 |
| 8/8 | 自动化维护 — 最近 100 次提交中有 28 次为自动依赖更新 |
| 0/10 | OpenSSF Scorecard:Pinned-Dependencies — dependency not pinned by hash detected -- score normalized to 0 |
| has_nix | 否 |
| has_tests | 是 |
| lockfiles | — |
| has_dockerfile | 是 |
| typed_language | 否 |
| bootstrap_files | Makefile, llm_guard_api/Makefile |
| has_devcontainer | 否 |
| has_linter_config | 是 |
| typecheck_configs | pyrightconfig.json |
| agent_commit_share | 0.01 |
| toolchain_manifests | — |
| dependency_bot_commit_share | 0.28 |
| 27/45 | 可类型检查的代码 — Python,已配置类型检查(pyrightconfig.json) |
| 55/55 | 可控的文件大小 — 采样的 217 个源文件中有 0 个超过 60KB |
| primary_language | Python |
| largest_source_bytes | 26,353 |
| source_files_sampled | 217 |
| oversized_source_files | 0 |
| 40/40 | API 模式(OpenAPI/GraphQL/proto) — llm_guard_api/openapi.json |
| 0/20 | MCP 服务器 |
| 40/40 | 可运行示例 — examples, notebooks |
| example_dirs | examples, notebooks |
| has_mcp_signal | 否 |
| api_schema_files | llm_guard_api/openapi.json |
| interfaces_expected_of | network-service |
每颗 star 和每个 fork 的添加时间,来自 GitHub 并按天汇总。累计增长位于其构成来源——每日新增——的正上方,二者可相互对照:稳定的自然增长与短暂的突增形态截然不同。当这一差别可被衡量时,它会作为增长真实性予以报告。
每个点涵盖 3 天。
来自开源项目 OpenSSF Scorecard 的独立、工具无关的安全评估。每项检查奖励的是安全实践本身,而非特定供应商的工具。Scorecard 无法判定的检查项标记为 不适用,并从安全评分中剔除(绝不按零分计)。
| 10 | Binary-Artifacts | no binaries found in the repo |
| 1 | Branch-Protection | branch protection is not maximal on development and all release branches |
| 4 | CI-Tests | 10 out of 21 merged PRs checked by a CI test -- score normalized to 4 |
| 0 | CII-Best-Practices | no effort to earn an OpenSSF best practices badge detected |
| 8 | Code-Review | Found 16/18 approved changesets -- score normalized to 8 |
| 0 | Contributors | project has 0 contributing companies or organizations -- score normalized to 0 |
| 10 | Dangerous-Workflow | no dangerous workflow patterns detected |
| 10 | Dependency-Update-Tool | update tool detected |
| 0 | Fuzzing | project is not fuzzed |
| 10 | License | license file detected |
| 0 | Maintained | project is archived |
| 不适用 | Packaging | packaging workflow not detected |
| 0 | Pinned-Dependencies | dependency not pinned by hash detected -- score normalized to 0 |
| 8 | SAST | SAST tool detected but not run on all commits |
| 10 | Security-Policy | security policy file detected |
| 不适用 | Signed-Releases | no releases found |
| 0 | Token-Permissions | detected GitHub workflow tokens with excessive permissions |
| 10 | Vulnerabilities | 0 existing vulnerabilities detected |
| 注册表 | 软件包 | 版本约束 | 清单文件 |
|---|---|---|---|
| PyPI | asyncio | ==3.4.3 | llm_guard_api/pyproject.toml |
| PyPI | fastapi | ==0.115.12 | llm_guard_api/pyproject.toml |
| PyPI | llm-guard | ==0.3.16 | llm_guard_api/pyproject.toml |
| PyPI | pydantic | ==2.11.4 | llm_guard_api/pyproject.toml |
| PyPI | pyyaml | ==6.0.2 | llm_guard_api/pyproject.toml |
| PyPI | uvicorn | ==0.34.2 | llm_guard_api/pyproject.toml |
| PyPI | structlog | >=24 | llm_guard_api/pyproject.toml |
| PyPI | slowapi | ==0.1.9 | llm_guard_api/pyproject.toml |
| PyPI | opentelemetry-instrumentation-fastapi | ==0.54b1 | llm_guard_api/pyproject.toml |
| PyPI | opentelemetry-api | ==1.33.1 | llm_guard_api/pyproject.toml |
| PyPI | opentelemetry-sdk | ==1.33.1 | llm_guard_api/pyproject.toml |
| PyPI | opentelemetry-exporter-otlp-proto-http | ==1.33.1 | llm_guard_api/pyproject.toml |
| PyPI | opentelemetry-exporter-prometheus | ==0.54b1 | llm_guard_api/pyproject.toml |
| PyPI | opentelemetry-sdk-extension-aws | ==2.1.0 | llm_guard_api/pyproject.toml |
| PyPI | opentelemetry-propagator-aws-xray | ==1.0.2 | llm_guard_api/pyproject.toml |
| PyPI | psutil | >=5.9 | llm_guard_api/pyproject.toml |
| PyPI | bc-detect-secrets | ==1.5.43 | pyproject.toml |
| PyPI | faker | >=37,<38 | pyproject.toml |
| PyPI | fuzzysearch | >=0.7,<0.9 | pyproject.toml |
| PyPI | json-repair | ==0.44.1 | pyproject.toml |
| PyPI | nltk | >=3.9.1,<4 | pyproject.toml |
| PyPI | presidio-analyzer | ==2.2.358 | pyproject.toml |
| PyPI | presidio-anonymizer | ==2.2.358 | pyproject.toml |
| PyPI | regex | ==2024.11.6 | pyproject.toml |
| PyPI | tiktoken | >=0.9,<1.0 | pyproject.toml |
| PyPI | torch | >=2.4.0 | pyproject.toml |
| PyPI | transformers | ==4.51.3 | pyproject.toml |
| PyPI | structlog | >=24 | pyproject.toml |
来自 GitHub 依赖图的完整解析依赖集合:0 个直接依赖与 0 个间接(传递)软件包。仓库提交锁文件时,传递闭包才是完整的。
| 注册表 | 软件包 | 版本 | 关系 |
|---|
安装 pypi:llm-guard@0.3.16 会引入 74 个包(直接与传递):其中 3 个存在已知公告,2 个为直接依赖。
| 软件包 | 版本 | 关系 | 严重程度 | 公告数 | 修复版本 |
|---|---|---|---|---|---|
| transformers | 4.51.3 | 直接 | 严重 | 26 | 5.5.0 |
| json-repair | 0.44.1 | 直接 | 高 | 1 | 0.60.1 |
| cryptography | 44.0.3 | 间接 | 高 | 11 | 50.0.0 |
公告表示依赖图中记录的版本落入某条公告的受影响范围。可达性未经分析,且依赖图包含开发与测试的版本固定——某项发现可能只涉及工具链而非交付的软件。
发现这份报告有不准确之处,或有想法要分享?错误的测量、未识别的工具、建议、疑问——都欢迎提出。每条消息都会被阅读并得到回复。