Skip to content
ai-supply.store
探すカテゴリランキングコミュニティAgent APIFAQ
サインイン無料登録
catalog / Cybersecurity / LangKit
⛨GuardrailCybersecurityFree

LangKit

Open-source toolkit that extracts safety and quality signals — injection, PII, toxicity, sentiment, relevance — from LLM prompts and responses.

@ai-supply
インストール数60k
⟳ upstream v0.0.35 · updated 1y ago
↗ ソースリポジトリ
← More CybersecurityCybersecurity leaderboard →How we grade security →Source ↗
! Grade B · 75/100 · ReviewSecurity assessment
✓No compromise signals15capabilities surfaced1known CVE6of 20 OWASP controls clear
Potentially unbounded loopVulnerable dependenciesExternal endpoints declared · expectedPrompt-injection phrasing · expected
scanned 1mo ago·osv · gitleaks · opengrep · picklescan + heuristics·full breakdown in the Security tab ↓

LangKit — safety & quality metrics for LLM prompts and responses

LangKit is an open-source text-metrics toolkit that extracts safety, quality, and relevance signals from LLM prompts and responses, so you can monitor and guardrail models in production rather than trusting them blind.

Key features

  • Prompt-injection and jailbreak similarity scoring against known-attack themes
  • PII pattern detection, toxicity, and sentiment analysis on both inputs and outputs
  • Text-quality/readability metrics and prompt-response relevance via semantic similarity
  • Consistency and refusal signals to surface likely hallucinations or off-policy replies
  • Emits metrics compatible with whylogs for drift monitoring, dashboards, and alerting

Unlike a single classifier, LangKit produces a bundle of interpretable signals you can threshold and combine into your own guardrail policy, making it a practical observability layer for LLM safety and security.

Curated mirror of the open-source LangKit (Apache-2.0). Get it from the source.

Rating rank
#1
of 19 in Cybersecurity
Install rank
#8
of 19 in Cybersecurity
Security score
75/100 · B
review
Security rank
#13
of 19 in Cybersecurity
Installs
60k
cat avg 85k
This listing vs category average
Installs
this
cat avg
Security (of 100)
this
cat avg
Adoption trend
See the Cybersecurity leaderboard →
! Security: Review · 7575/100 · grade Bscanned 1mo ago
✓ no compromise signals16 risk-surface · 9/20 OWASP controls flagged

Compromise signals — malicious or tampered code (leaked secrets, backdoors, a dropped executable) — reduce the score, and known dependency CVEs carry a bounded penalty (they warrant review but never QUARANTINE — update the dependency to clear). Other dangerous-by-capability traits are risk surface, expected for some capabilities. Every finding is mapped to its OWASP control below.

Control card · high confidence (static)
framework: pytestframework: guardrails-aiframework: presidiocovers: secrets-leakcovers: prompt-injectioncovers: jailbreakcovers: toxicitycovers: hallucinationcovers: piicovers: biascovers: robustness
check_openai_api_keycheck_or_prompt_for_api_keyscheckedBoxesdetect_injectiondetecttest_callback_passthroughs_undefined_oktest_callback_passthroughs_undefined_no_argstest_callback_passthroughs_defined_functionstest_callback_passthroughs_defined_logging_functionstest_callback_instance_handler_definedtest_callback_instance_handler_with_metadatatest_callback_instance_handler_defined_getattrtest_callback_instance_three_ply_class_hierarchytest_count_patternstest_extract_pandastest_extract_rowtest_extract_light_metricstest_extract_with_custom_schematest_download_embeddingstest_injectionstest_init_calltest_custom_encodertest_similaritytest_metadata_langkit_version

Findings mapped to the OWASP Top 10 for LLM Applications (2025) and the OWASP Machine Learning Security Top 10. Expand any flagged control for the exact findings — compromise reduces the score; expected/risk-surface do not, except a known CVE, which carries a small bounded penalty (high/critical → Review).

OWASP Top 10 for LLM Applications
⚠LLM03Supply Chaincritical
Vulnerable/compromised dependencies, models or archives in the artifact.
•Vulnerable dependencies — 213 known vulnerabilities in: aiohttp@3.9.3, black@23.12.1, certifi@2024.2.2, filelock@3.13.1, h11@0.14.0, idna@3.6, jinja2@3.1.3, jupyter-core@5.7.1 (CWE-1395)known CVE · -25 pts
⚠LLM01Prompt Injectionhigh
Adversarial instructions embedded in an artifact that hijack a downstream LLM.
•Prompt-injection phrasing — instruction-subversion language detected · whylabs-langkit-5d6cab1/DESCRIPTION.md (CWE-77)expected
⚠LLM05Improper Output Handlingmedium
Code that pipes model/user output into shell, eval, SQL or paths unsafely.
•Suspicious code patterns — dynamic code execution · whylabs-langkit-5d6cab1/langkit/tests/test_count_patterns.py (CWE-95)expected
⚠LLM06Excessive Agencymedium
Over-broad tool/permission surface or unrestricted egress.
•External endpoints declared — 1 distinct host(s) · whylabs-langkit-5d6cab1/.gitignoreexpected
•External endpoints declared — 3 distinct host(s) · whylabs-langkit-5d6cab1/DESCRIPTION.mdexpected
•External endpoints declared — 16 distinct host(s) · whylabs-langkit-5d6cab1/langkit/examples/ChatGPT_Behavioral_Monitoring.ipynbexpected
•External endpoints declared — 2 distinct host(s) · whylabs-langkit-5d6cab1/langkit/examples/Choosing_an_LLM.ipynbexpected
•External endpoints declared — 5 distinct host(s) · whylabs-langkit-5d6cab1/langkit/examples/Custom_Encoder.ipynbexpected
•External endpoints declared — 10 distinct host(s) · whylabs-langkit-5d6cab1/langkit/examples/Detecting_Jailbreaks_and_Prompt_Injections.ipynbexpected
•External endpoints declared — 4 distinct host(s) · whylabs-langkit-5d6cab1/langkit/examples/Injections.ipynbexpected
•External endpoints declared — 6 distinct host(s) · whylabs-langkit-5d6cab1/langkit/examples/Langchain_OpenAI_LLM_Monitoring_with_WhyLabs.ipynbexpected
•External endpoints declared — 8 distinct host(s) · whylabs-langkit-5d6cab1/langkit/examples/huggingface_langkit_whylabs.ipynbexpected
⚠LLM07System Prompt Leakagemedium
Secrets, internal hosts or proprietary logic exposed in shipped prompts.
•Internal host / private infrastructure reference — shipped content references a private IP range or internal-only host · whylabs-langkit-5d6cab1/langkit/examples/Detecting_PII_with_Presidio.ipynb (CWE-200)expected
⚠LLM10Unbounded Consumptionmedium
Unbounded loops/recursion causing DoS or runaway cost.
Enforced at runtime by the gateway (rate limits + spend caps + size caps); static check flags unbounded loops.
•Potentially unbounded loop — an infinite loop (while True / while(1) / for(;;)) may cause runaway consumption · whylabs-langkit-5d6cab1/langkit/examples/LLM_to_WhyLabs.ipynb (CWE-835)risk surface
§LLM09MisinformationGovernance
Artifacts designed to produce false/deceptive output.
Detectable only by runtime behavioral evaluation; addressed via responsible-use attestation.
✓LLM02Sensitive Information DisclosurePassed
✓LLM04Data and Model PoisoningPassed
Backdoors/poisoning in training data or serialized models.
Behavioral poisoning needs model execution; static check covers unsafe serialization + dataset skew only.
✓LLM08Vector and Embedding WeaknessesPassed
PII or plaintext source leakage in embedding/vector exports.
Embedding inversion/poisoning is largely runtime; static check covers PII in vector exports.
OWASP Machine Learning Security Top 10
⚠ML06AI Supply Chaincritical
Compromised PyPI/npm packages, typosquats, unsafe serialized models.
•Vulnerable dependencies — 213 known vulnerabilities in: aiohttp@3.9.3, black@23.12.1, certifi@2024.2.2, filelock@3.13.1, h11@0.14.0, idna@3.6, jinja2@3.1.3, jupyter-core@5.7.1 (CWE-1395)known CVE · -25 pts
⚠ML02Data Poisoninghigh
Poisoned training datasets with triggers or anomalous distributions.
Static check covers trigger phrasing, PII and label skew; full poisoning detection is runtime.
•Prompt-injection phrasing — instruction-subversion language detected · whylabs-langkit-5d6cab1/DESCRIPTION.md (CWE-77)expected
⚠ML09Output Integritymedium
Middleware tampering with model outputs in transit.
Gateway enforces TLS + response integrity; static check flags output-rewriting code.
•Suspicious code patterns — dynamic code execution · whylabs-langkit-5d6cab1/langkit/tests/test_count_patterns.py (CWE-95)expected
§ML01Input Manipulation (Adversarial)Governance
Models vulnerable to adversarial perturbations.
Requires runtime robustness evaluation; addressed via publisher robustness attestation.
§ML03Model InversionGovernance
Training data reconstructable from a model's outputs.
Runtime/evaluation property; addressed via model-card data-provenance + DP attestation.
§ML04Membership InferenceGovernance
Determining whether a record was in the training set.
Runtime/evaluation property; addressed via overfitting disclosure + DP attestation.
§ML08Model SkewingGovernance
Models trained on skewed data producing biased output.
Requires fairness evaluation; addressed via model-card bias/limitations disclosure.
✓ML05Model TheftPassed
Unlicensed re-distribution / license-incompatible derivatives.
Static check verifies license declaration; extraction throttling is runtime.
✓ML07Transfer Learning AttackPassed
Backdoored base models / LoRA adapters propagating to derivatives.
Backdoor detection needs behavioral probing; static check covers unsafe serialization + provenance.
✓ML10Model Poisoning (Weights)Passed
Tampered model weight files; integrity must be verifiable.
Static check enforces safe formats + records a content hash for downstream verification.
Other findings (5) · hygiene / uncategorized
•Unrecognized file type — '.cfg' is not on the allowlist · whylabs-langkit-5d6cab1/.bumpversion.cfgrisk surface
•Unrecognized file type — '.gitignore' is not on the allowlist · whylabs-langkit-5d6cab1/.gitignorerisk surface
•Unrecognized file type — '.?' is not on the allowlist · whylabs-langkit-5d6cab1/LICENSErisk surface
•Suspicious network references — URL shortener (16 URLs) · whylabs-langkit-5d6cab1/langkit/examples/Langchain_OpenAI_LLM_Monitoring_with_WhyLabs.ipynbexpected
•Suspicious network references — URL shortener (23 URLs) · whylabs-langkit-5d6cab1/langkit/examples/huggingface_langkit_whylabs.ipynbexpected
✔ verified source · pinned whylabs-langkit-5d6cab1
Check against a policy

The same gate an agent runs before installing (POST /api/v1/trust/langkit-llm-safety-metrics/check). Click a policy:

Consume LangKit programmatically. Authenticate with an API key or session — see Authorize an agent.

# Agents: CHECK BEFORE YOU INSTALL (no auth) — score, grade, level, capability manifest
curl https://ai-supply.store/api/v1/trust/langkit-llm-safety-metrics

# Gate against your org policy (returns { pass, violations })
curl -X POST https://ai-supply.store/api/v1/trust/langkit-llm-safety-metrics/check \
  -H "Content-Type: application/json" \
  -d '{"minGrade":"B","denyPermissions":["shell"],"denyUnknownEgress":true}'

# CLI
npx ai-supply add langkit-llm-safety-metrics

# REST (install → download)
curl -X POST https://ai-supply.store/api/v1/listings/langkit-llm-safety-metrics/install \
  -H "Authorization: Bearer $AIM_KEY"

# MCP tool
install_listing({ "slug": "langkit-llm-safety-metrics" })
OpenAPI spec →
vlatest
! Security: Review · 751mo ago

Curated mirror — latest upstream source. See the repository for tagged releases.

Sign in and install this listing to leave a review.

More from @ai-supply

View profile →
◉Agent
MetaGPT
Multi-agent framework that assigns GPT roles (PM, engineer, QA) to solve complex software tasks end-to-end.
↓ 1.0M
⇄Connector
vLLM
High-throughput, memory-efficient LLM inference engine with PagedAttention and continuous batching.
↓ 892k
⇄Connector
Meilisearch
Lightning-fast open-source search engine with typo-tolerance, semantic hybrid search, and sub-50ms response times.
↓ 811k
△Eval
Weights & Biases (wandb)
ML experiment tracking and visualization — log metrics, hyperparameters, models, and media in real time.
↓ 784k
ai-supply.store

無料でセキュリティ監査済みのAI機能。スキル、MCP、プラグイン、agent、データセットまで、一つひとつをスコアリングし鮮度も追跡。人にもagentにも使えるように設計されています。

api · v3.1status · all green
お問い合わせ
support@ai-supply.storesecurity@ai-supply.store
カタログ
  • 探す
  • カテゴリ
  • ランキング
  • ベンチマーク
  • セキュリティ
  • Scan a repo
コミュニティ
  • コミュニティ
  • FAQ
エージェント向け
  • クイックスタート (60s)
  • エージェントを認可
  • Agent API
  • OpenAPI 仕様
ビルダー向け
  • 公開する
  • ダッシュボード
アカウント
  • アカウント作成
  • サインイン
  • 設定
法的情報
  • 利用規約
  • パブリッシャー契約
  • 利用規定
  • プライバシーポリシー