generic.secrets.security.detected-amazon-mws-auth-token.detected-amazon-mws-auth-token

Community Favorite
profile photo of semgrepsemgrep
Author
37,965
Download Count*

Amazon MWS Auth Token detected

Run Locally

Run in CI

Defintion

rules:
  - id: detected-amazon-mws-auth-token
    pattern-regex: amzn\.mws\.[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}
    languages:
      - regex
    message: Amazon MWS Auth Token detected
    severity: ERROR
    metadata:
      cwe:
        - "CWE-798: Use of Hard-coded Credentials"
      source-rule-url: https://github.com/dxa4481/truffleHogRegexes/blob/master/truffleHogRegexes/regexes.json
      category: security
      technology:
        - secrets
        - aws
      confidence: LOW
      owasp:
        - A07:2021 - Identification and Authentication Failures
      references:
        - https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures
      cwe2022-top25: true
      cwe2021-top25: true
      subcategory:
        - audit
      likelihood: LOW
      impact: HIGH
      license: Commons Clause License Condition v1.0[LGPL-2.1-only]
      vulnerability_class:
        - Hard-coded Secrets

Examples

detected-amazon-mws-auth-token.txt

# ruleid: detected-amazon-mws-auth-token
amzn.mws.00a19111-8311-5311-5391-5e211cbfcd5c