ValidateObservable#
README
The ValidateObservable analyzer is designed to validate multiple observable datatypes.
- ip
- domain
- url
- fqdn
- hash
- filename
- uri_path
- user-agent
Supported Data Types / Features#
-
IP Addresses
- Validates individual IPs and CIDR ranges.
- Flags reserved, private, and loopback IPs with appropriate notes.
-
Domains
- Detects valid domain names.
- Flags domains using Punycode (e.g., xn--) as suspicious.
- Identifies unusual characters in domain names.
-
URLs
- Validates URLs with or without schemes.
- Flags URLs containing Punycode domains or unusual characters as suspicious.
- Detects malformed URLs.
-
Fully Qualified Domain Names (FQDNs)
- Validates FQDNs for proper structure and length.
- Flags FQDNs using Punycode and unusual characters as suspicious.
-
Emails
- Checks email structure for validity.
- Detects unusual characters in email addresses.
- Validates against length constraints.
-
File Hashes
- Validates MD5, SHA1, SHA256, and SHA512 hash formats.
-
Filenames
- Flags invalid characters in filenames (<, >, :, |, etc.).
- Detects multiple extensions (for example, .txt.exe) as suspicious.
- Identifies Unicode bidirectional override characters (U+202E, etc.) to prevent obfuscated extensions.
-
URI Paths
- Ensures paths start with / and are well-formed.
-
User Agents
- Checks for excessive length and control characters.
Special Features#
- Unicode Detection:
- Identifies Unicode bidirectional override characters (for example, U+202E) across domains, URLs, emails, filenames, and more.
- Flags their usage as suspicious to prevent obfuscation attacks.
- Punycode Detection:
- Flags internationalized domain names (IDNs) using xn-- prefix or uncommon characters.
- Structured Output:
- Returns valid, invalid, or suspicious statuses with detailed reasons.
- Short reports:
- Generates short reports to indicate the validation status and risk level : info (blue) or invalid / suspicious (orange).
ValidateObservable#
Author: nusantara-self, StrangeBee
License: AGPL-V3
Version: 1.0
Supported observables types:
- ip
- domain
- url
- fqdn
- mail
- hash
- filename
- uri_path
- user-agent
Registration required: False
Subscription required: False
Free subscription: False
Third party service: N/A
Description#
Use regexes and libraries to indicate if observable is valid
Configuration#
No specific configuration required.
Templates samples for TheHive#
No template samples to display.