-
Notifications
You must be signed in to change notification settings - Fork 0
IPv4Ambiguous
The IPv4 Ambiguous module is a highly specialized parser designed to handle and resolve non-standard, obfuscated, or ambiguous IPv4 address formats.
In cybersecurity and reconnaissance, threat actors often use IP obfuscation techniques (such as inserting leading zeros, or mixing octal and hexadecimal representations) to bypass firewalls, evade regular expression filters, and confuse analysts. Conversely, simple misconfigurations in legacy systems can also result in non-standard IP formats. This module automatically resolves these ambiguities into standard routing formats.
The module accepts Ambiguous IPv4 nodes as input and executes a dual-parsing strategy to extract the underlying true IP addresses:
The module first processes the ambiguous input by stripping all extraneous leading zeros from each octet, treating the entire address as a standard base-10 decimal format.
-
Normalized IP: If the resulting string forms a valid, routable IP address, the module emits a new
IPnode and tags it with the contextNormalized.
Because different operating systems and network stacks interpret leading zeros differently (e.g., standard POSIX network parsers often interpret a leading 0 as an Octal base, and 0x as Hexadecimal), the module performs a secondary parse using standard 64-bit integer parsing across all formats (Base 8, 10, and 16).
-
Deobfuscated IP: If the POSIX interpretation results in a valid IP address that differs from the simple decimal normalization, the module emits an additional
IPnode, tagging it with the contextDeobfuscated.
This dual-node emission guarantees that the graph accurately represents both how a strict decimal parser and a native OS networking stack would resolve the obfuscated payload.