SSH and PAM: hidden door
From the compromised server, sshaudit.tar was collected: under rootfs/ there are /etc/ssh/sshd_config and sshd_config.d/, /etc/pam.d/*, /etc/ssh/sshd.allow, users' ~/.ssh/authorized_keys files and scripts referenced via command=; ownership and permissions are in manifest.txt (tar headers are unreliable).
For passwordless login, the attacker added a key with command= to authorized_keys: when connected, a hidden script runs. However, several users have such keys — most of them do not actually work: sshd or PAM rejects them. Only one key actually allows login under the effective configuration (password login is disabled, UsePAM yes).
Find the script for that key: it contains a hidden payload (the decoding chain is written inside the script itself). The decoded text is the flag. Payloads in the other scripts are decoys. Flag format: BAYROQ{...} (the last 16 characters are lowercase hexadecimal digits).