agentsclimarketplace

Cdn waf fingerprinter

Skill mdriscoll-ct/TOOLS/skills/techstack-identification/cdn_waf_fingerprinter

Identifies CDNs (Cloudflare, Akamai, Fastly) and WAFsFrom its SKILL.md

Install
npx -y skills add mdriscoll-ct/TOOLS --skill cdn_waf_fingerprinter

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

7.9 KB, as published. Nobody here has run it

CDN/WAF Fingerprinter Skill

Purpose

Identify Content Delivery Networks (CDNs), Web Application Firewalls (WAFs), and DDoS protection services from HTTP headers, DNS records, and TLS fingerprints.

Input

Raw signals from Phase 2:

  • http_signals - CDN/WAF-specific headers, cookies
  • dns_signals - CDN CNAME delegations
  • ip_signals - CDN IP ranges
  • tls_signals - JARM fingerprints, certificate issuers

Technology Categories

Content Delivery Networks

CDNDetection SignalsWeight
CloudflareCF-RAY header, cf-* cookies, cloudflare-nginx server45
AkamaiX-Akamai-, Akamai- headers, akamaiedge.net CNAME45
FastlyX-Served-By: cache-*, Fastly headers45
AWS CloudFrontX-Amz-Cf-Id, cloudfront.net CNAME45
Azure CDNX-Azure-Ref, azureedge.net CNAME40
Google Cloud CDNVia: google, X-GFE-* headers40
Cloudinarycloudinary.com URLs35
imgiximgix.net URLs35
KeyCDNX-Edge-IP, keycdn.com35
StackPathX-HW headers, stackpath.com35
BunnyCDNX-Bunny-* headers35

Web Application Firewalls

WAFDetection SignalsWeight
Cloudflare WAFCF-RAY, cf_clearance cookie40
AWS WAFX-Amz-Cf-Id with WAF rules35
Akamai KonaAkamai-* WAF headers40
Imperva/IncapsulaX-Iinfo, incap_ses_* cookies45
SucuriX-Sucuri-ID, sucuri.net40
ModSecurityServer: Apache + ModSecurity patterns35
F5 BIG-IPBIGipServer cookie40
Barracudabarra_counter_session cookie35
Fortinet FortiWebFORTIWAFSID cookie40

DDoS Protection

ServiceDetection SignalsWeight
CloudflareCF-RAY, __cf_bm cookie40
AWS ShieldCloudFront + Shield indicators35
Akamai ProlexicAkamai headers35
Arbor NetworksSpecific patterns30
Project ShieldGoogle infrastructure35

Bot Management

ServiceDetection SignalsWeight
Cloudflare Bot Management__cf_bm cookie40
PerimeterX_px* cookies40
DataDomedatadome cookie40
Shape SecurityShape patterns35
KasadaKasada patterns35
Arkose LabsArkose patterns35

Detection Patterns

Cloudflare

{
  "headers": {
    "CF-RAY": true,
    "CF-Cache-Status": true,
    "Server": "cloudflare"
  },
  "cookies": [
    "__cfduid",
    "cf_clearance",
    "__cf_bm"
  ],
  "cname_patterns": [
    "cdn.cloudflare.net"
  ],
  "ip_ranges": "103.21.244.0/22, 103.22.200.0/22, ...",
  "jarm_hash": "29d29d15d29d29d00042d42d000000cd19c7d2c21d91e77fcb9e7a8d6d1d8c"
}

Akamai

{
  "headers": {
    "X-Akamai-Transformed": true,
    "X-Akamai-Session-Info": true,
    "X-Akamai-Pragma-Client-IP": true,
    "Akamai-Origin-Hop": true
  },
  "cname_patterns": [
    "edgekey.net",
    "edgesuite.net",
    "akamaiedge.net",
    "akamaized.net"
  ]
}

Fastly

{
  "headers": {
    "X-Served-By": "cache-",
    "X-Cache": true,
    "X-Cache-Hits": true,
    "Fastly-Debug-Digest": true,
    "X-Timer": true
  },
  "cname_patterns": [
    "fastly.net",
    "fastlylb.net"
  ]
}

AWS CloudFront

{
  "headers": {
    "X-Amz-Cf-Id": true,
    "X-Amz-Cf-Pop": true,
    "Via": "CloudFront"
  },
  "cname_patterns": [
    "cloudfront.net"
  ]
}

Imperva/Incapsula

{
  "headers": {
    "X-Iinfo": true,
    "X-CDN": "Incapsula"
  },
  "cookies": [
    "incap_ses_*",
    "visid_incap_*",
    "nlbi_*"
  ]
}

Inference Logic

def fingerprint_cdn_waf(signals):
    results = []

    # Header-based Detection
    for cdn in CDN_PATTERNS:
        matches = 0
        evidence = []

        for header, expected in cdn.headers.items():
            if header in signals.http_signals.headers:
                if expected == True or expected in signals.http_signals.headers[header]:
                    matches += 1
                    evidence.append({
                        "type": "http_header",
                        "value": f"{header}: {signals.http_signals.headers[header]}"
                    })

        if matches > 0:
            results.append({
                "name": cdn.name,
                "category": cdn.category,
                "signals": evidence,
                "total_weight": cdn.base_weight + (matches * 5)
            })

    # Cookie-based Detection
    for waf in WAF_PATTERNS:
        for cookie in signals.http_signals.cookies:
            for waf_cookie in waf.cookies:
                if waf_cookie in cookie or fnmatch(cookie, waf_cookie):
                    results.append({
                        "name": waf.name,
                        "category": "WAF",
                        "signals": [{
                            "type": "cookie",
                            "value": f"Cookie pattern: {cookie}"
                        }],
                        "total_weight": waf.weight
                    })
                    break

    # CNAME-based Detection
    for cname in signals.dns_signals.cname_records:
        for cdn in CDN_PATTERNS:
            for pattern in cdn.cname_patterns:
                if pattern in cname.target:
                    add_if_not_exists(results, cdn.name, "CDN", {
                        "type": "dns_cname",
                        "value": f"CNAME → {cname.target}"
                    }, cdn.weight)

    # JARM Fingerprint Detection
    if signals.tls_signals.jarm_hash:
        for cdn in JARM_DATABASE:
            if signals.tls_signals.jarm_hash == cdn.jarm_hash:
                add_if_not_exists(results, cdn.name, cdn.category, {
                    "type": "jarm_fingerprint",
                    "value": f"JARM match: {signals.tls_signals.jarm_hash}"
                }, 40)

    return results

Output

{
  "skill": "cdn_waf_fingerprinter",
  "results": {
    "technologies": [
      {
        "name": "Cloudflare",
        "category": "CDN",
        "signals": [
          {
            "type": "http_header",
            "value": "CF-RAY: 7a1b2c3d4e5f6g7h-IAD",
            "weight": 40
          },
          {
            "type": "http_header",
            "value": "Server: cloudflare",
            "weight": 35
          },
          {
            "type": "cookie",
            "value": "__cf_bm cookie present",
            "weight": 30
          }
        ],
        "total_weight": 105,
        "additional_services": ["Bot Management", "DDoS Protection"]
      },
      {
        "name": "Cloudflare WAF",
        "category": "WAF",
        "signals": [
          {
            "type": "cookie",
            "value": "cf_clearance cookie present",
            "weight": 35
          }
        ],
        "total_weight": 35
      }
    ],
    "security_summary": {
      "cdn_provider": "Cloudflare",
      "waf_enabled": true,
      "waf_provider": "Cloudflare WAF",
      "ddos_protection": "Cloudflare",
      "bot_management": "Cloudflare Bot Management"
    },
    "cache_behavior": {
      "cache_status_header": "CF-Cache-Status",
      "observed_statuses": ["HIT", "MISS", "DYNAMIC"]
    }
  }
}

Security Implications

CDN Behind WAF

Cloudflare (CDN + WAF) → Origin Server
- All traffic passes through Cloudflare
- WAF rules applied at edge
- Origin IP potentially hidden

Multiple CDN Layers

CDN1 (Cloudflare) → CDN2 (CloudFront) → Origin
- Possible for different purposes
- Content caching vs security

Error Handling

  • Multiple CDN signals: May indicate CDN chain or migration
  • Conflicting WAF signals: Report all possibilities
  • Missing JARM: Fall back to header/cookie detection

Keep looking

Skills are one crate of 607,721. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.