@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'))
@@ -2,7 +2,7 @@
2
2
  "id": "shield",
3
3
  "name": "OpenClaw Shield",
4
4
  "description": "Real-time security monitoring — streams enriched, redacted security events to the Shield detection platform.",
5
- "version": "0.6.7",
5
+ "version": "0.6.8",
6
6
  "skills": [
7
7
  "./skills"
8
8
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@upx-us/shield",
3
- "version": "0.6.7",
3
+ "version": "0.6.8",
4
4
  "description": "Security monitoring plugin for OpenClaw agents — streams enriched security events to the Shield detection platform",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",