Coder Social home page Coder Social logo

tancd's Introduction

TanCD

Tanium content Continuous Deployment pipeline.

This is unofficial Tanium content. These have not been tested or approved by anyone at Tanium.

Intended use is to pull this GIT into your internal GIT repo as a sub-module. This repo should not contain any of your internally developed Tanium content, only the workflow to apply a CD pipeline to your Tanium Content development workflow.

Files:

tanrest.py:     Python class that implements the Tanium REST API.
get_sensor.py:  Gets a sensor from tanium and stores it in a file.
get_package.py: Gets a package from tanium and stores it in a file.
put_sensor.py:  Add or update a sensor on the tanium server from a file.
put_package.py: Add or update a package on the tanium server from a file.
check_*.py:     Checks that content ahears to policy for naming, caching, etc.. (defined in content.cfg).
analyze_sensors.py:   Runs static analysis on sensor scripts.
test_*.py:      Executes sensors/packages on the Tanium server and collects performance data.
content.cfg:    Defines settings to use.
*.xml:          Sensors and packages used by TanCD.

Sensors:

  • TanCD Tanium Action Output
  • TanCD Tanium Action Failure
  • TanCD Sensor Performance
  • TanCD Package Performance

Packages:

  • TanCD perfinclude Windows
  • TanCD perfinclude Linux

Quick start:

  1. Create a GIT repo to store your internally developed Tanium Content (sensors and packages).
  2. Clone this repo as a submodule.
  • git submodule add https://github.com/jbagleyjr/TanCD.git
  1. Add "test_sensors.xml", "test_packages.xml", and "prod_sensors.xml" to your Tanium test server.
  2. (optional) Add "prod_sensors.xml" to your production Tanium server.
  3. (optional) Verify the tanrest class works as expected by adding the included Chuck Norris Fact sensor to your tanium server.
  • cd TanCD; python3 put_sensor.py --server 139.181.111.21 --username tanium --sensor 'Chuck Norris Fact'
  1. Setup your CI/CD pipeline! You can use the scripts and yml under gitlab-ci as a starting point, but copy them into your own GIT repo.

All of the command line python programs are setup to read/write sensor and package files into 'sensor' and 'package' sub-directories of the current directory. This allows 'TanCD' content to remain in a separate GIT repo from your Tanium content assuming that you invoke the commands from the parent directory. As in;

Get a sensor

python3 TanCD/get_sensor.py --server <your tanium server> --username <your tanium username> --password <your password> --sensor "<your new sensor>"

Check a sensor

python3 TanCD/check_sensor.py --sensor "<your new sensor>"

tancd's People

Contributors

jbagleyjr avatar

Stargazers

 avatar  avatar Zack Brown avatar Stephen Ball avatar David Barr avatar Chad Loether avatar  avatar  avatar Benjamin Smith avatar rewgord avatar

Watchers

James Cloos avatar  avatar rewgord avatar Zack Brown avatar

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.