secure-software-engineering/phasar
A LLVM-based static analysis framework.
Thành tựu nổi bật
Những danh hiệu mới nhất của dự án
#1 Repository của tuần
#1 Repository của tuần
#7 Repository của tuần
🔍 PhASAR — Framework phân tích tĩnh dựa trên LLVM cho C++
Xác định bài toán data-flow, để framework giải thay.
PhASAR là một framework phân tích tĩnh viết bằng C++20, built trên LLVM. Người dùng chỉ cần mô tả bài toán data-flow muốn giải, PhASAR sẽ tự động xử lý trên mã LLVM IR đích. Framework tự tính toán points-to information, call-graph, type-hierarchy — bạn tập trung vào logic phân tích, không cần lo phần infra.
✅ Điểm nổi bật
- IFDS/IDE solver: Giải bài toán data-flow liên procedure dựa trên thuật toán IFDS/IDE
- WPDS solver (experimental): Dựa trên weighted pushdown systems, có thể giải mọi bài toán IFDS/IDE
- MonoIFDS solver: Hiệu suất cao cho phân tích IFDS theo hướng bottom-up
- Sparse analysis: SparseIFDS/SparseIDE/SparseWPDS để tối ưu hiệu suất
- Call-graph construction: Nhiều thuật toán (CHA, RTA, VTA, alias-based)
- Type-hierarchy construction: Trích xuất thông tin kiểu C++ bậc cao từ LLVM IR
- Points-to/alias infrastructure: Alias analysis hiệu năng cao cho LLVM IR, tích hợp với SVF
- Taint analysis: Infrastructure cấu hình nguồn/rò rỉ + IFDS/IDE-based taint analysis
- Modern C++20 API: Modular, dễ dùng, kể cả với người không chuyên C++
💡 Vì sao đáng chú ý
PhASAR giải quyết bài toán đau đầu nhất của static analysis: thiết lập hạ tầng (ICFG, call-graph, alias) rồi mới đi vào bài toán cụ thể. Thay vì phải viết lại từ đầu cho mỗi analysis mới, bạn chỉ cần định nghĩa bài toán taint hoặc data-flow và dùng solver có sẵn. Ví dụ trong README cho thấy toàn bộ workflow — load IR, build alias/type-hierarchy, chạy IFDS taint analysis — chỉ khoảng 10 dòng code.
Dự án phù hợp cho nghiên cứu static analysis và xây dựng công cụ bảo mật (taint tracking, vulnerability detection) trên mã nguồn C/C++. Hỗ trợ LLVM từ version 16 đến 22.1, tích hợp qua cmake hoặc Conan v2.
#LLVM #StaticAnalysis #DataFlowAnalysis #C++ #PhASAR #TiniX
Dự án tương tự
Khám phá các dự án và mô hình AI khác có sự tương đồng.
📚 C/C++ 技术面试基础知识总结,包括语言、程序库、数据结构、算法、系统、网络、链接装载库等知识及面试经验、招聘、内推等信息。This repository is a summary of the basic knowledge of recruiting job seekers and beginners in the direction of C/C++ technology, including language, program library, data structure, algorithm, system, network, link loading library, interview experience, recruitment, recommendation, etc.
Sourcetrail - free and open-source interactive source explorer
A curated list of awesome C++ (or C) frameworks, libraries, resources, and shiny things. Inspired by awesome-... stuff.
🔥🔥超过1000本的计算机经典书籍、个人笔记资料以及本人在各平台发表文章中所涉及的资源等。书籍资源包括C/C++、Java、Python、Go语言、数据结构与算法、操作系统、后端架构、计算机系统知识、数据库、计算机网络、设计模式、前端、汇编以及校招社招各种面经~
LVGL is a free, full-featured embedded UI library for small MCUs and 3D-capable MPUs, enhanced by LVGL Pro, a professional editor and tooling.
Lightweight static analysis for many languages. Find bug variants with patterns that look like source code.