GithubHelp home page GithubHelp logo

dadokkio / cortexresponder_duouseraccount Goto Github PK

View Code? Open in Web Editor NEW

This project forked from p0nt05/cortexresponder_duouseraccount

0.0 0.0 0.0 26.68 MB

Rep. for the Cortex Responder (TheHive project) to Lock/Unlock User Accounts in the Duo Admin Portal (Cisco Security)

License: GNU General Public License v3.0

Python 100.00%

cortexresponder_duouseraccount's Introduction

CortexResponder_DuoUserAccount

Rep. for Cortex Responder (TheHive project - https://github.com/TheHive-Project/CortexDocs) to Lock/Unlock User Accounts in the Duo Admin Portal (Cisco Security)

There are two Responder available in order to change the status of a User in Duo Security via the AdminAPI (https://duo.com/docs/adminapi)

DuoLockUserAccount -> changes the "status" to “disabled” - The user will not be able to log in.

DuoUnlockUserAccount -> changes the "status" to “active” - The user must complete secondary authentication.

The Responder is looking for a "username" as input and queries the Duo Admin API, to receive the associated UserID. The UserID is used to change the "status" of the particular user.

How to install:

  • copy the folders "DuoLockUserAccount" & "DuoUnlockUserAccount" into your Cortex responders path
  • install necessary python modules from the requirements.txt (pip install -r requirements.txt)
  • restart Cortex to initialize the new Responder "systemctl restart cortex"
  • add the ResponderConfig
  • ResponderConfig
  • enable the Responder Actions
  • Responders

Add Observable type in TheHive**

  • per default TheHive has no "username" Observable type, so we have to add this in the Admin settings
  • AddObservableType

Run the Responder action in TheHive

If you have add an observable, you can now take action and lock/unlock the User in Duo Security

  • Demo_Lock-Unlock_DuoUser

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.