safeshell 0.1.3

SafeShell: A security tool for shell history management, designed to detect, stash, and clear sensitive commands, ensuring safer terminal sessions.
Documentation
- name: AWS Env Access Key
  test: AWS_ACCESS_KEY_ID=([0-9a-zA-Z*/+]{0,100})
  secret_group: 1
  id: aws_end_access_key
- name: AWS Env Secret Key
  test: AWS_SECRET_ACCESS_KEY=([0-9a-zA-Z*/+]{0,100})
  secret_group: 1
  id: aws_env_secret_key
- name: AWS Cred
  test: (?i)(aws_access_key_id|aws_secret_access_key)=([0-9a-zA-Z/+]{20,40})
  secret_group: 2
  id: aws_cred
- name: cURL Basic Authentication
  test: (?i:authorization):(?:.*)(?i:Basic).(.*)("|'|\x60|\$\()
  secret_group: 1
  id: curl_basic_auth
- name: cURL User Login
  test: curl.*(?:-u|--user)(?:[ =])([^ ]*)
  secret_group: 1
  id: curl_user_login
- name: GitHub Env Token
  test: GITHUB_TOKEN=([0-9a-zA-Z*_/+]{0,100})
  secret_group: 1
  id: github_env_token
- name: GitHub Personal Token
  test: ghp_[0-9a-zA-Z]{36}
  secret_group: 0
  id: github_personal_token
- name: GitHub OAuth Token
  test: gho_[0-9a-zA-Z]{36}
  secret_group: 0
  id: github_oauth_token
- name: GitHub App Token
  test: (ghu|ghs)_[0-9a-zA-Z]{36}
  secret_group: 0
  id: github_app_token
- name: GitHub Refresh Token
  test: ghr_[0-9a-zA-Z]{36}
  secret_group: 0
  id: github_refresh_token
- name: Gitlab token
  test: GITLAB_TOKEN=([0-9a-zA-Z*/+]{0,100})
  secret_group: 1
  id: gitlab_token
- name: Gitlab Personal Token
  test: glpat-[0-9a-zA-Z-_]{20}
  secret_group: 0
  id: gitlab_personal_token
- name: Heroku API Key
  test: (?i)(?:heroku)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:=|\|\|:|<=|=>|:)(?:'|"|\s|=|\x60){0,5}([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})(?:['|"|\n|\r|\s|\x60]|$)
  secret_group: 0
  id: heroku_api_key
- name: Heroku Env api key
  test: HEROKU_API_KEY=([0-9a-zA-Z*/+]{0,100})
  secret_group: 1
  id: heroku_env_api_key
- name: hashicorp Env Vault Token
  test: VAULT_TOKEN=([0-9a-zA-Z*/+]{0,100})
  secret_group: 1
  id: hashicorp_env_vault_token
- name: hashicorp Env console HTTP token
  test: CONSUL_HTTP_TOKEN=([0-9a-zA-Z*/+]{0,100})
  secret_group: 1
  id: hashicorp_env_console_http_token
- name: Vercel Env Token
  test: VERCEL_TOKEN=([0-9a-zA-Z*/+]{0,100})
  secret_group: 1
  id: vercel_env_token
- name: Cloudflare ENV Api Key
  test: CLOUDFLARE_API_KEY=([0-9a-zA-Z*/+]{0,100})
  secret_group: 1
  id: cloudflare_env_api_key
- name: Newrelic Env api key
  test: NEWRELIC_API_KEY=([0-9a-zA-Z*/+]{0,100})
  secret_group: 1
  id: newrelic_env_api_key
- name: MailGun API Key
  test: "key-[0-9a-zA-Z]{32}"
  secret_group: 0
  id: mail_gun_api_key
- name: MailChimp API Key
  test: (?i)[0-9a-f]{32}-us[0-9]{1,2}
  secret_group: 0
  id: mail_chimp_api_key
- name: SendGrid API Token
  test: SG.[0-9A-Za-z\-_]{15,30}\.[0-9A-Za-z\-_]{15,30}
  secret_group: 0
  id: sendGrid_api_token
- name: SendGrid API Key
  test: SG\.[0-9A-Za-z\-_]{22}\.[0-9A-Za-z\-_]{43}
  secret_group: 0
  id: sendGrid_api_key
- name: Slack Token
  test: (xox[pboa]-[0-9]{12}-[0-9]{12}-[0-9]{12}-[a-zA-Z0-9]{30,32})
  secret_group: 0
  id: slack_token
- name: Slack Webhook
  test: https://hooks.slack.com/services/([A-Za-z0-9+/]{44,46})
  secret_group: 1
  id: slack_webhook
- name: Twilio API Key
  test: SK[0-9a-fA-F]{32}
  secret_group: 0
  id: twilio_api_key
- name: URL Basic Auth
  test: (([A-Za-z]*:(?://)?)([-;:&=\+\$,\w]+)@[A-Za-z0-9.-]+(:[0-9]+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:/[\+~%/.\w\-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?
  secret_group: 3
  id: url_basic_auth
- name: GCP API Key
  test: (?i)\b(AIza[0-9A-Za-z\\-_]{35})(?:['|"|\n|\r|\s|\x60]|$)
  secret_group: 0
  id: gcp_api_key
- name: Teams Webhook
  test: https://outlook.office.com/webhook/([0-9a-f-]{36})/@
  secret_group: 1
  id: teams_webhook
- name: NuGet API Key
  test: oy2[a-z0-9]{43}
  secret_group: 0
  id: nuget_api_key
- name: Twitter Secret Key
  test: (?i)twitter(.{0,20})?[''"]([0-9a-z]{35,44})[''"]
  secret_group: 2
  id: twitter_secret_key
- name: Twitter Client ID
  test: (?i)twitter(.{0,20})?[''"]([0-9a-z]{18,25})[''"]
  secret_group: 2
  id: twitter_clientid
- name: Wget Username Password Authentication
  test: wget(?:.*)--(?:ftp-|http-)?(?:password|user)[ =]([^ ]*)
  secret_group: 1
  id: wget_user_login
- name: LinkedIn Secret Key
  test: (?i)linkedin(.{0,20})?(?-i)[''"]([0-9a-zA-Z]{12,16})[''"]
  secret_group: 2
  id: linkedIn_secret_key
- name: Facebook Access Token
  test: EAACEdEose0cBA[0-9A-Za-z]+
  secret_group: 0
  id: facebook_access_token
- name: Datadog Key
  test: (?i)(?:datadog)(?:[0-9a-z\-_\t .]{0,20})(?:\[s|']|[\s|"]){0,3}(?:=|>|:=|\|\|:|<=|=>|:)(?:'|"|\s|=|\x60){0,5}([a-z0-9]{40})(?:['|"|\n|\r|\s|\x60|;]|$)
  secret_group: 1
  id: datadog_key
- name: ReadMe io Api Key
  test: README_API_KEY=([0-9a-zA-Z*/+]{0,100})
  secret_group: 1
  id: readme_api_key
- name: Cargo Registry Token
  test: CARGO_REGISTRY_TOKEN=([0-9a-zA-Z*/+]{0,100})
  secret_group: 1
  id: cargo_registry_token
- name: Diskutil Password
  test: diskutil.*passphrase ([[:alpha:][:punct:]]{0,200}).*
  secret_group: 1
  id: diskutil_password