Redis Persistence via CONFIG SET
Abuses Redis CONFIG SET to redirect DB dumps or AOF logs to attacker-controlled paths, achieving filesystem writes and persistent backdoor placement.
HackIndex.io
Language
Redis:
Write SSH keys, cron jobs, or webshells via Redis config
Abuses Redis CONFIG SET to redirect DB dumps or AOF logs to attacker-controlled paths, achieving filesystem writes and persistent backdoor placement.
Redis persistence techniques maintain access by writing to system files that execute on schedule or at login. Cron-based reverse shells use CONFIG SET dir /var/spool/cron/ and write a crontab entry that calls back to your listener every few minutes. This survives Redis restarts and runs as the cron user.
SSH authorized_keys injection is both an exploitation and persistence technique. Once your key is in place, SSH access persists independently of Redis. For defense evasion, write keys to less obvious user accounts rather than root.
Module-based backdoors load a shared library into Redis that exposes custom commands for command execution, file operations, or reverse shell callbacks. The module persists across restarts if added to the Redis configuration file via CONFIG SET or direct file write. Combined with replication (SLAVEOF), you can re-inject a malicious module from a rogue master if the original gets removed.
We use cookies to improve your browsing experience, analyze site traffic, and personalize content. By clicking "Accept All", you consent to our use of cookies. Privacy Policy.