Headline
GHSA-w54x-xfxg-4gxq: NeuVector process with sensitive arguments lead to leakage
Impact
When a Java command with password parameters is executed and terminated by NeuVector for Process rule violation. For example,
java -cp /app ... Djavax.net.ssl.trustStorePassword=<Password>
The command with the password appears in the NeuVector security event. To prevent this, NeuVector uses the following default regular expression to detect and redact sensitive data from process commands:
(?i)(password|passwd|token)
Also, you can define custom patterns to redact by creating a Kubernetes ConfigMap. For example:
kubectl create configmap neuvector-custom-rules --from-file=secret-patterns.yaml -n neuvector
Sample secret-patterns.yaml
content:
Pattern_list:
- (?i)(pawd|pword)
- (?i)(secret)
NeuVector uses the default and custom regex to decide whether the process command in a security event should be redacted.
Note: If numerous regular expression (regex) patterns are configured in the Kubernetes ConfigMap for extended coverage of sensitive data matching, it can significantly impact performance of NeuVector enforcer, particularly in scenarios involving large inputs or frequent execution. The primary factor contributing to performance issues in regex is backtracking, where the regex engine attempts various matching paths when a pattern doesn’t immediately find a match.
Patches
This issue is fixed in NeuVector version 5.4.6 and later.
Workarounds
There is no workaround. Upgrade to a patched version of NeuVector as soon as possible.
References
If you have any questions or comments about this advisory:
- Reach out to the SUSE Rancher Security team for security related inquiries.
- Open an issue in the NeuVector repository.
- Verify with our support matrix and product support lifecycle.
Impact
When a Java command with password parameters is executed and terminated by NeuVector for Process rule violation. For example,
java -cp /app ... Djavax.net.ssl.trustStorePassword=<Password>
The command with the password appears in the NeuVector security event. To prevent this, NeuVector uses the following default regular expression to detect and redact sensitive data from process commands:
(?i)(password|passwd|token)
Also, you can define custom patterns to redact by creating a Kubernetes ConfigMap. For example:
kubectl create configmap neuvector-custom-rules --from-file=secret-patterns.yaml -n neuvector
Sample secret-patterns.yaml content:
Pattern_list:
- (?i)(pawd|pword)
- (?i)(secret)
NeuVector uses the default and custom regex to decide whether the process command in a security event should be redacted.
Note: If numerous regular expression (regex) patterns are configured in the Kubernetes ConfigMap for extended coverage of sensitive data matching, it can significantly impact performance of NeuVector enforcer, particularly in scenarios involving large inputs or frequent execution. The primary factor contributing to performance issues in regex is backtracking, where the regex engine attempts various matching paths when a pattern doesn’t immediately find a match.
Patches
This issue is fixed in NeuVector version 5.4.6 and later.
Workarounds
There is no workaround. Upgrade to a patched version of NeuVector as soon as possible.
References
If you have any questions or comments about this advisory:
- Reach out to the SUSE Rancher Security team for security related inquiries.
- Open an issue in the NeuVector repository.
- Verify with our support matrix and product support lifecycle.
References
- GHSA-w54x-xfxg-4gxq