mirror of
https://github.com/Microsoft/vscode
synced 2024-08-25 03:56:03 +00:00
Add CLI cleaning regex (#209462)
This commit is contained in:
parent
31c538e41f
commit
80a9d24148
|
@ -333,6 +333,7 @@ function removePropertiesWithPossibleUserInfo(property: string): string {
|
|||
{ label: 'Slack Token', regex: /xox[pbar]\-[A-Za-z0-9]/ },
|
||||
{ label: 'GitHub Token', regex: /(gh[psuro]_[a-zA-Z0-9]{36}|github_pat_[a-zA-Z0-9]{22}_[a-zA-Z0-9]{59})/ },
|
||||
{ label: 'Generic Secret', regex: /(key|token|sig|secret|signature|password|passwd|pwd|android:value)[^a-zA-Z0-9]/i },
|
||||
{ label: 'CLI Credentials', regex: /((login|psexec|(certutil|psexec)\.exe).{1,50}(\s-u(ser(name)?)?\s+.{3,100})?\s-(admin|user|vm|root)?p(ass(word)?)?\s+["']?[^$\-\/\s]|(^|[\s\r\n\\])net(\.exe)?.{1,5}(user\s+|share\s+\/user:| user -? secrets ? set) \s + [^ $\s \/])/ },
|
||||
{ label: 'Email', regex: /@[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+/ } // Regex which matches @*.site
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in a new issue