Redis config security checker
Paste a redis.conf and find the settings that expose Redis: bind on all interfaces, protected mode off, no password or ACL, weak requirepass and no TLS.
Checked as you type. Nothing you paste leaves this page.
The file is read in your browser. It is not uploaded.
Everything you type here stays in your browser. Nothing is sent to HardenKit or to anyone else.
How to use the redis config security checker
- Paste redis.conf (or the output of CONFIG GET * rewritten as lines), drop the file, or load the example.
- Fix the bind and protected-mode findings first.
- Create ACL users, or set a long generated requirepass.
- Check from another machine that the port is closed: redis-cli -h your-host ping should fail.
About this tool
Redis was designed to be reached by trusted clients on a trusted network. It has no authentication until you configure it, and a client with full access can do more than read data: with CONFIG SET it can make Redis write files as its own user, which attackers have used for years to plant SSH keys and cron jobs on exposed servers.
This checker reads redis.conf and judges the settings together, because the risk is in the combination. Listening on every interface with protected mode off and no password is critical. The same bind with a strong password is a smaller concern. It checks bind (including a missing bind line), protected-mode, requirepass and its strength, ACL users, the default user, TLS and the default port.
It also corrects one piece of old advice. Renaming dangerous commands with rename-command is deprecated; since Redis 6 the way to limit commands is an ACL user per application. The rules follow the Redis security documentation. They read the file only, so they do not replace a look at your firewall and at what the port answers from outside.
Sources
Questions
A safety net added in Redis 3.2. When Redis has no password and no explicit bind address, protected mode makes it answer only connections from loopback. It is on by default, and turning it off removes the last barrier for a server that is otherwise unconfigured.
Only if a firewall or a private network limits who can reach it. The shipped redis.conf binds to 127.0.0.1 and ::1. If application servers on other machines need Redis, bind to the private address they use, require authentication, and consider TLS.
It is the minimum. Redis answers authentication attempts very quickly and has no lockout, so the password must be long and random; ACL GENPASS creates one. Since Redis 6, ACL users are better: each application gets its own password and only the commands and keys it needs.
Not any more. rename-command is marked deprecated in redis.conf, affects every client including your own tooling, and can cause problems with replication. Use ACLs to remove command categories such as @dangerous from the users that should not have them.