Skip to content

Commit

Permalink
Merge pull request #7 from GreyNoise-Intelligence/v1.3.0-updates
Browse files Browse the repository at this point in the history
v1.3.0 Updates
  • Loading branch information
bradchiappetta authored Oct 11, 2023
2 parents 2516ab4 + 0cedce2 commit 0a3c6e0
Show file tree
Hide file tree
Showing 27 changed files with 210 additions and 51 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python_linters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ jobs:
- name: Install Black
run: pip install black
- name: Run black --check .
run: black --check greynoise/.
run: black --check --line-length=120 greynoise/.
Binary file not shown.
Binary file not shown.
7 changes: 6 additions & 1 deletion greynoise/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# CHANGELOG

## 1.2.0 - 2021-12-09
## 1.3.0 - 2023-09-14

* Updated GreyNoise SDK to version 2.0.1
*

* ## 1.2.0 - 2021-12-09

* Added cap to raw_data output to limit 1000 items per subsection
* Added support for RIOT Trust Levels
Expand Down
2 changes: 1 addition & 1 deletion greynoise/dist_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
greynoise==1.1.0
greynoise==2.0.1
swimbundle-utils==4.3.3
2 changes: 1 addition & 1 deletion greynoise/imports/asset.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "GreyNoise",
"type": "GreyNoise",
"version": "1.2.0",
"version": "1.3.0",
"description": "GreyNoise API Connection Parameters. Sign up for a free trial at viz.greynoise.io",
"family": "Investigation",
"inputParameters": {
Expand Down
51 changes: 51 additions & 0 deletions greynoise/imports/get_ip_similarity_lookup.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"name": "Get IP Similarity Lookup",
"description": "If an IP is not found in this API, it means that GreyNoise has either never observed the IP or does not have enough information about that IP to determine similarity.",
"version": "1.3.0",
"family": "Investigation",
"actionType": "GetIpSimilarityLookup",
"assetDependencyType": "GreyNoise",
"assetDependencyVersion": "1.3.0",
"inputParameters": {
"ip": {
"name": "IP",
"type": 1,
"description": "IP",
"example": "121.158.102.32"
},
"limit": {
"name": "Limit",
"type": 6,
"description": "Limit",
"example": "50"
},
"minimum_score": {
"name": "Minimum Score",
"type": 6,
"description": "Minimum Score",
"example": "0.85"
}
},
"availableOutputTypes": [
"email",
"insertUpdateRecord",
"referentialTask",
"saveToFile",
"setFieldValue"
],
"availableOutputVariables": {
"ip": {
"name": "IP",
"type": 9
},
"similar_ips": {
"name": "Similar IPs",
"type": 9
}
},
"pythonDependencies": null,
"readonly": true,
"script": "",
"scriptFile": "get_ip_similarity_lookup.py",
"base64Image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFYAAABWCAQAAAD/X6l8AAAO+UlEQVR4nMWbCXwU9RXHf0k2xyYhB0dAwhnkBhFoMAREkENFUdAKirfVqqi1iBdaSxWrVq1HtbXUE9RaRcUDQQVRiCIqRSAIKpEr3Fc4Yu6j35mdHXY3u8lsDvrmk2N2Z2d+8/7v/d7v/f+zEWpccylVHZShE9VR7dRKSXLzWpVK9YsOaqfytUl52qy9Kgr/5BGNBrMZAAdqkPoAtjkQpWpVqoKfav6PYnMpkv8qdES79YNW6Rut0x5u5LiCjVVPjdRonazW7JUAYKu2aJt24cuj7FcAMlbxSlGa2uPxTmqL/4WvNypHC7XUqZcbCjZVwzRRw7m8tF1rtAKP5QG3SOVBj49UnBkofXWKMtWVvVydy601OdjmGqsrlI3P9ms5HvqCWPzF8addjEN/zrBXD6rM2UfqC9bNsE/Bo7EM5buap7VhwPS1KEUTKA6tfmBP0i36NZn+k17Vm8ANliSRimGQ4/gdxfsV8EExHgweHE0GNkGTNU3dGb5X9AJZXR3wfjOlE4vd1IU4bsWeAbYakEWkm5F6P7FtIXAqmx5sZ03XZQzdx3qMTK7we6+F+pFu2epB1seyX8UAlwCziqu4AO3mc8arh4jtVVpGMm4JOEOjgh2ih3QqLPmUnsc3x8wFeZ1DsvTDk5X4L08/EhzbtE+FDH4lVzGoKxWfZzAm3SCwBF7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FsfVG0LuAdIUT24nXjy2vFFnUlIhyf8CnX/zewHksghvvAFb3QXGkkoTsgyIo0We815AKNCdZr8URvG7YTgJxqfv3H+ErQUXy9oGEPU/wPOf54YxLsfqAAAAAASUVORK5CYII="
}
15 changes: 15 additions & 0 deletions greynoise/imports/get_ip_similarity_lookup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from sw_greynoise import GreynoiseBaseClass


class SwMain(GreynoiseBaseClass):
def __init__(self, context):
super(SwMain, self).__init__(context)
self.inputs = context.inputs

def execute(self):
response = self.session.similar(
ip_address=self.inputs.get("ip_address"),
limit=self.inputs.get("limit"),
min_score=self.inputs.get("min_score"),
)
return response
58 changes: 58 additions & 0 deletions greynoise/imports/get_timeline_daily_summary.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"name": "Get Timeline Daily Summary",
"description": "Retrieve an IP address' daily summary of noise activity.",
"version": "1.3.0",
"family": "Investigation",
"actionType": "GetTimelineDailySummary",
"assetDependencyType": "GreyNoise",
"assetDependencyVersion": "1.3.0",
"inputParameters": {
"ip_address": {
"name": "IP Address",
"type": 1,
"description": "IPv4 address for which to retrieve events.",
"example": "36.32.2.102",
"required": true
},
"days": {
"name": "Days",
"type": 6,
"description": "The number of lookback days to include events.",
"example": "1"
},
"cursor": {
"name": "Cursor",
"type": 1,
"description": "The cursor is a pointer from which to start returning results up to the limit",
"example": "b2Zmc2V0PTUw"
},
"limit": {
"name": "Limit",
"type": 6,
"description": "The total number of events to return in the response.",
"example": "50"
}
},
"availableOutputTypes": [
"email",
"insertUpdateRecord",
"referentialTask",
"saveToFile",
"setFieldValue"
],
"availableOutputVariables": {
"activity": {
"name": "Activity",
"type": 9
},
"metadata": {
"name": "Metadata",
"type": 9
}
},
"pythonDependencies": null,
"readonly": true,
"script": "",
"scriptFile": "get_timeline_daily_summary.py",
"base64Image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFYAAABWCAQAAAD/X6l8AAAO+UlEQVR4n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WwgzBAqmBYA3Cfh5oi3STj/LqTsG8ED/PQx+tDMjyKAa7E51cF3zZCmryPPpfoF14eiPcsit8mM7BGr3mP6k9n1HJc+3XkqlntwAqH0KbA4hgE0LGQxHeB/7LQ6zOOnpWzmNOlvCNVnEt/UA2imGDrVpLYYQvoLH+pOAYiulBfFcTTiUgy9hqEpdhbSjo/c2GvxHBGo/1rySPsxHGe6n43mHfiWheg4/7wQHn0JO6TOJyomlTSMSr4YLr+NQCewWzDgun1esGhU+guj+NlPOdfkgB6sXU95Z4MA95sgKq28pxRTVgx9IJtyHeM0lDY06tnBGbi6TZL0cWXl+aptt1PUO/ENhf+UFJwLtnERC9YE+jzdzJWORTTgqA7PkGSBLJlm5OZLYkko2JquVor5xwFlHCbaJj0Qp345vtaISXajSJLenWjG92dIfCkoJMSlfBA3uhvNV4/zvgOvwyRX3BGtaPrmkCNL8CjpgfhNZjaQTbIsTbqjUh4raEzFFCZzfe3g7co/Vbjajf9EQzwN6sXwEhB837SS0iJIIQMK5R1Rhr507ZwN/K4ICPzcnlTFhgOJ40HusNvspTbQJtlHWd+oE17DBeNXyaRrkYgywZRHZXmF9JaTJr+PfB2qMcxkNFrWTIkw3mM8k/8V8BwCt8ntCIJHYrGhYMjfNNu0Ra6OFsfVG0LuAdIUT24nXjy2vFFnUlIhyf8CnX/zewHksghvvAFb3QXGkkoTsgyIo0We815AKNCdZr8URvG7YTgJxqfv3H+ErQUXy9oGEPU/wPOf54YxLsfqAAAAAASUVORK5CYII="
}
16 changes: 16 additions & 0 deletions greynoise/imports/get_timeline_daily_summary.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from sw_greynoise import GreynoiseBaseClass


class SwMain(GreynoiseBaseClass):
def __init__(self, context):
super(SwMain, self).__init__(context)
self.inputs = context.inputs

def execute(self):
response = self.session.timelinedaily(
ip_address=self.inputs.get("ip_address"),
days=self.inputs.get("days"),
cursor=self.inputs.get("cursor"),
limit=self.inputs.get("limit"),
)
return response
4 changes: 2 additions & 2 deletions greynoise/imports/greynoise_community_ip_lookup.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "Community IP Lookup",
"description": "Lookup an IP address in the GreyNoise Community (free) API",
"version": "1.2.0",
"version": "1.3.0",
"family": "Investigation",
"actionType": "GreyNoiseCommunityIPLookup",
"assetDependencyType": "GreyNoise",
"assetDependencyVersion": "1.2.0",
"assetDependencyVersion": "1.3.0",
"inputParameters": {
"ip_address": {
"name": "IP Address",
Expand Down
4 changes: 2 additions & 2 deletions greynoise/imports/greynoise_community_ip_lookup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from greynoise import GreyNoise
from sw_greynoise import GreynoiseBaseClass

PLUGIN_VERSION = "v1.2.0"
PLUGIN_VERSION = "v1.3.0"


class SwMain(GreynoiseBaseClass):
Expand All @@ -11,7 +11,7 @@ def __init__(self, context):
self.api_key = context.asset["api_key"]
self.session = GreyNoise(
api_key=self.api_key,
integration_name="greynoise-community-swimlane-" + PLUGIN_VERSION,
integration_name="swimlane-community-" + PLUGIN_VERSION,
offering="community",
)

Expand Down
4 changes: 2 additions & 2 deletions greynoise/imports/greynoise_context_lookup.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "Context Lookup",
"description": "Lookup an IP address in the GreyNoise Context API Endpoint",
"version": "1.2.0",
"version": "1.3.0",
"family": "Investigation",
"actionType": "GreyNoiseContextLookup",
"assetDependencyType": "GreyNoise",
"assetDependencyVersion": "1.2.0",
"assetDependencyVersion": "1.3.0",
"inputParameters": {
"ip_address": {
"name": "IP Address",
Expand Down
17 changes: 8 additions & 9 deletions greynoise/imports/greynoise_context_lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,17 @@ def execute(self):
for result in response:
if result["noise"]:
context_response = self.session.ip(self.ip_address)
context_response["viz_url"] = "https://www.greynoise.io/viz/ip/" + self.ip_address
context_response["noise"] = result["noise"]
context_response["code"] = result["code"]
context_response["code_message"] = result["code_message"]
context_response["viz_url"] = "https://viz.greynoise.io/ip/" + self.ip_address
context_response["noise"] = result.get("noise")
context_response["code"] = result.get("code")
context_response["code_message"] = result.get("code_message")
context_response["message"] = "Success."
for section in raw_data_subsections:
if len(context_response["raw_data"][section]) > 1000:
context_response["raw_data"][section] = \
context_response["raw_data"][section][:1000]
context_response["message"] = \
str(context_response["message"]) + " Raw Data - " + section\
+ " truncated to 1000 results."
context_response["raw_data"][section] = context_response["raw_data"][section][:1000]
context_response["message"] = (
str(context_response["message"]) + " Raw Data - " + section + " truncated to 1000 results."
)
output.append(context_response)
else:
output.append(result)
Expand Down
12 changes: 10 additions & 2 deletions greynoise/imports/greynoise_get_tag_details.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "Get Tag Details",
"description": "Get the Details for a Specific GreyNoise tag",
"version": "1.2.0",
"version": "1.3.0",
"family": "Investigation",
"actionType": "GreyNoiseGetTagDetails",
"assetDependencyType": "GreyNoise",
"assetDependencyVersion": "1.2.0",
"assetDependencyVersion": "1.3.0",
"inputParameters": {
"tag_name": {
"name": "GreyNoise Tag Name",
Expand Down Expand Up @@ -49,6 +49,14 @@
"cves": {
"type": 5,
"name": "GN Tag Associated CVEs"
},
"created_at": {
"type": 1,
"name": "GN Tag Creation Date"
},
"related_tags": {
"type": 5,
"name": "GN Tag Related Tags"
}
},
"pythonDependencies": null,
Expand Down
12 changes: 10 additions & 2 deletions greynoise/imports/greynoise_get_tags.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "Get All Tags",
"description": "Get the List of GreyNoise Tags",
"version": "1.2.0",
"version": "1.3.0",
"family": "Investigation",
"actionType": "GreyNoiseGetTags",
"assetDependencyType": "GreyNoise",
"assetDependencyVersion": "1.2.0",
"assetDependencyVersion": "1.3.0",
"inputParameters": {},
"availableOutputTypes": [
"email",
Expand Down Expand Up @@ -42,6 +42,14 @@
"cves": {
"type": 5,
"name": "GN Tag Associated CVEs"
},
"created_at": {
"type": 1,
"name": "GN Tag Creation Date"
},
"related_tags": {
"type": 5,
"name": "GN Tag Related Tags"
}
},
"pythonDependencies": null,
Expand Down
4 changes: 2 additions & 2 deletions greynoise/imports/greynoise_ip_lookup.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "IP Lookup",
"description": "Lookups up an IP address in the RIOT, Quick and Context GreyNoise API Endpoint",
"version": "1.2.0",
"version": "1.3.0",
"family": "Investigation",
"actionType": "GreyNoiseIPLookup",
"assetDependencyType": "GreyNoise",
"assetDependencyVersion": "1.2.0",
"assetDependencyVersion": "1.3.0",
"inputParameters": {
"ip_address": {
"name": "IP Address",
Expand Down
Loading

0 comments on commit 0a3c6e0

Please sign in to comment.