Malware Analysis
取证备忘单
在线服务
离线防病毒和检测工具
Yara
安装
准备规则
扫描
YaraGen: 检查恶意软件并创建规则
ClamAV
安装
扫描
Capa
IOCs
Loki
Linux 恶意软件检测
rkhunter
FLOSS
PEpper
PEstudio
Detect It Easy(DiE)
NeoPI
php-malware-finder
Apple 二进制签名
检测技术
文件堆叠
基线
统计分析
最后更新于
sudo apt-get install -y yarawget https://gist.githubusercontent.com/andreafortuna/29c6ea48adf3d45a979a78763cdc7ce9/raw/4ec711d37f1b428b63bed1f786b26a0654aa2f31/malware_yara_rules.py
mkdir rules
python malware_yara_rules.pyyara -w malware_rules.yar image #Scan 1 file
yara -w malware_rules.yar folder #Scan the whole folderpython3 yarGen.py --update
python3.exe yarGen.py --excludegood -m ../../mals/sudo apt-get install -y clamavsudo freshclam #Update rules
clamscan filepath #Scan 1 file
clamscan folderpath #Scan the whole folder1. File Name IOC
Regex match on full file path/name
2. Yara Rule Check
Yara signature matches on file data and process memory
3. Hash Check
Compares known malicious hashes (MD5, SHA1, SHA256) with scanned files
4. C2 Back Connect Check
Compares process connection endpoints with C2 IOCs (new since version v.10)sudo ./rkhunter --check -r / -l /tmp/rkhunter.log [--report-warnings-only] [--skip-keypress]#Get signer
codesign -vv -d /bin/ls 2>&1 | grep -E "Authority|TeamIdentifier"
#Check if the app’s contents have been modified
codesign --verify --verbose /Applications/Safari.app
#Check if the signature is valid
spctl --assess --verbose /Applications/Safari.app