Skip to content

Release [PLGN-608] Cisco Firepower Management Center - Check if Address in Group: Extended search for manually added literals | Added new output field literal_objects #2216

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

Merged
merged 3 commits into from
Jan 11, 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
24 changes: 12 additions & 12 deletions plugins/cisco_firepower_management_center/.CHECKSUM
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
{
"spec": "82cae4262be8822308c42a02462a2558",
"manifest": "a59b68649de3c18ba05e5c18bc5f75c5",
"setup": "b3983dca67fd60580f64107798fe102e",
"spec": "8bf376c600daf49d04accf342a03edaa",
"manifest": "30fa8be906e8c7f65208af52f08b92e5",
"setup": "6547939a04a0975b9dbb1249e1c6c14f",
"schemas": [
{
"identifier": "add_address_to_group/schema.py",
"hash": "e55464855d4fd41ca7133e796e77de9b"
"hash": "1f22310b7ed4d6e9c381b44ba9d92356"
},
{
"identifier": "add_scan_result/schema.py",
"hash": "02cbd5fdc18217d09fa469ec7380259f"
"hash": "76977c1afa291e6a4b086258437de65f"
},
{
"identifier": "block_url_policy/schema.py",
"hash": "89af1fb834be678a1a527b5d74a89992"
"hash": "cdb08568550c8cbbc77cb25ad15006a9"
},
{
"identifier": "bulk_add_scan_result/schema.py",
"hash": "0594b89ac6f23d211843137eda178cc0"
"hash": "62a9f5d400f031e3e90c07d30e0be4a6"
},
{
"identifier": "check_if_address_in_group/schema.py",
"hash": "7b2f4a20a1c364fa20450cd881eea781"
"hash": "29dfaae4d6ea11d9d88d263318d483cc"
},
{
"identifier": "create_address_object/schema.py",
"hash": "1581b57c0b492feb501b47234700fd6d"
"hash": "7854cc10335e98cbfb29407283012cff"
},
{
"identifier": "delete_address_object/schema.py",
"hash": "36914e7a16151f1f50bcfb3945f4c8e2"
"hash": "acb97019969685ed33966f4f1730ee05"
},
{
"identifier": "remove_address_from_group/schema.py",
"hash": "d600a486a4d6e2b01c890525b083048a"
"hash": "dd1c48814422ee6515db39cbe67acd46"
},
{
"identifier": "connection/schema.py",
"hash": "a7226adb026c4543cedb5d9ecd3f5d2b"
"hash": "98099fc0b35adf0a10a0d70746661812"
}
]
}
22 changes: 6 additions & 16 deletions plugins/cisco_firepower_management_center/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,28 +1,18 @@
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:5

LABEL organization=rapid7
LABEL sdk=python

ENV SSL_CERT_FILE /etc/ssl/certs/ca-certificates.crt
ENV SSL_CERT_DIR /etc/ssl/certs
ENV REQUESTS_CA_BUNDLE /etc/ssl/certs/ca-certificates.crt

# 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
RUN python setup.py build && python setup.py install
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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/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 Firepower Management Center"
Vendor = "rapid7"
Version = "2.0.1"
Version = "2.1.0"
Description = "This plugin utilizes Cisco Firepower Management Center to create URL block policies and manage address objects to block hosts"


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

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

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

self.add_action(actions.AddScanResult())

self.add_action(actions.BlockUrlPolicy())

self.add_action(actions.BulkAddScanResult())

self.add_action(actions.CheckIfAddressInGroup())


self.add_action(actions.CreateAddressObject())

self.add_action(actions.DeleteAddressObject())


self.add_action(actions.CheckIfAddressInGroup())

self.add_action(actions.AddAddressToGroup())

self.add_action(actions.RemoveAddressFromGroup())


self.add_action(actions.AddScanResult())

self.add_action(actions.BulkAddScanResult())


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