CanopiiCanopiiAll serversEnterprise →
chrisryugj/korean-law-mcp

chrisryugj/korean-law-mcp vmain@2887dd1

Security Trust Score
Grade F · Serious issues
Tier 1 · Public sourceHigh confidence · 98%
Declared MCP capabilities
ResourcesPrompts

This server scored F. Run it behind runtime policy enforcement so one bad tool call can't become an incident.

1 issue capping this score
  • criticalNo command-injection sinks29 occurrences
Reputation2.4kstars476forks1open issues1d agolast commit<1yage

Security controls

Deterministic, evidence-backed. Score earned from passing controls; a failed guard caps it.

Model–MCP Runtime Guardrails

  • Warn
    Strict JSON Schema Enforcementschemas not strict

    Tool inputs are constrained (additionalProperties:false), so unexpected arguments can't be smuggled in.

    Fix: Set additionalProperties:false and require explicit parameters on every tool.

  • Pass
    Indirect Prompt Injection (IPI) Defensesguardno injection markers

    Tool/prompt/resource text is free of hidden instructions that could hijack the agent.

  • Pass
    User-in-the-Loop / Approval Scopeguardno destructive tool scope

    No over-broad or destructive tools (arbitrary shell, bulk-delete) that warrant human approval.

  • N/A
    Tool Definition Integrityguardno prior version to diff

    Every consecutive version pair is diffed for new injection markers or destructive scope — a risky diff anywhere in history is a rug-pull (fail, durable); benign description drift warns.

Application Security Checks

  • Fail
    No command-injection sinksguard29 occurrences

    Untrusted tool input reaching a shell yields remote code execution. How many servers fail this?

    src/lib/historical-utils.ts:159src/lib/law-parser.ts:173src/lib/law-search.ts:70src/lib/risk-rules.ts:385

    Fix: Never pass tool arguments to a shell; use argv arrays with shell disabled.

  • Warn
    No path traversalguard25 occurrences

    Naive path checks let tools read/write outside intended directories (EscapeRoute-class).

    src/cli.ts:105src/cli.ts:117src/cli.ts:424src/lib/article-parser.ts:13

    Fix: Resolve to a canonical path and verify containment; reject ../ and symlinks.

  • Warn
    No SSRF sinksguard3 occurrences

    Fetching tool-supplied URLs can pivot into internal networks and metadata services.

    src/lib/external-https-proxy.ts:94src/lib/fetch-with-retry.ts:101src/lib/law-antibot.ts:47

    Fix: Allow-list destinations; reject arbitrary/loopback/link-local URLs.

  • Warn
    No known-vulnerable dependencies3 of 199 runtime deps vulnerable; worst high

    Runtime dependencies (parsed from the lockfile) are scanned against OSV.dev for published CVEs. Advisory: flagged dependencies lower the score but don't hard-cap it, since transitive reachability is unproven.

    [email protected] — GHSA-54fx-42gc-7vw4[email protected] — GHSA-79qm-7rj5-m7r9[email protected] — GHSA-8j4g-w8fx-2239[email protected] — GHSA-f23p-vx2j-j53r

    Fix: Upgrade the flagged dependencies past their fixed versions.

  • Warn
    Has a security policyno security policy

    A SECURITY.md gives a private path to report vulnerabilities.

    Fix: Add SECURITY.md with a disclosure contact and process.

  • Pass
    No dynamic code executionguardno sinks found

    eval()/exec()/Function() on tool-derived strings allows arbitrary code execution.

  • Pass
    No unsafe deserializationguardno sinks found

    pickle/yaml.load/etc. on untrusted data can execute code.

  • Pass
    No committed secretsguardno secrets found

    Hardcoded keys/tokens in published source are live credentials an attacker can use.

  • Pass
    Credentials sourced from environmentreads credentials from environment

    Reading secrets from env/secret stores avoids hardcoding them.

  • Pass
    Dependencies pinned (lockfile)lockfile present

    A lockfile makes installs reproducible and resistant to silent dependency swaps.

  • Pass
    Actively maintainedrecent commits

    Unmaintained servers don't receive security fixes.

  • Pass
    Repository not archivedguardactive

    Archived repositories will never be patched.

  • Pass
    Declares a licenseMIT

    A clear license is required for legal enterprise use.

  • Pass
    Adoption & popularityestablished adoption

    A small, capped nudge from stars/downloads — widely-used servers get more eyes on bugs. It can never offset a real security failure.

  • Not checked
    Signed releasesnot evaluated

    Signed releases let consumers verify artifacts weren't tampered with.

  • N/A
    No install/post-install scriptsguardno published package

    install hooks run arbitrary code on every consumer at install time.

  • N/A
    Package name not typosquattingguardno published package

    Names mimicking popular packages are a common malware delivery vector.

  • N/A
    Published with provenanceno published package

    Build provenance attests the artifact was built from the claimed source by CI.

  • N/A
    Established maintainerno published package

    Brand-new / single anonymous maintainers raise takeover and malware risk.

Transport & Trust Model

  • Warn
    Network Exposurebinds 0.0.0.0

    Binding 0.0.0.0 or exposing debug inspectors widens the attack surface.

    Fix: Bind to 127.0.0.1 by default; never ship open debug endpoints.

  • Pass
    Execution Sandboxingcontainerized

    A container/sandbox image limits blast radius; a server that runs natively has full host access.

  • N/A
    Transport Encryption (TLS)guardno remote endpoints

    Plaintext HTTP exposes traffic and bearer tokens to interception.

  • N/A
    IAM / Authentication Scopingno remote endpoints

    OAuth 2.1 / Protected Resource Metadata gates who can invoke tools.

  • N/A
    Live Endpoint Reachablenot dynamically scanned

    A dynamic scan connected to the declared remote endpoint and it responded — verified live, not a dead URL.

  • N/A
    Authentication Enforced (live)not dynamically scanned

    If the server declares auth is required, it must actually reject anonymous clients. Serving tools to unauthenticated callers is a real exposure.

Tools (80)

search_allsearch_lawget_annexesget_law_textget_law_treeget_ordinancenew_tool_name환불 제한get_admin_ruleget_three_tieradvanced_searchcompare_old_newget_law_historyordinance_radarcompare_articlessearch_ordinance과도한 면책search_admin_rulesearch_precedentssuggest_law_namesget_article_detailget_delegated_lawsget_external_linksget_historical_lawget_law_statisticsget_precedent_textget_article_historyget_law_system_treeparse_article_linkssearch_school_rulessummarize_precedentget_school_rule_textsearch_acr_decisionssearch_admin_appealssearch_ftc_decisions관할 법원 지정일방 해지 조항자동 갱신/연장get_acr_decision_textget_admin_appeal_textget_ftc_decision_textget_linked_ordinancessearch_historical_lawsearch_nlrc_decisionssearch_pipc_decisionsget_nlrc_decision_textget_pipc_decision_textsearch_interpretations일방적 설계변경find_similar_precedentsget_interpretation_text보증금 반환 조건일방적 조건 변경투자금 회수 제한search_public_corp_rulesget_public_corp_rule_text경업금지/전직금지compare_admin_rule_old_newextract_precedent_keywordssearch_acr_special_appeals공사대금 지급 지연라이선스 즉시 종료희석방지 조항 부재get_acr_special_appeal_textget_linked_ordinance_articlessearch_tax_tribunal_decisions비밀정보 범위 무제한영구적 비밀유지 의무위약금/손해배상 예정지식재산권 일괄 양도get_linked_laws_from_ordinanceget_tax_tribunal_decision_textsearch_appeal_review_decisionssearch_customs_interpretationsget_appeal_review_decision_textget_customs_interpretation_textsearch_constitutional_decisionssearch_public_institution_rulesget_constitutional_decision_textget_public_institution_rule_text