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

Abnormal Security 2.0.0 release #2160

Merged
merged 3 commits into from
Dec 4, 2023
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
20 changes: 10 additions & 10 deletions plugins/abnormal_security/.CHECKSUM
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
{
"spec": "f16b3088bed657a48aa38f136e050450",
"manifest": "2d667f37c8b7c0583cdaeb7a5957eb20",
"setup": "5727bc4b88e259c8029540f47dfaae3d",
"spec": "af8befd40082941671f372d6e1e09674",
"manifest": "ca8ac5826495a084b292cebfb2bdf555",
"setup": "def6aa43e03c25df7d5fa3d36a1f8387",
"schemas": [
{
"identifier": "get_case_details/schema.py",
"hash": "b74503db855ccc4f44f35ce6c9809703"
"hash": "c2f1c1377dcddea89616a1fd22d3c583"
},
{
"identifier": "get_cases/schema.py",
"hash": "866af52074b55b16a807408f52594117"
"hash": "6e35e9078585e685fa895042bd37364e"
},
{
"identifier": "get_threat_details/schema.py",
"hash": "579d250ac9821395cabaabb5d5298ee5"
"hash": "2d1bc8bd6caf9570cc00d5375a9251d2"
},
{
"identifier": "get_threats/schema.py",
"hash": "12a0cb1ad94ee399831f0340ce49835e"
"hash": "637b4443562762878bb91af45d6434aa"
},
{
"identifier": "manage_case/schema.py",
"hash": "34d8b5365f3fa275cc44a9cf4215a950"
"hash": "46e078947a81bc94a3dde8f166eb89bb"
},
{
"identifier": "manage_threat/schema.py",
"hash": "c8f61b849d7f21b8a69a05fb75e08c63"
"hash": "0387e9c547ee4b0948ec17f04498654a"
},
{
"identifier": "connection/schema.py",
"hash": "2a5295ff218578eaa2894ffd027ddc21"
"hash": "5b54b21d29ab6ee8fda8c8d068fb4562"
}
]
}
20 changes: 7 additions & 13 deletions plugins/abnormal_security/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://komand.github.io/python/sdk.html#version
FROM --platform=linux/amd64 rapid7/insightconnect-python-3-plugin:latest

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
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 nobody

ENTRYPOINT ["/usr/local/bin/icon_abnormal_security"]
ENTRYPOINT ["/usr/local/bin/icon_abnormal_security"]
26 changes: 13 additions & 13 deletions plugins/abnormal_security/bin/icon_abnormal_security
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 = "Abnormal Security"
Vendor = "rapid7"
Version = "1.3.0"
Version = "2.0.0"
Description = "Protect your Microsoft Office 365 and G-Suite environments with next-generation email security that uses the most advanced AI detection techniques to stop targeted phishing attacks"


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

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

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

self.add_action(actions.GetCases())

self.add_action(actions.GetThreatDetails())

self.add_action(actions.GetThreats())

self.add_action(actions.ManageCase())


self.add_action(actions.GetThreatDetails())

self.add_action(actions.GetCases())

self.add_action(actions.GetCaseDetails())

self.add_action(actions.ManageThreat())


self.add_action(actions.ManageCase())


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