Second opinion from Fable: what the strongest Claude model still found in my already reviewed code
For months I have been hardening my Nextcloud servers and this blog. How much can Anthropic's most capable model still find? Fable found bugs in the prepared fixes, new gaps – and was wrong twice itself.

🌐 Also available in: Deutsch · Français · Español · Italiano · Português · Nederlands · Polski
In short: For months I have been working on making my Nextcloud servers and this blog more secure: SELinux with domains of its own, firewall, CIS benchmark, sandboxes for every service, one review after another. At some point you wonder whether there is anything left to find. That is exactly what I was curious about when I let Fable, Anthropic’s most capable model, read the whole Ansible code once more. The answer: yes. Fable found bugs in the fixes I was about to roll out, among them one that would have taken down the production ingress, and a number of new gaps. Twice, though, it was wrong itself. Only the test server showed that.
Table of Contents
🤔 Why another review?
Shortly before, a thorough review had been finished. It found 28 points that I decided on, and for each one a fix was ready on a branch of its own. I could have rolled out. But a review checks the code, not the fixes written afterwards. And the fixes had been written by the same model that had found the gaps.
On top of that, I was curious: after so many rounds I wanted to know whether the strongest model I can use would still find something, or whether my setup was “done” by now. A second, independent look was also cheaper than a mistake on two production servers.
🧠 What is Fable?
Fable is the largest model of Anthropic’s Claude 5 family. It works more slowly than the model I usually work with and uses up the usage quota much faster. In return it thinks longer before it claims something and keeps more connections in view at the same time. In a review that means: it does not read file by file, it follows a value through template, role, firewall and Kubernetes object.
I let Fable run on my home server without follow-up questions, with fixed rules: read only, push nothing, touch no server. The result was a report with 647 lines for Nextcloud alone. Every finding has a severity, an effort, a certainty (certain, likely, suspicion) and the location in the code. At the end there is a list of what it checked and found to be fine, so that nobody has to check it again.
🔧 Bugs in the fixes themselves
The most important part first: three of the prepared fixes would have broken something themselves.
- The ingress would no longer have had a ServiceAccount. The fix restricted the rights of the ingress controller and, to do so, switched off the RBAC generation of the Helm chart. But then the chart no longer creates the ServiceAccount either. On production the controller would no longer have started. I had already found this on the test server; Fable found it in the code independently. Now the custom RBAC template brings its own ServiceAccount. →
84883e2(opens in a new tab) - Grafana would no longer have been reachable. Grafana was supposed to be reachable only through an SSH tunnel. But the SSH hardening forbade any forwarding. Now sshd allows local forwarding, and only to the Grafana port. →
75a37bd(opens in a new tab) - After the next blog deploy every page would have returned 403. The new CIS hardening sets the umask to 027. The deploy upload therefore created the files without read permission for nginx. The upload now runs with umask 022. →
b8b7850(opens in a new tab)
🔓 New gaps
Then the findings that did not appear in the first review at all. What they have in common is the question: what can someone do who already has a foot in the door, or who merely runs a website?
- A stolen backup key could read any file. The backup access allows only one specific
rsynccommand over SSH. With the option-s, however, rsync passes its actual arguments along in the data stream, past the check. The same was true of the blog’s deploy key. The check now rejects-s. →33de7fb(opens in a new tab),b8b7850(opens in a new tab) - Any process on the server could run PHP as Nextcloud. PHP-FPM listens on port 9000 inside the pod, without authentication. Any process on the host could reach this port. Now only root may. →
2237c63(opens in a new tab) - Someone else’s website could lock out my users. fail2ban bans an address for 24 hours after two requests for paths like
/.env, and for 30 days after three bans. Two invisible images on any website make every visitor’s browser send exactly these requests. For a club behind a single internet connection, that hits everyone at once. Browsers, however, mark such requests ascross-sitethemselves, and a website cannot suppress that. The ingress log now records this header, the fail2ban filters ignore such lines, and the ban for these paths now lasts only one hour. →dedf481(opens in a new tab) - With forged packets the port scan ban could be turned against the server itself. Anyone who sends 31 SYN packets per minute with the source address of the DNS resolver puts that address on the ban list for an hour. After that the server also dropped the answers to its own DNS queries. Now the ban only applies to connections the other side opens. →
c4715cf(opens in a new tab) - Every pod could reach MariaDB, bypassing the NetworkPolicy. The policy blocked the database via the server’s public address. Via the address of the internal bridge it was still reachable. The firewall now lets pods reach MariaDB and Valkey only via the public address. →
fa1317b(opens in a new tab) - The virus scanner read the users’ uploads as root. What ClamAV reads is decided by anyone who can upload something. A hole in one of its many file format parsers would therefore mean root on the server. The scan now runs in an isolated one-shot unit as the Nextcloud user. It took three attempts until that really worked, more on that below. →
2e0d67a(opens in a new tab),a9b906b(opens in a new tab),19a909c(opens in a new tab) - Two ways to persistent code. PHP read
.user.inifiles from the web directory. A lineauto_prepend_file=in one of them would have run someone else’s code on every request, and Nextcloud’s integrity check excludes these files. And nginx ran the proxy of the built-in Collabora app as PHP, including in places an attacker can write to. I do not even use that app. Both are switched off now. →7ce1f0d(opens in a new tab),bda8d30(opens in a new tab)
🧰 What was not about security
Fable also looked at operations. I implemented two findings right away:
- A new database password never reached the database. The playbook set the password only on the first installation. A new password in the vault changed the Kubernetes secret, but neither MariaDB nor Nextcloud’s
config.php. Now the playbook carries it all the way intoconfig.phpand restarts Nextcloud. →fbefdf5(opens in a new tab) - Commands still landed in the dying pod. I had fixed this bug in one place two days earlier. Fable found five more places with the same pattern. Now the playbook waits after every rollout until the old pod is gone. →
500f040(opens in a new tab)
📝 Fable as proofreader
The blog appears in eight languages. The translations had been written by another model in one evening, about 85 posts in 20 minutes. That was too fast for my taste. Fable read 98 posts again slowly, paragraph by paragraph against the German version, in English, Portuguese, Italian, Spanish and French:
| Count | |
|---|---|
| Corrections | 116 |
| of which errors of meaning | 20 |
| of which glossary (a technical term different from the agreed one) | 17 |
| of which link texts (title of another post quoted wrongly) | 18 |
| of which grammar, style and small things | 61 |
| uncertain spots that I decide myself | 43 |
| Posts without any finding | 36 |
By language: Italian 54 corrections, Portuguese 35, French 20, English 18, Spanish 9. On top of that came 13 in the German versions themselves: in some older posts the alt text of the title image was still in English. For the three newest posts, a second reading found another 34 spots across all seven translations.
An error of meaning looks like this, for example: in Italian, “treating storage as an afterthought” became “trattare lo storage come un ripensamento”, and “ripensamento” means a change of mind. Numbers, links and code blocks, on the other hand, were correct everywhere. A script checks those mechanically.
Fable also proofread the legal texts. Its notes went into the current version of the imprint and the privacy policy.
⏱️ How long did it take?
All runs took place without me on my home server, most of them at night. What is counted is pure working time. When the usage limit reached its maximum, the run waited until it was free again. That is why there was sometimes considerably more time between start and end.
| Task | Model | Working time | Start to end |
|---|---|---|---|
| Review of the Nextcloud code | Fable | ~30 min | 3 h |
| Review of the blog code | Fable | 18 min | 18 min |
| Second reading of the translations, 98 posts × 5 languages | Fable | ~32 min | just under 2 h |
| Second reading of the three newest posts, 7 languages | Fable | 6 min | 6 min |
| Check the operations guide (DE/EN/FR) against the code | Standard model | 8 min | 8 min |
| Fix the discrepancies found in the guide, 7 commits | Fable | 11 min | 11 min |
What was left for me was deciding: 28 points only I could rule on, for example about the privacy policy or how long fail2ban should ban. On top of that came rolling out to the production servers together.
🔁 Round two: Fable implements the fixes itself
After the review I had Fable do two more things. First, a second opinion on my own fixes from round one. That took 13 minutes, and it found a bug right away: under SELinux my ClamAV fix would not have been allowed to read anything (more on that below). After that Fable implemented all remaining findings itself that did not need a decision from me: about 30 commits for Nextcloud, then the same fixes for the blog. A selection:
- AIDE now checks the content, not just the permissions. Until now a changed SSH or fail2ban configuration would have gone unnoticed. →
85b3963(opens in a new tab) - The integrity check compares the code with the image as root. This way an attacker with Nextcloud’s rights can no longer fake it. On top of that comes a tripwire for the configuration directory. →
2132fd3(opens in a new tab),4f9edbc(opens in a new tab) - Firewall: the rules for the pod network now apply only at the pod bridge, and only root can reach the hosting provider’s metadata service. →
8a776d3(opens in a new tab),5c09cd2(opens in a new tab) - MariaDB gave every account full rights on databases named
test, a leftover from the installer. →6850cb0(opens in a new tab) - Supply chain: the signing keys of the package sources are kept as files with a fixed hash instead of coming from the network on every run. →
bc93c3a(opens in a new tab) - Nextcloud’s cron job has time and memory limits and reports when no run has succeeded for 30 minutes. →
6be72a7(opens in a new tab) - The check run now also checks that all these protections are active. →
f9fdf14(opens in a new tab) - Blog: the same port scan ban against forged packets and the same protection against third-party websites in fail2ban. →
4b6f982(opens in a new tab),1e90250(opens in a new tab)
On the test server everything went through on the first try, and a second run changed nothing. Still, it did not go entirely without surprises.
🧪 What only the test server showed
Fable writes a concrete fix for every finding. Some of them would not have worked as written, and one bug neither of us saw in the code:
ClamAV, in three attempts:
- Fable’s proposal ran the scan as the Nextcloud user, reasoning that the virus signatures were readable by everyone. On the test server, however, they have the permissions
0640and belong to the groupclamupdate. The unit got this group added. →2e0d67a(opens in a new tab) - Fable’s second opinion found the next catch: under systemd, clamscan runs in the SELinux domain
antivirus_t, and that domain may not read the pods’ files. Fable wrote a small SELinux module for it. In addition, the script now reports by mail when a scan has read nothing, instead of quietly saying “clean”. →a9b906b(opens in a new tab) - Then the real test via cron, with a harmless test virus file (EICAR): the scan did not even start. For user ID 33, systemd needs an entry in
/etc/passwd, and there is none on the host, only in the container. The new safety net raised the alarm immediately. After the fix the scan ran, but its output did not arrive in the log, and the log directory had the wrong SELinux type. Now there is a system usernc-data, and the output goes through the journal: 79 files scanned, the test virus detected, the mail arrived. →19a909c(opens in a new tab)
Without this test the virus scan on production would only have reported “FAILED” every night. At least it would have reported something. Before round two it would have quietly said “all clean”.
- Fable’s proposal ran the scan as the Nextcloud user, reasoning that the virus signatures were readable by everyone. On the test server, however, they have the permissions
fail2ban: to take the bans for
/.envout of the 30-day ban, Fable suggested a parameter of the filter. A test withfail2ban-regexon the test server showed: the parameter has no effect, the bans kept counting. Anignoreregexdoes the job.
All these bugs were found quickly because every fix goes to the test server first anyway. Without that step I would have believed the reasoning, because it sounded plausible.
The takeaway: a second, stronger model pays off especially for the fixes from a first review, because that is where new bugs appear. But even the strongest model does not replace a test server.
🎯 Conclusion
- Rolled out. All fixes now run on both Nextcloud servers and on the blog. On the smaller instance I checked availability every two seconds during the rollout: 420 of 420 requests went through, not a second of downtime.
- A review of the review pays off. Three of the prepared fixes would have broken something themselves, one of them the production ingress.
- Fable thinks in connections. Most of the new findings lay between two layers: rsync option and SSH check, browser and fail2ban, bridge address and NetworkPolicy.
- The test server has the last word. Two of Fable’s proposals sounded right and were not. And neither Fable nor I saw in the code that the virus scan does not even start; only the real run showed it.
- Still open: Fable’s report contains more points, mostly about operations (restore test, alerting, supply chain of the images). I am working through them one by one.
Behind every point the link leads to the commit with the change, that is, to exactly the lines it took.
→ Code: nextcloud_k3s on GitHub (opens in a new tab) · www_hugo on GitHub (opens in a new tab)
📚 Related posts:
