Giter Club home page Giter Club logo

tmds9-scripts's Introduction

Deep Security Scripts

Scripts written in pyhton to execute some actions through the DSM APIs. The goal is to help how to use scripts to make the administration of Deep Security solution even easier.

Dependencies

A unified python SDK for the Trend Micro Deep Security APIs http://trendmicro.com/deepsecurity

https://github.com/deep-security/deep-security-py

Version

1.0

Deep Security Manager Tested Version

9.6

Usage

git clone https://github.com/ari-neto/tmds.git
cd tmds
git submodule update --init 
./ds_script.py

The script will list some informations about the DS Client:

  • Computer_ID
  • Computer Name
  • Recommend Rules
  • Overall Status
  • Overal Version
  • Overall Anti Malware Status
  • Overall Anti Firewall Status
  • Overall Anti IPS Status
  • Overall Web Reputation Status
  • Overall Log Inspection Status

And will execute this actions:

  • clear_alerts_and_warnings
  • send_events

The filter used in the script is to list informatons with DSA 9.x clients, you could use the script to be executed to a specific client to do it you need to change "overall_versio"='9.|8.'" to "name=''.

Change

  for computer_id in mgr.computers.find(overall_version='9.*|8.*'):

to

   for computer_id in mgr.computers.find(name='<computer name>'):

You should to define your credenditals with API Access in the script (ds_script.py line 6), to enable API Access:

hostname=<your DSM IP or DSM FQDN>
username=<DSM Username with API Access>
password=<DSM Username password>

API Support and API Rights

API_Enabled API_Access

tmds9-scripts's People

Contributors

ari-neto avatar

Stargazers

 avatar

Watchers

 avatar  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.