
shivasurya/code-pathfinder
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
shivasurya/code-pathfinderは、[[T0]からインポートされたMCPサーバー候補です。
概要
shivasurya/code-pathfinderは、[[T0]からインポートされたMCPサーバー候補です。
概要(AI 翻訳)
ファイルや関数間で脆弱性を追跡するオープンソースのSASTエンジン
ウェブサイト ·ドキュメント ·ルールレジストリ ·MCPサーバー ·ブログ
クイックスタート
インストール:
Pythonプロジェクトをスキャンする(ルールは自動的にダウンロード):
Dockerファイルをスキャンしてください:
設定ファイルもAPIキーもクラウドアカウントもありません。結果は数秒で端末に届きます。
コードパスファインダーとは何ですか?
Code Pathfinderは、コードベースのグラフを作成し、データの流れを追跡するオープンソースの静的解析エンジンです。ソースコードを抽象構文ツリーに解析し、ファイル間のコールグラフを構築し、複数のファイルや関数の境界にまたがるソースからシンクへの脆弱性を見つけるための汚染分析を実行します。
v2.0はファイル横断データフロー解析を導入します。HTTPハンドラからのユーザー入力をヘルパー関数を通じて追跡し、別のファイルのSQLクエリに変換します。これはパターンマッチングツールが完全に見落としがちな分析です。
クロスファイル汚染分析
ほとんどのオープンソースSASTツールは単一のファイル上で動作します。Code Pathfinder 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" \