my-pi 0.0.11 → 0.0.12

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.
@@ -677,9 +677,13 @@ const SECRET_PATTERNS = [
677
677
  name: "AWS Access Key",
678
678
  pattern: /AKIA[A-Z0-9]{16}/g
679
679
  },
680
+ {
681
+ name: "AWS Temp Access Key",
682
+ pattern: /ASIA[A-Z0-9]{16}/g
683
+ },
680
684
  {
681
685
  name: "AWS Secret Key",
682
- pattern: /(?:SecretAccessKey|aws_secret_access_key)\s*[:=]\s*[A-Za-z0-9/+=]{40}/g
686
+ pattern: /\b(?:AWS_SECRET_ACCESS_KEY|aws_secret_access_key|secret_access_key|SecretAccessKey)\b\s*[:=]\s*["']?[A-Za-z0-9/+=]{40,}["']?/g
683
687
  },
684
688
  {
685
689
  name: "Bearer Token",
@@ -703,7 +707,7 @@ const SECRET_PATTERNS = [
703
707
  },
704
708
  {
705
709
  name: "Private Key",
706
- pattern: /-----BEGIN\s+[\w\s]*PRIVATE\s+KEY-----/g
710
+ pattern: /-----BEGIN\s+[\w\s]*PRIVATE\s+KEY-----[\s\S]*?-----END\s+[\w\s]*PRIVATE\s+KEY-----/g
707
711
  },
708
712
  {
709
713
  name: "Connection String with Password",
@@ -711,7 +715,11 @@ const SECRET_PATTERNS = [
711
715
  },
712
716
  {
713
717
  name: "Generic Password Field",
714
- pattern: /(?:password|passwd|secret|token)\s*[:=]\s*["']?[^\s"']{8,}/gi
718
+ pattern: /\b[\w-]*(?:password|passwd|secret|token|api[_-]?key)\b\s*[:=]\s*["']?[A-Za-z0-9._:/+=@!-]{8,}/gi
719
+ },
720
+ {
721
+ name: "Generic Secret Phrase",
722
+ pattern: /\b(?:password|passwd|secret|token|api[_-]?key)\b(?:\s+(?:is|was|seen|value|header))?\s*[:=]?\s+[A-Za-z0-9._:/+=@!-]{8,}/gi
715
723
  },
716
724
  {
717
725
  name: "Tavily API Key",
@@ -732,6 +740,10 @@ const SECRET_PATTERNS = [
732
740
  {
733
741
  name: "GitHub Token",
734
742
  pattern: /gh[pousr]_[a-zA-Z0-9]{36,}/g
743
+ },
744
+ {
745
+ name: "GitHub Fine-grained PAT",
746
+ pattern: /github_pat_[a-zA-Z0-9_]{20,}/g
735
747
  }
736
748
  ];
737
749
  function redact(text) {
@@ -4576,4 +4588,4 @@ async function create_my_pi(options = {}) {
4576
4588
  //#endregion
4577
4589
  export { create_my_pi as n, runPrintMode$1 as r, InteractiveMode$1 as t };
4578
4590
 
4579
- //# sourceMappingURL=api-L4-Ei2xx.js.map
4591
+ //# sourceMappingURL=api-CMc8zzEG.js.map