Additional data point: this is not specific to WSL. I reproduced it on a fresh, regular Kali install.
System: Kali 2026.3 (VERSION_CODENAME=kali-rolling), VirtualBox guest, kernel 7.1.5+kali-amd64, aide 0.19.5-1, aide-common 0.19.5-1 from https://www.google.com/url?q=http://http.kali.org&source=gmail&ust=1793759821786000&sa=E (unmodified Debian package). On a fresh install of aide/aide-common, the first "aideinit -y -f" fails right away with "AIDE --init return code 17". aide --config-check reports the same error as in the original report: ERROR: /etc/aide/aide.conf.d/10_aide_os-release (stdout):1: syntax error, unexpected group name, expecting end of file (line: '@@define OS_RELEASE_VERSION_CODENAME_KALI-ROLLING KALI-ROLLING') So on Kali, AIDE cannot be initialised at all out of the box. No baseline database is created and dailyaidecheck has nothing to check against. With the patch from my original message applied to /etc/aide/aide.conf.d/10_aide_os-release (tr ... | sed 's/[^A-Z0-9_]/_/g'), the generated line becomes @@define OS_RELEASE_VERSION_CODENAME_KALI_ROLLING KALI_ROLLING aide --config-check returns 0, and aide --init gets past configuration parsing and builds the database. Thanks, Sumit Verma

