Velvet Ant's "Operation Highland" doesn't exploit a CVE for persistence, they re...

@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.

github.com/sternecker/midil/bl

My personal GIT Repo is not public.. that is on my ToDo list.
#infosec #linux #selfhosting