
shivasurya/code-pathfinder
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
shivasurya/code-pathfinder는 [[T0]에서 가져온 MCP 서버 후보입니다.
개요
shivasurya/code-pathfinder는 [[T0]에서 가져온 MCP 서버 후보입니다.
개요(AI 번역)
파일과 기능 전반에 걸쳐 취약점을 추적하는 오픈소스 SAST 엔진
웹사이트 · 문서 · 규칙 레지스트리 · MCP 서버 · 블로그
퀵 스타트
설치:
Python 프로젝트를 스캔하세요 (규칙 자동 다운로드):
도커파일 스캔:
설정 파일도, API 키도, 클라우드 계정도 없습니다. 결과는 몇 초 만에 터미널에 도착합니다.
코드 패스파인더란 무엇인가요?
Code Pathfinder는 코드베이스의 그래프를 구축하고 데이터가 어떻게 흐르는지 추적하는 오픈 소스 정적 분석 엔진입니다. 소스 코드를 추상 구문 트리로 파싱하고, 파일 간 호출 그래프를 구성하며, 여러 파일 및 함수 경계에 걸친 소스에서 싱크까지의 취약점을 찾기 위한 오염 분석을 수행합니다.
v2.0는 교차 파일 데이터플로우 분석을 도입합니다: 한 파일의 HTTP 핸들러에서 온 사용자 입력을 헬퍼 함수를 통해 추적하고, 다른 파일의 SQL 쿼리로 추적합니다. 이러한 분석은 패턴 매칭 도구들이 전혀 놓치지 못합니다.
파일 간 오염 분석
대부분의 오픈 소스 SAST 도구는 단일 파일에서 작동합니다. 코드 패스파인더 v2.0은 오염된 데이터를 파일 경계를 넘어 추적합니다:
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
Quick Start
Install:
brew install shivasurya/tap/pathfinder
Scan a Python project (rules download automatically):
pathfinder scan --ruleset python/all --project .
Scan Dockerfiles:
pathfinder scan --ruleset docker/all --project .
No config files, no API keys, no cloud accounts. Results in your terminal in seconds.
What is Code Pathfinder?
Code Pathfinder is an open-source static analysis engine that builds a graph of your codebase and traces how data flows through it. It parses source code into Abstract Syntax Trees, constructs call graphs across files, and runs taint analysis to find source-to-sink vulnerabilities that span multiple files and function boundaries.
v2.0 introduces cross-file dataflow analysis: trace user input from an HTTP handler in one file through helper functions and into a SQL query in another file. This is the kind of analysis that pattern-matching tools miss entirely.
Cross-File Taint Analysis
Most open-source SAST tools operate on single files. Code Pathfinder v2.0 tracks tainted data across file boundaries:
app.py:5 user_input = request.get("query") ← Source: user-controlled input
↓ calls
db.py:12 cursor.execute(query) ← Sink: SQL execution
The engine builds a Variable Dependency Graph (VDG) per function, then connects them through inter-procedural taint transfer summaries. When user_input flows into a function parameter in another file, the taint propagates through the call graph to the sink.
How It Works
Source Code → Tree-sitter AST → Call Graph → Variable Dependency Graph → Taint Analysis → Findings
설치
docker run --rm -v "$(pwd):/src" \