Skip to main content
Challenges SSH and PAM: hidden door
Linux Medium Effective sshd configuration and a command= backdoor operating via the PAM stack Solves: 5

SSH and PAM: hidden door

Author: CyberSamSU
Points
50

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

Attached files
sshaudit.tar Log in to download
Hints 3
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −5 pts Log in
Hint 2 −10 pts Log in
Hint 3 −15 pts Log in
To submit a flag, log in.

First solvers

1. Mirjaxon Qaxxarov 25.11.2026
2. Odam 25.11.2026
3. Asmaa Mottery 26.11.2026
4. Anastasiya Chernykh 27.11.2026
5. Doston Allayarov 28.11.2026