Each partition recognized by Drive Badger during attack, between mount
and rsync
, is passed through series of hooks. Hooks are functional plugins, cloned into /opt/drivebadger/hooks
directory, processing given filesystem in some more intelligent way, than just copying all data.
hook-fstab
- look for /etc/fstab
files, extract all statically defined smbfs
/cifs
and nfs
shares and exfiltrate themhook-wcxftp
- look for Total Commander's wcx_ftp.ini
files with saved FTP passwords, extract and decode passwords, and exfiltrate FTP accountshook-virtual
- look for VMware/Hyper-V virtual drive images and exfiltrate them recursivelyYou can implement your own hooks. Each hook repository must contain hook.sh
script, accepting 2 arguments: