Custom Fingerprint Rules
Create custom fingerprint rules for proprietary or internal services.
Rule Format
fingerprints:
- name: custom_app
category: http
description: Internal application detection
patterns:
- type: http_header
header: Server
regex: 'CustomApp/([0-9.]+)'
version_group: 1
confidence: 95
- type: http_content
regex: '<title>CustomApp v([0-9.]+)</title>'
version_group: 1
confidence: 90
Pattern Types
banner: Raw TCP bannerhttp_header: HTTP response headerhttp_content: HTTP response bodytls_cert: TLS certificate fieldsssh_banner: SSH protocol banner
Advanced Patterns
fingerprints:
- name: complex_app
category: custom
patterns:
- type: http_header
header: X-App-Version
regex: '([0-9.]+)'
version_group: 1
os_hint: linux
confidence: 95
requires:
- type: http_header
header: X-App-Name
value: "InternalApp"
Testing Rules
pentora fingerprint validate custom-rules.yaml
pentora fingerprint test custom-rules.yaml sample-banner.txt
See Fingerprint Command for management tools.