Giter Site home page Giter Site logo

tenabletagagentgroups's Introduction

TenableTagAgentGroups

An alternative to implement automatic agent tagging based on agent groups in tenable.io

Flow

Application Flow

Requirements

  • The Tag Category + Value should be created previously
  • The asset group name should match the tag value
  • Right permissions to edit the Tag Value

Installation

pip install -r requirements.txt

Usage

export TENABLE_ACCESS_KEY=YOUR API KEY>
export TENABLE_SECRET_KEY=YOUR_SECRET_KEY

python3 run.py

Or just create the ".env" file with the following variables:

TENABLE_ACCESS_KEY=YOU_API_KEY
TENABLE_SECRET_KEY=YOUR_SECRET_KEY

python3 run.py

Docker

Build the image

Docker build -t tag-tenable-agent-groups .

Run

docker run -it --rm -e TENABLE_ACCESS_KEY=YOU_API_KEY -e TENABLE_SECRET_KEY=YOUR_SECRET_KEY tag-tenable-agent-groups

Help us request tenable to implement this feature

https://suggestions.tenable.com/ideas/IOCORE-I-27

https://suggestions.tenable.com/ideas/IOVM-I-995

tenabletagagentgroups's People

Contributors

gu4xin1m avatar

Watchers

 avatar

tenabletagagentgroups's Issues

IndexError when running run.py

Error:
IndexError: list index out of range

Full Error:
[]Geting tenable asset data...
Waiting 5 seconds for Tenable to generate the report
Done
[
] Downloading the report...
Traceback (most recent call last):
File "/home/ubuntu/TenableTagAgentGroups/run.py", line 19, in
tag = tenableApi.getTagId(agentGroupName)
File "/home/ubuntu/TenableTagAgentGroups/tenableApi.py", line 101, in getTagId
responseList['uuid'] = responseJson["values"][0]['uuid']
IndexError: list index out of range

Recreation:
I commented out the final line so I can test the script before deploying it to our Tenable.IO instance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.