PCI DSS v4.0.1 Compliance Checker

io.github.shyshlakov由 GitHub 帳號 shyshlakov 發布v0.7.1更新於 Oct 24, 2026

PCI DSS v4.0.1 compliance scanner for Go payment services, delivered as an MCP server

已驗證STDIO僅桌面開發者工具安全與監控

概覽

AI 產生的概覽

靜態分析 MCP 伺服器,掃描 Go 支付服務程式碼庫中的 PCI DSS v4.0.1 違規項目,並將每項發現對應到具體條款編號。

可以做什麼
  • 對 Go 程式碼庫執行完整 triage,附上 AI 分類與檔案:行號脈絡,或產生依條款區分的通過/未通過合規報告
  • 掃描 PAN/SAD 儲存與記錄、弱雜湊、硬編碼金鑰、明文 HTTP、不安全的 TLS 以及設定檔中的憑證
  • 檢查驗證強度、洩漏敏感脈絡的錯誤回應、稽核記錄涵蓋範圍、資料保留政策,以及支付頁面的 CSP/SRI/nonce
  • 透過 OSV 檢查 Go 相依套件的已知漏洞,並依 go.mod/go.sum 產生 CycloneDX SBOM
  • 依條款編號查詢 PCI DSS v4.0.1 條款內容
適用情境
適合維護 Go 支付服務、希望在程式碼上線前讓助理標出支付相關的 PCI DSS 問題,並產出依條款歸類的發現或合規報告的團隊。它是通用 SAST 工具、LLM 程式碼審查與 QSA 簽核的補充,而非替代方案。
執行需求
以 stdio 在本機執行。可透過 Go 1.25+(建議 1.26.9 或更新版本)安裝,或以 Docker 執行已發布的容器映像;Docker 方式需以唯讀方式掛載原始碼路徑。未宣告任何環境變數、標頭或帳號。相依套件檢查會連線至 OSV.dev。
安裝前請注意
伺服器會讀取原始碼目錄,請只掛載或指向目標程式碼庫。相依套件漏洞檢查會將資料傳送至 OSV.dev,README 表示不會傳送模組名稱。專案仍在 v1.0 之前的活躍開發階段,且僅涵蓋 PCI DSS 條款的一小部分,結果不能視為稽核結論。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 PCI DSS v4.0.1 Compliance Checker,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

pci-dss-mcp

Static analysis MCP server for Go payment service codebases. Every detected PCI DSS v4.0.1 violation in a Go payment service codebase is mapped to the specific requirement number before the code ships.

[CI] [Go Reference] [License: MIT] [OpenSSF Scorecard] [MCP Registry] [pci-dss-mcp MCP server]


What it does

pci-dss-mcp is a stdio MCP server that runs 12 scanners, an orchestrator, and an AI triage engine over a Go payment service codebase. Each finding carries a requirement_id mapped to a specific PCI DSS v4.0.1 line item; see docs/requirement-mapping.md for the canonical rule-to-requirement table and testdata/vulnerable-payment-service/EXPECTED-FINDINGS.md for live golden output.

What pci-dss-mcp catches today

  • HTTP framework input flow into log / error / panic sinks. Tier 1 frameworks (gin, chi, gorilla/mux, net/http (Go 1.22+), echo v4, fiber v2) and Tier 1 loggers (log/slog, logrus, zap, zerolog, logr, klog, hclog) ship in v0.7. Tier 2 (kratos, apex/log, charmbracelet/log) lands in v0.8. Tier 3 (fasthttp, beego, iris, httprouter, project-internal) is user-configurable via Phase 25 YAML once shipped. See docs/http_input_taint.md.

What pci-dss-mcp is NOT

  • Not a replacement for broad SAST. Use Semgrep, CodeQL, or gosec for OWASP Top-10 and language-agnostic vulnerabilities.
  • Not a replacement for LLM-based code review. pci-dss-mcp maps payment-specific issues to PCI DSS requirement IDs; LLM agents catch broad bugs via reasoning. The two layers compose.
  • Not Go-agnostic. Go-specific AST patterns and taint flow tracing are what make the precision possible.
  • Not a QSA replacement. Static analysis covers ~6% of PCI DSS v4.0.1 requirements. A Qualified Security Assessor must sign off on the rest.

Install

Go install (primary)

Requires Go 1.25+; use Go 1.26.9 or newer, because Go 1.25 is past end of life:

bash
go install github.com/shyshlakov/pci-dss-mcp@latest

The binary lands at $(go env GOPATH)/bin/pci-dss-mcp. See docs/install-from-source.md for PATH resolution, the macOS codesign provenance fix, cosign verification, and the MCP client JSON config.

Docker (alternative)

bash
docker pull ghcr.io/shyshlakov/pci-dss-mcp:v0.6.2

Useful for CI pipelines, QSA auditors who do not develop Go locally, or any environment without a host Go toolchain.

MCP Registry

Listed as io.github.shyshlakov/pci-dss-mcp at registry.modelcontextprotocol.io. Auto-published on every tag.

Usage

Add to your MCP client config (Claude Desktop claude_desktop_config.json, Cursor .cursor/mcp.json, or claude mcp add for Claude Code):

json
{  "mcpServers": {    "pci-dss-mcp": {      "command": "docker",      "args": ["run", "-i", "--rm",        "--mount", "type=bind,src=/Users/you/go/src,dst=/Users/you/go/src,readonly",        "ghcr.io/shyshlakov/pci-dss-mcp:v0.6.2"]    }  }}

src= and dst= mirror the same absolute path so the container sees your code at the same path your host uses; prompts pass the normal host path with no translation. For the go install variant and per-client examples, see docs/usage.md.

Two prompts to paste into your MCP client:

  1. Run pci-dss-mcp triage on /Users/you/payments-service. Use min_severity=MEDIUM and group findings by PCI DSS requirement.
  2. Generate a PCI DSS compliance report for /Users/you/payments-service in JSON format. Show requirement-level pass/fail status and severity counts.

Tools

ToolPurposeDocs
triage_findingsAll scanners + AI classification + file:line context in one calldocs/triage_findings.md
generate_compliance_reportRaw requirement pass/fail report (orchestrator over all scanners)docs/generate_compliance_report.md
scan_pan_dataPAN/SAD storage and logging (3.3.1, 3.4.1, 3.5.1)docs/scan_pan_data.md
check_encryptionWeak hashing, hardcoded keys, plain HTTP (4.2.1, 6.2.4)docs/check_encryption.md
check_tls_configInsecure TLS configs (4.2.1)docs/check_tls_config.md
check_secrets_in_configsCredentials in config files (8.6.2)docs/check_secrets_in_configs.md
check_error_handlingError responses leaking sensitive context (6.2.4)docs/check_error_handling.md
check_auth_strengthHardcoded passwords, weak policy, missing MFA, webhook signatures (8.3.1, 8.3.6, 8.4.2, 8.6.2)docs/check_auth_strength.md
audit_log_coverageMissing audit logs on payment flows (10.2.1)docs/audit_log_coverage.md
check_data_retentionMissing TTL, sensitive storage, missing zeroing (3.2.1, 3.3.1)docs/check_data_retention.md
check_payment_page_scriptsMissing CSP/SRI/nonce on payment pages (6.4.3, 11.6.1)docs/check_payment_page_scripts.md
check_dependenciesVulnerable Go dependencies via OSV (6.3.3); govulncheck-style privacy: no module names sent to OSV.dev. See docs/check_dependencies.md. Also covers update_vulnerability_db.docs/check_dependencies.md
generate_sbomCycloneDX 1.6 SBOM from go.mod/go.sum (6.3.2)docs/generate_sbom.md
explain_requirementLook up a PCI DSS v4.0.1 requirement by IDdocs/explain_requirement.md

All tools declare typed OutputSchema. See docs/tools.md for the catalog index and migration history.

Documentation

Status

Active development, pre v1.0. See ROADMAP.md and CHANGELOG.md.

License

MIT, see LICENSE.


pci-dss-mcp is a static analysis tool. It cannot replace a Qualified Security Assessor. Use its output as input to your compliance process, not as the compliance itself.

來源:README.md,提交 98bca66

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.7.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分