You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The regular expression used to detect if an artifact is an IPv4 address is "too wide" and will detect as an IP address every string containing four groups of one, two or three digits separated by dots.
I'll close this for now. The automatic extraction should be the one to use, if you've no idea of how to extract your observables properly and the behaviour can always be changed through overwriting the artifacts function. Maybe we need to add this to the "How to create an analyzer" manual.
Request Type
Bug
Work Environment
Description
The regular expression used to detect if an artifact is an IPv4 address is "too wide" and will detect as an IP address every string containing four groups of one, two or three digits separated by dots.
Steps to Reproduce
Extractor().check_string("1.0.0.127.localhost.localdomain.")
ip
but should returnfqdn
(or an empty string)Possible Solutions
Use the following regular expression for ip type detection/extraction:
^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(?:\/\d\d?)?$
The text was updated successfully, but these errors were encountered: