Giter Site home page Giter Site logo

duplicate_exclusions_list's Introduction

Setup

Update your .env file with CLIENT_ID and API_KEY for SecureX from here: https://developer.cisco.com/docs/secure-endpoint/#!authentication/3-generate-securex-api-access-token

NOTE: The Event:Read scope is required for this script to function.

Also add CLOUD = (NAM, EU, APJC)

Example .env:

CLIENT_ID="client-abcde"
API_KEY="supersecretapikey"
CLOUD="NAM"

Requirements

Python version 3.5+

Go through the Authentication instructions for SecureX to integrate Secure Endpoint and create an API Client.

NOTE: The Secure Endpoints integration API key requires a read/write scope for this script to function.

Install python requirements:

pip install requests
pip install python-dotenv

Limitations

Current API calls prevent duplicating Threat type exclusions. If you have any of those in your exclusions list, you will need to manually duplicate those exclusions.

Usage

When you first run the script you'll get authenticated and then presented with a list of organizations you belong to.

Which organization would you like to list exclusions from?
[1] - Org 1
[2] - Org 2
[3] - Org 3
Input a number listed above:

Choose a number from the list and you'll be presented with a list of exclusion sets for that organization and an option to export all lists.

Which exclusion set would you like to duplicate?
[1] - List
[2] - Another list
[3] - Yet Another list
[4] - Oh Look another list
Input a number listed above:

Next you will see output regarding the progress of the exclusion list duplication.

Created new exclusion set. Another list - Copy
Added ioc exclusion to exclusion set.
Added fileExtension exclusion to exclusion set.
Added process exclusion to exclusion set.
Added process exclusion to exclusion set.
Added process exclusion to exclusion set.
Added process exclusion to exclusion set.
Added process exclusion to exclusion set.
Added process exclusion to exclusion set.
Added path exclusion to exclusion set.
Added path exclusion to exclusion set.
Added path exclusion to exclusion set.
Added process exclusion to exclusion set.
Added process exclusion to exclusion set.
Added executable exclusion to exclusion set.
Duplication process Completed.

duplicate_exclusions_list's People

Contributors

mafranks avatar

Watchers

 avatar

duplicate_exclusions_list's Issues

Change env to have CLOUD options

CLIENT_ID = ""
API_KEY = ""

# If you're using NAM cloud, uncomment the following line.
#CLOUD = "NAM"

# If you're using EU cloud, uncomment the following line.
#CLOUD = "EU"

# If you're using APJC cloud, uncomment the following line.
#CLOUD = "APJC 

Add a total count at the end of processing

To show how many exclusions were processed to the new list, add a count at the end like this:

Total Exclusions Processed: 71
Process: 52
Path: 12
Executable: 2
File Extension: 3
IOC: 2
Threat: 0

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.