Skip to content

iMayday-Yee/DebSecurityTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python 部分

Python脚本执行环境和依赖

  1. 安装cppcheck:
sudo apt install cppcheck
  1. 安装clamav:
sudo apt install clamav
  1. 更新病毒库:
sudo service clamav-freshclam stop
sudo freshclam
sudo service clamav-freshclam start
  1. 安装checksec
sudo apt install checksec
  1. 安装yara
sudo apt install yara
  1. 填写yara规则路径,默认为当前路径下的rules目录
# yara-rules来源:
# https://github.com/Neo23x0/signature-base/tree/master/yara
# https://github.com/Neo23x0/signature-base/tree/master/yara
  1. 安装die
sudo apt install biz.ntinfo.die

Python脚本单独使用方法

安装应用后执行:

python3 apptest.py -f test.dep -s ./test -c 1.json
# -f 指定测试的deb包。
# -s 指定应用源码目录。
# -c 应用组件json文件,例:{"git":"1:2.20.1-2+deb10u1","curl":"7.64.0-4+deb10u3"}
# -d 批量测试目录
# -p 指定进程pid

Golang 部分

在项目根目录下运行:

go run ./src

About

检测deb安装包的安全性

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages