id: bigip-detect

info:
  name: BIGIP - Detection
  author: PR3R00T,0x240x23elu
  severity: info
  reference:
    - https://www.intelisecure.com/how-to-decode-big-ip-f5-persistence-cookie-values
    - https://support.f5.com/csp/article/K23254150
  metadata:
    max-request: 2
  tags: bigip,tech,f5

http:
  - method: GET
    path:
      - "{{BaseURL}}"
      - "{{BaseURL}}/my.policy"

    stop-at-first-match: true
    host-redirects: true
    matchers:
      - type: word
        part: header
        words:
          - 'BIGipServer~'

      - type: word
        part: header
        words:
          - 'BigIP'

      - type: word
        part: body
        words:
          - 'F5 Networks.'

    extractors:
      - type: regex
        part: header
        group: 1
        regex:
          - '(BIGipServer[a-z\_\.\-\~0-9A-Z]*)=([!a-z0-9A-Z/.=]+)'
# digest: 4a0a004730450220112e58df1dedc17ea60efdd0ebd96a10c2b158b2625bbbdf9749ed54cd474c650221009852da577c37984d192277f939d622c2bd599398ddda721be6314d44eff802b6:922c64590222798bb761d5b6d8e72950