From 7b746426126c88b138a21935406b39ffe220e319 Mon Sep 17 00:00:00 2001 From: rmurray-r7 Date: Fri, 22 Nov 2024 09:38:07 +0000 Subject: [PATCH] [SOAR-18258] Whois - Update address action (#2974) * Update address action. SDK 6.2.0. v3.1.6 * black --- plugins/whois/.CHECKSUM | 6 +++--- plugins/whois/Dockerfile | 2 +- plugins/whois/bin/komand_whois | 2 +- plugins/whois/help.md | 1 + plugins/whois/komand_whois/actions/address/action.py | 3 ++- plugins/whois/plugin.spec.yaml | 5 +++-- plugins/whois/setup.py | 2 +- 7 files changed, 12 insertions(+), 9 deletions(-) diff --git a/plugins/whois/.CHECKSUM b/plugins/whois/.CHECKSUM index 47aa2560da..0b0f6283b5 100644 --- a/plugins/whois/.CHECKSUM +++ b/plugins/whois/.CHECKSUM @@ -1,7 +1,7 @@ { - "spec": "651e527db096e0dd0ac0e9896a4b2756", - "manifest": "e4ca9901883c704390367efe46454f05", - "setup": "4f04c80ff4c28070c7ec483f1ea2b876", + "spec": "c321daf69a3679e488625f8dbd077985", + "manifest": "c35b3c929b1fa09020196cc79f5b701a", + "setup": "8ad9bdf0d891eb2e9bc3a2535f273e9d", "schemas": [ { "identifier": "address/schema.py", diff --git a/plugins/whois/Dockerfile b/plugins/whois/Dockerfile index 8dfd773373..5e98cfa001 100755 --- a/plugins/whois/Dockerfile +++ b/plugins/whois/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=linux/amd64 rapid7/insightconnect-python-3-slim-plugin:6.1.4 +FROM --platform=linux/amd64 rapid7/insightconnect-python-3-slim-plugin:6.2.0 LABEL organization=rapid7 LABEL sdk=python diff --git a/plugins/whois/bin/komand_whois b/plugins/whois/bin/komand_whois index 5169a5d7a3..806077bad0 100755 --- a/plugins/whois/bin/komand_whois +++ b/plugins/whois/bin/komand_whois @@ -6,7 +6,7 @@ from sys import argv Name = "WHOIS" Vendor = "rapid7" -Version = "3.1.5" +Version = "3.1.6" Description = "[WHOIS](https://en.wikipedia.org/wiki/WHOIS) is a query and response protocol that is widely used for querying databases that store the registered users or assignee's of an Internet resource, such as a domain name, an IP address block, or an autonomous system" diff --git a/plugins/whois/help.md b/plugins/whois/help.md index 44aa513983..c0a8dfd9d1 100644 --- a/plugins/whois/help.md +++ b/plugins/whois/help.md @@ -181,6 +181,7 @@ Multiple records can be returned by the server, this plugin currently only retur # Version History +* 3.1.6 - Fix mapping issue (RIPE) for address action. Adding 'description' output field for RIPE (address action) | SDK bump to 6.2.0 * 3.1.5 - Action `Address`: Fixed issue with result parsing * 3.1.4 - Initial updates for fedramp compliance | Updated SDK to the latest version * 3.1.3 - Updated SDK to the latest version (v6.0.0) | Bump setuptools version to v70.0.0 diff --git a/plugins/whois/komand_whois/actions/address/action.py b/plugins/whois/komand_whois/actions/address/action.py index ae66de093c..f7ba6c5cd2 100755 --- a/plugins/whois/komand_whois/actions/address/action.py +++ b/plugins/whois/komand_whois/actions/address/action.py @@ -17,12 +17,13 @@ class Address(insightconnect_plugin_runtime.Action): "nettype": "status", "netrange": "inetnum", "organization": "organisation", - "orgname": "descr", + "orgname": "org-name", "regdate": "created", "updated": "last-modified", "address": "address", "country": "country", "org_abuse_email": "abuse-mailbox", + "description": "descr", }, ARIN: { "netname": "NetName", diff --git a/plugins/whois/plugin.spec.yaml b/plugins/whois/plugin.spec.yaml index 86f5a846ca..91bf3a8c8e 100644 --- a/plugins/whois/plugin.spec.yaml +++ b/plugins/whois/plugin.spec.yaml @@ -4,7 +4,7 @@ products: [insightconnect] name: whois title: WHOIS description: "[WHOIS](https://en.wikipedia.org/wiki/WHOIS) is a query and response protocol that is widely used for querying databases that store the registered users or assignee's of an Internet resource, such as a domain name, an IP address block, or an autonomous system" -version: 3.1.5 +version: 3.1.6 connection_version: 3 vendor: rapid7 support: community @@ -12,7 +12,7 @@ supported_versions: ["2024-09-09"] status: [] sdk: type: slim - version: 6.1.4 + version: 6.2.0 user: nobody packages: - whois @@ -34,6 +34,7 @@ references: ["[WHOIS](https://en.wikipedia.org/wiki/WHOIS)"] links: ["[WHOIS](https://en.wikipedia.org/wiki/WHOIS)"] troubleshooting: "Multiple records can be returned by the server, this plugin currently only returns the first unique records found." version_history: + - "3.1.6 - Fix mapping issue (RIPE) for address action. Adding 'description' output field for RIPE (address action) | SDK bump to 6.2.0" - "3.1.5 - Action `Address`: Fixed issue with result parsing" - "3.1.4 - Initial updates for fedramp compliance | Updated SDK to the latest version" - "3.1.3 - Updated SDK to the latest version (v6.0.0) | Bump setuptools version to v70.0.0" diff --git a/plugins/whois/setup.py b/plugins/whois/setup.py index 4f0bc1502f..c641c450a4 100755 --- a/plugins/whois/setup.py +++ b/plugins/whois/setup.py @@ -3,7 +3,7 @@ setup(name="whois-rapid7-plugin", - version="3.1.5", + version="3.1.6", description="[WHOIS](https://en.wikipedia.org/wiki/WHOIS) is a query and response protocol that is widely used for querying databases that store the registered users or assignee's of an Internet resource, such as a domain name, an IP address block, or an autonomous system", author="rapid7", author_email="",