Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SOAR-18091] Ivanti Security Controls 1.5.1 Release #2927

Merged
merged 1 commit into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions plugins/ivanti_security_controls/.CHECKSUM
Original file line number Diff line number Diff line change
@@ -1,67 +1,67 @@
{
"spec": "8c145534c75b3830b06f59ac8667464d",
"manifest": "7280daa95ea56f830dd832ebc5be0cfe",
"setup": "dbe66041fe2ce88bb7e50c61aec5a722",
"spec": "d858e3c0facc560db676448631ac7852",
"manifest": "090106828b61ab1e3609d209c5167cbf",
"setup": "8ae8af3f9327178507f252d9a10ddf84",
"schemas": [
{
"identifier": "create_patch_group_and_add_cves/schema.py",
"hash": "06e50a9ce549deddcc8a1a467ab60572"
"hash": "bf229b1017b63fb70cb979e58c0568f7"
},
{
"identifier": "create_patch_scan_template/schema.py",
"hash": "78bb62a5e3f77055e46a6980519579d3"
"hash": "d9a933f9a6788c0f185c26431dc767ca"
},
{
"identifier": "get_agent/schema.py",
"hash": "bd4900e521eb00ef0c86d6b73fd1fb55"
"hash": "2c0907168a0d568700aac4c2b03d22be"
},
{
"identifier": "get_agent_status/schema.py",
"hash": "04de1dd48f8167524309551da6bbdc9e"
"hash": "33dd6cf2981dbaf4a22511abf08da20b"
},
{
"identifier": "get_agents/schema.py",
"hash": "79eee50d7e4264b758433475be282045"
"hash": "33bd0a872a2b665124bc3eb9641e88c7"
},
{
"identifier": "get_patch_deployment/schema.py",
"hash": "1e509a6baadb1be01473919aad6cf8e2"
"hash": "509696643cb98711c00f981a4c70fc37"
},
{
"identifier": "get_patch_deployment_template_id/schema.py",
"hash": "8f8b04af979211d7da2d89352799f073"
"hash": "239749e0dfb8c19f44a9c140d5a36572"
},
{
"identifier": "get_patch_details/schema.py",
"hash": "77501bf845fbd281c9007415d7615023"
"hash": "34b95df5c06ac49ca74e8d31187edf3e"
},
{
"identifier": "get_patch_scan_status/schema.py",
"hash": "88247e5f1e9d9fa4eeae0a8030aa6b2f"
"hash": "9f6865790dae9cc151fb7dc2235961ef"
},
{
"identifier": "get_scanned_machine_details/schema.py",
"hash": "f13b58495b12f1edbedfdb395dd55eba"
"hash": "fe5b81786dbc1724057a0349713c4601"
},
{
"identifier": "search_patches/schema.py",
"hash": "fc344937b62340d0da188153afe688b4"
"hash": "d716ed9ff10ca0db1cf16f1da18c6870"
},
{
"identifier": "start_patch_deployment/schema.py",
"hash": "a423b291913b7ba6b191f11400bb9d92"
"hash": "c04669ef4b5e925a04bcbe2a55d66566"
},
{
"identifier": "start_patch_scan/schema.py",
"hash": "4f8149da8fdda6a4657ecbc8f3089371"
"hash": "0e53911633c22e945f98168ee5cf04b6"
},
{
"identifier": "update_patch_group/schema.py",
"hash": "9155a31486b858b4a0dfbe051557b3b3"
"hash": "64bb9603ae96bc9ebd109c969fad2e9c"
},
{
"identifier": "connection/schema.py",
"hash": "321c8a40358f95b991a244fabcdfc1c8"
"hash": "36bf3b8f4426da916c2dae8f865a5175"
}
]
}
18 changes: 6 additions & 12 deletions plugins/ivanti_security_controls/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,26 +1,20 @@
FROM rapid7/insightconnect-python-3-38-plugin:4
# Refer to the following documentation for available SDK parent images: https://docs.rapid7.com/insightconnect/sdk-guide/#sdk-guide
FROM --platform=linux/amd64 rapid7/insightconnect-python-3-slim-plugin:6.1.4

LABEL organization=rapid7
LABEL sdk=python

# Add any custom package dependencies here
# NOTE: Add pip packages to requirements.txt

# End package dependencies

# Add source code
WORKDIR /python/src

ADD ./plugin.spec.yaml /plugin.spec.yaml
ADD . /python/src
ADD ./requirements.txt /python/src/requirements.txt

# Install pip dependencies
RUN if [ -f requirements.txt ]; then pip install -r requirements.txt; fi

# Install plugin
ADD . /python/src

RUN python setup.py build && python setup.py install

# User to run plugin code. The two supported users are: root, nobody
USER root
USER nobody

ENTRYPOINT ["/usr/local/bin/icon_ivanti_security_controls"]
Original file line number Diff line number Diff line change
@@ -1,54 +1,68 @@
#!/usr/bin/env python
# GENERATED BY KOMAND SDK - DO NOT EDIT
import insightconnect_plugin_runtime
from icon_ivanti_security_controls import connection, actions, triggers

# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT
import os
import json
from sys import argv

Name = "Ivanti Security Controls"
Vendor = "rapid7"
Version = "1.5.0"
Version = "1.5.1"
Description = "Ivanti Security Controls is a unified IT management platform used for managing and protecting through Patch Management, Application Control, and Asset Inventory functionality"


class ICONIvantiSecurityControls(insightconnect_plugin_runtime.Plugin):
def __init__(self):
super(self.__class__, self).__init__(
name=Name,
vendor=Vendor,
def main():
if 'http' in argv:
if os.environ.get("GUNICORN_CONFIG_FILE"):
with open(os.environ.get("GUNICORN_CONFIG_FILE")) as gf:
gunicorn_cfg = json.load(gf)
if gunicorn_cfg.get("worker_class", "sync") == "gevent":
from gevent import monkey
monkey.patch_all()
elif 'gevent' in argv:
from gevent import monkey
monkey.patch_all()

import insightconnect_plugin_runtime
from icon_ivanti_security_controls import connection, actions, triggers, tasks

class ICONIvantiSecurityControls(insightconnect_plugin_runtime.Plugin):
def __init__(self):
super(self.__class__, self).__init__(
name=Name,
vendor=Vendor,
version=Version,
description=Description,
connection=connection.Connection()
)
self.add_action(actions.CreatePatchGroupAndAddCves())

self.add_action(actions.CreatePatchScanTemplate())

self.add_action(actions.GetAgent())

self.add_action(actions.GetAgentStatus())

self.add_action(actions.GetAgents())

self.add_action(actions.GetPatchDeployment())

self.add_action(actions.GetPatchDeploymentTemplateId())

self.add_action(actions.GetPatchDetails())
)
self.add_action(actions.GetAgent())

self.add_action(actions.GetAgents())

self.add_action(actions.GetAgentStatus())

self.add_action(actions.StartPatchScan())

self.add_action(actions.GetPatchScanStatus())

self.add_action(actions.GetScannedMachineDetails())

self.add_action(actions.SearchPatches())

self.add_action(actions.GetPatchDetails())

self.add_action(actions.GetPatchDeployment())

self.add_action(actions.GetPatchDeploymentTemplateId())

self.add_action(actions.StartPatchDeployment())

self.add_action(actions.CreatePatchScanTemplate())

self.add_action(actions.CreatePatchGroupAndAddCves())

self.add_action(actions.UpdatePatchGroup())


self.add_action(actions.GetPatchScanStatus())

self.add_action(actions.GetScannedMachineDetails())

self.add_action(actions.SearchPatches())

self.add_action(actions.StartPatchDeployment())

self.add_action(actions.StartPatchScan())

self.add_action(actions.UpdatePatchGroup())


def main():
"""Run plugin"""
cli = insightconnect_plugin_runtime.CLI(ICONIvantiSecurityControls())
cli.run()
Expand Down
Loading
Loading