Velvet Ant's "Operation Highland" doesn't exploit a CVE for persistence, they re...
Geoff @sternecker@infosec.exchange
Velvet Ant's "Operation Highland" doesn't exploit a CVE for persistence, they replaced trusted binaries: trojanized pam_unix.so + backdoored ssh/sshd/scp that take a hardcoded password and log creds. No patch fixes a swapped binary; the defense is file integrity.
On Debian:
dpkg -V libpam-modules openssh-server openssh-client
No output = your auth stack matches the package DB.
Then confirm /etc/ld.so.preload is empty.
Installing debsums enhances the file integrity checking!!
Scripted it to check files they swap + flag any unowned .so in the PAM dir.
https://github.com/sternecker/midil/blob/main/auth-stack-check.sh
My personal GIT Repo is not public.. that is on my ToDo list.
#infosec #linux #selfhosting