@agent-inspect/eval 6.31.32 → 6.31.34
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/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -634,10 +634,11 @@ var credentialDetectors = [
|
|
|
634
634
|
severity: "error"
|
|
635
635
|
}),
|
|
636
636
|
// Stripe secret/restricted keys (underscore form). Keep in sync with
|
|
637
|
-
// packages/core/src/safety/credential-value-patterns.ts + checks DEFAULT_SECRET_PATTERNS (#520).
|
|
637
|
+
// packages/core/src/safety/credential-value-patterns.ts + checks DEFAULT_SECRET_PATTERNS (#520/#528).
|
|
638
|
+
// Non-alnum lookarounds so underscore-adjacent forms (acct_sk_live_…, …_eu) match.
|
|
638
639
|
patternDetector({
|
|
639
640
|
id: "value.stripeSecretKey",
|
|
640
|
-
pattern:
|
|
641
|
+
pattern: /(?<![A-Za-z0-9])(?:sk|rk)_(?:live|test)_[A-Za-z0-9]{16,}(?![A-Za-z0-9])/,
|
|
641
642
|
severity: "error"
|
|
642
643
|
}),
|
|
643
644
|
patternDetector({
|