LK

lorexxar/kunlun-m

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

2.4천 stars 품질 72 트렌드 45MIT

KunLun-M — PHP, Nodejs/JavaScript, Python, Golang, Java, C/C++용 오픈 소스 정적 코드 분석, AST 기반 의미 스캔과 원클릭 AI 에이전트 통합(OpenClaw, Codex, Claude...

개요

오픈 소스 정적 코드 보안 분석 시스템입니다. 소스 코드를 기반으로 AST 그래프를 구축하고 취약점을 탐지하기 위해 오염 분석을 수행합니다. - : PHP / JavaScript / TypeScript / Python / Java / Go / Ruby / Rust / C / C++ / C# / Kotlin / Lua / Solidity - : 오염 추적을 위한 완전한 프로그램 그래프(콜 그래프, 데이터 흐름, AST 구조)를 구축 - 세 가지 모드 - : Codex / Claude Code / Hermes 등과 원클릭 통합 콘솔 모드는 그래프 탐색 지원이 포함된 인터랙티브 REPL을 제공합니다: 그래프 REPL 내에서 Joern 스타일 그래프 쿼리의 진입점으로 g를 사용하세요: 전체 API 참고문헌은 docs/graph-traversal.md를 참고하세요. 웹 모드에는 다음이 포함됩니다: - : 작업 관리, 프로젝트 개요, 결과 스캔 - : 인터랙티브 Cytoscape.js 그래프 시각화(4가지 레이아웃) - : 자동화를 위한 토큰 인증 REST API API 인증을 위해 Kunlun_M/settings.py 에서 API_TOKEN을 설정하세요. 완전한 프로젝트(데이터베이스 기록 + 그래프 파일)를 휴대용 .tar.gz으로 내보내기:

개요(AI 번역)

中文 | 영어

쿤룬엠

**KunLun-M(昆仑镜)**는 오픈소스 정적 코드 보안 분석 시스템입니다. 소스 코드를 기반으로 AST 그래프를 구축하고 취약점을 탐지하기 위해 오염 분석을 수행합니다.

  • 14개 언어: PHP / JavaScript / TypeScript / Python / Java / Go / Ruby / Rust / C / C++ / C# / Kotlin / Lua / Solidity
  • AST 그래프 엔진: 오염 추적을 위한 전체 프로그램 그래프(콜 그래프, 데이터 흐름, AST 구조)를 구축합니다
  • CLI / 콘솔 / 웹 세 가지 모드
  • 내장 AI 에이전트 스킬: Codex / Claude Code / Hermes 등과 원클릭으로 통합

퀵 스타트

CLI 명령어

핵심 명령

지휘 설명
init 데이터베이스 초기화 / 마이그레이션
reset 데이터베이스 초기화 (스캔 데이터, TaintChain, 레거시 ResultFlow, 작업 공간 삭제)
scan -t 스캔 대상 (파일, 디렉터리, 또는 아카이브)
console 그래프 REPL이 있는 인터랙티브 콘솔
web [-p 9999] API 포함 웹 대시보드
analyze AST 그래프 2차 분석
export-project -p 휴대용 아카이브로의 내보내기 프로젝트
import-project -f 아카이브에서 프로젝트 가져오기
export-neo4j -p AST 그래프를 Neo4j로 내보내기

스캔 매개변수

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

中文 | English

KunLun-M

KunLun-M(昆仑镜) is an open-source static code security analysis system. It builds an AST graph from source code and performs taint analysis to detect vulnerabilities.

  • 14 languages: PHP / JavaScript / TypeScript / Python / Java / Go / Ruby / Rust / C / C++ / C# / Kotlin / Lua / Solidity
  • AST graph engine: Builds a full program graph (call graph, data flow, AST structure) for taint tracking
  • CLI / Console / Web three modes
  • Built-in AI Agent skill: One-click integration with Codex / Claude Code / Hermes etc.

Quick Start

# Install
git clone https://github.com/LoRexxar/Kunlun-M.git && cd Kunlun-M
pip install -r requirements.txt
cp Kunlun_M/settings.py.bak Kunlun_M/settings.py

# Init database
python kunlun.py init

# Scan
python kunlun.py scan -t /path/to/project

# Scan with specific language
python kunlun.py scan -t /path/to/project -lan php

# Export HTML report
python kunlun.py scan -t /path/to/project -f html -o report.html

# Web dashboard
python kunlun.py web -p 9999

CLI Commands

python kunlun.py  [args]

Core Commands

Command Description
init Initialize / migrate database
reset Reset database (clear scan data, TaintChain, legacy ResultFlow, workspace)
scan -t Scan target (file, directory, or archive)
console Interactive console with graph REPL
web [-p 9999] Web dashboard with API
analyze AST graph secondary analysis
export-project -p Export project to portable archive
import-project -f Import project from archive
export-neo4j -p Export AST graph to Neo4j

Scan Parameters

Parameter Description
-t/--target Target file/directory (required)
-lan/--language Language (php/javascript/python/java/go/ruby/rust/c/cpp/csharp/kotlin/lua/solidity)
-r/--rule Specific rules (comma-separated CVI IDs, e.g. 1000,1001)
-f/--format Output format: csv (default) / json / md / html / xml
-o/--output Output file path
-tp/--tamper Apply tamper (e.g. wordpress)
-b/--blackpath Exclude paths (e.g. vendor,node_modules)
--without-vendor Skip SCA (vendor vulnerability) scan
--no-cache Force rebuild graph (no cache)
-d/--debug Debug mode

Other Commands

Command Description
export Export rules & tampers from database to files
generate rule Generate rule template file
generate tamper Generate tamper template file
GitHub에서 전체 README 보기

추천 도구

다른 키워드를 입력하거나 필터를 제거해 보세요.

설치

npx skillfish add lorexxar/kunlun-m
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →