id: hashicorp-api-token

info:
  name: Hashicorp API Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/hashicorp-tf-api-token.yaml
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/hashicorp-tf-api-token.go
  metadata:
    verified: true
  tags: hashicorp,file,keys
file:
  - extensions:
      - all

    extractors:
      - type: regex
        part: body
        regex:
          - (?i)[a-z0-9]{14}\.atlasv1\.[a-z0-9\-_=]{60,70}
# digest: 4b0a00483046022100aaba3e340da2693802f7d0b2beeafdaba6001b8ddcbe2db8c10ad9ce0f049b48022100ec4d20c68ea4f0c3ea2c81cf87228acacd0afa9765bc81e0b5535e295d9b7c48:922c64590222798bb761d5b6d8e72950