Macros resetting & folder permission changes

I’m encountering an issue with LibreOffice running macros that we’ve stored in a file called Module1.xba. These macros are used for document processing tasks, but noticed an issue occurs at random intervals where the macros are cleared out and the Module1.xba file reverts itself to the default file.

The monitoring software I use reported that the permissions on the /.config/4 folder changed from 770 to 640, and Module1.xba was cleared out of macros. I’m unsure what triggered these changes.

LibreOffice version: 7.3.7.2 30(Build:2)
phpdocx version: 13.5

I’ve checked syslog & audit.log for relevant events and also tried running LibreOffice in verbose logging mode, but couldn’t identify the root cause.

Has anyone encountered something similar with the macros being reset or configuration folder permissions changing unexpectedly?

Any guidance would be greatly appreciated.

somehow : 51267 – after removing registrymodifications.xcu the existing user/basic/dialog.xlc and scrip.xlc are overwritten and existing user libraries seem lost

been a while now … Release Plan 7.3 - The Document Foundation Wiki

probably worth packaging a bit more : LibreOffice Developer's Guide: Chapter 4 - Extensions - The Document Foundation Wiki