Skip to content

Commit

Permalink
[SOAR-18138] Cisco_asa - Snyk Vulnerability and SDK Bump (#2936)
Browse files Browse the repository at this point in the history
* snyk and sdk cisco_asa 2.0.0

* changing to 1.5.1, action name staying in upper
  • Loading branch information
rmurray-r7 authored Nov 7, 2024
1 parent 119b5d2 commit a3babcc
Show file tree
Hide file tree
Showing 28 changed files with 357 additions and 321 deletions.
22 changes: 11 additions & 11 deletions plugins/cisco_asa/.CHECKSUM
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
{
"spec": "64fb87c7d1f66aefd4e7f7614a19f9af",
"manifest": "e2419ec1df006ce82cf0909b1bb65bff",
"setup": "48492ed5afb320410fc6d17a1ca24f07",
"spec": "fc272bd06b16427375297776e3784854",
"manifest": "a735368beff71e232965526b4f65cedb",
"setup": "3cfbb16574fbb3820a5a45c0faf50c64",
"schemas": [
{
"identifier": "add_address_to_group/schema.py",
"hash": "28866c00bc5f8c943458f0b6c5176647"
"hash": "0770f0ceae995d9dfd74ae0956a7a226"
},
{
"identifier": "block_host/schema.py",
"hash": "74aeff1b3af9a4b757210a741b75bb29"
"hash": "780c5d4f8c93351c301ea598168902fd"
},
{
"identifier": "check_if_address_object_in_group/schema.py",
"hash": "6ab78079cdba4b3af229361568ba0a1a"
"hash": "63a7a7073361cf1fea52b48034d2b136"
},
{
"identifier": "create_address_object/schema.py",
"hash": "3a19a8fb405ace156d9e4a7ff618262a"
"hash": "335ecaed21a0c631cca91c2e013d2f0e"
},
{
"identifier": "delete_address_object/schema.py",
"hash": "379b6330742e8b45c24a532b2d03253c"
"hash": "07b257ee5ff4a7b7ffde8b519dc691d4"
},
{
"identifier": "get_blocked_hosts/schema.py",
"hash": "2a0caee8d3b1264280da82fceb3d0bba"
"hash": "8d8e2d14c5ddf90283de2746ad8ab3d3"
},
{
"identifier": "remove_address_from_group/schema.py",
"hash": "fa9a4bbca8b9b526d23c7f0e02727360"
"hash": "397da1d9c13b3fdc7ae5ce32105af11b"
},
{
"identifier": "connection/schema.py",
"hash": "c7ef3ec4f79c4de5cb5192a03c1d94fd"
"hash": "e43d8ab0ffe332e16e0e410977f16759"
}
]
}
16 changes: 5 additions & 11 deletions plugins/cisco_asa/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,17 @@
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-plugin:6.2.0

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
Expand Down
30 changes: 15 additions & 15 deletions plugins/cisco_asa/bin/icon_cisco_asa
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/usr/bin/env python
# GENERATED BY KOMAND SDK - DO NOT EDIT
# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT
import os
import json
from sys import argv

Name = "Cisco Adaptive Security Appliance"
Vendor = "rapid7"
Version = "1.5.0"
Description = "The Cisco ASA plugin allows you to automate the management of network objects"
Version = "1.5.1"
Description = "Cisco Adaptive Security Appliances(https://www.cisco.com/c/en/us/products/security/adaptive-security-appliance-asa-software/index.html) deliver enterprise-class firewall capabilities and the Cisco ASA plugin allows you to automate the management of network objects for ASA appliances"


def main():
Expand All @@ -23,7 +23,7 @@ def main():
monkey.patch_all()

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

class ICONCiscoAsa(insightconnect_plugin_runtime.Plugin):
def __init__(self):
Expand All @@ -34,20 +34,20 @@ def main():
description=Description,
connection=connection.Connection()
)
self.add_action(actions.AddAddressToGroup())

self.add_action(actions.BlockHost())

self.add_action(actions.CheckIfAddressObjectInGroup())

self.add_action(actions.CreateAddressObject())

self.add_action(actions.RemoveAddressFromGroup())
self.add_action(actions.DeleteAddressObject())


self.add_action(actions.AddAddressToGroup())

self.add_action(actions.CreateAddressObject())

self.add_action(actions.GetBlockedHosts())

self.add_action(actions.RemoveAddressFromGroup())

self.add_action(actions.BlockHost())

"""Run plugin"""
cli = insightconnect_plugin_runtime.CLI(ICONCiscoAsa())
Expand Down
Loading

0 comments on commit a3babcc

Please sign in to comment.