id: shopify-private-app-access-token

info:
  name: Shopify Private App Access Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/shopify-private-app-access-token.yaml
    - https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/shopify-private-app-access-token.go
    - https://shopify.dev/apps/auth
    - https://shopify.dev/changelog/length-of-the-shopify-access-token-is-increasing
  metadata:
    verified: true
    max-request: 1
  tags: shopify,token,exposure

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    extractors:
      - type: regex
        part: body
        regex:
          - shppa_[a-fA-F0-9]{32}
# digest: 4a0a0047304502200e24d78da52efe8fe5f0d02c45ec482c374f2ce1f4f51b833207fcd6500c8901022100956f089cd8e9be98acf42aadd0618d66e15f9e36b67f2cf60407a2e75f6e2a5c:922c64590222798bb761d5b6d8e72950