-
Couldn't load subscription status.
- Fork 394
Closed
Labels
category:enhancementIssue is related to an existing feature to improveIssue is related to an existing feature to improvescope:question
Description
Request Type
Bug
Work Environment
| Question | Answer |
|---|---|
| OS version (server) | Debian |
| Cortex Analyzer Name | cortexutils |
| Cortex Analyzer Version | 1.2.0 |
| Cortex Version | 1.0.0, hash of the commit |
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
- Call
Extractor().check_string("1.0.0.127.localhost.localdomain.") - This will return
ipbut 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?)?$
Metadata
Metadata
Assignees
Labels
category:enhancementIssue is related to an existing feature to improveIssue is related to an existing feature to improvescope:question