Skip to content

Commit

Permalink
[PLGN-295] Insight VM - Update Site Included Targets Defect (#2081)
Browse files Browse the repository at this point in the history
* Update two actions | add unit tests | refresh

* Add examples | Refresh | Undo dockerfile changes

* Update help.md

* Downgrade

* Update dockerfile, add tasks init

* Fix unit test imports

* Fix schema changes

* Update requirements
  • Loading branch information
ablakley-r7 authored and cmcnally-r7 committed Nov 21, 2023
1 parent 6045cae commit 753dcda
Show file tree
Hide file tree
Showing 215 changed files with 5,770 additions and 17,855 deletions.
190 changes: 95 additions & 95 deletions plugins/rapid7_insightvm/.CHECKSUM

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion plugins/rapid7_insightvm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rapid7/insightconnect-python-3-38-slim-plugin:4
FROM rapid7/insightconnect-python-3-38-slim-plugin:5
LABEL organization=komand
LABEL sdk=python
LABEL type=plugin
Expand Down
334 changes: 167 additions & 167 deletions plugins/rapid7_insightvm/bin/komand_rapid7_insightvm
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 = "Rapid7 InsightVM Console"
Vendor = "rapid7"
Version = "6.1.0"
Version = "6.1.1"
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 All @@ -23,7 +23,7 @@ def main():
monkey.patch_all()

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

class ICONRapid7Insightvm(insightconnect_plugin_runtime.Plugin):
def __init__(self):
Expand All @@ -34,188 +34,188 @@ def main():
description=Description,
connection=connection.Connection()
)
self.add_trigger(triggers.NewExceptionRequest())

self.add_trigger(triggers.NewScans())

self.add_action(actions.AddScanEnginePoolEngine())

self.add_action(actions.AddUserAssetGroupAccess())

self.add_action(actions.AddUserSiteAccess())

self.add_action(actions.AssetSearch())

self.add_action(actions.AssetVulnerabilitySolution())

self.add_action(actions.CreateAssetGroup())

self.add_action(actions.CreateException())

self.add_action(actions.CreateScanEngine())

self.add_action(actions.CreateScanEnginePool())

self.add_action(actions.CreateSite())

self.add_action(actions.CreateTag())

self.add_action(actions.CreateUser())

self.add_action(actions.DeleteAsset())

self.add_action(actions.DeleteAssetGroup())

self.add_action(actions.DeleteException())

self.add_action(actions.DeleteScanEngine())

self.add_action(actions.DeleteScanEnginePool())

self.add_action(actions.DeleteSite())

self.add_action(actions.DeleteTag())

self.add_action(actions.DeleteUser())

self.add_action(actions.DisableUser())

self.add_action(actions.DownloadReport())

self.add_action(actions.EnableUser())

self.add_action(actions.GenerateAdhocSqlReport())

self.add_action(actions.GenerateSharedSecret())

self.add_action(actions.GetAsset())

self.add_action(actions.GetAssetGroup())

self.add_action(actions.GetAssetGroupAssets())

self.add_action(actions.GetAssetGroups())

self.add_action(actions.GetAssetSoftware())

self.add_action(actions.GetAssetTags())

self.add_action(actions.GetAssetVulnerabilities())

self.add_action(actions.GetAuthenticationSource())

self.add_action(actions.GetAuthenticationSources())

self.add_action(actions.GetExpiringVulnerabilityExceptions())

self.add_action(actions.GetRole())

self.add_action(actions.GetRoles())


self.add_trigger(triggers.NewExceptionRequest())

self.add_action(actions.Scan())

self.add_action(actions.GetScan())

self.add_action(actions.GetScanAssets())

self.add_action(actions.GetScanEngine())

self.add_action(actions.GetScanEnginePool())

self.add_action(actions.GetScanEnginePools())

self.add_action(actions.GetScanEngines())

self.add_action(actions.GetScans())

self.add_action(actions.GetSite())


self.add_action(actions.GetSiteAssets())

self.add_action(actions.GetSites())


self.add_action(actions.GetScanAssets())

self.add_action(actions.GetAssetVulnerabilities())

self.add_action(actions.GetAssetSoftware())

self.add_action(actions.DownloadReport())

self.add_action(actions.ListReports())

self.add_action(actions.GetVulnerabilityAffectedAssets())

self.add_action(actions.CreateTag())

self.add_action(actions.DeleteTag())

self.add_action(actions.GetTags())

self.add_action(actions.GetTag())

self.add_action(actions.GetTagAssetGroups())

self.add_action(actions.GetTagAssets())


self.add_action(actions.GetTagSites())

self.add_action(actions.GetTags())

self.add_action(actions.GetUser())

self.add_action(actions.GetUsers())

self.add_action(actions.GetVulnerabilitiesByCve())

self.add_action(actions.GetVulnerability())

self.add_action(actions.GetVulnerabilityAffectedAssets())

self.add_action(actions.ListInactiveAssets())

self.add_action(actions.ListReports())

self.add_action(actions.RemoveAssetGroupTags())


self.add_action(actions.GetTagAssets())

self.add_action(actions.GetTagAssetGroups())

self.add_action(actions.RemoveAssetTag())

self.add_action(actions.RemoveScanEnginePoolEngine())

self.add_action(actions.RemoveAssetGroupTags())
self.add_action(actions.RemoveTagAssetGroups())

self.add_action(actions.RemoveTagSearchCriteria())


self.add_action(actions.RemoveTagSites())

self.add_action(actions.RemoveUserAssetGroupAccess())

self.add_action(actions.RemoveUserSiteAccess())

self.add_action(actions.ReviewException())

self.add_action(actions.Scan())


self.add_action(actions.RemoveTagSearchCriteria())

self.add_action(actions.TagSite())

self.add_action(actions.TagAsset())

self.add_action(actions.TagAssetGroup())


self.add_action(actions.TagAssets())

self.add_action(actions.TagSite())

self.add_action(actions.TopRemediations())

self.add_action(actions.UpdateAssetGroupSearchCriteria())

self.add_action(actions.UpdateScanStatus())

self.add_action(actions.UpdateSharedCredential())


self.add_action(actions.TagAssetGroup())

self.add_action(actions.UpdateTagSearchCriteria())

self.add_action(actions.AssetSearch())

self.add_action(actions.GetAsset())

self.add_action(actions.GetAssetTags())

self.add_action(actions.GetSites())

self.add_action(actions.GetSite())

self.add_action(actions.CreateSite())

self.add_action(actions.UpdateSite())

self.add_action(actions.UpdateSiteExcludedAssetGroups())

self.add_action(actions.UpdateSiteIncludedTargets())
self.add_action(actions.UpdateSiteExcludedTargets())

self.add_action(actions.UpdateSiteIncludedAssetGroups())

self.add_action(actions.UpdateSiteIncludedTargets())


self.add_action(actions.UpdateSiteExcludedAssetGroups())

self.add_action(actions.DeleteSite())

self.add_action(actions.GetAssetGroups())

self.add_action(actions.GetAssetGroup())

self.add_action(actions.CreateAssetGroup())

self.add_action(actions.DeleteAssetGroup())

self.add_action(actions.UpdateAssetGroupSearchCriteria())

self.add_action(actions.GetVulnerabilitiesByCve())

self.add_action(actions.GetScans())

self.add_action(actions.UpdateScanStatus())

self.add_action(actions.GenerateSharedSecret())

self.add_action(actions.GetScanEngines())

self.add_action(actions.GetScanEngine())

self.add_action(actions.CreateScanEngine())

self.add_action(actions.DeleteScanEngine())

self.add_action(actions.GetScanEnginePools())

self.add_action(actions.GetScanEnginePool())

self.add_action(actions.CreateScanEnginePool())

self.add_action(actions.AddScanEnginePoolEngine())

self.add_action(actions.RemoveScanEnginePoolEngine())

self.add_action(actions.DeleteScanEnginePool())

self.add_action(actions.UpdateSiteScanEngine())

self.add_action(actions.UpdateTagSearchCriteria())


self.add_action(actions.GetAuthenticationSources())

self.add_action(actions.GetAuthenticationSource())

self.add_action(actions.GetRoles())

self.add_action(actions.GetRole())

self.add_action(actions.GetUsers())

self.add_action(actions.GetUser())

self.add_action(actions.CreateUser())

self.add_action(actions.UpdateUser())

self.add_action(actions.UpdateUserAssetGroupAccess())


self.add_action(actions.DeleteUser())

self.add_action(actions.DisableUser())

self.add_action(actions.EnableUser())

self.add_action(actions.UpdateUserRole())


self.add_action(actions.UpdateUserAssetGroupAccess())

self.add_action(actions.AddUserAssetGroupAccess())

self.add_action(actions.RemoveUserAssetGroupAccess())

self.add_action(actions.UpdateUserSiteAccess())


self.add_action(actions.AddUserSiteAccess())

self.add_action(actions.RemoveUserSiteAccess())

self.add_action(actions.TopRemediations())

self.add_action(actions.GenerateAdhocSqlReport())

self.add_action(actions.ReviewException())

self.add_action(actions.DeleteException())

self.add_action(actions.CreateException())

self.add_action(actions.GetVulnerability())

self.add_action(actions.GetAssetGroupAssets())

self.add_action(actions.DeleteAsset())

self.add_action(actions.ListInactiveAssets())

self.add_action(actions.GetExpiringVulnerabilityExceptions())

self.add_action(actions.UpdateVulnerabilityExceptionExpirationDate())


self.add_action(actions.AssetVulnerabilitySolution())

self.add_action(actions.UpdateSharedCredential())


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

0 comments on commit 753dcda

Please sign in to comment.