Skip to content

Commit

Permalink
[PLGN-408] Insight IDR - Adding new actions for Get Alert Information…
Browse files Browse the repository at this point in the history
…, Search Alerts, Retrieve Evidence for a Single Alert and Retrieve Actors for a Single Alert (#2175)

* PLGN-408-Adding new actions for Get Alert Information, Search Alerts, Retrieve Evidence for a Single Alert and Retrieve Actors for a Single Alert

* PLGN-408-Adding new actions for Get Alert Information, Search Alerts, Retrieve Evidence for a Single Alert and Retrieve Actors for a Single Alert

* PLGN-408-Adding new actions for Get Alert Information, Search Alerts, Retrieve Evidence for a Single Alert and Retrieve Actors for a Single Alert

* PLGN-408-Re-adding back in size and index to action, dropping version to make a multiple plugin release, adding in type hints

* PLGN-408-Running black format

* PLGN-408-Updating data to be of type object

* PLGN-408-Updating to use f string

* PLGN-408-Removing debug print

* PLGN-408-Updating error var name
  • Loading branch information
rbowden-r7 authored Dec 12, 2023
1 parent c1e830a commit c9f10d4
Show file tree
Hide file tree
Showing 45 changed files with 4,467 additions and 65 deletions.
32 changes: 24 additions & 8 deletions plugins/rapid7_insightidr/.CHECKSUM
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"spec": "72d5d2af3bb90d2b2a30282afbaa86a2",
"manifest": "3bb894dbddc11993a1b52c1a2f85214a",
"spec": "3129505d890c5ecd8dbbecedd1382b67",
"manifest": "0642116655f080e60ef4c4d987d30886",
"setup": "6ade07f6eab808a7314ad809830c1926",
"schemas": [
{
"identifier": "add_indicators_to_a_threat/schema.py",
"hash": "ae591f6016d3c55c7d02f6ccbff1ace5"
"hash": "95108ef162aa99c34e0d20ba2fd3035e"
},
{
"identifier": "advanced_query_on_log/schema.py",
Expand All @@ -17,7 +17,7 @@
},
{
"identifier": "assign_user_to_investigation/schema.py",
"hash": "691c00b0392a1f72bf1120f92fdf5927"
"hash": "b86869089935ee73ca2b83a9f99e8119"
},
{
"identifier": "close_investigations_in_bulk/schema.py",
Expand All @@ -33,7 +33,7 @@
},
{
"identifier": "create_threat/schema.py",
"hash": "58e3b6ac539fa2e475e9ef363e436c04"
"hash": "59488423b1e4223122244145056760fa"
},
{
"identifier": "delete_attachment/schema.py",
Expand All @@ -55,6 +55,18 @@
"identifier": "get_a_saved_query/schema.py",
"hash": "2f8d35ca00cb8202d1280e3b7e4e16f7"
},
{
"identifier": "get_alert_actors/schema.py",
"hash": "8cfdd80c6b157de435078f19994b8ab0"
},
{
"identifier": "get_alert_evidence/schema.py",
"hash": "545d98d33f4b8a89aeb605fc8fccc571"
},
{
"identifier": "get_alert_information/schema.py",
"hash": "739315bdc26fc6b328608fd8cfcda0bb"
},
{
"identifier": "get_all_logs/schema.py",
"hash": "2bdb039bd7bed9a17ebe689e8c9265d7"
Expand All @@ -81,7 +93,7 @@
},
{
"identifier": "list_alerts_for_investigation/schema.py",
"hash": "72bdab1cd1e041b8dc5ec6616a5555a1"
"hash": "204f318b8b7b60b3c43e22cd318e2877"
},
{
"identifier": "list_attachments/schema.py",
Expand All @@ -93,7 +105,7 @@
},
{
"identifier": "list_investigations/schema.py",
"hash": "059566035076f6019f11c6539070f229"
"hash": "f4516429e481a4e231ba81bdf904407f"
},
{
"identifier": "query/schema.py",
Expand All @@ -103,9 +115,13 @@
"identifier": "replace_indicators/schema.py",
"hash": "1bd05409ed4a316ef2e979339cde3fe9"
},
{
"identifier": "search_alerts/schema.py",
"hash": "302a9b77356ddc5e6094608570fdb024"
},
{
"identifier": "search_investigations/schema.py",
"hash": "2386256e0897989799c53fb872a7797a"
"hash": "89eebd2bdefeabf335e3b98f16b56a3f"
},
{
"identifier": "set_disposition_of_investigation/schema.py",
Expand Down
2 changes: 1 addition & 1 deletion plugins/rapid7_insightidr/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rapid7/insightconnect-python-3-slim-plugin:5
FROM --platform=linux/amd64 rapid7/insightconnect-python-3-plugin:5

LABEL organization=rapid7
LABEL sdk=python
Expand Down
8 changes: 8 additions & 0 deletions plugins/rapid7_insightidr/bin/komand_rapid7_insightidr
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,14 @@ def main():

self.add_action(actions.GetAssetInformation())

self.add_action(actions.GetAlertInformation())

self.add_action(actions.SearchAlerts())

self.add_action(actions.GetAlertEvidence())

self.add_action(actions.GetAlertActors())


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

0 comments on commit c9f10d4

Please sign in to comment.