From 0af19f1c5a03c00c5059e7205e69037569274712 Mon Sep 17 00:00:00 2001 From: Eshaan Bansal Date: Mon, 28 Jun 2021 15:17:28 +0530 Subject: [PATCH 1/4] Fix _get_observable_classification 'generic' classification error --- pyintelowl/pyintelowl.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pyintelowl/pyintelowl.py b/pyintelowl/pyintelowl.py index bb1510a..d14f3d5 100644 --- a/pyintelowl/pyintelowl.py +++ b/pyintelowl/pyintelowl.py @@ -586,7 +586,7 @@ def _new_analysis_cli( def _get_observable_classification(self, value: str) -> str: """Returns observable classification for the given value.\n Only following types are supported: - ip, domain, url, hash (md5, sha1, sha256) + ip, domain, url, hash (md5, sha1, sha256), generic (if no match) Args: value (str): @@ -597,7 +597,7 @@ def _get_observable_classification(self, value: str) -> str: if value type is not recognized Returns: - str: one of `ip`, `url`, `domain` or `hash`. + str: one of `ip`, `url`, `domain`, `hash` or 'generic'. """ try: ipaddress.ip_address(value) @@ -620,9 +620,9 @@ def _get_observable_classification(self, value: str) -> str: ): classification = "hash" else: - classification = "general" + classification = "generic" self.logger.warning( - f"{value} is neither a domain nor a URL nor a IP not a hash" + "Couldn't detect observable classification, setting as 'generic'..." ) else: # its a simple IP From 797aee90ced00c03e86229ae925414184386356f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 28 Jun 2021 15:17:45 +0530 Subject: [PATCH 2/4] Bump sphinx from 3.5.4 to 4.0.2 (#88) Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 3.5.4 to 4.0.2. - [Release notes](https://github.com/sphinx-doc/sphinx/releases) - [Changelog](https://github.com/sphinx-doc/sphinx/blob/4.x/CHANGES) - [Commits](https://github.com/sphinx-doc/sphinx/compare/v3.5.4...v4.0.2) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- docs/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/requirements.txt b/docs/requirements.txt index 0170a26..200667a 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,4 +1,4 @@ -Sphinx==3.5.4 +Sphinx==4.0.2 sphinx-rtd-theme sphinxcontrib.asciinema sphinxcontrib-napoleon \ No newline at end of file From 11d1f57acf57a29ff1a0dad76a9cdc48c14c45cd Mon Sep 17 00:00:00 2001 From: Eshaan Bansal Date: Mon, 28 Jun 2021 15:20:48 +0530 Subject: [PATCH 3/4] bump version no. to 3.1.4 (#94) --- docs/conf.py | 2 +- pyintelowl/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 6ebc0d0..5c63720 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -13,7 +13,7 @@ import os import sys -VERSION = "v3.1.0" +VERSION = "v3.1.4" GITHUB_URL = "https://github.com/intelowlproject/pyintelowl" sys.path.append(os.path.abspath("../")) diff --git a/pyintelowl/version.py b/pyintelowl/version.py index f749372..1fe90f6 100644 --- a/pyintelowl/version.py +++ b/pyintelowl/version.py @@ -1 +1 @@ -__version__ = "3.1.3" +__version__ = "3.1.4" From fcd7feb68c76b44ea660aed76a5d97c9e71c7dc1 Mon Sep 17 00:00:00 2001 From: Eshaan Bansal Date: Mon, 28 Jun 2021 15:23:48 +0530 Subject: [PATCH 4/4] 3.1.4: changelog --- .github/CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md index a335208..3167402 100644 --- a/.github/CHANGELOG.md +++ b/.github/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## [3.1.4](https://github.com/intelowlproject/pyintelowl/releases/tag/3.1.4) +* Fix `IntelOwl._get_observable_classification` not setting 'generic' classification properly. + ## 3.1.3 (https://github.com/intelowlproject/pyintelowl/releases/tag/3.1.3) * Fix to allow SSL verification without a specified PEM file