使用Kheish进行代码审计是一个标准化流程,主要包括以下配置和执行步骤:
preliminary
- Cloning GitHub repositories:
git clone https://github.com/graniet/kheish.git
- Go to the project catalog:
cd kheish
- Install the dependencies:
cargo build
Configuration file settings
需要创建或修改YAML配置文件,典型示例如下:
tasks:
- name: "代码审计"
roles:
- proposer
- reviewer
- validator
modules:
- fs
- sh
执行审计
- Run command:
cargo run -- --config path/to/config.yaml
- Kheish会自动执行:
- 通过fs模块读取代码文件
- 提案者生成初步分析
- 审查者提出修改建议
- 验证者确认最终结果
整个过程中Kheish会保持迭代优化,必要时调用RAG模块处理大型代码库。审计结果会通过格式化者转换为标准报告格式输出。
This answer comes from the articleKheish: multi-actor intelligences that review, validate and format output to produce high quality resultsThe