
AI AppSec
io.github.subodhkc由 GitHub 帳號 subodhkc 發布v0.1.0更新於 Oct 24, 2026
Evidence-backed AppSec for AI applications and agents. Powered by HAIEC.
概覽
本機 MCP 伺服器,對 AI、LLM 與代理程式原始碼執行靜態安全掃描,回傳有證據支撐的發現。
- 可以做什麼
- 掃描 AI/LLM/代理程式原始碼中的安全風險,包括不安全的 AI 輸出執行、機密外洩、RAG 與模型整合風險、不安全的 AI API 用法及提示詞相關訊號,使用內附的 Semgrep 規則包(122 個偵測器、79 項安全檢查)。依類型、嚴重程度與處置建議報告發現,並歸併為安全關注族群。提供覆蓋統計以及每次掃描的 COMPLETE、PARTIAL 或 ERROR 狀態。產生帶 SHA-256 摘要的防竄改掃描回執,以及綁定目標情境的證據信封。修正後重新掃描並比對,確認特定發現已解決。
- 適用情境
- 適用於開發者在提交、推送、合併或部署前,想對 AI 應用程式或代理程式碼做安全審查,或詢問某次變更是否可安全合併時。它適合本機離線靜態檢查,而非執行期保障或合規認證。
- 執行需求
- 以本機 stdio 程序執行,透過 npm 套件 ai-appsec 安裝(全域安裝或使用 npx)。需要 Node.js 以及外部的 Semgrep 1.173.0 引擎,該引擎未隨套件附帶;setup 指令會安裝它,可能需要網路存取。無需 HAIEC 帳號、API 金鑰或環境變數,一般掃描可離線進行。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 AI AppSec,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
AI AppSec
Evidence-backed AppSec for AI applications and agents.
Powered by HAIEC.
Audit AI code for security risks before you commit, push, merge, or deploy.
What AI AppSec Does
AI AppSec produces deterministic, reproducible static security evidence for AI-agent and AI-application source code. It uses Semgrep 1.173.0 as its execution engine with a bundled Public Core rulepack (122 detectors, 79 security checks).
Key properties:
- Static analysis only — does not execute target code
- No network required for normal scans (Semgrep setup may require network)
- No HAIEC account or API key required
- Deterministic evidence — Scan Receipts with SHA-256 digests
- Fail-closed digests — rulepack/manifest verified at runtime
- Proof-of-fix — rescan comparison with check-evaluation safety
Quick Start
Or use via npx without global install:
Prerelease channel:
@nexttracks upcoming prereleases (e.g.ai-appsec@next).
When to Use It
Use scan_ai_security when a developer asks to:
- "check this for security issues"
- "audit this task before I push"
- "review this change for security problems"
- "scan this AI agent" or "scan this AI app"
- "check my LLM application"
- "security review this PR"
- "is this safe to merge"
- "check this before deployment"
- "audit this code for vulnerabilities"
- "run a security scan"
- "check for security risks before commit"
scan_ai_security
The MCP tool scan_ai_security is the only tool implemented in v0.1.
It scans AI/LLM/agent application source code for security risks including:
- Unsafe AI-output execution
- Secrets exposure
- RAG/model integration risks
- Insecure AI API usage
- Control gaps
- Prompt/input-related risk signals
What scan_ai_security Does NOT Do
- Does not provide complete AI system assurance
- Does not provide runtime behavioral assurance
- Does not provide compliance certification
- Does not guarantee zero false positives
- Does not prove root causes for concern families
- Does not execute target code, install dependencies, or run package managers
- Does not perform compliance assessment (compliance requires additional HAIEC evidence)
Findings
Findings are classified by:
- Finding kind: PRESENCE, RISK_SIGNAL, CONTROL_GAP, VULNERABILITY
- Severity: CRITICAL, HIGH, MEDIUM, LOW, INFO
- Disposition: INFORMATIONAL, REVIEW, BLOCK
Security Concern Families
Security Concern Families summarize semantically compatible finding instances for decision-quality presentation. A concern family is a deterministic grouping view — it is NOT necessarily one vulnerability, one material issue, or one root cause. Underlying finding instances remain auditable.
Concern family count is not a vulnerability count. Top 20 / Top 50 are presentation limits, not evidence limits.
COMPLETE / PARTIAL / ERROR
- COMPLETE: All supported files in scope were successfully analyzed.
- PARTIAL: Some supported files could not be analyzed (e.g., parser failures). PARTIAL scans cannot prove absence of findings. Missing evidence is never interpreted as PASS.
- ERROR: The scan could not complete due to an engine error.
Coverage
AI AppSec provides explicit coverage accounting:
- DISCOVERED: all files found beneath the target
- INTENTIONALLY_EXCLUDED: files excluded by scope policy
- UNSUPPORTED: files outside supported extensions (.py, .js, .jsx, .ts, .tsx)
- TARGETED: supported files intended for analysis
- ENGINE_REPORTED_SCANNED: files Semgrep reports as scanned
- PARSE_FAILED: files with parse errors
- SUCCESSFULLY_ANALYZED: scanned minus parse failures
Scan Receipt
Every scan produces a tamper-evident Scan Receipt with SHA-256 digests for:
- Finding set
- Concern family set
- Coverage file sets
- Evaluated security checks and detectors
- Semantic receipt identity
COMPLETE scans produce reproducible receipts across processes and operating systems. PARTIAL scans preserve run-specific coverage differences.
Evidence Envelope
Each scan produces an Evidence Envelope that binds the receipt to the scan execution context, including:
- Producer identity
- Target identity (scan input digest, git commit, dirty state)
- Execution status and completeness
- Semantic receipt digest
- Envelope digest
Proof-of-fix
Rescan a target after a fix to compare receipts. The proof-of-fix comparison is safe: it verifies that a specific security check's findings were resolved without requiring the entire scan to be identical.
Offline / Local Operation
Normal scanning operates fully offline after prerequisites are installed:
- No HAIEC cloud access required
- No account or API key required
- No rule download during scanning
- No telemetry emitted (Semgrep invoked with
--metrics off)
Semgrep setup (ai-appsec setup) may require network access to install the
engine. Once installed, all scanning is local.
Semgrep Prerequisite
scan_ai_security requires Semgrep 1.173.0 (exact version match).
Semgrep is NOT bundled with this package. It is an external engine installed separately. See THIRD_PARTY_NOTICES.md for details.
Limitations
- Only
scan_ai_securityis implemented in v0.1 - Static analysis only — no runtime behavioral evidence
- No compliance certification or assessment
- No tenant isolation checking (roadmap)
- No LLM content verification (roadmap)
- No deploy security gating (roadmap)
License
MIT License
Copyright (c) 2026 HAIEC
See LICENSE for the full license text.
Security Reporting
If you believe you have found a security vulnerability:
- Do not disclose it publicly before review.
- Report via GitHub private vulnerability reporting.
- For non-sensitive bugs, use GitHub Issues.
No bug bounty program exists at this time. This project is maintained by a small team. We appreciate responsible disclosure and patience.
Roadmap
Future HAIEC capabilities (not yet implemented in this package):
- Tenant isolation checking (
scan_tenant_isolation) - LLM/runtime content verification (
verify_llm_content) - Deploy security gating (
check_deploy_security) - Native deterministic dataflow analysis
- Runtime evidence
- Inventory evidence
- Regulatory evidence
- Compliance/assurance integration
- Compliance Twin
These will remain independent products/engines. See the HAIEC architecture principle: one workflow, four independent checks.
HAIEC
AI AppSec is powered by HAIEC. HAIEC is the broader assurance platform that may combine ai-appsec evidence with runtime, inventory, regulatory, and external evidence for broader compliance and assurance in the future.
Founder-led development with HAIEC acting as the release gatekeeper for provenance, licensing, and publication.
Related Projects
- LLMVerify — LLM content verification (independent product, separate repository)
- Tenant Isolation — Cross-tenant boundary checks (independent product, separate repository)
Built by Subodh Kc — a HAIEC (Human AI Evidence Company) product.
來源:README.md,提交 96b36a5
工具
0版本歷史
1- v0.1.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分