Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/BytecodeDL/ByteCodeDL
A declarative static analysis tool for jvm bytecode based Datalog like CodeQL
https://github.com/BytecodeDL/ByteCodeDL
points-to-analysis sast security-tools static-analysis taint-analysis
Last synced: 3 months ago
JSON representation
A declarative static analysis tool for jvm bytecode based Datalog like CodeQL
- Host: GitHub
- URL: https://github.com/BytecodeDL/ByteCodeDL
- Owner: BytecodeDL
- License: gpl-3.0
- Created: 2022-03-23T11:24:51.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-06T08:55:24.000Z (10 months ago)
- Last Synced: 2024-06-06T23:44:22.728Z (5 months ago)
- Topics: points-to-analysis, sast, security-tools, static-analysis, taint-analysis
- Language: Shell
- Homepage:
- Size: 840 KB
- Stars: 309
- Watchers: 7
- Forks: 18
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-hacking-lists - BytecodeDL/ByteCodeDL - A declarative static analysis tool for jvm bytecode based Datalog like CodeQL (Shell)
README
# ByteCodeDL
A declarative static analysis tool for jvm bytecode based Datalog like CodeQL
## Why ByteCodeDL
ByteCodeDL这个名字是从CodeQL演化的,ByteCode对应Code,DL对应QL,是一款声明式静态分析工具,主要是为了弥补CodeQL无法直接分析字节码的遗憾。
本项目主要有两个目的:
1. 教学目的,帮助大家入门静态分析,本项目将演示如何通过datalog实现一些静态分析算法,比起命令式静态分析,这种方式要简洁很多,学习了基本原理之后,也可以自己DIY规则。
2. 提高挖洞效率,安全研究人员一般拿不到源码,大多数情况只能分析Jar包,然后通过IDEA看反编译之后的代码,效率比较低,希望ByteCodeDL提供的搜索功能、调用图分析功能、污点分析功能,能够提高安全研究人员的挖洞效率。## Install
1. [download](https://github.com/BytecodeDL/soot-fact-generator/releases/download/v1.0/soot-fact-generator.jar) or [build](https://github.com/BytecodeDL/soot-fact-generator) soot-fact-generator.jar
2. install [souffle](https://souffle-lang.github.io/install)
3. install [neo4j](https://neo4j.com/download-center/)## Docker
you can use the docker we builded like docker-compose.yml
## Features
- [x] 搜索功能
- [x] 调用图分析
- [x] CHA
- [x] SIMPLE-CHA
- [x] RTA
- [ ] 指针分析
- [x] 上下文无关指针分析
- [x] 一阶上下文调用点敏感指针分析
- [x] 一阶上下文对象敏感指针分析
- [x] 一阶上下文类型敏感指针分析
- [ ] 可选择上下文敏感指针分析
- [x] 污点分析
- [x] 上下文无关ptaint
- [x] 上下文敏感ptaint
- [ ] 输出sarif
- [ ] 实现JackEE
- [ ] 性能优化## Usage
见docs文件夹
## Support
在使用中遇到什么问题,可以通过
- email: [email protected]
- github: issue/discussion
- telegram: [bytecodedl](https://t.me/bytecodedl)三种途径向我们反馈
## Plugin
- IDEA
- ByteCodeDL helper [BDLH](https://github.com/BytecodeDL/BDLH)
- Datalog language plugin [intellij-datalog](https://github.com/BytecodeDL/intellij-datalog)## Acknowledgement
- 感谢南大的李樾和谭添两位老师,通过他们开设的[程序分析课程](https://pascal-group.bitbucket.io/teaching.html)入门了静态分析这一领域。
- 感谢[Doop](https://bitbucket.org/yanniss/doop) , 提供了soot-fact-generator.jar 。