Hi Wong,
I will go step by step as clear as possible to set up Ubuntu Focal with offline feeds for Wazuh 4.2.5, I confirm that what you did is one of the required steps to set up offline updates.
But as far as I can see you're missing the NVD configuration as I commented before.
- First I suggest downloading the OVAL information from this link
https://security-metadata.canonical.com/oval/com.ubuntu.focal.cve.oval.xml.bz2, since the previous link seems to be outdated. We are aware of this issue and we will implement the changes in the code and the documentation.
people.canonical...
security-metadata...
- Uncompress the bz2 file previously downloaded under a folder (in my case I used
/home/<user>/offline_updates/OVAL)
- Use the script provided in the documentation
https://documentation.wazuh.com/current/user-manual/capabilities/vulnerability-detection/offline-update.html#national-vulnerability-database (nvd-generator.sh).
I use the path
/home/<user>/offline_updates/NVD.
- You will end with multiple .gz files.

And they must be extracted. You could execute this simple loop in the folder where the .gz files are stored to do the work.
for i in *gz; do gzip -d "$i"; done
- You should see something like this.

- Then configure Ubuntu Focal and NVD as follow.

- Restart your manager and wait until the information is indexed.
- It is possible to
check that the configuration succeeds by setting debug=2 for modulesd. In your /var/ossec/etc/local_internal_options.conf
put this line
wazuh_modules.debug=2
- After that, you should be able to see some alerts about new vulnerabilities found.

Hope this helps. Regards!