Skip to content

Commit

Permalink
[PLGN-561] Insight VM - Scan Completion Trigger (#2087)
Browse files Browse the repository at this point in the history
* Init commit - Simple connection test refactor

* Spec mapped draft

* Add new trigger outline

* Trigger template

* Fix snyk | Succesful scan API call | manifest fixed for new trigger

* Save point #1

* Save point #2

* Map inputs

* Start mapping outputs

* Save point #3

* Save point #4

* All API calls mapped

* Save point #5

* Add task init and update risk score to float

* Add msft strip and remove nexpose id

* Save point #6 query search and api calls

* Update output, successful call and outputs

* Update docstrings and type hints

* Save point #7

* Save point #8

* Update single line in query

* filter results and status_id

* query fixed

* Condense results finished

* Changes made to filter

* Cacheing begin

* Save point #9

* Save point #10

* Dockerfile restored and debugging statements

* Get latest to get latest completed

* Trigger + cacheing works

* it works ..

* Trigger working and doc strings added

* Some prospector issues fixed

* Prospector fixes

* Version updated to 620

* Remove software update id

* Removed risk score

* Help MD fix etc

* Remove risk score

* Update help md again

* Update dockerfile

* Add asset group & cve input

* Small dot updates plus verify method

* Updated to paged resource request

* Update to determine cache for resource request

* Black formatting

* Update doc strings and comments

* Update single letter variables

* Fix prospector

* Add severity and cvss score input

* Validator fix

* Update to remove condense results

* Remove hostname and ip input

* Update spec file with corrections

* Remove caching

* Add dot get

* Fix plugin validator

* Update :fingerscrossed
  • Loading branch information
cmcnally-r7 authored Dec 13, 2023
1 parent b132f5f commit 846d23f
Show file tree
Hide file tree
Showing 13 changed files with 634 additions and 107 deletions.
12 changes: 8 additions & 4 deletions plugins/rapid7_insightvm/.CHECKSUM
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"spec": "e8da36ef239156809597572946df2ea3",
"manifest": "138d918083ad59c0f8de7c018212a929",
"setup": "5f4d67fe3ecbe62a6ac891aa442e20b9",
"spec": "8c162487e4fc21d316ae671ff14bdada",
"manifest": "1ad7045d507da48f30f04999d8e73b3b",
"setup": "1c6dcdf34833dd8b8ada2f2a80ae8279",
"schemas": [
{
"identifier": "add_scan_engine_pool_engine/schema.py",
Expand All @@ -21,7 +21,7 @@
},
{
"identifier": "asset_vulnerability_solution/schema.py",
"hash": "58bbe516a723ad6f7ab992533d3379b7"
"hash": "c42741c78364bf55ff0c82fd735f3612"
},
{
"identifier": "create_asset_group/schema.py",
Expand Down Expand Up @@ -370,6 +370,10 @@
{
"identifier": "new_scans/schema.py",
"hash": "a907a9c47939be620564f30a3e8a6533"
},
{
"identifier": "scan_completion/schema.py",
"hash": "25386d06cb7cd3fe16a007c2aabe7c87"
}
]
}
3 changes: 2 additions & 1 deletion plugins/rapid7_insightvm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM rapid7/insightconnect-python-3-38-slim-plugin:5
FROM rapid7/insightconnect-python-3-plugin:5
LABEL organization=komand

LABEL sdk=python
LABEL type=plugin

Expand Down
4 changes: 3 additions & 1 deletion plugins/rapid7_insightvm/bin/komand_rapid7_insightvm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ from sys import argv

Name = "Rapid7 InsightVM Console"
Vendor = "rapid7"
Version = "6.1.1"
Version = "6.2.0"
Description = "InsightVM is a powerful vulnerability management tool which finds, prioritizes, and remediates vulnerabilities. This plugin uses an orchestrator to get top remediations, scan results and start scans"


Expand Down Expand Up @@ -38,6 +38,8 @@ def main():

self.add_trigger(triggers.NewExceptionRequest())

self.add_trigger(triggers.ScanCompletion())

self.add_action(actions.Scan())

self.add_action(actions.GetScan())
Expand Down
Loading

0 comments on commit 846d23f

Please sign in to comment.