Hello everyone,
I am integrating Snyk with Wazuh.
This is the way it is executed:
The command "snyk code test" is executed -> A decoder extracts the information -> A rule is triggered and the information appears on the Wazuh dashboard.
The whole system works fine and the data is extracted correctly, but I have encountered a problem, which I have not been able to solve.
For example, when executing the Snyk command, I have these logs:
" ✗ [Low] Use of Password Hash With Insufficient Computational Effort.
Path: node_modules/bl/test/test.js, line 511
Info: md5 hash (used in crypto.createHash) is insecure. Consider changing it to a secure hashing algorithm.
✗ [Low] Use of Password Hash With Insufficient Computational Effort
Path: node_modules/bl/test/test.js, line 512
Info: md5 hash (used in crypto.createHash) is insecure. Consider changing it to a secure hashing algorithm."
I'm trying to add both "titles" (i.e. the [Importance] Title line) in the above examples, but only the first title is reflected. Could you guide me on how to concatenate the RegExp matches?