@upx-us/shield 0.6.7 → 0.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
+
## [0.6.8] — 2026-03-10
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
- **curl credential redaction** — `curl -u "user:pass"`, `--user user:pass` (all quote variants), and `Authorization: Basic <base64>` are now redacted as `secret:HASH` before reaching the SIEM. Discovered via live credential leak (#137).
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
7
14
|
## [0.6.7] — 2026-03-10
|
|
8
15
|
|
|
9
16
|
### Fixed
|
|
@@ -29,6 +29,14 @@ exports.secretKeyStrategy = {
|
|
|
29
29
|
(0, counters_1.recordRedaction)('BEARER_TOKEN');
|
|
30
30
|
return `${prefix}${hmac('secret', token)}`;
|
|
31
31
|
});
|
|
32
|
+
result = result.replace(/(-u|--user)\s+(['"]?)([^\s'"]+:[^\s'"]*)\2/g, (_, flag, _quote, credential) => {
|
|
33
|
+
(0, counters_1.recordRedaction)('CURL_CREDENTIAL');
|
|
34
|
+
return `${flag} ${hmac('secret', credential)}`;
|
|
35
|
+
});
|
|
36
|
+
result = result.replace(/(Authorization:\s*Basic\s+)([A-Za-z0-9+/]+=*)/g, (_, prefix, token) => {
|
|
37
|
+
(0, counters_1.recordRedaction)('CURL_CREDENTIAL');
|
|
38
|
+
return `${prefix}${hmac('secret', token)}`;
|
|
39
|
+
});
|
|
32
40
|
result = result.replace(/((?:SECRET|TOKEN|KEY|PASSWORD|API_KEY)=)(\S+)/gi, (_, prefix, secret) => {
|
|
33
41
|
const prefixUpper = prefix.toUpperCase();
|
|
34
42
|
if (prefixUpper.startsWith('PASSWORD'))
|
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED