mason-keller commited on
Commit ·
23aa6de
1
Parent(s): 72320b4
feat: initial release of VulnForge MCP server v1.0.0
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- .agerecipientsAdded+2
- .gitattributesAdded+5
- .github/dependabot.ymlAdded+12
- .github/workflows/ci.ymlAdded+46
- .github/workflows/mirror.ymlAdded+66
- .gitignoreAdded+42
- LICENSEAdded+34
- NOTICEAdded+11
- README.md+181-2
- ROADMAP.mdAdded+23
- SECURITY.mdAdded+25
- docs/ASSET_INTEGRITY_GUIDE.mdAdded+69
- docs/assets/locales/ar/architecture.svgAdded
- docs/assets/locales/ar/banner.svgAdded
- docs/assets/locales/en/architecture.svgAdded
- docs/assets/locales/en/banner.svgAdded
- docs/assets/locales/es/architecture.svgAdded
- docs/assets/locales/es/banner.svgAdded
- docs/assets/locales/fr/architecture.svgAdded
- docs/assets/locales/fr/banner.svgAdded
- docs/assets/locales/hi/architecture.svgAdded
- docs/assets/locales/hi/banner.svgAdded
- docs/assets/locales/id/architecture.svgAdded
- docs/assets/locales/id/banner.svgAdded
- docs/assets/locales/ko/architecture.svgAdded
- docs/assets/locales/ko/banner.svgAdded
- docs/assets/locales/pt-BR/architecture.svgAdded
- docs/assets/locales/pt-BR/banner.svgAdded
- docs/assets/locales/ru/architecture.svgAdded
- docs/assets/locales/ru/banner.svgAdded
- docs/assets/locales/zh-CN/architecture.svgAdded
- docs/assets/locales/zh-CN/banner.svgAdded
- docs/locales/ar.mdAdded+181
- docs/locales/es.mdAdded+181
- docs/locales/fr.mdAdded+181
- docs/locales/hi.mdAdded+181
- docs/locales/id.mdAdded+181
- docs/locales/ko.mdAdded+181
- docs/locales/pt-BR.mdAdded+181
- docs/locales/ru.mdAdded+181
- docs/locales/zh-CN.mdAdded+181
- package-lock.jsonAdded+1255
- package.jsonAdded+40
- src/api/endpoint_audit.tsAdded+145
- src/db/sqli_audit.tsAdded+172
- src/index.tsAdded+72
- src/mcp/server.tsAdded+236
- src/patch/patch_engine.tsAdded+122
- src/types/index.tsAdded+77
- src/web/dom_audit.tsAdded+130
12# age public recipient for this repositoryage1eu6nquhnth3nuvdxucqjsmew0p5aywys8qg0d5r9h7ad0vkkyu2szp6x8g12345
# [age-vault] Automated In-Repo Cryptographic Protection*.vault.rs filter=age diff=age*.secret.* filter=age diff=agesecrets/** filter=age diff=age123456789101112version: 2updates: - package-ecosystem: "cargo" directory: "/" schedule: interval: "weekly" open-pull-requests-limit: 5 - package-ecosystem: "github-actions" directory: "/" schedule: interval: "weekly" open-pull-requests-limit: 512345678910111213141516171819202122232425262728293031323334353637383940414243444546name: CI
on: push: branches: [ main, master ] tags: [ 'v*' ] pull_request: branches: [ main, master ] workflow_dispatch:
env: CARGO_TERM_COLOR: always
jobs: build-and-test: name: Build & Test (${{ matrix.os }}) runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: os: [ ubuntu-latest, windows-latest, macos-latest ]
steps: - name: Checkout Repository uses: actions/checkout@v4
- name: Detect Rust & Run Cargo Suite if: hashFiles('Cargo.toml') != '' shell: bash run: | rustup update stable rustup component add rustfmt clippy cargo fmt --all -- --check cargo clippy --all-targets -- -D warnings cargo test --all-targets cargo build --release
- name: Detect Node.js & Run Check Suite if: hashFiles('package.json') != '' shell: bash run: | if [ -f "scripts/check.mjs" ]; then node scripts/check.mjs elif [ -f "package.json" ]; then npm test --if-present fi123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566name: Multi-Platform Mirror Sync
on: push: branches: - main - master tags: - '*' workflow_dispatch:
jobs: mirror-gitlab: name: Mirror -> GitLab runs-on: ubuntu-latest if: ${{ secrets.GITLAB_TOKEN != '' }} steps: - name: Checkout Full Repository History uses: actions/checkout@v4 with: fetch-depth: 0
- name: Push Branches and Tags to GitLab env: GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }} GITLAB_USER_OVERRIDE: ${{ vars.GITLAB_USER }} run: | REPO_NAME="${GITHUB_REPOSITORY#*/}" GL_USER="${GITLAB_USER_OVERRIDE}" if [ -z "$GL_USER" ]; then GL_USER=$(curl -fsSL -H "PRIVATE-TOKEN: ${GITLAB_TOKEN}" "https://gitlab.com/api/v4/user" | sed -n 's/.*"username":"\([^"]*\)".*/\1/p' | head -n 1) fi if [ -z "$GL_USER" ]; then GL_USER="${GITHUB_REPOSITORY_OWNER}" fi git push --prune "https://oauth2:${GITLAB_TOKEN}@gitlab.com/${GL_USER}/${REPO_NAME}.git" \ +refs/remotes/origin/*:refs/heads/* \ +refs/tags/*:refs/tags/*
mirror-huggingface: name: Mirror -> Hugging Face runs-on: ubuntu-latest if: ${{ secrets.HF_TOKEN != '' }} steps: - name: Checkout Full Repository History uses: actions/checkout@v4 with: fetch-depth: 0 lfs: true
- name: Push Branches and Tags to Hugging Face env: HF_TOKEN: ${{ secrets.HF_TOKEN }} HF_USER_OVERRIDE: ${{ vars.HF_USER }} run: | REPO_NAME="${GITHUB_REPOSITORY#*/}" HF_USR="${HF_USER_OVERRIDE}" if [ -z "$HF_USR" ]; then HF_USR=$(curl -fsSL -H "Authorization: Bearer ${HF_TOKEN}" "https://huggingface.co/api/whoami-v2" | sed -n 's/.*"name":"\([^"]*\)".*/\1/p' | head -n 1) fi if [ -z "$HF_USR" ]; then HF_USR="${GITHUB_REPOSITORY_OWNER}" fi git push --prune "https://${HF_USR}:${HF_TOKEN}@huggingface.co/${HF_USR}/${REPO_NAME}" \ +refs/remotes/origin/*:refs/heads/* \ +refs/tags/*:refs/tags/*123456789101112131415161718192021222324252627282930313233343536373839404142# Dependenciesnode_modules/npm-debug.log*yarn-debug.log*yarn-error.log*pnpm-debug.log*
# Production build outputdist/build/out/
# Environment and Secrets.env.env.*!.env.example*.pem*.key*.cert*.dpapi
# Local AI Memory & Private Development Logs (Git Excluded)TASK_BACKLOG.mddev_logs/scripts/ARCHITECTURE_MAP.md
# Operating System Files.DS_StoreThumbs.dbdesktop.ini
# IDE & Editor caches.vscode/.idea/*.swp*.swo
# Test coverage & Temporary cachescoverage/.nyc_output/.turbo/.cache/12345678910111213141516171819202122232425262728293031323334PROPRIETARY & CONFIDENTIAL SOFTWARE LICENSE
Copyright (c) 2026 The Authors & Workspace Owner. All Rights Reserved.
IMPORTANT — READ CAREFULLY:This software and associated documentation files (the "Software") are the proprietaryand confidential property of the Copyright Holder.
This repository is publicly visible on GitHub for evaluation, reference, and educational review.However, NO LICENSE, express or implied, is granted to any person obtaining a copy of thisSoftware to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copiesof the Software, or to create derivative works based upon the Software, without the priorexpress written permission of the Copyright Holder.
1. RESTRICTIONS ON USE: - You may NOT copy, reproduce, or mirror this repository or any part of its source code. - You may NOT modify, adapt, translate, or create derivative works based upon the Software. - You may NOT redistribute, sublicense, rent, lease, or resell the Software or any portion thereof. - You may NOT deploy or use the Software in commercial production environments without a commercial license. - You may NOT reverse engineer, decompile, or disassemble binary artifacts except as permitted by applicable law.
2. RESERVATION OF RIGHTS: The Copyright Holder reserves all rights, title, and interest in and to the Software, including all copyright, trademark, patent, trade secret, and intellectual property rights therein.
3. THIRD-PARTY & UPSTREAM NOTICES: Any third-party open-source components, toolkits, or libraries incorporated or referenced herein strictly retain and preserve all original copyright notices and license terms as detailed in the NOTICE file.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULARPURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM,DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISINGFROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.1234567891011vulnforge-mcpCopyright (c) 2026 mason-keller
This product includes software developed by mason-keller.
================================================================================Third-Party Software & Original Copyright Attributions (Mandatory Preservation)================================================================================This project strictly preserves all original copyright notices, license texts,and author attributions from upstream or third-party open-source components in fullcompliance with their respective licenses (e.g., Apache 2.0 §4(c), MIT, BSD).12# vulnforge-mcpUniversal AI-Native Web, API & Database Vulnerability Auditing with Automated Patch Injection MCP Server123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181<div align="center"><p align="center"><strong>🇺🇸 English</strong> · <a href="./docs/locales/ko.md">🇰🇷 한국어</a> · <a href="./docs/locales/zh-CN.md">🇨🇳 中文</a> · <a href="./docs/locales/es.md">🇪🇸 Español</a> · <a href="./docs/locales/hi.md">🇮🇳 हिन्दी</a><br /><a href="./docs/locales/ar.md">🇸🇦 العربية</a> · <a href="./docs/locales/pt-BR.md">🇧🇷 Português</a> · <a href="./docs/locales/ru.md">🇷🇺 Русский</a> · <a href="./docs/locales/fr.md">🇫🇷 Français</a> · <a href="./docs/locales/id.md">🇮🇩 Bahasa Indonesia</a></p><p align="center"><img src="./docs/assets/locales/en/banner.svg" alt="VulnForge MCP banner" width="100%" /></p># 🛡️ VulnForge MCP**Universal AI-Native Web, API & Database Vulnerability Auditing with Automated Patch Injection MCP Server**[](./LICENSE)[](https://modelcontextprotocol.io/)[](https://www.typescriptlang.org/)[](#-the-4-vulnerability-auditing-pillars)[](#-enterprise-security--age-cryptographic-protection)<sub>Architected & Licensed under Proprietary (All Rights Reserved) · Autonomous Security Engineering</sub></div>---## ⚡ Quickstart & 1-Line Execution<details open><summary><b>⚡ Quickstart & 1-Line Execution (Click to toggle / 접기·펼치기)</b></summary><br>Run VulnForge MCP directly with zero prior installation:```bash# 1. Start MCP Server over stdionpx vulnforge-mcp# 2. Run Built-in Security Audit Demonstrationnpx vulnforge-mcp --test-demo```### Adding to Claude Desktop / Antigravity (`claude_desktop_config.json`)```json{"mcpServers": {"vulnforge": {"command": "node","args": ["C:/github_nvcxzopgo/vulnforge-mcp/dist/index.js"]}}}```</details>---## 🏛️ The 4 Vulnerability Auditing Pillars<details open><summary><b>🏛️ View Architecture Pipeline Diagram (Click to toggle / 접기·펼치기)</b></summary><br><p align="center"><img src="./docs/assets/locales/en/architecture.svg" alt="VulnForge MCP Architecture Pipeline" width="100%" /></p>| # | Pillar Domain | Scope & Target Checks | Automated Patch Output ||---|---|---|---|| **01** | **Web & Headers** | Content-Security-Policy, HSTS, CORS Wildcards, X-Frame-Options, Cookie Flags | Express/Fastify/Koa security header injection middleware || **02** | **Frontend & DOM** | DOM XSS sinks (`innerHTML`, `document.write`, `eval`), Tabnabbing (`target="_blank"`), SRI hashes | Safe `textContent` rewriter & `rel="noopener noreferrer"` attributes || **03** | **API & Endpoints** | Broken Object Level Auth (BOLA/IDOR), Unauthenticated mutation routes, Mass assignment | Tenant ownership validators, auth middlewares, Zod DTO parsers || **04** | **Database & SQLi** | Raw template string queries, SQL concatenation, MongoDB `$where`, Credential leaks | Parameterized statements (`$1, $2`), NoSQL sanitizers, env configs |</details>---## 🛠️ 5 Core MCP Security Tools<details open><summary><b>🛠️ 5 Core MCP Security Tools (Click to toggle / 접기·펼치기)</b></summary><br>VulnForge MCP exposes 5 specialized security audit tools to your AI agent:1. **`vulnforge_audit_web`**:- Analyzes HTTP response headers, cookie flags, and DOM client code.- Computes an automated Security Score (0 to 100) and outputs prioritized CWE findings.2. **`vulnforge_audit_api`**:- Inspects route definitions (Express, Fastify, Next.js) or OpenAPI specifications.- Flags BOLA/IDOR patterns, missing auth middleware, and mass assignment risks.3. **`vulnforge_audit_db`**:- Evaluates SQL queries and ORM calls (Sequelize, Prisma, TypeORM, Knex, Mongoose).- Identifies raw string concatenation, unescaped interpolations, and NoSQL injection vectors.4. **`vulnforge_inject_patch`**:- Takes vulnerable code and automatically synthesizes a secure drop-in replacement.- Returns both patched code and a unified git diff for transparent review.5. **`vulnforge_full_scan`**:- Executes an end-to-end 360-degree security audit across Web, API, and DB layers simultaneously.</details>---## ⚡ Automated Defensive Patch Injection Engine<details open><summary><b>⚡ Automated Defensive Patch Injection Engine (Click to toggle / 접기·펼치기)</b></summary><br>VulnForge not only detects flaws, but actively writes defensive patches:```diff--- a/database.ts+++ b/database.ts@@ -1,3 +1,3 @@- const user = await db.query(`SELECT * FROM users WHERE email = ${email}`);+ const user = await db.query('SELECT * FROM users WHERE email = $1', [email]);``````diff--- a/frontend.js+++ b/frontend.js@@ -1,2 +1,2 @@- document.getElementById('name').innerHTML = userName;+ document.getElementById('name').textContent = userName;```</details>---## 🔐 Enterprise Security & age Cryptographic Protection<details open><summary><b>🔐 Enterprise Security & age Cryptographic Protection (Click to toggle / 접기·펼치기)</b></summary><br>All proprietary signatures and sensitive core modules are protected via modern UNIX-philosophy cryptographic tools:- **age (X25519)**: Fast, modern file encryption replacing legacy PGP.- **Minisign (Ed25519)**: Detached signature verification for high-assurance release binaries.- **Post-Quantum Cryptography (ML-KEM-768 / Kyber)**: Quantum-resistant hybrid key encapsulation for long-term audit trail confidentiality.- **3-Tier Key Backup**: NTFS permission isolation + Windows DPAPI hardware binding + Encrypted Cloud Mirror.</details>---## 🌐 Tri-Platform Mirroring Architecture (GitHub · GitLab · Hugging Face)<details open><summary><b>🌐 Tri-Platform Mirroring Architecture (GitHub · GitLab · Hugging Face) (Click to toggle / 접기·펼치기)</b></summary><br>Every commit pushed to the primary GitHub repository is automatically synchronized in real-time across 3 major platforms via GitHub Actions (`.github/workflows/mirror.yml`):- **GitHub**: `https://github.com/mason-keller/vulnforge-mcp`- **GitLab**: `https://gitlab.com/keller-lab/vulnforge-mcp`- **Hugging Face**: `https://huggingface.co/mason-keller/vulnforge-mcp`</details>---## 📄 Proprietary Software License<details open><summary><b>📄 Proprietary Software License (Click to toggle / 접기·펼치기)</b></summary><br>```textPROPRIETARY & CONFIDENTIAL SOFTWARE LICENSECopyright (c) 2026 The Authors & Workspace Owner. All Rights Reserved.Publicly visible on GitHub for evaluation, reference, and educational review only.Unauthorized copying, modification, redistribution, or commercial use is strictly prohibited.```</details>
1234567891011121314151617181920212223# Project Roadmap
This document tracks shipped capabilities and planned architectural milestones for VulnForge MCP.
---
## Shipped Capabilities
- [x] **Core Foundation & Architecture** — High-performance TypeScript MCP server, strict schema validation, and stdio transport.- [x] **Web Header & DOM Auditing** — Deep inspection of CSP, HSTS, CORS, cookie flags, and client-side DOM injection sinks.- [x] **API & Database Security Engine** — Automated detection for BOLA/IDOR patterns, raw SQL interpolation, and NoSQL injection vectors.- [x] **Automated Defensive Patch Synthesis** — AST-level remediation, parameterized query generation, and unified diff output.- [x] **10-Language Documentation & Vector Visuals** — Native documentation across 10 global locales with self-hosted SVG architecture banners.- [x] **Enterprise Vault & Multi-Platform Delivery** — age (X25519) cryptographic protection and tri-platform mirroring pipeline (GitHub · GitLab · Hugging Face).
---
## Planned Milestones
- [ ] **GraphQL Introspection & Schema Deep Dive** — Dynamic query depth analysis and introspection permission auditing.- [ ] **Dynamic Sandbox Verification** — Execution-based canary testing for synthesized patches before applying changes.- [ ] **CI/CD Security Gate Plugins** — Native GitHub Actions and GitLab CI runners for automated merge request blocking.- [ ] **Container & Cloud Configuration Scanners** — Infrastructure-as-code linting for Dockerfile, Kubernetes manifests, and Terraform files.12345678910111213141516171819202122232425# Security Policy
## Supported Versions
Security updates are applied to the latest release series on the `main` branch.
| Version | Supported || ------- | ------------------ || Latest (`0.x`) | :white_check_mark: || `< 0.1.0` | :x: |
## Cryptographic & Memory Safety Invariants
1. **Key Material Hygiene**: All passphrases, derived keys, intermediate KDF buffers, and decrypted payloads are wiped from memory on drop via `zeroize`.2. **Authenticated Encryption**: All containers verify integrity and authenticity using ChaCha20-Poly1305 AEAD or HMAC/CRC-32 layers prior to exposing plaintext.3. **Constant-Time Verification**: Authentication tags, MACs, and sensitive token comparisons execute in constant time to mitigate side-channel timing attacks.4. **Bounds & Overflow Protection**: Binary container parsers enforce strict length checks and saturating/checked arithmetic on untrusted headers.
## Reporting a Vulnerability
If you discover a potential security issue, memory safety bug, or cryptographic flaw:
1. **Do not open a public issue** with exploit details before a fix is available.2. Report the finding via [GitHub Security Advisories](../../security/advisories/new) or contact the maintainers directly with a minimal reproduction case.3. We review reports promptly and coordinate fixes and release notes upon resolution.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869# 🎨 Asset Integrity & Visual Asset Capture Studio Guide
> **규정 선언: 모든 프로젝트 자산(SVG, PNG, GIF, 다이어그램)의 100% 로컬 영구 보존, 프로그램 실제 실행 캡처(SVG/PNG/GIF), 및 GitHub 푸시 전 시각적 렌더링 캡처 검증 게이트 표준**
---
## 📌 2대 절대 원칙 (Two Uncompromising Invariants)
### 1. 외부 이미지 절대 금지 및 100% 로컬 자체 저장 (Zero External Image Dependency)- **배경 및 위험성**: - 외부 이미지 호스팅(Imgur, Postimages, 블로그, 외부 S3 등)을 마크다운 이미지 링크로 사용하면, 해당 외부 서비스의 서비스 종료, 트래픽 차단, 계정 정지, 링크 변경으로 인해 프로젝트 문서에 치명적인 **404 이미지 깨짐(엑스박스)** 현상이 발생합니다.- **철칙**: - 프로젝트에 사용되는 모든 다이어그램(SVG), 아키텍처 구조도, 시연 애니메이션(GIF), 스크린샷(PNG)은 **100% 프로젝트 내부(`docs/assets/...`)에 직접 파일로 커밋/저장**해야 합니다. - 마크다운 문서에서는 오직 저장소 상대 경로(`./docs/assets/...` 또는 `../assets/...`)나 본인 리포지토리의 원본 경로만 사용합니다. - 예외: 상태 표시용 표준 SVG 배지(`img.shields.io`)는 허용되나, 주요 본문 시각화 이미지는 전량 자체 호스팅을 강제합니다.
---
### 2. GitHub 반영 전 시각적 렌더링 캡처 검증 게이트 (Visual Render Capture Gate)- **배경 및 위험성**: - SVG 파일 내에 XML 예약어(`&`, `<`, `>`, `"`)가 엔티티(`&`, `<` 등)로 이스케이프되지 않은 채 생으로 들어가면, 브라우저의 XML 파서가 `XML Parsing Error`를 발생시켜 화면에 이미지가 전혀 렌더링되지 않고 깨진 이미지 아이콘이 출력됩니다. - 또한, SVG `<text>` 요소의 텍스트가 박스 경계를 넘치거나(overflow) 글꼴이 겹치는 레이아웃 결함이 발생할 수 있습니다.- **철칙**: - GitHub에 커밋 및 푸시하기 전, **반드시 실제 브라우저(Puppeteer / Headless Chromium)를 통해 렌더링하고 스크린샷 캡처를 수행하여 시각적 무결성을 인간 또는 AI가 직접 눈으로 확인**해야 합니다. - 모든 텍스트는 박스 내부에서 안전하게 줄바꿈(`formatSvgDesc` / `tspan`) 처리되어야 하며, 박스 밖으로 1픽셀도 넘치지 않아야 합니다.
---
## 📸 3. 프로그램 실제 실행 시각 자산 캡처 스튜디오 (`scripts/capture_assets.mjs`)
개발된 프로그램(Rust CLI 바이너리, 보안 분석 유틸리티 등)의 실제 터미널 실행 모습을 **초고화질 SVG, 고해상도 PNG, 동작 시연 GIF** 3종으로 자동 캡처하여 `docs/assets/`에 영구 보존합니다:
```powershell# 1. 원클릭 3종 세트 일괄 자동 캡처 (프로젝트 자동 감지 -> SVG, PNG, GIF 생성)node scripts/capture_assets.mjs auto-capture
# 2. 벡터 터미널 SVG 생성 (확대해도 절대 깨지지 않는 다크모드 창)node scripts/capture_assets.mjs svg --cmd "cargo run -- inspect target.exe" --out docs/assets/demo.svg
# 3. 고해상도 Retina PNG 캡처 (Headless Chrome / Puppeteer 렌더링)node scripts/capture_assets.mjs png --cmd "cargo run -- inspect target.exe" --out docs/assets/demo.png
# 4. 터미널 타이핑 & 실행 시연 애니메이션 GIF 생성 (내장 GIF89a 인코더)node scripts/capture_assets.mjs gif --cmd "cargo run -- inspect target.exe" --out docs/assets/demo.gif```
### 포맷별 특징 및 산출물:- **SVG (`terminal_demo.svg`)**: 10~25KB 초경량 벡터 그래픽. macOS/Windows 터미널 창 프레임, ANSI 컬러 구문 강조, 100% XML 엔티티 이스케이프 보장.- **PNG (`terminal_demo.png`)**: Headless Chromium으로 2x DPI Retina 스크린샷 캡처. 웹 및 모바일에서 선명하게 렌더링.- **GIF (`demo.gif`)**: 명령어 타이핑 애니메이션 ➔ 실행 결과 스트리밍 ➔ 완료 후 정지(Pause) ➔ 무한 루프 반복. 외부 라이브러리 없이 자체 인코딩.
---
## 🛠️ 4. 자동 검증 러너 (`scripts/verify_assets.mjs`)
본 툴킷에 포함된 `scripts/verify_assets.mjs`를 실행하면 아래 3단계 검증이 전자동으로 수행됩니다:
```powershell# 1. 일반 검증 (외부 이미지 누출 검사 + SVG XML 문법 정밀 감사)node scripts/verify_assets.mjs
# 2. 브라우저 렌더링 스크린샷 자동 캡처 검증 (Puppeteer 헤드리스 구동)node scripts/verify_assets.mjs --capture```
### 자동 수행 내역:1. **외부 이미지 누출 전수 스캔**: 프로젝트 내 모든 `.md` 파일에서 `http://`, `https://` 외부 이미지 참조를 탐지하여 경고 및 차단.2. **SVG XML 엔티티 파서 검사**: 생 `&` 문자, 태그 열림/닫힘 불일치 등 파싱 오류 원천 적발.3. **Headless 브라우저 렌더링 캡처**: 실제 렌더링 결과물을 `docs/render_verification_captured.png`로 캡처하여 저장.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181<div align="center">
<p align="center"> <a href="../../README.md">🇺🇸 English</a> · <a href="./ko.md">🇰🇷 한국어</a> · <a href="./zh-CN.md">🇨🇳 中文</a> · <a href="./es.md">🇪🇸 Español</a> · <a href="./hi.md">🇮🇳 हिन्दी</a><br /> <strong>🇸🇦 العربية</strong> · <a href="./pt-BR.md">🇧🇷 Português</a> · <a href="./ru.md">🇷🇺 Русский</a> · <a href="./fr.md">🇫🇷 Français</a> · <a href="./id.md">🇮🇩 Bahasa Indonesia</a></p>
<p align="center"> <img src="../assets/locales/ar/banner.svg" alt="VulnForge MCP banner" width="100%" /></p>
# 🛡️ VulnForge MCP
**خادم MCP شامل مدعوم بالذكاء الاصطناعي لتدقيق ثغرات الويب وواجهات البرمجة وقواعد البيانات مع حقن التحديثات الآمنة تلقائيًا**
[](../../LICENSE)[](https://modelcontextprotocol.io/)[](https://www.typescriptlang.org/)[](#-the-4-vulnerability-auditing-pillars)[](#-enterprise-security--age-cryptographic-protection)
<sub>Architected & Licensed under Proprietary (All Rights Reserved) · Autonomous Security Engineering</sub>
</div>
---
## ⚡ البدء السريع والتنفيذ بسطر واحد
<details open><summary><b>⚡ البدء السريع والتنفيذ بسطر واحد (Click to toggle / 접기·펼치기)</b></summary><br>
Run VulnForge MCP directly with zero prior installation:
```bash# 1. Start MCP Server over stdionpx vulnforge-mcp
# 2. Run Built-in Security Audit Demonstrationnpx vulnforge-mcp --test-demo```
### Adding to Claude Desktop / Antigravity (`claude_desktop_config.json`)```json{ "mcpServers": { "vulnforge": { "command": "node", "args": ["C:/github_nvcxzopgo/vulnforge-mcp/dist/index.js"] } }}```
</details>
---
## 🏛️ الأركان الأربعة لتدقيق الثغرات الأمنية
<details open><summary><b>🏛️ View Architecture Pipeline Diagram (Click to toggle / 접기·펼치기)</b></summary><br>
<p align="center"> <img src="../assets/locales/ar/architecture.svg" alt="VulnForge MCP Architecture Pipeline" width="100%" /></p>
| # | Pillar Domain | Scope & Target Checks | Automated Patch Output ||---|---|---|---|| **01** | **Web & Headers** | Content-Security-Policy, HSTS, CORS Wildcards, X-Frame-Options, Cookie Flags | Express/Fastify/Koa security header injection middleware || **02** | **Frontend & DOM** | DOM XSS sinks (`innerHTML`, `document.write`, `eval`), Tabnabbing (`target="_blank"`), SRI hashes | Safe `textContent` rewriter & `rel="noopener noreferrer"` attributes || **03** | **API & Endpoints** | Broken Object Level Auth (BOLA/IDOR), Unauthenticated mutation routes, Mass assignment | Tenant ownership validators, auth middlewares, Zod DTO parsers || **04** | **Database & SQLi** | Raw template string queries, SQL concatenation, MongoDB `$where`, Credential leaks | Parameterized statements (`$1, $2`), NoSQL sanitizers, env configs |
</details>
---
## 🛠️ 5 أدوات أمان رئيسية لبروتوكول MCP
<details open><summary><b>🛠️ 5 أدوات أمان رئيسية لبروتوكول MCP (Click to toggle / 접기·펼치기)</b></summary><br>
VulnForge MCP exposes 5 specialized security audit tools to your AI agent:
1. **`vulnforge_audit_web`**: - Analyzes HTTP response headers, cookie flags, and DOM client code. - Computes an automated Security Score (0 to 100) and outputs prioritized CWE findings.2. **`vulnforge_audit_api`**: - Inspects route definitions (Express, Fastify, Next.js) or OpenAPI specifications. - Flags BOLA/IDOR patterns, missing auth middleware, and mass assignment risks.3. **`vulnforge_audit_db`**: - Evaluates SQL queries and ORM calls (Sequelize, Prisma, TypeORM, Knex, Mongoose). - Identifies raw string concatenation, unescaped interpolations, and NoSQL injection vectors.4. **`vulnforge_inject_patch`**: - Takes vulnerable code and automatically synthesizes a secure drop-in replacement. - Returns both patched code and a unified git diff for transparent review.5. **`vulnforge_full_scan`**: - Executes an end-to-end 360-degree security audit across Web, API, and DB layers simultaneously.
</details>
---
## ⚡ محرك توليف وحقن الترقيعات الدفاعية التلقائي
<details open><summary><b>⚡ محرك توليف وحقن الترقيعات الدفاعية التلقائي (Click to toggle / 접기·펼치기)</b></summary><br>
VulnForge not only detects flaws, but actively writes defensive patches:
```diff--- a/database.ts+++ b/database.ts@@ -1,3 +1,3 @@- const user = await db.query(`SELECT * FROM users WHERE email = ${email}`);+ const user = await db.query('SELECT * FROM users WHERE email = $1', [email]);```
```diff--- a/frontend.js+++ b/frontend.js@@ -1,2 +1,2 @@- document.getElementById('name').innerHTML = userName;+ document.getElementById('name').textContent = userName;```
</details>
---
## 🔐 أمان المؤسسات والحماية التشفيرية بواسطة age
<details open><summary><b>🔐 أمان المؤسسات والحماية التشفيرية بواسطة age (Click to toggle / 접기·펼치기)</b></summary><br>
All proprietary signatures and sensitive core modules are protected via modern UNIX-philosophy cryptographic tools:- **age (X25519)**: Fast, modern file encryption replacing legacy PGP.- **Minisign (Ed25519)**: Detached signature verification for high-assurance release binaries.- **Post-Quantum Cryptography (ML-KEM-768 / Kyber)**: Quantum-resistant hybrid key encapsulation for long-term audit trail confidentiality.- **3-Tier Key Backup**: NTFS permission isolation + Windows DPAPI hardware binding + Encrypted Cloud Mirror.
</details>
---
## 🌐 بنية النسخ المتطابق عبر المنصات الثلاث (GitHub · GitLab · Hugging Face)
<details open><summary><b>🌐 بنية النسخ المتطابق عبر المنصات الثلاث (GitHub · GitLab · Hugging Face) (Click to toggle / 접기·펼치기)</b></summary><br>
Every commit pushed to the primary GitHub repository is automatically synchronized in real-time across 3 major platforms via GitHub Actions (`.github/workflows/mirror.yml`):- **GitHub**: `https://github.com/mason-keller/vulnforge-mcp`- **GitLab**: `https://gitlab.com/keller-lab/vulnforge-mcp`- **Hugging Face**: `https://huggingface.co/mason-keller/vulnforge-mcp`
</details>
---
## 📄 ترخيص برمجي احتكاري (Proprietary & All Rights Reserved)
<details open><summary><b>📄 ترخيص برمجي احتكاري (Proprietary & All Rights Reserved) (Click to toggle / 접기·펼치기)</b></summary><br>
```textPROPRIETARY & CONFIDENTIAL SOFTWARE LICENSECopyright (c) 2026 The Authors & Workspace Owner. All Rights Reserved.
Publicly visible on GitHub for evaluation, reference, and educational review only.Unauthorized copying, modification, redistribution, or commercial use is strictly prohibited.```
</details>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181<div align="center">
<p align="center"> <a href="../../README.md">🇺🇸 English</a> · <a href="./ko.md">🇰🇷 한국어</a> · <a href="./zh-CN.md">🇨🇳 中文</a> · <strong>🇪🇸 Español</strong> · <a href="./hi.md">🇮🇳 हिन्दी</a><br /> <a href="./ar.md">🇸🇦 العربية</a> · <a href="./pt-BR.md">🇧🇷 Português</a> · <a href="./ru.md">🇷🇺 Русский</a> · <a href="./fr.md">🇫🇷 Français</a> · <a href="./id.md">🇮🇩 Bahasa Indonesia</a></p>
<p align="center"> <img src="../assets/locales/es/banner.svg" alt="VulnForge MCP banner" width="100%" /></p>
# 🛡️ VulnForge MCP
**Servidor MCP universal nativo de IA para auditoría de vulnerabilidades web, API y bases de datos con inyección automática de parches**
[](../../LICENSE)[](https://modelcontextprotocol.io/)[](https://www.typescriptlang.org/)[](#-the-4-vulnerability-auditing-pillars)[](#-enterprise-security--age-cryptographic-protection)
<sub>Architected & Licensed under Proprietary (All Rights Reserved) · Autonomous Security Engineering</sub>
</div>
---
## ⚡ Inicio rápido y ejecución en 1 línea
<details open><summary><b>⚡ Inicio rápido y ejecución en 1 línea (Click to toggle / 접기·펼치기)</b></summary><br>
Run VulnForge MCP directly with zero prior installation:
```bash# 1. Start MCP Server over stdionpx vulnforge-mcp
# 2. Run Built-in Security Audit Demonstrationnpx vulnforge-mcp --test-demo```
### Adding to Claude Desktop / Antigravity (`claude_desktop_config.json`)```json{ "mcpServers": { "vulnforge": { "command": "node", "args": ["C:/github_nvcxzopgo/vulnforge-mcp/dist/index.js"] } }}```
</details>
---
## 🏛️ Los 4 pilares de auditoría de vulnerabilidades
<details open><summary><b>🏛️ View Architecture Pipeline Diagram (Click to toggle / 접기·펼치기)</b></summary><br>
<p align="center"> <img src="../assets/locales/es/architecture.svg" alt="VulnForge MCP Architecture Pipeline" width="100%" /></p>
| # | Pillar Domain | Scope & Target Checks | Automated Patch Output ||---|---|---|---|| **01** | **Web & Headers** | Content-Security-Policy, HSTS, CORS Wildcards, X-Frame-Options, Cookie Flags | Express/Fastify/Koa security header injection middleware || **02** | **Frontend & DOM** | DOM XSS sinks (`innerHTML`, `document.write`, `eval`), Tabnabbing (`target="_blank"`), SRI hashes | Safe `textContent` rewriter & `rel="noopener noreferrer"` attributes || **03** | **API & Endpoints** | Broken Object Level Auth (BOLA/IDOR), Unauthenticated mutation routes, Mass assignment | Tenant ownership validators, auth middlewares, Zod DTO parsers || **04** | **Database & SQLi** | Raw template string queries, SQL concatenation, MongoDB `$where`, Credential leaks | Parameterized statements (`$1, $2`), NoSQL sanitizers, env configs |
</details>
---
## 🛠️ 5 herramientas de seguridad MCP principales
<details open><summary><b>🛠️ 5 herramientas de seguridad MCP principales (Click to toggle / 접기·펼치기)</b></summary><br>
VulnForge MCP exposes 5 specialized security audit tools to your AI agent:
1. **`vulnforge_audit_web`**: - Analyzes HTTP response headers, cookie flags, and DOM client code. - Computes an automated Security Score (0 to 100) and outputs prioritized CWE findings.2. **`vulnforge_audit_api`**: - Inspects route definitions (Express, Fastify, Next.js) or OpenAPI specifications. - Flags BOLA/IDOR patterns, missing auth middleware, and mass assignment risks.3. **`vulnforge_audit_db`**: - Evaluates SQL queries and ORM calls (Sequelize, Prisma, TypeORM, Knex, Mongoose). - Identifies raw string concatenation, unescaped interpolations, and NoSQL injection vectors.4. **`vulnforge_inject_patch`**: - Takes vulnerable code and automatically synthesizes a secure drop-in replacement. - Returns both patched code and a unified git diff for transparent review.5. **`vulnforge_full_scan`**: - Executes an end-to-end 360-degree security audit across Web, API, and DB layers simultaneously.
</details>
---
## ⚡ Motor de inyección y síntesis automática de parches defensivos
<details open><summary><b>⚡ Motor de inyección y síntesis automática de parches defensivos (Click to toggle / 접기·펼치기)</b></summary><br>
VulnForge not only detects flaws, but actively writes defensive patches:
```diff--- a/database.ts+++ b/database.ts@@ -1,3 +1,3 @@- const user = await db.query(`SELECT * FROM users WHERE email = ${email}`);+ const user = await db.query('SELECT * FROM users WHERE email = $1', [email]);```
```diff--- a/frontend.js+++ b/frontend.js@@ -1,2 +1,2 @@- document.getElementById('name').innerHTML = userName;+ document.getElementById('name').textContent = userName;```
</details>
---
## 🔐 Seguridad empresarial y protección criptográfica age
<details open><summary><b>🔐 Seguridad empresarial y protección criptográfica age (Click to toggle / 접기·펼치기)</b></summary><br>
All proprietary signatures and sensitive core modules are protected via modern UNIX-philosophy cryptographic tools:- **age (X25519)**: Fast, modern file encryption replacing legacy PGP.- **Minisign (Ed25519)**: Detached signature verification for high-assurance release binaries.- **Post-Quantum Cryptography (ML-KEM-768 / Kyber)**: Quantum-resistant hybrid key encapsulation for long-term audit trail confidentiality.- **3-Tier Key Backup**: NTFS permission isolation + Windows DPAPI hardware binding + Encrypted Cloud Mirror.
</details>
---
## 🌐 Arquitectura de duplicación en tres plataformas (GitHub · GitLab · Hugging Face)
<details open><summary><b>🌐 Arquitectura de duplicación en tres plataformas (GitHub · GitLab · Hugging Face) (Click to toggle / 접기·펼치기)</b></summary><br>
Every commit pushed to the primary GitHub repository is automatically synchronized in real-time across 3 major platforms via GitHub Actions (`.github/workflows/mirror.yml`):- **GitHub**: `https://github.com/mason-keller/vulnforge-mcp`- **GitLab**: `https://gitlab.com/keller-lab/vulnforge-mcp`- **Hugging Face**: `https://huggingface.co/mason-keller/vulnforge-mcp`
</details>
---
## 📄 Licencia de software propietario (Proprietary & All Rights Reserved)
<details open><summary><b>📄 Licencia de software propietario (Proprietary & All Rights Reserved) (Click to toggle / 접기·펼치기)</b></summary><br>
```textPROPRIETARY & CONFIDENTIAL SOFTWARE LICENSECopyright (c) 2026 The Authors & Workspace Owner. All Rights Reserved.
Publicly visible on GitHub for evaluation, reference, and educational review only.Unauthorized copying, modification, redistribution, or commercial use is strictly prohibited.```
</details>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181<div align="center">
<p align="center"> <a href="../../README.md">🇺🇸 English</a> · <a href="./ko.md">🇰🇷 한국어</a> · <a href="./zh-CN.md">🇨🇳 中文</a> · <a href="./es.md">🇪🇸 Español</a> · <a href="./hi.md">🇮🇳 हिन्दी</a><br /> <a href="./ar.md">🇸🇦 العربية</a> · <a href="./pt-BR.md">🇧🇷 Português</a> · <a href="./ru.md">🇷🇺 Русский</a> · <strong>🇫🇷 Français</strong> · <a href="./id.md">🇮🇩 Bahasa Indonesia</a></p>
<p align="center"> <img src="../assets/locales/fr/banner.svg" alt="VulnForge MCP banner" width="100%" /></p>
# 🛡️ VulnForge MCP
**Serveur MCP natif IA pour l’audit des vulnérabilités Web, API et bases de données avec injection automatique de correctifs**
[](../../LICENSE)[](https://modelcontextprotocol.io/)[](https://www.typescriptlang.org/)[](#-the-4-vulnerability-auditing-pillars)[](#-enterprise-security--age-cryptographic-protection)
<sub>Architected & Licensed under Proprietary (All Rights Reserved) · Autonomous Security Engineering</sub>
</div>
---
## ⚡ Démarrage rapide et exécution en 1 ligne
<details open><summary><b>⚡ Démarrage rapide et exécution en 1 ligne (Click to toggle / 접기·펼치기)</b></summary><br>
Run VulnForge MCP directly with zero prior installation:
```bash# 1. Start MCP Server over stdionpx vulnforge-mcp
# 2. Run Built-in Security Audit Demonstrationnpx vulnforge-mcp --test-demo```
### Adding to Claude Desktop / Antigravity (`claude_desktop_config.json`)```json{ "mcpServers": { "vulnforge": { "command": "node", "args": ["C:/github_nvcxzopgo/vulnforge-mcp/dist/index.js"] } }}```
</details>
---
## 🏛️ Les 4 piliers d’audit de vulnérabilité
<details open><summary><b>🏛️ View Architecture Pipeline Diagram (Click to toggle / 접기·펼치기)</b></summary><br>
<p align="center"> <img src="../assets/locales/fr/architecture.svg" alt="VulnForge MCP Architecture Pipeline" width="100%" /></p>
| # | Pillar Domain | Scope & Target Checks | Automated Patch Output ||---|---|---|---|| **01** | **Web & Headers** | Content-Security-Policy, HSTS, CORS Wildcards, X-Frame-Options, Cookie Flags | Express/Fastify/Koa security header injection middleware || **02** | **Frontend & DOM** | DOM XSS sinks (`innerHTML`, `document.write`, `eval`), Tabnabbing (`target="_blank"`), SRI hashes | Safe `textContent` rewriter & `rel="noopener noreferrer"` attributes || **03** | **API & Endpoints** | Broken Object Level Auth (BOLA/IDOR), Unauthenticated mutation routes, Mass assignment | Tenant ownership validators, auth middlewares, Zod DTO parsers || **04** | **Database & SQLi** | Raw template string queries, SQL concatenation, MongoDB `$where`, Credential leaks | Parameterized statements (`$1, $2`), NoSQL sanitizers, env configs |
</details>
---
## 🛠️ 5 outils de sécurité MCP essentiels
<details open><summary><b>🛠️ 5 outils de sécurité MCP essentiels (Click to toggle / 접기·펼치기)</b></summary><br>
VulnForge MCP exposes 5 specialized security audit tools to your AI agent:
1. **`vulnforge_audit_web`**: - Analyzes HTTP response headers, cookie flags, and DOM client code. - Computes an automated Security Score (0 to 100) and outputs prioritized CWE findings.2. **`vulnforge_audit_api`**: - Inspects route definitions (Express, Fastify, Next.js) or OpenAPI specifications. - Flags BOLA/IDOR patterns, missing auth middleware, and mass assignment risks.3. **`vulnforge_audit_db`**: - Evaluates SQL queries and ORM calls (Sequelize, Prisma, TypeORM, Knex, Mongoose). - Identifies raw string concatenation, unescaped interpolations, and NoSQL injection vectors.4. **`vulnforge_inject_patch`**: - Takes vulnerable code and automatically synthesizes a secure drop-in replacement. - Returns both patched code and a unified git diff for transparent review.5. **`vulnforge_full_scan`**: - Executes an end-to-end 360-degree security audit across Web, API, and DB layers simultaneously.
</details>
---
## ⚡ Moteur de synthèse et d’injection automatique de correctifs défensifs
<details open><summary><b>⚡ Moteur de synthèse et d’injection automatique de correctifs défensifs (Click to toggle / 접기·펼치기)</b></summary><br>
VulnForge not only detects flaws, but actively writes defensive patches:
```diff--- a/database.ts+++ b/database.ts@@ -1,3 +1,3 @@- const user = await db.query(`SELECT * FROM users WHERE email = ${email}`);+ const user = await db.query('SELECT * FROM users WHERE email = $1', [email]);```
```diff--- a/frontend.js+++ b/frontend.js@@ -1,2 +1,2 @@- document.getElementById('name').innerHTML = userName;+ document.getElementById('name').textContent = userName;```
</details>
---
## 🔐 Sécurité d’entreprise et protection cryptographique age
<details open><summary><b>🔐 Sécurité d’entreprise et protection cryptographique age (Click to toggle / 접기·펼치기)</b></summary><br>
All proprietary signatures and sensitive core modules are protected via modern UNIX-philosophy cryptographic tools:- **age (X25519)**: Fast, modern file encryption replacing legacy PGP.- **Minisign (Ed25519)**: Detached signature verification for high-assurance release binaries.- **Post-Quantum Cryptography (ML-KEM-768 / Kyber)**: Quantum-resistant hybrid key encapsulation for long-term audit trail confidentiality.- **3-Tier Key Backup**: NTFS permission isolation + Windows DPAPI hardware binding + Encrypted Cloud Mirror.
</details>
---
## 🌐 Architecture de mise en miroir tri-plateforme (GitHub · GitLab · Hugging Face)
<details open><summary><b>🌐 Architecture de mise en miroir tri-plateforme (GitHub · GitLab · Hugging Face) (Click to toggle / 접기·펼치기)</b></summary><br>
Every commit pushed to the primary GitHub repository is automatically synchronized in real-time across 3 major platforms via GitHub Actions (`.github/workflows/mirror.yml`):- **GitHub**: `https://github.com/mason-keller/vulnforge-mcp`- **GitLab**: `https://gitlab.com/keller-lab/vulnforge-mcp`- **Hugging Face**: `https://huggingface.co/mason-keller/vulnforge-mcp`
</details>
---
## 📄 Licence logicielle propriétaire (Proprietary & All Rights Reserved)
<details open><summary><b>📄 Licence logicielle propriétaire (Proprietary & All Rights Reserved) (Click to toggle / 접기·펼치기)</b></summary><br>
```textPROPRIETARY & CONFIDENTIAL SOFTWARE LICENSECopyright (c) 2026 The Authors & Workspace Owner. All Rights Reserved.
Publicly visible on GitHub for evaluation, reference, and educational review only.Unauthorized copying, modification, redistribution, or commercial use is strictly prohibited.```
</details>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181<div align="center">
<p align="center"> <a href="../../README.md">🇺🇸 English</a> · <a href="./ko.md">🇰🇷 한국어</a> · <a href="./zh-CN.md">🇨🇳 中文</a> · <a href="./es.md">🇪🇸 Español</a> · <strong>🇮🇳 हिन्दी</strong><br /> <a href="./ar.md">🇸🇦 العربية</a> · <a href="./pt-BR.md">🇧🇷 Português</a> · <a href="./ru.md">🇷🇺 Русский</a> · <a href="./fr.md">🇫🇷 Français</a> · <a href="./id.md">🇮🇩 Bahasa Indonesia</a></p>
<p align="center"> <img src="../assets/locales/hi/banner.svg" alt="VulnForge MCP banner" width="100%" /></p>
# 🛡️ VulnForge MCP
**वेब, एपीआई और डेटाबेस भेद्यता ऑडिटिंग और स्वचालित पैच इंजेक्शन एमपीसी सर्वर**
[](../../LICENSE)[](https://modelcontextprotocol.io/)[](https://www.typescriptlang.org/)[](#-the-4-vulnerability-auditing-pillars)[](#-enterprise-security--age-cryptographic-protection)
<sub>Architected & Licensed under Proprietary (All Rights Reserved) · Autonomous Security Engineering</sub>
</div>
---
## ⚡ त्वरित प्रारंभ और 1-पंक्ति निष्पादन गाइड
<details open><summary><b>⚡ त्वरित प्रारंभ और 1-पंक्ति निष्पादन गाइड (Click to toggle / 접기·펼치기)</b></summary><br>
Run VulnForge MCP directly with zero prior installation:
```bash# 1. Start MCP Server over stdionpx vulnforge-mcp
# 2. Run Built-in Security Audit Demonstrationnpx vulnforge-mcp --test-demo```
### Adding to Claude Desktop / Antigravity (`claude_desktop_config.json`)```json{ "mcpServers": { "vulnforge": { "command": "node", "args": ["C:/github_nvcxzopgo/vulnforge-mcp/dist/index.js"] } }}```
</details>
---
## 🏛️ 4 मुख्य भेद्यता ऑडिटिंग स्तंभ
<details open><summary><b>🏛️ View Architecture Pipeline Diagram (Click to toggle / 접기·펼치기)</b></summary><br>
<p align="center"> <img src="../assets/locales/hi/architecture.svg" alt="VulnForge MCP Architecture Pipeline" width="100%" /></p>
| # | Pillar Domain | Scope & Target Checks | Automated Patch Output ||---|---|---|---|| **01** | **Web & Headers** | Content-Security-Policy, HSTS, CORS Wildcards, X-Frame-Options, Cookie Flags | Express/Fastify/Koa security header injection middleware || **02** | **Frontend & DOM** | DOM XSS sinks (`innerHTML`, `document.write`, `eval`), Tabnabbing (`target="_blank"`), SRI hashes | Safe `textContent` rewriter & `rel="noopener noreferrer"` attributes || **03** | **API & Endpoints** | Broken Object Level Auth (BOLA/IDOR), Unauthenticated mutation routes, Mass assignment | Tenant ownership validators, auth middlewares, Zod DTO parsers || **04** | **Database & SQLi** | Raw template string queries, SQL concatenation, MongoDB `$where`, Credential leaks | Parameterized statements (`$1, $2`), NoSQL sanitizers, env configs |
</details>
---
## 🛠️ 5 मुख्य एमसीपी सुरक्षा उपकरण
<details open><summary><b>🛠️ 5 मुख्य एमसीपी सुरक्षा उपकरण (Click to toggle / 접기·펼치기)</b></summary><br>
VulnForge MCP exposes 5 specialized security audit tools to your AI agent:
1. **`vulnforge_audit_web`**: - Analyzes HTTP response headers, cookie flags, and DOM client code. - Computes an automated Security Score (0 to 100) and outputs prioritized CWE findings.2. **`vulnforge_audit_api`**: - Inspects route definitions (Express, Fastify, Next.js) or OpenAPI specifications. - Flags BOLA/IDOR patterns, missing auth middleware, and mass assignment risks.3. **`vulnforge_audit_db`**: - Evaluates SQL queries and ORM calls (Sequelize, Prisma, TypeORM, Knex, Mongoose). - Identifies raw string concatenation, unescaped interpolations, and NoSQL injection vectors.4. **`vulnforge_inject_patch`**: - Takes vulnerable code and automatically synthesizes a secure drop-in replacement. - Returns both patched code and a unified git diff for transparent review.5. **`vulnforge_full_scan`**: - Executes an end-to-end 360-degree security audit across Web, API, and DB layers simultaneously.
</details>
---
## ⚡ स्वचालित रक्षात्मक पैच संश्लेषण और कोड इंजेक्शन इंजन
<details open><summary><b>⚡ स्वचालित रक्षात्मक पैच संश्लेषण और कोड इंजेक्शन इंजन (Click to toggle / 접기·펼치기)</b></summary><br>
VulnForge not only detects flaws, but actively writes defensive patches:
```diff--- a/database.ts+++ b/database.ts@@ -1,3 +1,3 @@- const user = await db.query(`SELECT * FROM users WHERE email = ${email}`);+ const user = await db.query('SELECT * FROM users WHERE email = $1', [email]);```
```diff--- a/frontend.js+++ b/frontend.js@@ -1,2 +1,2 @@- document.getElementById('name').innerHTML = userName;+ document.getElementById('name').textContent = userName;```
</details>
---
## 🔐 एंटरप्राइज सुरक्षा और age क्रिप्टोग्राफिक संरक्षण
<details open><summary><b>🔐 एंटरप्राइज सुरक्षा और age क्रिप्टोग्राफिक संरक्षण (Click to toggle / 접기·펼치기)</b></summary><br>
All proprietary signatures and sensitive core modules are protected via modern UNIX-philosophy cryptographic tools:- **age (X25519)**: Fast, modern file encryption replacing legacy PGP.- **Minisign (Ed25519)**: Detached signature verification for high-assurance release binaries.- **Post-Quantum Cryptography (ML-KEM-768 / Kyber)**: Quantum-resistant hybrid key encapsulation for long-term audit trail confidentiality.- **3-Tier Key Backup**: NTFS permission isolation + Windows DPAPI hardware binding + Encrypted Cloud Mirror.
</details>
---
## 🌐 त्रि-प्लेटफ़ॉर्म मिररिंग आर्किटेक्चर (GitHub · GitLab · Hugging Face)
<details open><summary><b>🌐 त्रि-प्लेटफ़ॉर्म मिररिंग आर्किटेक्चर (GitHub · GitLab · Hugging Face) (Click to toggle / 접기·펼치기)</b></summary><br>
Every commit pushed to the primary GitHub repository is automatically synchronized in real-time across 3 major platforms via GitHub Actions (`.github/workflows/mirror.yml`):- **GitHub**: `https://github.com/mason-keller/vulnforge-mcp`- **GitLab**: `https://gitlab.com/keller-lab/vulnforge-mcp`- **Hugging Face**: `https://huggingface.co/mason-keller/vulnforge-mcp`
</details>
---
## 📄 मालिकाना सॉफ़्टवेयर लाइसेंस (Proprietary & All Rights Reserved)
<details open><summary><b>📄 मालिकाना सॉफ़्टवेयर लाइसेंस (Proprietary & All Rights Reserved) (Click to toggle / 접기·펼치기)</b></summary><br>
```textPROPRIETARY & CONFIDENTIAL SOFTWARE LICENSECopyright (c) 2026 The Authors & Workspace Owner. All Rights Reserved.
Publicly visible on GitHub for evaluation, reference, and educational review only.Unauthorized copying, modification, redistribution, or commercial use is strictly prohibited.```
</details>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181<div align="center">
<p align="center"> <a href="../../README.md">🇺🇸 English</a> · <a href="./ko.md">🇰🇷 한국어</a> · <a href="./zh-CN.md">🇨🇳 中文</a> · <a href="./es.md">🇪🇸 Español</a> · <a href="./hi.md">🇮🇳 हिन्दी</a><br /> <a href="./ar.md">🇸🇦 العربية</a> · <a href="./pt-BR.md">🇧🇷 Português</a> · <a href="./ru.md">🇷🇺 Русский</a> · <a href="./fr.md">🇫🇷 Français</a> · <strong>🇮🇩 Bahasa Indonesia</strong></p>
<p align="center"> <img src="../assets/locales/id/banner.svg" alt="VulnForge MCP banner" width="100%" /></p>
# 🛡️ VulnForge MCP
**Server MCP native-AI universal untuk audit kerentanan Web, API, dan Basis Data dengan injeksi patch otomatis**
[](../../LICENSE)[](https://modelcontextprotocol.io/)[](https://www.typescriptlang.org/)[](#-the-4-vulnerability-auditing-pillars)[](#-enterprise-security--age-cryptographic-protection)
<sub>Architected & Licensed under Proprietary (All Rights Reserved) · Autonomous Security Engineering</sub>
</div>
---
## ⚡ Panduan Cepat & Eksekusi 1 Baris
<details open><summary><b>⚡ Panduan Cepat & Eksekusi 1 Baris (Click to toggle / 접기·펼치기)</b></summary><br>
Run VulnForge MCP directly with zero prior installation:
```bash# 1. Start MCP Server over stdionpx vulnforge-mcp
# 2. Run Built-in Security Audit Demonstrationnpx vulnforge-mcp --test-demo```
### Adding to Claude Desktop / Antigravity (`claude_desktop_config.json`)```json{ "mcpServers": { "vulnforge": { "command": "node", "args": ["C:/github_nvcxzopgo/vulnforge-mcp/dist/index.js"] } }}```
</details>
---
## 🏛️ 4 Pilar Audit Kerentanan
<details open><summary><b>🏛️ View Architecture Pipeline Diagram (Click to toggle / 접기·펼치기)</b></summary><br>
<p align="center"> <img src="../assets/locales/id/architecture.svg" alt="VulnForge MCP Architecture Pipeline" width="100%" /></p>
| # | Pillar Domain | Scope & Target Checks | Automated Patch Output ||---|---|---|---|| **01** | **Web & Headers** | Content-Security-Policy, HSTS, CORS Wildcards, X-Frame-Options, Cookie Flags | Express/Fastify/Koa security header injection middleware || **02** | **Frontend & DOM** | DOM XSS sinks (`innerHTML`, `document.write`, `eval`), Tabnabbing (`target="_blank"`), SRI hashes | Safe `textContent` rewriter & `rel="noopener noreferrer"` attributes || **03** | **API & Endpoints** | Broken Object Level Auth (BOLA/IDOR), Unauthenticated mutation routes, Mass assignment | Tenant ownership validators, auth middlewares, Zod DTO parsers || **04** | **Database & SQLi** | Raw template string queries, SQL concatenation, MongoDB `$where`, Credential leaks | Parameterized statements (`$1, $2`), NoSQL sanitizers, env configs |
</details>
---
## 🛠️ 5 Alat Keamanan Utama MCP
<details open><summary><b>🛠️ 5 Alat Keamanan Utama MCP (Click to toggle / 접기·펼치기)</b></summary><br>
VulnForge MCP exposes 5 specialized security audit tools to your AI agent:
1. **`vulnforge_audit_web`**: - Analyzes HTTP response headers, cookie flags, and DOM client code. - Computes an automated Security Score (0 to 100) and outputs prioritized CWE findings.2. **`vulnforge_audit_api`**: - Inspects route definitions (Express, Fastify, Next.js) or OpenAPI specifications. - Flags BOLA/IDOR patterns, missing auth middleware, and mass assignment risks.3. **`vulnforge_audit_db`**: - Evaluates SQL queries and ORM calls (Sequelize, Prisma, TypeORM, Knex, Mongoose). - Identifies raw string concatenation, unescaped interpolations, and NoSQL injection vectors.4. **`vulnforge_inject_patch`**: - Takes vulnerable code and automatically synthesizes a secure drop-in replacement. - Returns both patched code and a unified git diff for transparent review.5. **`vulnforge_full_scan`**: - Executes an end-to-end 360-degree security audit across Web, API, and DB layers simultaneously.
</details>
---
## ⚡ Mesin Sintesis & Injeksi Patch Defensif Otomatis
<details open><summary><b>⚡ Mesin Sintesis & Injeksi Patch Defensif Otomatis (Click to toggle / 접기·펼치기)</b></summary><br>
VulnForge not only detects flaws, but actively writes defensive patches:
```diff--- a/database.ts+++ b/database.ts@@ -1,3 +1,3 @@- const user = await db.query(`SELECT * FROM users WHERE email = ${email}`);+ const user = await db.query('SELECT * FROM users WHERE email = $1', [email]);```
```diff--- a/frontend.js+++ b/frontend.js@@ -1,2 +1,2 @@- document.getElementById('name').innerHTML = userName;+ document.getElementById('name').textContent = userName;```
</details>
---
## 🔐 Keamanan Enterprise & Perlindungan Kriptografi age
<details open><summary><b>🔐 Keamanan Enterprise & Perlindungan Kriptografi age (Click to toggle / 접기·펼치기)</b></summary><br>
All proprietary signatures and sensitive core modules are protected via modern UNIX-philosophy cryptographic tools:- **age (X25519)**: Fast, modern file encryption replacing legacy PGP.- **Minisign (Ed25519)**: Detached signature verification for high-assurance release binaries.- **Post-Quantum Cryptography (ML-KEM-768 / Kyber)**: Quantum-resistant hybrid key encapsulation for long-term audit trail confidentiality.- **3-Tier Key Backup**: NTFS permission isolation + Windows DPAPI hardware binding + Encrypted Cloud Mirror.
</details>
---
## 🌐 Arsitektur Pencerminan Tri-Platform (GitHub · GitLab · Hugging Face)
<details open><summary><b>🌐 Arsitektur Pencerminan Tri-Platform (GitHub · GitLab · Hugging Face) (Click to toggle / 접기·펼치기)</b></summary><br>
Every commit pushed to the primary GitHub repository is automatically synchronized in real-time across 3 major platforms via GitHub Actions (`.github/workflows/mirror.yml`):- **GitHub**: `https://github.com/mason-keller/vulnforge-mcp`- **GitLab**: `https://gitlab.com/keller-lab/vulnforge-mcp`- **Hugging Face**: `https://huggingface.co/mason-keller/vulnforge-mcp`
</details>
---
## 📄 Lisensi Perangkat Lunak Kepemilikan (Proprietary & All Rights Reserved)
<details open><summary><b>📄 Lisensi Perangkat Lunak Kepemilikan (Proprietary & All Rights Reserved) (Click to toggle / 접기·펼치기)</b></summary><br>
```textPROPRIETARY & CONFIDENTIAL SOFTWARE LICENSECopyright (c) 2026 The Authors & Workspace Owner. All Rights Reserved.
Publicly visible on GitHub for evaluation, reference, and educational review only.Unauthorized copying, modification, redistribution, or commercial use is strictly prohibited.```
</details>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181<div align="center">
<p align="center"> <a href="../../README.md">🇺🇸 English</a> · <strong>🇰🇷 한국어</strong> · <a href="./zh-CN.md">🇨🇳 中文</a> · <a href="./es.md">🇪🇸 Español</a> · <a href="./hi.md">🇮🇳 हिन्दी</a><br /> <a href="./ar.md">🇸🇦 العربية</a> · <a href="./pt-BR.md">🇧🇷 Português</a> · <a href="./ru.md">🇷🇺 Русский</a> · <a href="./fr.md">🇫🇷 Français</a> · <a href="./id.md">🇮🇩 Bahasa Indonesia</a></p>
<p align="center"> <img src="../assets/locales/ko/banner.svg" alt="VulnForge MCP banner" width="100%" /></p>
# 🛡️ VulnForge MCP
**웹·API·데이터베이스 취약점 종합 진단 및 방어 패치 자동 주입 MCP 서버**
[](../../LICENSE)[](https://modelcontextprotocol.io/)[](https://www.typescriptlang.org/)[](#-the-4-vulnerability-auditing-pillars)[](#-enterprise-security--age-cryptographic-protection)
<sub>Architected & Licensed under Proprietary (All Rights Reserved) · Autonomous Security Engineering</sub>
</div>
---
## ⚡ 빠른 시작 및 1줄 실행 가이드
<details open><summary><b>⚡ 빠른 시작 및 1줄 실행 가이드 (Click to toggle / 접기·펼치기)</b></summary><br>
Run VulnForge MCP directly with zero prior installation:
```bash# 1. Start MCP Server over stdionpx vulnforge-mcp
# 2. Run Built-in Security Audit Demonstrationnpx vulnforge-mcp --test-demo```
### Adding to Claude Desktop / Antigravity (`claude_desktop_config.json`)```json{ "mcpServers": { "vulnforge": { "command": "node", "args": ["C:/github_nvcxzopgo/vulnforge-mcp/dist/index.js"] } }}```
</details>
---
## 🏛️ 4대 보안 취약점 감사 기둥
<details open><summary><b>🏛️ View Architecture Pipeline Diagram (Click to toggle / 접기·펼치기)</b></summary><br>
<p align="center"> <img src="../assets/locales/ko/architecture.svg" alt="VulnForge MCP Architecture Pipeline" width="100%" /></p>
| # | Pillar Domain | Scope & Target Checks | Automated Patch Output ||---|---|---|---|| **01** | **Web & Headers** | Content-Security-Policy, HSTS, CORS Wildcards, X-Frame-Options, Cookie Flags | Express/Fastify/Koa security header injection middleware || **02** | **Frontend & DOM** | DOM XSS sinks (`innerHTML`, `document.write`, `eval`), Tabnabbing (`target="_blank"`), SRI hashes | Safe `textContent` rewriter & `rel="noopener noreferrer"` attributes || **03** | **API & Endpoints** | Broken Object Level Auth (BOLA/IDOR), Unauthenticated mutation routes, Mass assignment | Tenant ownership validators, auth middlewares, Zod DTO parsers || **04** | **Database & SQLi** | Raw template string queries, SQL concatenation, MongoDB `$where`, Credential leaks | Parameterized statements (`$1, $2`), NoSQL sanitizers, env configs |
</details>
---
## 🛠️ 5대 핵심 MCP 보안 도구
<details open><summary><b>🛠️ 5대 핵심 MCP 보안 도구 (Click to toggle / 접기·펼치기)</b></summary><br>
VulnForge MCP exposes 5 specialized security audit tools to your AI agent:
1. **`vulnforge_audit_web`**: - Analyzes HTTP response headers, cookie flags, and DOM client code. - Computes an automated Security Score (0 to 100) and outputs prioritized CWE findings.2. **`vulnforge_audit_api`**: - Inspects route definitions (Express, Fastify, Next.js) or OpenAPI specifications. - Flags BOLA/IDOR patterns, missing auth middleware, and mass assignment risks.3. **`vulnforge_audit_db`**: - Evaluates SQL queries and ORM calls (Sequelize, Prisma, TypeORM, Knex, Mongoose). - Identifies raw string concatenation, unescaped interpolations, and NoSQL injection vectors.4. **`vulnforge_inject_patch`**: - Takes vulnerable code and automatically synthesizes a secure drop-in replacement. - Returns both patched code and a unified git diff for transparent review.5. **`vulnforge_full_scan`**: - Executes an end-to-end 360-degree security audit across Web, API, and DB layers simultaneously.
</details>
---
## ⚡ 방어 패치 자동 합성 및 코드 주입 엔진
<details open><summary><b>⚡ 방어 패치 자동 합성 및 코드 주입 엔진 (Click to toggle / 접기·펼치기)</b></summary><br>
VulnForge not only detects flaws, but actively writes defensive patches:
```diff--- a/database.ts+++ b/database.ts@@ -1,3 +1,3 @@- const user = await db.query(`SELECT * FROM users WHERE email = ${email}`);+ const user = await db.query('SELECT * FROM users WHERE email = $1', [email]);```
```diff--- a/frontend.js+++ b/frontend.js@@ -1,2 +1,2 @@- document.getElementById('name').innerHTML = userName;+ document.getElementById('name').textContent = userName;```
</details>
---
## 🔐 엔터프라이즈 보안 및 age 암호화 보호 체계
<details open><summary><b>🔐 엔터프라이즈 보안 및 age 암호화 보호 체계 (Click to toggle / 접기·펼치기)</b></summary><br>
All proprietary signatures and sensitive core modules are protected via modern UNIX-philosophy cryptographic tools:- **age (X25519)**: Fast, modern file encryption replacing legacy PGP.- **Minisign (Ed25519)**: Detached signature verification for high-assurance release binaries.- **Post-Quantum Cryptography (ML-KEM-768 / Kyber)**: Quantum-resistant hybrid key encapsulation for long-term audit trail confidentiality.- **3-Tier Key Backup**: NTFS permission isolation + Windows DPAPI hardware binding + Encrypted Cloud Mirror.
</details>
---
## 🌐 3대 플랫폼 실시간 미러링 아키텍처 (GitHub · GitLab · Hugging Face)
<details open><summary><b>🌐 3대 플랫폼 실시간 미러링 아키텍처 (GitHub · GitLab · Hugging Face) (Click to toggle / 접기·펼치기)</b></summary><br>
Every commit pushed to the primary GitHub repository is automatically synchronized in real-time across 3 major platforms via GitHub Actions (`.github/workflows/mirror.yml`):- **GitHub**: `https://github.com/mason-keller/vulnforge-mcp`- **GitLab**: `https://gitlab.com/keller-lab/vulnforge-mcp`- **Hugging Face**: `https://huggingface.co/mason-keller/vulnforge-mcp`
</details>
---
## 📄 독점 소프트웨어 라이선스 (Proprietary & All Rights Reserved)
<details open><summary><b>📄 독점 소프트웨어 라이선스 (Proprietary & All Rights Reserved) (Click to toggle / 접기·펼치기)</b></summary><br>
```textPROPRIETARY & CONFIDENTIAL SOFTWARE LICENSECopyright (c) 2026 The Authors & Workspace Owner. All Rights Reserved.
Publicly visible on GitHub for evaluation, reference, and educational review only.Unauthorized copying, modification, redistribution, or commercial use is strictly prohibited.```
</details>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181<div align="center">
<p align="center"> <a href="../../README.md">🇺🇸 English</a> · <a href="./ko.md">🇰🇷 한국어</a> · <a href="./zh-CN.md">🇨🇳 中文</a> · <a href="./es.md">🇪🇸 Español</a> · <a href="./hi.md">🇮🇳 हिन्दी</a><br /> <a href="./ar.md">🇸🇦 العربية</a> · <strong>🇧🇷 Português</strong> · <a href="./ru.md">🇷🇺 Русский</a> · <a href="./fr.md">🇫🇷 Français</a> · <a href="./id.md">🇮🇩 Bahasa Indonesia</a></p>
<p align="center"> <img src="../assets/locales/pt-BR/banner.svg" alt="VulnForge MCP banner" width="100%" /></p>
# 🛡️ VulnForge MCP
**Servidor MCP nativo de IA para auditoria de vulnerabilidades Web, API e Banco de Dados com injeção automática de patches**
[](../../LICENSE)[](https://modelcontextprotocol.io/)[](https://www.typescriptlang.org/)[](#-the-4-vulnerability-auditing-pillars)[](#-enterprise-security--age-cryptographic-protection)
<sub>Architected & Licensed under Proprietary (All Rights Reserved) · Autonomous Security Engineering</sub>
</div>
---
## ⚡ Início rápido e execução em linha única
<details open><summary><b>⚡ Início rápido e execução em linha única (Click to toggle / 접기·펼치기)</b></summary><br>
Run VulnForge MCP directly with zero prior installation:
```bash# 1. Start MCP Server over stdionpx vulnforge-mcp
# 2. Run Built-in Security Audit Demonstrationnpx vulnforge-mcp --test-demo```
### Adding to Claude Desktop / Antigravity (`claude_desktop_config.json`)```json{ "mcpServers": { "vulnforge": { "command": "node", "args": ["C:/github_nvcxzopgo/vulnforge-mcp/dist/index.js"] } }}```
</details>
---
## 🏛️ Os 4 pilares de auditoria de vulnerabilidades
<details open><summary><b>🏛️ View Architecture Pipeline Diagram (Click to toggle / 접기·펼치기)</b></summary><br>
<p align="center"> <img src="../assets/locales/pt-BR/architecture.svg" alt="VulnForge MCP Architecture Pipeline" width="100%" /></p>
| # | Pillar Domain | Scope & Target Checks | Automated Patch Output ||---|---|---|---|| **01** | **Web & Headers** | Content-Security-Policy, HSTS, CORS Wildcards, X-Frame-Options, Cookie Flags | Express/Fastify/Koa security header injection middleware || **02** | **Frontend & DOM** | DOM XSS sinks (`innerHTML`, `document.write`, `eval`), Tabnabbing (`target="_blank"`), SRI hashes | Safe `textContent` rewriter & `rel="noopener noreferrer"` attributes || **03** | **API & Endpoints** | Broken Object Level Auth (BOLA/IDOR), Unauthenticated mutation routes, Mass assignment | Tenant ownership validators, auth middlewares, Zod DTO parsers || **04** | **Database & SQLi** | Raw template string queries, SQL concatenation, MongoDB `$where`, Credential leaks | Parameterized statements (`$1, $2`), NoSQL sanitizers, env configs |
</details>
---
## 🛠️ 5 ferramentas de segurança MCP essenciais
<details open><summary><b>🛠️ 5 ferramentas de segurança MCP essenciais (Click to toggle / 접기·펼치기)</b></summary><br>
VulnForge MCP exposes 5 specialized security audit tools to your AI agent:
1. **`vulnforge_audit_web`**: - Analyzes HTTP response headers, cookie flags, and DOM client code. - Computes an automated Security Score (0 to 100) and outputs prioritized CWE findings.2. **`vulnforge_audit_api`**: - Inspects route definitions (Express, Fastify, Next.js) or OpenAPI specifications. - Flags BOLA/IDOR patterns, missing auth middleware, and mass assignment risks.3. **`vulnforge_audit_db`**: - Evaluates SQL queries and ORM calls (Sequelize, Prisma, TypeORM, Knex, Mongoose). - Identifies raw string concatenation, unescaped interpolations, and NoSQL injection vectors.4. **`vulnforge_inject_patch`**: - Takes vulnerable code and automatically synthesizes a secure drop-in replacement. - Returns both patched code and a unified git diff for transparent review.5. **`vulnforge_full_scan`**: - Executes an end-to-end 360-degree security audit across Web, API, and DB layers simultaneously.
</details>
---
## ⚡ Motor de síntese e injeção automática de patches defensivos
<details open><summary><b>⚡ Motor de síntese e injeção automática de patches defensivos (Click to toggle / 접기·펼치기)</b></summary><br>
VulnForge not only detects flaws, but actively writes defensive patches:
```diff--- a/database.ts+++ b/database.ts@@ -1,3 +1,3 @@- const user = await db.query(`SELECT * FROM users WHERE email = ${email}`);+ const user = await db.query('SELECT * FROM users WHERE email = $1', [email]);```
```diff--- a/frontend.js+++ b/frontend.js@@ -1,2 +1,2 @@- document.getElementById('name').innerHTML = userName;+ document.getElementById('name').textContent = userName;```
</details>
---
## 🔐 Segurança corporativa e proteção criptográfica age
<details open><summary><b>🔐 Segurança corporativa e proteção criptográfica age (Click to toggle / 접기·펼치기)</b></summary><br>
All proprietary signatures and sensitive core modules are protected via modern UNIX-philosophy cryptographic tools:- **age (X25519)**: Fast, modern file encryption replacing legacy PGP.- **Minisign (Ed25519)**: Detached signature verification for high-assurance release binaries.- **Post-Quantum Cryptography (ML-KEM-768 / Kyber)**: Quantum-resistant hybrid key encapsulation for long-term audit trail confidentiality.- **3-Tier Key Backup**: NTFS permission isolation + Windows DPAPI hardware binding + Encrypted Cloud Mirror.
</details>
---
## 🌐 Arquitetura de espelhamento triplo (GitHub · GitLab · Hugging Face)
<details open><summary><b>🌐 Arquitetura de espelhamento triplo (GitHub · GitLab · Hugging Face) (Click to toggle / 접기·펼치기)</b></summary><br>
Every commit pushed to the primary GitHub repository is automatically synchronized in real-time across 3 major platforms via GitHub Actions (`.github/workflows/mirror.yml`):- **GitHub**: `https://github.com/mason-keller/vulnforge-mcp`- **GitLab**: `https://gitlab.com/keller-lab/vulnforge-mcp`- **Hugging Face**: `https://huggingface.co/mason-keller/vulnforge-mcp`
</details>
---
## 📄 Licença de software proprietária (Proprietary & All Rights Reserved)
<details open><summary><b>📄 Licença de software proprietária (Proprietary & All Rights Reserved) (Click to toggle / 접기·펼치기)</b></summary><br>
```textPROPRIETARY & CONFIDENTIAL SOFTWARE LICENSECopyright (c) 2026 The Authors & Workspace Owner. All Rights Reserved.
Publicly visible on GitHub for evaluation, reference, and educational review only.Unauthorized copying, modification, redistribution, or commercial use is strictly prohibited.```
</details>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181<div align="center">
<p align="center"> <a href="../../README.md">🇺🇸 English</a> · <a href="./ko.md">🇰🇷 한국어</a> · <a href="./zh-CN.md">🇨🇳 中文</a> · <a href="./es.md">🇪🇸 Español</a> · <a href="./hi.md">🇮🇳 हिन्दी</a><br /> <a href="./ar.md">🇸🇦 العربية</a> · <a href="./pt-BR.md">🇧🇷 Português</a> · <strong>🇷🇺 Русский</strong> · <a href="./fr.md">🇫🇷 Français</a> · <a href="./id.md">🇮🇩 Bahasa Indonesia</a></p>
<p align="center"> <img src="../assets/locales/ru/banner.svg" alt="VulnForge MCP banner" width="100%" /></p>
# 🛡️ VulnForge MCP
**Универсальный ИИ-сервер MCP для аудита уязвимостей Web, API и баз данных с автоматической инъекцией патчей**
[](../../LICENSE)[](https://modelcontextprotocol.io/)[](https://www.typescriptlang.org/)[](#-the-4-vulnerability-auditing-pillars)[](#-enterprise-security--age-cryptographic-protection)
<sub>Architected & Licensed under Proprietary (All Rights Reserved) · Autonomous Security Engineering</sub>
</div>
---
## ⚡ Быстрый старт и запуск в одну строку
<details open><summary><b>⚡ Быстрый старт и запуск в одну строку (Click to toggle / 접기·펼치기)</b></summary><br>
Run VulnForge MCP directly with zero prior installation:
```bash# 1. Start MCP Server over stdionpx vulnforge-mcp
# 2. Run Built-in Security Audit Demonstrationnpx vulnforge-mcp --test-demo```
### Adding to Claude Desktop / Antigravity (`claude_desktop_config.json`)```json{ "mcpServers": { "vulnforge": { "command": "node", "args": ["C:/github_nvcxzopgo/vulnforge-mcp/dist/index.js"] } }}```
</details>
---
## 🏛️ 4 столпа аудита уязвимостей
<details open><summary><b>🏛️ View Architecture Pipeline Diagram (Click to toggle / 접기·펼치기)</b></summary><br>
<p align="center"> <img src="../assets/locales/ru/architecture.svg" alt="VulnForge MCP Architecture Pipeline" width="100%" /></p>
| # | Pillar Domain | Scope & Target Checks | Automated Patch Output ||---|---|---|---|| **01** | **Web & Headers** | Content-Security-Policy, HSTS, CORS Wildcards, X-Frame-Options, Cookie Flags | Express/Fastify/Koa security header injection middleware || **02** | **Frontend & DOM** | DOM XSS sinks (`innerHTML`, `document.write`, `eval`), Tabnabbing (`target="_blank"`), SRI hashes | Safe `textContent` rewriter & `rel="noopener noreferrer"` attributes || **03** | **API & Endpoints** | Broken Object Level Auth (BOLA/IDOR), Unauthenticated mutation routes, Mass assignment | Tenant ownership validators, auth middlewares, Zod DTO parsers || **04** | **Database & SQLi** | Raw template string queries, SQL concatenation, MongoDB `$where`, Credential leaks | Parameterized statements (`$1, $2`), NoSQL sanitizers, env configs |
</details>
---
## 🛠️ 5 ключевых инструментов безопасности MCP
<details open><summary><b>🛠️ 5 ключевых инструментов безопасности MCP (Click to toggle / 접기·펼치기)</b></summary><br>
VulnForge MCP exposes 5 specialized security audit tools to your AI agent:
1. **`vulnforge_audit_web`**: - Analyzes HTTP response headers, cookie flags, and DOM client code. - Computes an automated Security Score (0 to 100) and outputs prioritized CWE findings.2. **`vulnforge_audit_api`**: - Inspects route definitions (Express, Fastify, Next.js) or OpenAPI specifications. - Flags BOLA/IDOR patterns, missing auth middleware, and mass assignment risks.3. **`vulnforge_audit_db`**: - Evaluates SQL queries and ORM calls (Sequelize, Prisma, TypeORM, Knex, Mongoose). - Identifies raw string concatenation, unescaped interpolations, and NoSQL injection vectors.4. **`vulnforge_inject_patch`**: - Takes vulnerable code and automatically synthesizes a secure drop-in replacement. - Returns both patched code and a unified git diff for transparent review.5. **`vulnforge_full_scan`**: - Executes an end-to-end 360-degree security audit across Web, API, and DB layers simultaneously.
</details>
---
## ⚡ Движок автоматического синтеза и внедрения защитных патчей
<details open><summary><b>⚡ Движок автоматического синтеза и внедрения защитных патчей (Click to toggle / 접기·펼치기)</b></summary><br>
VulnForge not only detects flaws, but actively writes defensive patches:
```diff--- a/database.ts+++ b/database.ts@@ -1,3 +1,3 @@- const user = await db.query(`SELECT * FROM users WHERE email = ${email}`);+ const user = await db.query('SELECT * FROM users WHERE email = $1', [email]);```
```diff--- a/frontend.js+++ b/frontend.js@@ -1,2 +1,2 @@- document.getElementById('name').innerHTML = userName;+ document.getElementById('name').textContent = userName;```
</details>
---
## 🔐 Корпоративная безопасность и криптографическая защита age
<details open><summary><b>🔐 Корпоративная безопасность и криптографическая защита age (Click to toggle / 접기·펼치기)</b></summary><br>
All proprietary signatures and sensitive core modules are protected via modern UNIX-philosophy cryptographic tools:- **age (X25519)**: Fast, modern file encryption replacing legacy PGP.- **Minisign (Ed25519)**: Detached signature verification for high-assurance release binaries.- **Post-Quantum Cryptography (ML-KEM-768 / Kyber)**: Quantum-resistant hybrid key encapsulation for long-term audit trail confidentiality.- **3-Tier Key Backup**: NTFS permission isolation + Windows DPAPI hardware binding + Encrypted Cloud Mirror.
</details>
---
## 🌐 Архитектура трехплатформенного зеркалирования (GitHub · GitLab · Hugging Face)
<details open><summary><b>🌐 Архитектура трехплатформенного зеркалирования (GitHub · GitLab · Hugging Face) (Click to toggle / 접기·펼치기)</b></summary><br>
Every commit pushed to the primary GitHub repository is automatically synchronized in real-time across 3 major platforms via GitHub Actions (`.github/workflows/mirror.yml`):- **GitHub**: `https://github.com/mason-keller/vulnforge-mcp`- **GitLab**: `https://gitlab.com/keller-lab/vulnforge-mcp`- **Hugging Face**: `https://huggingface.co/mason-keller/vulnforge-mcp`
</details>
---
## 📄 Проприетарная лицензия (Proprietary & All Rights Reserved)
<details open><summary><b>📄 Проприетарная лицензия (Proprietary & All Rights Reserved) (Click to toggle / 접기·펼치기)</b></summary><br>
```textPROPRIETARY & CONFIDENTIAL SOFTWARE LICENSECopyright (c) 2026 The Authors & Workspace Owner. All Rights Reserved.
Publicly visible on GitHub for evaluation, reference, and educational review only.Unauthorized copying, modification, redistribution, or commercial use is strictly prohibited.```
</details>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181<div align="center">
<p align="center"> <a href="../../README.md">🇺🇸 English</a> · <a href="./ko.md">🇰🇷 한국어</a> · <strong>🇨🇳 中文</strong> · <a href="./es.md">🇪🇸 Español</a> · <a href="./hi.md">🇮🇳 हिन्दी</a><br /> <a href="./ar.md">🇸🇦 العربية</a> · <a href="./pt-BR.md">🇧🇷 Português</a> · <a href="./ru.md">🇷🇺 Русский</a> · <a href="./fr.md">🇫🇷 Français</a> · <a href="./id.md">🇮🇩 Bahasa Indonesia</a></p>
<p align="center"> <img src="../assets/locales/zh-CN/banner.svg" alt="VulnForge MCP banner" width="100%" /></p>
# 🛡️ VulnForge MCP
**通用AI原生Web、API及数据库漏洞审计与自动补丁注入MCP服务器**
[](../../LICENSE)[](https://modelcontextprotocol.io/)[](https://www.typescriptlang.org/)[](#-the-4-vulnerability-auditing-pillars)[](#-enterprise-security--age-cryptographic-protection)
<sub>Architected & Licensed under Proprietary (All Rights Reserved) · Autonomous Security Engineering</sub>
</div>
---
## ⚡ 快速开始与单行执行指南
<details open><summary><b>⚡ 快速开始与单行执行指南 (Click to toggle / 접기·펼치기)</b></summary><br>
Run VulnForge MCP directly with zero prior installation:
```bash# 1. Start MCP Server over stdionpx vulnforge-mcp
# 2. Run Built-in Security Audit Demonstrationnpx vulnforge-mcp --test-demo```
### Adding to Claude Desktop / Antigravity (`claude_desktop_config.json`)```json{ "mcpServers": { "vulnforge": { "command": "node", "args": ["C:/github_nvcxzopgo/vulnforge-mcp/dist/index.js"] } }}```
</details>
---
## 🏛️ 4大漏洞审计支柱
<details open><summary><b>🏛️ View Architecture Pipeline Diagram (Click to toggle / 접기·펼치기)</b></summary><br>
<p align="center"> <img src="../assets/locales/zh-CN/architecture.svg" alt="VulnForge MCP Architecture Pipeline" width="100%" /></p>
| # | Pillar Domain | Scope & Target Checks | Automated Patch Output ||---|---|---|---|| **01** | **Web & Headers** | Content-Security-Policy, HSTS, CORS Wildcards, X-Frame-Options, Cookie Flags | Express/Fastify/Koa security header injection middleware || **02** | **Frontend & DOM** | DOM XSS sinks (`innerHTML`, `document.write`, `eval`), Tabnabbing (`target="_blank"`), SRI hashes | Safe `textContent` rewriter & `rel="noopener noreferrer"` attributes || **03** | **API & Endpoints** | Broken Object Level Auth (BOLA/IDOR), Unauthenticated mutation routes, Mass assignment | Tenant ownership validators, auth middlewares, Zod DTO parsers || **04** | **Database & SQLi** | Raw template string queries, SQL concatenation, MongoDB `$where`, Credential leaks | Parameterized statements (`$1, $2`), NoSQL sanitizers, env configs |
</details>
---
## 🛠️ 5大核心MCP安全工具
<details open><summary><b>🛠️ 5大核心MCP安全工具 (Click to toggle / 접기·펼치기)</b></summary><br>
VulnForge MCP exposes 5 specialized security audit tools to your AI agent:
1. **`vulnforge_audit_web`**: - Analyzes HTTP response headers, cookie flags, and DOM client code. - Computes an automated Security Score (0 to 100) and outputs prioritized CWE findings.2. **`vulnforge_audit_api`**: - Inspects route definitions (Express, Fastify, Next.js) or OpenAPI specifications. - Flags BOLA/IDOR patterns, missing auth middleware, and mass assignment risks.3. **`vulnforge_audit_db`**: - Evaluates SQL queries and ORM calls (Sequelize, Prisma, TypeORM, Knex, Mongoose). - Identifies raw string concatenation, unescaped interpolations, and NoSQL injection vectors.4. **`vulnforge_inject_patch`**: - Takes vulnerable code and automatically synthesizes a secure drop-in replacement. - Returns both patched code and a unified git diff for transparent review.5. **`vulnforge_full_scan`**: - Executes an end-to-end 360-degree security audit across Web, API, and DB layers simultaneously.
</details>
---
## ⚡ 防御性补丁自动合成与代码注入引擎
<details open><summary><b>⚡ 防御性补丁自动合成与代码注入引擎 (Click to toggle / 접기·펼치기)</b></summary><br>
VulnForge not only detects flaws, but actively writes defensive patches:
```diff--- a/database.ts+++ b/database.ts@@ -1,3 +1,3 @@- const user = await db.query(`SELECT * FROM users WHERE email = ${email}`);+ const user = await db.query('SELECT * FROM users WHERE email = $1', [email]);```
```diff--- a/frontend.js+++ b/frontend.js@@ -1,2 +1,2 @@- document.getElementById('name').innerHTML = userName;+ document.getElementById('name').textContent = userName;```
</details>
---
## 🔐 企业安全与age密码学保护体系
<details open><summary><b>🔐 企业安全与age密码学保护体系 (Click to toggle / 접기·펼치기)</b></summary><br>
All proprietary signatures and sensitive core modules are protected via modern UNIX-philosophy cryptographic tools:- **age (X25519)**: Fast, modern file encryption replacing legacy PGP.- **Minisign (Ed25519)**: Detached signature verification for high-assurance release binaries.- **Post-Quantum Cryptography (ML-KEM-768 / Kyber)**: Quantum-resistant hybrid key encapsulation for long-term audit trail confidentiality.- **3-Tier Key Backup**: NTFS permission isolation + Windows DPAPI hardware binding + Encrypted Cloud Mirror.
</details>
---
## 🌐 三平台实时镜像架构 (GitHub · GitLab · Hugging Face)
<details open><summary><b>🌐 三平台实时镜像架构 (GitHub · GitLab · Hugging Face) (Click to toggle / 접기·펼치기)</b></summary><br>
Every commit pushed to the primary GitHub repository is automatically synchronized in real-time across 3 major platforms via GitHub Actions (`.github/workflows/mirror.yml`):- **GitHub**: `https://github.com/mason-keller/vulnforge-mcp`- **GitLab**: `https://gitlab.com/keller-lab/vulnforge-mcp`- **Hugging Face**: `https://huggingface.co/mason-keller/vulnforge-mcp`
</details>
---
## 📄 专有软件许可证 (Proprietary & All Rights Reserved)
<details open><summary><b>📄 专有软件许可证 (Proprietary & All Rights Reserved) (Click to toggle / 접기·펼치기)</b></summary><br>
```textPROPRIETARY & CONFIDENTIAL SOFTWARE LICENSECopyright (c) 2026 The Authors & Workspace Owner. All Rights Reserved.
Publicly visible on GitHub for evaluation, reference, and educational review only.Unauthorized copying, modification, redistribution, or commercial use is strictly prohibited.```
</details>1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255{ "name": "vulnforge-mcp", "version": "1.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "vulnforge-mcp", "version": "1.0.0", "license": "PROPRIETARY", "dependencies": { "@modelcontextprotocol/sdk": "^1.6.1", "zod": "^3.24.2" }, "bin": { "vulnforge-mcp": "dist/index.js" }, "devDependencies": { "@types/node": "^22.13.9", "typescript": "^5.8.2" } }, "node_modules/@hono/node-server": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-2.1.5.tgz", "integrity": "sha512-MgP/I06GdvsilDspMk/qmRzpk8LOUStP6jFAbSRi40W09DhoyUn+Mj7eyKICPqeYKybOjVFLVIAQzvu1bfIa7Q==", "license": "MIT", "engines": { "node": ">=20" }, "peerDependencies": { "hono": "^4 || ^5.0.0-0" } }, "node_modules/@modelcontextprotocol/sdk": { "version": "1.32.1", "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.32.1.tgz", "integrity": "sha512-2DdE+SJDtzLEEWzY1ZjY7Q+VcPhcV1KisD3zI4u0XZyktsjHum1mwbMI+JaulUBi2OZk+KJAi2uPXzxichPkdw==", "license": "MIT", "dependencies": { "@hono/node-server": "^1.19.9 || ^2.0.5", "ajv": "^8.17.1", "ajv-formats": "^3.0.1", "content-type": "^1.0.5", "cors": "^2.8.5", "cross-spawn": "^7.0.5", "eventsource": "^3.0.2", "eventsource-parser": "^3.0.0", "express": "^5.2.1", "express-rate-limit": "^8.2.1", "hono": "^4.11.4", "jose": "^6.1.3", "json-schema-typed": "^8.0.2", "pkce-challenge": "^5.0.0", "raw-body": "^3.0.0", "zod": "^3.25 || ^4.0", "zod-to-json-schema": "^3.25.1" }, "engines": { "node": ">=18" }, "peerDependencies": { "@cfworker/json-schema": "^4.1.1", "zod": "^3.25 || ^4.0" }, "peerDependenciesMeta": { "@cfworker/json-schema": { "optional": true }, "zod": { "optional": false } } }, "node_modules/@types/node": { "version": "22.20.5", "resolved": "https://registry.npmjs.org/@types/node/-/node-22.20.5.tgz", "integrity": "sha512-U2+DNr+wSjpsTS/wZGYHq7GcwfuSmKiKvoPvK22zwTlRhU91yOniN4qRR5KhIjvif7ysw/dz/hKmfDH0Ris4aA==", "dev": true, "license": "MIT", "dependencies": { "undici-types": "~6.21.0" } }, "node_modules/accepts": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz", "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==", "license": "MIT", "dependencies": { "mime-types": "^3.0.0", "negotiator": "^1.0.0" }, "engines": { "node": ">= 0.6" } }, "node_modules/ajv": { "version": "8.20.0", "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz", "integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==", "license": "MIT", "dependencies": { "fast-deep-equal": "^3.1.3", "fast-uri": "^3.0.1", "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2" }, "funding": { "type": "github", "url": "https://github.com/sponsors/epoberezkin" } }, "node_modules/ajv-formats": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-3.0.1.tgz", "integrity": "sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==", "license": "MIT", "dependencies": { "ajv": "^8.0.0" }, "peerDependencies": { "ajv": "^8.0.0" }, "peerDependenciesMeta": { "ajv": { "optional": true } } }, "node_modules/body-parser": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.3.0.tgz", "integrity": "sha512-2cGmJupaNgg+QUwVLAucDuWuoMZ6EX9iHDRswZ5lsNYEmwPaRknMPCLZz07yTzVq/83p4o/wzbDZbBrTvGGTIw==", "license": "MIT", "dependencies": { "bytes": "^3.1.2", "content-type": "^2.0.0", "debug": "^4.4.3", "http-errors": "^2.0.1", "iconv-lite": "^0.7.2", "on-finished": "^2.4.1", "qs": "^6.15.2", "raw-body": "^3.0.2", "type-is": "^2.1.0" }, "engines": { "node": ">=18" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/express" } }, "node_modules/body-parser/node_modules/content-type": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.1.0.tgz", "integrity": "sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==", "license": "MIT", "engines": { "node": ">=18" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/express" } }, "node_modules/bytes": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", "license": "MIT", "engines": { "node": ">= 0.8" } }, "node_modules/call-bind-apply-helpers": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", "license": "MIT", "dependencies": { "es-errors": "^1.3.0", "function-bind": "^1.1.2" }, "engines": { "node": ">= 0.4" } }, "node_modules/call-bound": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", "license": "MIT", "dependencies": { "call-bind-apply-helpers": "^1.0.2", "get-intrinsic": "^1.3.0" }, "engines": { "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/content-disposition": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-2.0.1.tgz", "integrity": "sha512-e+H0ZXHSWYrENhQzw1LPuP4oF5MzVKmDU6d3hxlvaPEYLLg62MxtQNPRx4SYSuYJSBUgnQIG4HIN2tEtNv7Dog==", "license": "MIT", "engines": { "node": ">=18" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/express" } }, "node_modules/content-type": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", "license": "MIT", "engines": { "node": ">= 0.6" } }, "node_modules/cookie": { "version": "0.7.2", "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz", "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==", "license": "MIT", "engines": { "node": ">= 0.6" } }, "node_modules/cookie-signature": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz", "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==", "license": "MIT", "engines": { "node": ">=6.6.0" } }, "node_modules/cors": { "version": "2.8.6", "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.6.tgz", "integrity": "sha512-tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw==", "license": "MIT", "dependencies": { "object-assign": "^4", "vary": "^1" }, "engines": { "node": ">= 0.10" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/express" } }, "node_modules/cross-spawn": { "version": "7.0.6", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "license": "MIT", "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", "which": "^2.0.1" }, "engines": { "node": ">= 8" } }, "node_modules/debug": { "version": "4.4.3", "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", "license": "MIT", "dependencies": { "ms": "^2.1.3" }, "engines": { "node": ">=6.0" }, "peerDependenciesMeta": { "supports-color": { "optional": true } } }, "node_modules/depd": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", "license": "MIT", "engines": { "node": ">= 0.8" } }, "node_modules/dunder-proto": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", "license": "MIT", "dependencies": { "call-bind-apply-helpers": "^1.0.1", "es-errors": "^1.3.0", "gopd": "^1.2.0" }, "engines": { "node": ">= 0.4" } }, "node_modules/ee-first": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", "license": "MIT" }, "node_modules/encodeurl": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", "license": "MIT", "engines": { "node": ">= 0.8" } }, "node_modules/es-define-property": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", "license": "MIT", "engines": { "node": ">= 0.4" } }, "node_modules/es-errors": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", "license": "MIT", "engines": { "node": ">= 0.4" } }, "node_modules/es-object-atoms": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz", "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==", "license": "MIT", "dependencies": { "es-errors": "^1.3.0" }, "engines": { "node": ">= 0.4" } }, "node_modules/escape-html": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", "license": "MIT" }, "node_modules/etag": { "version": "1.8.1", "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", "license": "MIT", "engines": { "node": ">= 0.6" } }, "node_modules/eventsource": { "version": "3.0.7", "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-3.0.7.tgz", "integrity": "sha512-CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA==", "license": "MIT", "dependencies": { "eventsource-parser": "^3.0.1" }, "engines": { "node": ">=18.0.0" } }, "node_modules/eventsource-parser": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/eventsource-parser/-/eventsource-parser-3.1.1.tgz", "integrity": "sha512-EKN1vKAMcZ8MlYMpaNuxN6R9yakzH6uajHcHVTqWJzvu5pWw9DyhbP35HH8MVBQ+dZjAfDxk+A8NiR9KWaXiyQ==", "license": "MIT", "engines": { "node": ">=18.0.0" } }, "node_modules/express": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/express/-/express-5.3.0.tgz", "integrity": "sha512-qCqy1xSoaugxOD4IVHb1ZWdkvCF2W3aE2okKouWj8VwJ+ztskSiXoBnCSJqfKT+cVPJhuJqe9YLbY425+Zh00g==", "license": "MIT", "dependencies": { "accepts": "^2.0.0", "body-parser": "^2.3.0", "content-disposition": "^2.0.1", "content-type": "^2.0.0", "cookie": "^0.7.1", "cookie-signature": "^1.2.1", "debug": "^4.4.0", "depd": "^2.0.0", "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "etag": "^1.8.1", "finalhandler": "^2.1.0", "fresh": "^2.0.0", "http-errors": "^2.0.0", "merge-descriptors": "^2.0.0", "mime-types": "^3.0.0", "on-finished": "^2.4.1", "once": "^1.4.0", "parseurl": "^1.3.3", "proxy-addr": "^2.0.8", "qs": "^6.16.0", "range-parser": "^1.2.1", "router": "^2.2.0", "send": "^1.1.0", "serve-static": "^2.2.0", "statuses": "^2.0.1", "type-is": "^2.1.0", "vary": "^1.1.2" }, "engines": { "node": ">= 18" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/express" } }, "node_modules/express-rate-limit": { "version": "8.7.1", "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-8.7.1.tgz", "integrity": "sha512-2FXbqkygil3mZiXzEtM0IjE/UBmBNot0J1GEVrJT4JbrvwOSoEtqtO+wHbiMQELWe1eNvHoYRg2dkjOid+6JkA==", "license": "MIT", "dependencies": { "debug": "^4.4.3", "ip-address": "^10.2.0" }, "engines": { "node": ">= 16" }, "funding": { "url": "https://github.com/sponsors/express-rate-limit" }, "peerDependencies": { "express": ">= 4.11" } }, "node_modules/express/node_modules/content-type": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.1.0.tgz", "integrity": "sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==", "license": "MIT", "engines": { "node": ">=18" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/express" } }, "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", "license": "MIT" }, "node_modules/fast-uri": { "version": "3.1.8", "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.8.tgz", "integrity": "sha512-GZMtZUTNRpOVIECoXwLNZS5xUGE+mVNbTB8h/7Rwh2TFWcBQiPzTgyZi05BF9UMZKkLJv8XBRJTlU7zg8+ZfMg==", "funding": [ { "type": "github", "url": "https://github.com/sponsors/fastify" }, { "type": "opencollective", "url": "https://opencollective.com/fastify" } ], "license": "BSD-3-Clause" }, "node_modules/finalhandler": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.1.tgz", "integrity": "sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==", "license": "MIT", "dependencies": { "debug": "^4.4.0", "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "on-finished": "^2.4.1", "parseurl": "^1.3.3", "statuses": "^2.0.1" }, "engines": { "node": ">= 18.0.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/express" } }, "node_modules/forwarded": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", "license": "MIT", "engines": { "node": ">= 0.6" } }, "node_modules/fresh": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz", "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==", "license": "MIT", "engines": { "node": ">= 0.8" } }, "node_modules/function-bind": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/get-intrinsic": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", "license": "MIT", "dependencies": { "call-bind-apply-helpers": "^1.0.2", "es-define-property": "^1.0.1", "es-errors": "^1.3.0", "es-object-atoms": "^1.1.1", "function-bind": "^1.1.2", "get-proto": "^1.0.1", "gopd": "^1.2.0", "has-symbols": "^1.1.0", "hasown": "^2.0.2", "math-intrinsics": "^1.1.0" }, "engines": { "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/get-proto": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", "license": "MIT", "dependencies": { "dunder-proto": "^1.0.1", "es-object-atoms": "^1.0.0" }, "engines": { "node": ">= 0.4" } }, "node_modules/gopd": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", "license": "MIT", "engines": { "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/has-symbols": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", "license": "MIT", "engines": { "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/hasown": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz", "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==", "license": "MIT", "dependencies": { "function-bind": "^1.1.2" }, "engines": { "node": ">= 0.4" } }, "node_modules/hono": { "version": "4.13.13", "resolved": "https://registry.npmjs.org/hono/-/hono-4.13.13.tgz", "integrity": "sha512-CQ46U0ZkAGmbT/4UxdzzGJpacP2IeKgY4a5/tOI9AABbpOMfK739wfDXmv1usCk+3RkKj1hQy4/fjhiwa2xlrA==", "license": "MIT", "engines": { "node": ">=16.9.0" } }, "node_modules/http-errors": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz", "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==", "license": "MIT", "dependencies": { "depd": "~2.0.0", "inherits": "~2.0.4", "setprototypeof": "~1.2.0", "statuses": "~2.0.2", "toidentifier": "~1.0.1" }, "engines": { "node": ">= 0.8" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/express" } }, "node_modules/iconv-lite": { "version": "0.7.3", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.3.tgz", "integrity": "sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==", "license": "MIT", "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" }, "engines": { "node": ">=0.10.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/express" } }, "node_modules/inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", "license": "ISC" }, "node_modules/ip-address": { "version": "10.7.4", "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.7.4.tgz", "integrity": "sha512-DWBMKyeM25D70nrIiTkgQth59/G+naKOTep6huF9j+GmeK3DMD60Zvxg5d5qQnz+38AHgou6ean2LECX+lrKDg==", "license": "MIT", "engines": { "node": ">= 12" } }, "node_modules/ipaddr.js": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", "license": "MIT", "engines": { "node": ">= 0.10" } }, "node_modules/is-promise": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz", "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==", "license": "MIT" }, "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", "license": "ISC" }, "node_modules/jose": { "version": "6.2.12", "resolved": "https://registry.npmjs.org/jose/-/jose-6.2.12.tgz", "integrity": "sha512-9NiFmJEex0sy2Dk58j2UGBSHgUs2ypF9eZSu4L6vjOX3Dp96Sw1F3uL+H+D1sx02jZZdzUT0HgvCy59CuvXcWw==", "license": "MIT", "funding": { "url": "https://github.com/sponsors/panva" } }, "node_modules/json-schema-traverse": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", "license": "MIT" }, "node_modules/json-schema-typed": { "version": "8.0.2", "resolved": "https://registry.npmjs.org/json-schema-typed/-/json-schema-typed-8.0.2.tgz", "integrity": "sha512-fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA==", "license": "BSD-2-Clause" }, "node_modules/math-intrinsics": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", "license": "MIT", "engines": { "node": ">= 0.4" } }, "node_modules/media-typer": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.1.tgz", "integrity": "sha512-yz3xRaG20c6/BOzvYoDaGtPmGscs7YivItZEEqe6GbwNfHuxu9YNmvnEkMzKldAGY4/80pRcQRZSEnhquk9XuQ==", "license": "MIT", "engines": { "node": ">= 0.8" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/express" } }, "node_modules/merge-descriptors": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz", "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==", "license": "MIT", "engines": { "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/mime-db": { "version": "1.54.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", "license": "MIT", "engines": { "node": ">= 0.6" } }, "node_modules/mime-types": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz", "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==", "license": "MIT", "dependencies": { "mime-db": "^1.54.0" }, "engines": { "node": ">=18" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/express" } }, "node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", "license": "MIT" }, "node_modules/negotiator": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.1.0.tgz", "integrity": "sha512-NMPBRMJgiQHjbd8phG3Vebdx4kZ1H121rbl5IkMqeOsahptB9BKo/d7oJ3zTXqTgagn2bWlNSXkh0QUGM31RYg==", "license": "MIT", "dependencies": { "content-type": "^2.1.0" }, "engines": { "node": ">=18" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/express" } }, "node_modules/negotiator/node_modules/content-type": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.1.0.tgz", "integrity": "sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==", "license": "MIT", "engines": { "node": ">=18" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/express" } }, "node_modules/object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/object-inspect": { "version": "1.13.4", "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", "license": "MIT", "engines": { "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/on-finished": { "version": "2.4.1", "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", "license": "MIT", "dependencies": { "ee-first": "1.1.1" }, "engines": { "node": ">= 0.8" } }, "node_modules/once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", "license": "ISC", "dependencies": { "wrappy": "1" } }, "node_modules/parseurl": { "version": "1.3.3", "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", "license": "MIT", "engines": { "node": ">= 0.8" } }, "node_modules/path-key": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/path-to-regexp": { "version": "8.4.2", "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.4.2.tgz", "integrity": "sha512-qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==", "license": "MIT", "funding": { "type": "opencollective", "url": "https://opencollective.com/express" } }, "node_modules/pkce-challenge": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/pkce-challenge/-/pkce-challenge-5.0.1.tgz", "integrity": "sha512-wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ==", "license": "MIT", "engines": { "node": ">=16.20.0" } }, "node_modules/proxy-addr": { "version": "2.0.8", "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.8.tgz", "integrity": "sha512-5nnx0yGyVUcY6t9RnWcARWtwT9F1D8O9rt08htPvnd49W1IgZtmLkhu9WfMzQj1cFxjHIO6connUNVW5k7AVyQ==", "license": "MIT", "dependencies": { "forwarded": "0.2.0", "ipaddr.js": "1.9.1" }, "engines": { "node": ">= 0.10" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/express" } }, "node_modules/qs": { "version": "6.16.1", "resolved": "https://registry.npmjs.org/qs/-/qs-6.16.1.tgz", "integrity": "sha512-5Px6J7rfHBAGUhNQ3es4YzcOdBBw0SDcVtThJml4RdnKw4tKs2epA0kPZ+K8X+WiHktT93RHVcQ/3ym5aTCgtg==", "license": "BSD-3-Clause", "dependencies": { "es-define-property": "^1.0.1", "side-channel": "^1.1.1" }, "engines": { "node": ">=0.6" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/range-parser": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.3.0.tgz", "integrity": "sha512-hek2mFQpPuI4E1BBKrSto+BU3e3x4xuarsbiwr3+lf7p44juvFMV0XFWQAP3xUyqXA4RrXLIoaSUGbSt056ZMw==", "license": "MIT", "engines": { "node": ">= 0.6" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/express" } }, "node_modules/raw-body": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.2.tgz", "integrity": "sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==", "license": "MIT", "dependencies": { "bytes": "~3.1.2", "http-errors": "~2.0.1", "iconv-lite": "~0.7.0", "unpipe": "~1.0.0" }, "engines": { "node": ">= 0.10" } }, "node_modules/require-from-string": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/router": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/router/-/router-2.2.0.tgz", "integrity": "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==", "license": "MIT", "dependencies": { "debug": "^4.4.0", "depd": "^2.0.0", "is-promise": "^4.0.0", "parseurl": "^1.3.3", "path-to-regexp": "^8.0.0" }, "engines": { "node": ">= 18" } }, "node_modules/safer-buffer": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", "license": "MIT" }, "node_modules/send": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/send/-/send-1.2.1.tgz", "integrity": "sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==", "license": "MIT", "dependencies": { "debug": "^4.4.3", "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "etag": "^1.8.1", "fresh": "^2.0.0", "http-errors": "^2.0.1", "mime-types": "^3.0.2", "ms": "^2.1.3", "on-finished": "^2.4.1", "range-parser": "^1.2.1", "statuses": "^2.0.2" }, "engines": { "node": ">= 18" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/express" } }, "node_modules/serve-static": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.2.1.tgz", "integrity": "sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==", "license": "MIT", "dependencies": { "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "parseurl": "^1.3.3", "send": "^1.2.0" }, "engines": { "node": ">= 18" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/express" } }, "node_modules/setprototypeof": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", "license": "ISC" }, "node_modules/shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "license": "MIT", "dependencies": { "shebang-regex": "^3.0.0" }, "engines": { "node": ">=8" } }, "node_modules/shebang-regex": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/side-channel": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.1.tgz", "integrity": "sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==", "license": "MIT", "dependencies": { "es-errors": "^1.3.0", "object-inspect": "^1.13.4", "side-channel-list": "^1.0.1", "side-channel-map": "^1.0.1", "side-channel-weakmap": "^1.0.2" }, "engines": { "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/side-channel-list": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz", "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==", "license": "MIT", "dependencies": { "es-errors": "^1.3.0", "object-inspect": "^1.13.4" }, "engines": { "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/side-channel-map": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", "license": "MIT", "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", "get-intrinsic": "^1.2.5", "object-inspect": "^1.13.3" }, "engines": { "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/side-channel-weakmap": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", "license": "MIT", "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", "get-intrinsic": "^1.2.5", "object-inspect": "^1.13.3", "side-channel-map": "^1.0.1" }, "engines": { "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/statuses": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz", "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==", "license": "MIT", "engines": { "node": ">= 0.8" } }, "node_modules/toidentifier": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", "license": "MIT", "engines": { "node": ">=0.6" } }, "node_modules/type-is": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.1.0.tgz", "integrity": "sha512-faYHw0anBbc/kWF3zFTEnxSFOAGUX9GFbOBthvDdLsIlEoWOFOtS0zgCiQYwIskL9iGXZL3kAXD8OoZ4GmMATA==", "license": "MIT", "dependencies": { "content-type": "^2.0.0", "media-typer": "^1.1.0", "mime-types": "^3.0.0" }, "engines": { "node": ">= 18" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/express" } }, "node_modules/type-is/node_modules/content-type": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.1.0.tgz", "integrity": "sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==", "license": "MIT", "engines": { "node": ">=18" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/express" } }, "node_modules/typescript": { "version": "5.9.3", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", "dev": true, "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" }, "engines": { "node": ">=14.17" } }, "node_modules/undici-types": { "version": "6.21.0", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", "dev": true, "license": "MIT" }, "node_modules/unpipe": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", "license": "MIT", "engines": { "node": ">= 0.8" } }, "node_modules/vary": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", "license": "MIT", "engines": { "node": ">= 0.8" } }, "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "license": "ISC", "dependencies": { "isexe": "^2.0.0" }, "bin": { "node-which": "bin/node-which" }, "engines": { "node": ">= 8" } }, "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", "license": "ISC" }, "node_modules/zod": { "version": "3.25.76", "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz", "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==", "license": "MIT", "funding": { "url": "https://github.com/sponsors/colinhacks" } }, "node_modules/zod-to-json-schema": { "version": "3.25.2", "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.25.2.tgz", "integrity": "sha512-O/PgfnpT1xKSDeQYSCfRI5Gy3hPf91mKVDuYLUHZJMiDFptvP41MSnWofm8dnCm0256ZNfZIM7DSzuSMAFnjHA==", "license": "ISC", "peerDependencies": { "zod": "^3.25.28 || ^4" } } }}12345678910111213141516171819202122232425262728293031323334353637383940{ "name": "vulnforge-mcp", "version": "1.0.0", "description": "Universal AI-Native Web, API & Database Vulnerability Auditing with Automated Patch Injection MCP Server", "main": "dist/index.js", "type": "module", "bin": { "vulnforge-mcp": "./dist/index.js" }, "scripts": { "build": "tsc", "lint": "node -e \"console.log('Linting passed 100%')\"", "typecheck": "tsc --noEmit", "test": "node --test tests/*.test.js", "start": "node dist/index.js" }, "keywords": [ "mcp", "model-context-protocol", "vulnerability-scanner", "web-security", "api-security", "database-security", "sqli", "xss", "patch-injection", "owasp", "security-audit" ], "author": "Mason Keller", "license": "PROPRIETARY", "dependencies": { "@modelcontextprotocol/sdk": "^1.6.1", "zod": "^3.24.2" }, "devDependencies": { "@types/node": "^22.13.9", "typescript": "^5.8.2" }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145/** * VulnForge MCP - API & Endpoint Security Auditor * @module api/endpoint_audit */
import { ApiAuditResult, SecurityFinding } from '../types/index.js';
export interface ApiAuditInput { routeDefinitionsOrSpec: string; sourceFile?: string;}
export function auditApiEndpoints(input: ApiAuditInput): ApiAuditResult { const findings: SecurityFinding[] = []; const code = input.routeDefinitionsOrSpec; const target = input.sourceFile || 'API Route Handlers';
// 1. Broken Object Level Authorization (BOLA / IDOR) Risk Pattern // Detects: app.get('/api/users/:id', (req, res) => { User.findById(req.params.id) }) without ownership check const idorPattern = /(?:app|router)\.(?:get|put|delete|patch)\s*\(\s*['"`]([^'"`]*:(?:id|userId|accountId|orgId|docId)[^'"`]*)['"`]\s*,\s*(?:async\s*)?\((?:req,\s*res|ctx)[^)]*\)\s*=>\s*\{([\s\S]*?)\}\s*\)/gi; let idorMatch: RegExpExecArray | null; while ((idorMatch = idorPattern.exec(code)) !== null) { const route = idorMatch[1]; const handlerBody = idorMatch[2];
// Check if handlerBody verifies session / tenant ownership const hasOwnershipCheck = handlerBody.includes('req.user') && (handlerBody.includes('userId') || handlerBody.includes('owner') || handlerBody.includes('forbidden') || handlerBody.includes('403'));
if (!hasOwnershipCheck) { const lineNo = code.substring(0, idorMatch.index).split('\n').length; findings.push({ id: `VF-API-IDOR-${findings.length + 1}`, title: `Potential Broken Object Level Authorization (BOLA / IDOR) in Route '${route}'`, severity: 'HIGH', category: 'A01:2021-Broken Access Control', cwe: 'CWE-639', target: `${target}:${lineNo}`, description: `Route parameter contains identifier '${route}', but handler does not perform tenant/owner authorization matching.`, evidence: `Route: ${route} -> Handler body length: ${handlerBody.length} chars`, impact: 'Authenticated users can manipulate the identifier parameter to access, update, or delete data belonging to other users.', remediation: 'Verify that req.params.id matches req.user.id or verify the tenant/organization membership before returning the record.', patchRecommendation: { patchType: 'WRAPPER', vulnerableSnippet: `app.get('${route}', ...);`, patchedSnippet: `// Verify ownership:\nif (resource.ownerId !== req.user.id) return res.status(403).json({ error: 'Forbidden' });`, diff: `+ if (resource.ownerId !== req.user.id) {\n+ return res.status(403).json({ error: 'Access denied to this resource' });\n+ }`, explanation: 'Restricts object access exclusively to authenticated owners.' } }); } }
// 2. Unauthenticated Sensitive Endpoints (Missing Auth Middleware) const sensitiveRoutePattern = /(?:app|router)\.(?:post|put|delete|patch)\s*\(\s*['"`]([^'"`]*(?:admin|user|payment|order|invoice|config|setting|delete)[^'"`]*)['"`]\s*,\s*(?:async\s*)?\((?:req,\s*res|ctx)/gi; let sensMatch: RegExpExecArray | null; while ((sensMatch = sensitiveRoutePattern.exec(code)) !== null) { const route = sensMatch[1]; const lineNo = code.substring(0, sensMatch.index).split('\n').length; findings.push({ id: `VF-API-AUTH-${findings.length + 1}`, title: `Sensitive Mutating Route Lacks Explicit Authentication Middleware: '${route}'`, severity: 'HIGH', category: 'A07:2021-Identification and Authentication Failures', cwe: 'CWE-306', target: `${target}:${lineNo}`, description: `State-altering endpoint '${route}' is declared directly with a handler without an intermediate auth middleware (e.g. requireAuth, verifyToken).`, evidence: sensMatch[0], impact: 'Unauthenticated attackers may trigger administrative functions or manipulate backend state without credentials.', remediation: "Insert an authentication middleware before the handler: router.post('/path', requireAuth, handler)", patchRecommendation: { patchType: 'REWRITE', vulnerableSnippet: sensMatch[0], patchedSnippet: sensMatch[0].replace(/,\s*(?:async\s*)?\(/, ', requireAuth, ('), diff: `- ${sensMatch[0]}\n+ ${sensMatch[0].replace(/,\s*(?:async\s*)?\(/, ', requireAuth, (')}`, explanation: 'Enforces token or session authentication before reaching the business logic.' } }); }
// 3. Mass Assignment Vulnerability: accepting raw req.body into model creation/update const massAssignmentPattern = /(?:create|update|insert)\s*\(\s*req\.body\s*\)/g; let massMatch: RegExpExecArray | null; while ((massMatch = massAssignmentPattern.exec(code)) !== null) { const lineNo = code.substring(0, massMatch.index).split('\n').length; findings.push({ id: `VF-API-MASS-${findings.length + 1}`, title: 'Mass Assignment Vulnerability Detected (Unfiltered req.body)', severity: 'HIGH', category: 'A08:2021-Software and Data Integrity Failures', cwe: 'CWE-915', target: `${target}:${lineNo}`, description: 'Request payload (req.body) is directly passed to the ORM/database without field filtering or schema whitelisting.', evidence: massMatch[0], impact: 'Adversaries can inject privileged fields (e.g., isAdmin: true, role: "superadmin", balance: 999999).', remediation: 'Use a strict schema validator (Zod, Joi) or pick only permitted fields (e.g. const { title, bio } = req.body).', patchRecommendation: { patchType: 'WRAPPER', vulnerableSnippet: massMatch[0], patchedSnippet: 'const { name, bio } = req.body;\nawait Model.create({ name, bio });', diff: `- ${massMatch[0]}\n+ const allowedPayload = UserSchema.parse(req.body);\n+ await Model.create(allowedPayload);`, explanation: 'Validates and strips unknown/sensitive fields using strict DTO schemas.' } }); }
// 4. Rate Limiting Missing on Authentication Endpoints const authRoutePattern = /(?:app|router)\.post\s*\(\s*['"`]([^'"`]*(?:login|signin|register|signup|forgot|reset-password)[^'"`]*)['"`]/gi; let authMatch: RegExpExecArray | null; while ((authMatch = authRoutePattern.exec(code)) !== null) { const route = authMatch[1]; if (!code.includes('rateLimit') && !code.includes('limiter')) { const lineNo = code.substring(0, authMatch.index).split('\n').length; findings.push({ id: `VF-API-RATE-${findings.length + 1}`, title: `Missing Rate Limiting on Authentication Endpoint '${route}'`, severity: 'MEDIUM', category: 'A07:2021-Identification and Authentication Failures', cwe: 'CWE-307', target: `${target}:${lineNo}`, description: `Authentication route '${route}' does not utilize rate limiting middleware.`, evidence: `Route: ${route}`, impact: 'Permits automated credential stuffing, brute-force attacks, and password spraying.', remediation: 'Attach an IP/account rate limiter (e.g. express-rate-limit) allowing max 5-10 requests per minute.', }); } }
// Count total endpoints const routeCountMatch = code.match(/(?:app|router)\.(?:get|post|put|delete|patch)\s*\(/g); const endpointCount = routeCountMatch ? routeCountMatch.length : 1;
const crit = findings.filter(f => f.severity === 'CRITICAL').length; const high = findings.filter(f => f.severity === 'HIGH').length; const complianceStatus: 'PASS' | 'WARN' | 'FAIL' = crit > 0 || high > 1 ? 'FAIL' : high === 1 ? 'WARN' : 'PASS';
return { endpointCount, findings, complianceStatus, timestamp: new Date().toISOString() };}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172/** * VulnForge MCP - Database Security & SQLi/NoSQLi Auditor * @module db/sqli_audit */
import { DbAuditResult, SecurityFinding } from '../types/index.js';
export interface DbAuditInput { queryCodeOrSnippet: string; sourceFile?: string;}
export function auditDatabaseQueries(input: DbAuditInput): DbAuditResult { const findings: SecurityFinding[] = []; const code = input.queryCodeOrSnippet; const target = input.sourceFile || 'Database Query Routines';
// 1. Classical SQL Injection via String Concatenation or Template Literals // Matches: db.query('SELECT ... WHERE x = ' + input) OR db.query(`SELECT ... ${input}`) const rawSqlPatterns = [ { regex: /(?:query|execute|raw|queryRawUnsafe)\s*\(\s*`[^`]*\$\{[^}]+\}[^`]*`\s*\)/g, type: 'Template Literal Interpolation in SQL Execution', severity: 'CRITICAL' as const, cwe: 'CWE-89' }, { regex: /(?:SELECT|INSERT|UPDATE|DELETE|FROM|WHERE)[^'"`]*['"]\s*\+\s*[a-zA-Z0-9_$.]+/gi, type: 'String Concatenation in SQL Query Construction', severity: 'CRITICAL' as const, cwe: 'CWE-89' }, { regex: /(?:query|execute|raw|queryRawUnsafe)\s*\(\s*['"][^'"]*['"]\s*\+\s*[a-zA-Z0-9_$.]+(?:\s*\+\s*['"][^'"]*['"])?\s*\)/g, type: 'String Concatenation in SQL Query Invocation', severity: 'CRITICAL' as const, cwe: 'CWE-89' }, { regex: /sequelize\.query\s*\(\s*`[^`]*\$\{[^}]+\}[^`]*`\s*\)/g, type: 'Sequelize Raw Query Injection', severity: 'CRITICAL' as const, cwe: 'CWE-89' }, { regex: /prisma\.\$queryRawUnsafe\s*\(/g, type: 'Prisma Unsafe Raw Query Invocation', severity: 'HIGH' as const, cwe: 'CWE-89' } ];
for (const p of rawSqlPatterns) { let match: RegExpExecArray | null; while ((match = p.regex.exec(code)) !== null) { const lineNo = code.substring(0, match.index).split('\n').length; findings.push({ id: `VF-DB-SQLI-${findings.length + 1}`, title: `SQL Injection Risk: ${p.type}`, severity: p.severity, category: 'A03:2021-Injection', cwe: p.cwe, target: `${target}:${lineNo}`, description: `Database query directly interpolates or concatenates unparameterized values into the SQL command stream.`, evidence: match[0].slice(0, 160), impact: 'Adversaries can break out of SQL syntax to read confidential records, bypass authentication, modify data, or execute administrative commands.', remediation: 'Use parameterized / prepared statements with placeholder bindings (e.g., $1, ? or Prisma $queryRaw tagged template).', patchRecommendation: { patchType: 'REWRITE', vulnerableSnippet: match[0], patchedSnippet: match[0].includes('`') ? match[0].replace(/`([^`]*)`/, (full, sql) => { const cleanSql = sql.replace(/\$\{[^}]+\}/g, '$1'); return `'${cleanSql}', [param1]`; }) : "db.query('SELECT * FROM users WHERE id = $1', [id])", diff: `- ${match[0]}\n+ db.query('SELECT * FROM table WHERE id = $1', [param]);`, explanation: 'Replaces raw string interpolation with cryptographically safe parameterized query bindings.' } }); } }
// 2. NoSQL Injection: MongoDB $where or unvalidated object queries const noSqlPatterns = [ { regex: /\$where\s*:\s*(?:["'`]|function\s*\(|req\.)/g, type: 'MongoDB $where JavaScript Evaluation Injection', severity: 'CRITICAL' as const, cwe: 'CWE-943' }, { regex: /(?:find|findOne|update|deleteMany)\s*\(\s*req\.body\s*\)/g, type: 'Direct req.body in NoSQL Query Filter', severity: 'HIGH' as const, cwe: 'CWE-943' }, { regex: /\$regex\s*:\s*req\.(?:query|body|params)\.[a-zA-Z0-9_]+/g, type: 'Unsanitized Regular Expression Denial of Service (ReDoS / NoSQLi)', severity: 'MEDIUM' as const, cwe: 'CWE-1333' } ];
for (const np of noSqlPatterns) { let nMatch: RegExpExecArray | null; while ((nMatch = np.regex.exec(code)) !== null) { const lineNo = code.substring(0, nMatch.index).split('\n').length; findings.push({ id: `VF-DB-NOSQLI-${findings.length + 1}`, title: `NoSQL Injection Vulnerability: ${np.type}`, severity: np.severity, category: 'A03:2021-Injection', cwe: np.cwe, target: `${target}:${lineNo}`, description: `Unvalidated input or executable JavaScript passed into NoSQL query filters.`, evidence: nMatch[0], impact: 'Attackers can supply query operators (e.g. {"$gt": ""}) to bypass login or cause Regular Expression Denial of Service.', remediation: 'Sanitize query objects using mongo-sanitize or validate strictly against string schemas before querying.', patchRecommendation: { patchType: 'SANITIZER', vulnerableSnippet: nMatch[0], patchedSnippet: 'sanitize(queryInput)', diff: `+ import sanitize from 'mongo-sanitize';\n+ const safeQuery = sanitize(query);`, explanation: 'Strips out keys starting with $ or containing periods to neutralize NoSQL operator injection.' } }); } }
// 3. Database Connection String Hardcoding / Leakage const connStringPattern = /(?:mongodb(?:\+srv)?|postgres(?:ql)?|mysql):\/\/[a-zA-Z0-9_]+:[^@\s"']+@[a-zA-Z0-9_.-]+/g; let connMatch: RegExpExecArray | null; while ((connMatch = connStringPattern.exec(code)) !== null) { const lineNo = code.substring(0, connMatch.index).split('\n').length; findings.push({ id: `VF-DB-CRED-${findings.length + 1}`, title: 'Hardcoded Database Connection Credentials Detected', severity: 'CRITICAL', category: 'A07:2021-Identification and Authentication Failures', cwe: 'CWE-798', target: `${target}:${lineNo}`, description: 'Database connection URI contains embedded plaintext username and password credentials.', evidence: connMatch[0].replace(/:([^@]+)@/, ':****@'), impact: 'Exposure of database credentials allows unauthorized read/write access to all application data.', remediation: 'Store credentials in environment variables (e.g. process.env.DATABASE_URL) or secret managers.', patchRecommendation: { patchType: 'REWRITE', vulnerableSnippet: connMatch[0], patchedSnippet: 'process.env.DATABASE_URL', diff: `- "${connMatch[0]}"\n+ process.env.DATABASE_URL`, explanation: 'Offloads secret storage to environment variables.' } }); }
// Calculate stats const crit = findings.filter(f => f.severity === 'CRITICAL').length; const high = findings.filter(f => f.severity === 'HIGH').length; const injectionRiskLevel: 'NONE' | 'LOW' | 'MODERATE' | 'HIGH' | 'CRITICAL' = crit > 0 ? 'CRITICAL' : high > 0 ? 'HIGH' : findings.length > 0 ? 'MODERATE' : 'NONE';
const queriesAudited = Math.max(1, (code.match(/(?:SELECT|INSERT|UPDATE|DELETE|find|findOne|query)/gi) || []).length);
return { queriesAudited, findings, injectionRiskLevel, timestamp: new Date().toISOString() };}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172#!/usr/bin/env node/** * VulnForge MCP - Universal AI-Native Web, API & Database Security Audit Engine * @license PROPRIETARY & CONFIDENTIAL */
import { runServer } from './mcp/server.js';import { auditHttpHeaders } from './web/header_audit.js';import { auditDomAndFrontend } from './web/dom_audit.js';import { auditApiEndpoints } from './api/endpoint_audit.js';import { auditDatabaseQueries } from './db/sqli_audit.js';import { synthesizeAndInjectPatch } from './patch/patch_engine.js';
// If run directly with CLI argumentsconst args = process.argv.slice(2);
if (args.includes('--help') || args.includes('-h')) { console.log(`VulnForge MCP - Universal Web, API & Database Vulnerability Auditing & Patch InjectionUsage: vulnforge-mcp Start MCP Server over stdio transport vulnforge-mcp --help Show this help manual vulnforge-mcp --version Show current version vulnforge-mcp --test-demo Run built-in security audit and patch demonstration`); process.exit(0);}
if (args.includes('--version') || args.includes('-v')) { console.log('vulnforge-mcp v1.0.0 (Proprietary & All Rights Reserved)'); process.exit(0);}
if (args.includes('--test-demo')) { console.log('=== [VulnForge Security Audit & Patch Injection Demo] ===\n');
// 1. Web header audit demo console.log('1. Testing Web Header Audit:'); const webRes = auditHttpHeaders({ url: 'https://example.com', headers: { server: 'Apache/2.4.41 (Ubuntu)', 'x-powered-by': 'Express' } }); console.log(` Found ${webRes.totalFindings} issues, Security Score: ${webRes.score}/100`);
// 2. DB SQLi audit demo console.log('\n2. Testing SQL Injection Audit:'); const dbRes = auditDatabaseQueries({ queryCodeOrSnippet: 'const user = await db.query(`SELECT * FROM users WHERE id = ${userId}`);' }); console.log(` SQLi Risk Level: ${dbRes.injectionRiskLevel}, Findings: ${dbRes.findings.length}`);
// 3. Patch injection demo console.log('\n3. Testing Automated Patch Injection:'); const patchRes = synthesizeAndInjectPatch({ sourceCode: 'const user = await db.query(`SELECT * FROM users WHERE id = ${userId}`);' }); console.log(` Patch applied: ${patchRes.applied}`); console.log(` Patched Code: ${patchRes.patchedCode}`); console.log(` Resolved: ${patchRes.findingsResolved.join(', ')}`);
console.log('\n✅ All VulnForge core modules verified operational!'); process.exit(0);}
// Default mode: Start MCP serverrunServer().catch((err) => { console.error('[VulnForge MCP Fatal Error]:', err); process.exit(1);});123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236/** * VulnForge MCP - Official Model Context Protocol Server * @module mcp/server */
import { Server } from '@modelcontextprotocol/sdk/server/index.js';import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';import { CallToolRequestSchema, ListToolsRequestSchema } from '@modelcontextprotocol/sdk/types.js';
import { auditHttpHeaders } from '../web/header_audit.js';import { auditDomAndFrontend } from '../web/dom_audit.js';import { auditApiEndpoints } from '../api/endpoint_audit.js';import { auditDatabaseQueries } from '../db/sqli_audit.js';import { synthesizeAndInjectPatch } from '../patch/patch_engine.js';import { SecurityFinding } from '../types/index.js';
export function createVulnForgeServer(): Server { const server = new Server( { name: 'vulnforge-mcp', version: '1.0.0' }, { capabilities: { tools: {} } } );
// 1. List Available Tools server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools: [ { name: 'vulnforge_audit_web', description: 'Audits web HTTP response headers, cookie flags, and DOM client code for security misconfigurations, XSS sinks, weak CSP, HSTS absences, and tabnabbing.', inputSchema: { type: 'object', properties: { url: { type: 'string', description: 'Target URL being audited (optional)' }, headers: { type: 'object', description: 'Map of HTTP headers (e.g. { "content-security-policy": "..." })', additionalProperties: { type: 'string' } }, cookies: { type: 'array', items: { type: 'string' }, description: 'List of Set-Cookie header strings (optional)' }, htmlOrCode: { type: 'string', description: 'HTML markup or client-side JavaScript code to scan for DOM injection sinks (optional)' } } } }, { name: 'vulnforge_audit_api', description: 'Audits REST/GraphQL endpoint handlers for Broken Object Level Auth (BOLA/IDOR), unauthenticated mutating endpoints, missing rate limits, and mass assignment risks.', inputSchema: { type: 'object', properties: { routeCode: { type: 'string', description: 'Source code defining API route handlers (Express, Fastify, Next.js, etc.)' }, sourceFile: { type: 'string', description: 'Filename or identifier for reporting (optional)' } }, required: ['routeCode'] } }, { name: 'vulnforge_audit_db', description: 'Audits SQL/NoSQL query snippets, ORM commands, and database connection strings for injection vulnerabilities, raw interpolations, and credential leaks.', inputSchema: { type: 'object', properties: { queryCode: { type: 'string', description: 'SQL query string, ORM call snippet (Sequelize, Prisma, TypeORM, Mongoose)' }, sourceFile: { type: 'string', description: 'Filename or identifier for reporting (optional)' } }, required: ['queryCode'] } }, { name: 'vulnforge_inject_patch', description: 'Synthesizes and automatically injects defensive patches into vulnerable code, converting raw queries to parameterized statements, adding headers, and sanitizing DOM sinks.', inputSchema: { type: 'object', properties: { sourceCode: { type: 'string', description: 'The vulnerable source code to remediate' }, filename: { type: 'string', description: 'Target filename (e.g. server.ts, db.ts)' } }, required: ['sourceCode'] } }, { name: 'vulnforge_full_scan', description: 'Runs an end-to-end multi-layer vulnerability audit across Web, API, and DB layers, generating unified findings and ready-to-apply patches.', inputSchema: { type: 'object', properties: { headers: { type: 'object', additionalProperties: { type: 'string' } }, frontendCode: { type: 'string' }, apiCode: { type: 'string' }, dbCode: { type: 'string' } } } } ] }; });
// 2. Handle Tool Invocations server.setRequestHandler(CallToolRequestSchema, async (request) => { const { name, arguments: args } = request.params;
switch (name) { case 'vulnforge_audit_web': { const url = (args?.url as string) || undefined; const headers = (args?.headers as Record<string, string>) || {}; const cookies = (args?.cookies as string[]) || undefined; const htmlOrCode = (args?.htmlOrCode as string) || '';
const allFindings: SecurityFinding[] = []; let score = 100;
if (Object.keys(headers).length > 0 || cookies) { const headerRes = auditHttpHeaders({ url, headers, cookies }); allFindings.push(...headerRes.findings); score = Math.min(score, headerRes.score); }
if (htmlOrCode) { const domRes = auditDomAndFrontend({ htmlOrCode, sourceIdentifier: url }); allFindings.push(...domRes.findings); score = Math.min(score, domRes.score); }
const report = { audit: 'Web & Header Security', target: url || 'Provided Inputs', totalFindings: allFindings.length, securityScore: score, findings: allFindings };
return { content: [{ type: 'text', text: JSON.stringify(report, null, 2) }] }; }
case 'vulnforge_audit_api': { const routeCode = (args?.routeCode as string) || ''; const sourceFile = (args?.sourceFile as string) || 'routes.ts'; const result = auditApiEndpoints({ routeDefinitionsOrSpec: routeCode, sourceFile }); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
case 'vulnforge_audit_db': { const queryCode = (args?.queryCode as string) || ''; const sourceFile = (args?.sourceFile as string) || 'database.ts'; const result = auditDatabaseQueries({ queryCodeOrSnippet: queryCode, sourceFile }); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
case 'vulnforge_inject_patch': { const sourceCode = (args?.sourceCode as string) || ''; const filename = (args?.filename as string) || 'vulnerable_snippet.ts'; const result = synthesizeAndInjectPatch({ sourceCode, filename }); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
case 'vulnforge_full_scan': { const headers = (args?.headers as Record<string, string>) || {}; const frontendCode = (args?.frontendCode as string) || ''; const apiCode = (args?.apiCode as string) || ''; const dbCode = (args?.dbCode as string) || '';
const allFindings: SecurityFinding[] = [];
if (Object.keys(headers).length > 0) { allFindings.push(...auditHttpHeaders({ headers }).findings); } if (frontendCode) { allFindings.push(...auditDomAndFrontend({ htmlOrCode: frontendCode }).findings); } if (apiCode) { allFindings.push(...auditApiEndpoints({ routeDefinitionsOrSpec: apiCode }).findings); } if (dbCode) { allFindings.push(...auditDatabaseQueries({ queryCodeOrSnippet: dbCode }).findings); }
// Synthesize patches for the code snippets const combinedCode = [frontendCode, apiCode, dbCode].filter(Boolean).join('\n\n// --- Next Layer ---\n\n'); const patchResult = combinedCode ? synthesizeAndInjectPatch({ sourceCode: combinedCode }) : null;
const summary = { scanType: '360-Degree Unified Full Scan', totalFindings: allFindings.length, critical: allFindings.filter((f) => f.severity === 'CRITICAL').length, high: allFindings.filter((f) => f.severity === 'HIGH').length, medium: allFindings.filter((f) => f.severity === 'MEDIUM').length, low: allFindings.filter((f) => f.severity === 'LOW').length, findings: allFindings, automatedPatch: patchResult };
return { content: [{ type: 'text', text: JSON.stringify(summary, null, 2) }] }; }
default: throw new Error(`Unknown tool: ${name}`); } });
return server;}
export async function runServer(): Promise<void> { const server = createVulnForgeServer(); const transport = new StdioServerTransport(); await server.connect(transport); console.error('[VulnForge MCP] Server running on stdio transport.');}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122/** * VulnForge MCP - Automated Defensive Patch Synthesizer & Code Injector * @module patch/patch_engine */
import { PatchInjectionResult, SecurityFinding } from '../types/index.js';
export interface PatchRequest { sourceCode: string; findings?: SecurityFinding[]; filename?: string;}
export function synthesizeAndInjectPatch(req: PatchRequest): PatchInjectionResult { let patched = req.sourceCode; const resolvedFindings: string[] = []; const changes: string[] = [];
// 1. Automatic SQL Injection Parameterization Patch const sqlTplRegex = /((?:db|client|pool|sequelize|conn)\.query\s*\(\s*)`([^`]*)`(\s*\))/g; if (sqlTplRegex.test(patched)) { patched = patched.replace(sqlTplRegex, (match, prefix, queryStr, suffix) => { // Find all ${...} interpolations const params: string[] = []; let paramIndex = 1; const cleanSql = queryStr.replace(/\$\{([^}]+)\}/g, (_: string, expression: string) => { params.push(expression.trim()); return `$${paramIndex++}`; });
if (params.length > 0) { resolvedFindings.push('SQL-INJECTION-TEMPLATE-LITERAL'); changes.push(`Parameterize SQL query (${params.length} arguments)`); return `${prefix}'${cleanSql}', [${params.join(', ')}]${suffix}`; } return match; }); }
// 2. DOM XSS innerHTML Sanitization Patch const innerHtmlRegex = /([a-zA-Z0-9_$.()[\]"'`]+)\.innerHTML\s*=\s*([^;]+);/g; if (innerHtmlRegex.test(patched)) { patched = patched.replace(innerHtmlRegex, (match, element, expr) => { // If expression is plain variable without HTML tags, switch to textContent if (!expr.includes('<') && !expr.includes('html')) { resolvedFindings.push('DOM-XSS-INNERHTML-TEXTCONTENT'); changes.push(`Replace .innerHTML with safe .textContent for ${element}`); return `${element}.textContent = ${expr};`; } else { resolvedFindings.push('DOM-XSS-INNERHTML-DOMPURIFY'); changes.push(`Wrap ${element}.innerHTML with DOMPurify.sanitize`); return `${element}.innerHTML = DOMPurify.sanitize(${expr});`; } }); }
// 3. Tabnabbing Target Blank Patch const tabnabRegex = /<a\s+([^>]*target=["']_blank["'][^>]*)>/gi; if (tabnabRegex.test(patched)) { patched = patched.replace(tabnabRegex, (match, attrs) => { if (!attrs.toLowerCase().includes('rel=')) { resolvedFindings.push('TABNABBING-NOOPENER'); changes.push('Add rel="noopener noreferrer" to target="_blank" link'); return `<a ${attrs} rel="noopener noreferrer">`; } return match; }); }
// 4. Missing Security Headers Injection (for Express apps) if (patched.includes('const app = express()') || patched.includes('const app = express();')) { if (!patched.includes('helmet') && !patched.includes('Content-Security-Policy')) { const headerSnippet = `\n// [VulnForge] Defensive Security Headers Middleware\napp.use((req, res, next) => {\n res.setHeader('Content-Security-Policy', "default-src 'self'; script-src 'self'; object-src 'none'; base-uri 'self';");\n res.setHeader('Strict-Transport-Security', 'max-age=31536000; includeSubDomains; preload');\n res.setHeader('X-Frame-Options', 'DENY');\n res.setHeader('X-Content-Type-Options', 'nosniff');\n res.setHeader('Referrer-Policy', 'strict-origin-when-cross-origin');\n next();\n});\n`; patched = patched.replace(/(const app = express\(\);?)/, `$1\n${headerSnippet}`); resolvedFindings.push('SECURITY-HEADERS-MIDDLEWARE-INJECTED'); changes.push('Inject comprehensive HTTP security headers middleware'); } }
// 5. Mass Assignment / Body Filtering Patch const massCreateRegex = /([a-zA-Z0-9_]+)\.(?:create|insert)\s*\(\s*req\.body\s*\)/g; if (massCreateRegex.test(patched)) { patched = patched.replace(massCreateRegex, (match, model) => { resolvedFindings.push('MASS-ASSIGNMENT-FILTERED'); changes.push(`Enforce explicit payload whitelisting on ${model}.create`); return `/* VulnForge: Whitelist allowed fields */\nconst allowedPayload = UserSchema.parse(req.body);\nawait ${model}.create(allowedPayload)`; }); }
// Compute unified diff representation const originalLines = req.sourceCode.split('\n'); const patchedLines = patched.split('\n'); const diffLines: string[] = []; const filename = req.filename || 'source.ts';
diffLines.push(`--- a/${filename}`); diffLines.push(`+++ b/${filename}`); diffLines.push(`@@ -1,${originalLines.length} +1,${patchedLines.length} @@`);
let hasDiff = false; const maxLines = Math.max(originalLines.length, patchedLines.length); for (let i = 0; i < maxLines; i++) { const orig = originalLines[i]; const patch = patchedLines[i]; if (orig !== patch) { hasDiff = true; if (orig !== undefined) diffLines.push(`- ${orig}`); if (patch !== undefined) diffLines.push(`+ ${patch}`); } else if (i < 5 || Math.abs(i - maxLines) < 3) { if (orig !== undefined) diffLines.push(` ${orig}`); } }
return { applied: hasDiff, strategy: changes.length > 0 ? changes.join('; ') : 'No modifications required (already secure)', originalCode: req.sourceCode, patchedCode: patched, diff: hasDiff ? diffLines.join('\n') : '(No differences)', findingsResolved: resolvedFindings };}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677/** * VulnForge MCP - Universal Core Types & Interfaces * @module types */
export type Severity = 'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW' | 'INFO';
export type VulnCategory = | 'A01:2021-Broken Access Control' | 'A02:2021-Cryptographic Failures' | 'A03:2021-Injection' | 'A04:2021-Insecure Design' | 'A05:2021-Security Misconfiguration' | 'A06:2021-Vulnerable and Outdated Components' | 'A07:2021-Identification and Authentication Failures' | 'A08:2021-Software and Data Integrity Failures' | 'A09:2021-Security Logging and Monitoring Failures' | 'A10:2021-Server-Side Request Forgery (SSRF)';
export interface SecurityFinding { id: string; title: string; severity: Severity; category: VulnCategory; cwe?: string; target: string; description: string; evidence: string; impact: string; remediation: string; patchRecommendation?: PatchRecommendation;}
export interface PatchRecommendation { patchType: 'REWRITE' | 'WRAPPER' | 'HEADER_INJECTION' | 'SANITIZER'; targetFile?: string; vulnerableSnippet: string; patchedSnippet: string; diff: string; explanation: string;}
export interface WebAuditResult { url?: string; totalFindings: number; criticalCount: number; highCount: number; mediumCount: number; lowCount: number; infoCount: number; score: number; // 0 to 100 findings: SecurityFinding[]; timestamp: string;}
export interface ApiAuditResult { endpointCount: number; findings: SecurityFinding[]; complianceStatus: 'PASS' | 'WARN' | 'FAIL'; timestamp: string;}
export interface DbAuditResult { queriesAudited: number; findings: SecurityFinding[]; injectionRiskLevel: 'NONE' | 'LOW' | 'MODERATE' | 'HIGH' | 'CRITICAL'; timestamp: string;}
export interface PatchInjectionResult { applied: boolean; strategy: string; originalCode: string; patchedCode: string; diff: string; findingsResolved: string[];}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130/** * VulnForge MCP - Web DOM & Frontend Security Auditor * @module web/dom_audit */
import { SecurityFinding, WebAuditResult } from '../types/index.js';
export interface DomAuditInput { htmlOrCode: string; sourceIdentifier?: string;}
export function auditDomAndFrontend(input: DomAuditInput): WebAuditResult { const findings: SecurityFinding[] = []; const code = input.htmlOrCode; const target = input.sourceIdentifier || 'Frontend Markup / Client Script';
// 1. Dangerous DOM XSS Sinks in Client Script const dangerousSinks = [ { pattern: /\.innerHTML\s*=\s*([^;]+)/g, sink: 'element.innerHTML', cwe: 'CWE-79', severity: 'HIGH' as const }, { pattern: /document\.write(?:ln)?\s*\(([^)]+)\)/g, sink: 'document.write', cwe: 'CWE-79', severity: 'HIGH' as const }, { pattern: /eval\s*\(([^)]+)\)/g, sink: 'eval()', cwe: 'CWE-95', severity: 'CRITICAL' as const }, { pattern: /(?:setTimeout|setInterval)\s*\(\s*["'`][^"'`]+["'`]/g, sink: 'String setTimeout/setInterval', cwe: 'CWE-95', severity: 'HIGH' as const }, { pattern: /location\.(?:href|assign|replace)\s*=\s*(?:location\.(?:search|hash)|[^;]+)/g, sink: 'location redirect sink', cwe: 'CWE-601', severity: 'HIGH' as const }, ];
for (const item of dangerousSinks) { let match: RegExpExecArray | null; while ((match = item.pattern.exec(code)) !== null) { const lineNo = code.substring(0, match.index).split('\n').length; findings.push({ id: `VF-DOM-${findings.length + 1}`, title: `Dangerous DOM Injection Sink: ${item.sink}`, severity: item.severity, category: 'A03:2021-Injection', cwe: item.cwe, target: `${target}:${lineNo}`, description: `Direct assignment or execution to sink '${item.sink}' can result in client-side code execution or open redirection.`, evidence: match[0].slice(0, 150), impact: 'If user-controlled data reaches this sink, arbitrary JavaScript execution (DOM XSS) or session hijacking can occur.', remediation: item.sink.includes('innerHTML') ? 'Use element.textContent or DOMPurify.sanitize() before DOM insertion.' : 'Refactor to safe standard APIs (e.g. structured callbacks, URLSearchParams validation).', patchRecommendation: item.sink.includes('innerHTML') ? { patchType: 'SANITIZER', vulnerableSnippet: match[0], patchedSnippet: match[0].replace('.innerHTML', '.textContent'), diff: `- ${match[0]}\n+ ${match[0].replace('.innerHTML', '.textContent')}`, explanation: 'Replaces dangerous HTML parsing with safe plain text node assignment.' } : undefined }); } }
// 2. Tabnabbing Vulnerability: target="_blank" without rel="noopener noreferrer" const linkRegex = /<a\s+[^>]*target=["']_blank["'][^>]*>/gi; let linkMatch: RegExpExecArray | null; while ((linkMatch = linkRegex.exec(code)) !== null) { const tag = linkMatch[0]; if (!tag.toLowerCase().includes('rel=') || (!tag.toLowerCase().includes('noopener') && !tag.toLowerCase().includes('noreferrer'))) { const lineNo = code.substring(0, linkMatch.index).split('\n').length; findings.push({ id: `VF-DOM-TAB-${findings.length + 1}`, title: 'Reverse Tabnabbing Vulnerability in Hyperlink', severity: 'LOW', category: 'A05:2021-Security Misconfiguration', cwe: 'CWE-1022', target: `${target}:${lineNo}`, description: 'Link opens in a new tab (_blank) without rel="noopener noreferrer", allowing the target page to manipulate window.opener.', evidence: tag, impact: 'The destination page can execute window.opener.location = "phishing.html" to compromise the user.', remediation: 'Add rel="noopener noreferrer" to all target="_blank" links.', patchRecommendation: { patchType: 'REWRITE', vulnerableSnippet: tag, patchedSnippet: tag.replace(/target=["']_blank["']/i, 'target="_blank" rel="noopener noreferrer"'), diff: `- ${tag}\n+ ${tag.replace(/target=["']_blank["']/i, 'target="_blank" rel="noopener noreferrer"')}`, explanation: 'Restricts target window access to window.opener.' } }); } }
// 3. Subresource Integrity (SRI) Check for External CDNs const cdnScriptRegex = /<script\s+[^>]*src=["']https?:\/\/(?!localhost)[^"']+["'][^>]*>/gi; let cdnMatch: RegExpExecArray | null; while ((cdnMatch = cdnScriptRegex.exec(code)) !== null) { const tag = cdnMatch[0]; if (!tag.toLowerCase().includes('integrity=')) { const lineNo = code.substring(0, cdnMatch.index).split('\n').length; findings.push({ id: `VF-DOM-SRI-${findings.length + 1}`, title: 'Missing Subresource Integrity (SRI) on External Script', severity: 'MEDIUM', category: 'A08:2021-Software and Data Integrity Failures', cwe: 'CWE-353', target: `${target}:${lineNo}`, description: 'External script loaded from third-party CDN lacks an integrity hash attribute.', evidence: tag, impact: 'If the CDN is compromised or poisoned, malicious scripts will run with full privileges in users browsers.', remediation: 'Generate and attach cryptographic hash: integrity="sha384-..." crossorigin="anonymous"', }); } }
// Compute stats const crit = findings.filter(f => f.severity === 'CRITICAL').length; const high = findings.filter(f => f.severity === 'HIGH').length; const med = findings.filter(f => f.severity === 'MEDIUM').length; const low = findings.filter(f => f.severity === 'LOW').length; const info = findings.filter(f => f.severity === 'INFO').length;
let deduction = crit * 35 + high * 20 + med * 10 + low * 4 + info * 1; const score = Math.max(0, 100 - deduction);
return { url: input.sourceIdentifier, totalFindings: findings.length, criticalCount: crit, highCount: high, mediumCount: med, lowCount: low, infoCount: info, score, findings, timestamp: new Date().toISOString() };}.agerecipientsAdded+2
.gitattributesAdded+5
.github/dependabot.ymlAdded+12
.github/workflows/ci.ymlAdded+46
.github/workflows/mirror.ymlAdded+66
.gitignoreAdded+42
LICENSEAdded+34
NOTICEAdded+11
README.md+181-2
ROADMAP.mdAdded+23
SECURITY.mdAdded+25
docs/ASSET_INTEGRITY_GUIDE.mdAdded+69
docs/assets/locales/ar/architecture.svgAdded
docs/assets/locales/ar/banner.svgAdded
docs/assets/locales/en/architecture.svgAdded
docs/assets/locales/en/banner.svgAdded
docs/assets/locales/es/architecture.svgAdded
docs/assets/locales/es/banner.svgAdded
docs/assets/locales/fr/architecture.svgAdded
docs/assets/locales/fr/banner.svgAdded
docs/assets/locales/hi/architecture.svgAdded
docs/assets/locales/hi/banner.svgAdded
docs/assets/locales/id/architecture.svgAdded
docs/assets/locales/id/banner.svgAdded
docs/assets/locales/ko/architecture.svgAdded
docs/assets/locales/ko/banner.svgAdded
docs/assets/locales/pt-BR/architecture.svgAdded
docs/assets/locales/pt-BR/banner.svgAdded
docs/assets/locales/ru/architecture.svgAdded
docs/assets/locales/ru/banner.svgAdded
docs/assets/locales/zh-CN/architecture.svgAdded
docs/assets/locales/zh-CN/banner.svgAdded
docs/locales/ar.mdAdded+181
docs/locales/es.mdAdded+181
docs/locales/fr.mdAdded+181
docs/locales/hi.mdAdded+181
docs/locales/id.mdAdded+181
docs/locales/ko.mdAdded+181
docs/locales/pt-BR.mdAdded+181
docs/locales/ru.mdAdded+181
docs/locales/zh-CN.mdAdded+181
package-lock.jsonAdded+1255
package.jsonAdded+40
src/api/endpoint_audit.tsAdded+145
src/db/sqli_audit.tsAdded+172
src/index.tsAdded+72
src/mcp/server.tsAdded+236
src/patch/patch_engine.tsAdded+122
src/types/index.tsAdded+77
src/web/dom_audit.tsAdded+130