GithubHelp home page GithubHelp logo

parasik72 / gve_devnet_cybervision_securityintegration-automaticgrouping Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gve-sw/gve_devnet_cybervision_securityintegration-automaticgrouping

0.0 0.0 0.0 1.08 MB

License: Other

Python 100.00%

gve_devnet_cybervision_securityintegration-automaticgrouping's Introduction

Cybervision Security and Automated Components Grouping

Contacts

Summary

This python application provides the following features/solution:

  • Task 1. It retrieves domains/public IPs from cyber vision and checks them against Cisco Umbrella (or integrated 3rd party platform) to get their reputation. For any malicious domain or IP detected, an event is pushed to Cyber Vision dashboard to notify the user.

  • Task 2. It auto-groups components. A group here is a logical collection of components that share certain characteristic. When Cisco Cyber Vision is deployed in an environment, it detects the components connected. To reduce the manual work of grouping components, this applications automatically groups ungrouped components according to vendor. A further development of the project could also automatically group components by subnet or tags.

The script can be run on a remote PC or directly on Cyber Vision Center.

Application workflow

Retrieve domains and public IPs, Check Reputation and Push Event on Cyber Vision

  • Retrieve domains and public IPs seen in Cisco Cyber Vision
  • Check the reputation of the above against Cisco Umbrella.
  • if malicious domain/ip is detected, an event is pushed to Cyber Vision dashboard.

Automatically group Components

  • Retrieve all components from Cyber Vision and check for ungrouped components.
  • Group the components based on user's input by vendor.
  • Create and update the group on Cyber Vision dashboard.

Components

  - Cisco Cyber Vision
  - Catalyst Switch(eg, IE3400, 9300) with Cyber Vision sensor deployed for connecting components
  - Cisco Umbrella for domain and IP reputation check
  - 3rd party domain reputation check platform. In this case we have integrated IPQualityScore and WhoisXML API

Prerequisites

  • Cisco Cyber Vision Center deployment
  • If running it on a Remote PC and not on Cyber Vision Center, the remote PC needs to have Python 3.x
  • Active Umbrella subscription with Access to a valid Umrella investigate API key
  • IPQualityScore and WhoisXML API Access

Installation

  • On the env file, fill the following details:

    • Cyber Vision - local_cybervision_ip:port - API Key: x-token-id
    • Umbrella - Investigate API url - Valid investigate API keys
    • For the 3rd party platforms we have used: - IPQualityScore API base url and valid API key - WhoisXML API url and a valid API key
  • Log in to Cyber Vision Center via SSH console.

  • Clone / Copy the code to your desired folder.

  • Install the required libraries:

    • Pip install -r requirements.txt

Operation

Task 1: To Retrieve domains, check their Reputation and Push events to CyberVision:

  • if running the script for the very first time, it is recommended to check all domains/ public IPs. To do that, ensure the PERIOD variable in the env file is empty; PERIOD = {'period':''} and then run the script as below:

  • $ Python3 TASK_1_1.py

    For subsequent checks, you can define the period for which you want to check by setting a period X (in days); PERIOD = {'period':X} in the env file then run:

  • $ Python3 TASK_1_1.py

    To Retrieve public IPs , check their reputation and Push events to CyberVision:

    • Follow the above procedure but now run:

      • $ Python3 TASK_1_2.py in place of TASK_1_1.py

Task 2: To Automatically Group Ungrouped Components

Run the script like this:

  • $ Python3 TASK_2.py

Examples

  • A screenshot of the events after a Malicious domain is found sample events

  • A screenshot of Grooups automatically created and components assigned to them sample groups

LICENSE

Provided under Cisco Sample Code License, for details see LICENSE

CODE_OF_CONDUCT

Our code of conduct is available here

CONTRIBUTING

See our contributing guidelines here

DISCLAIMER:

Please note: This script is meant for demo purposes only. All tools/ scripts in this repo are released for use "AS IS" without any warranties of any kind, including, but not limited to their installation, use, or performance. Any use of these scripts and tools is at your own risk. There is no guarantee that they have been through thorough testing in a comparable environment and we are not responsible for any damage or data loss incurred with their use. You are responsible for reviewing and testing any scripts you run thoroughly before use in any non-testing environment.

gve_devnet_cybervision_securityintegration-automaticgrouping's People

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.