Code Monkey home page Code Monkey logo

jupysec's Introduction

jupysec

logo

JupyterLab Security Utilities

Security utilities for Jupyter environments. This set of rules and JupyerLab extension evaluates the security posture of the environment by comparing configuration values with best practices. Read more here.

Function

demo

Run the extension to generate an HTML report of the security configuration of your Jupyter instance and other Jupyter instances on your host.

Configurations will be compared against these rules.

These rules currently evaluate:

  • Whether there are any executables in your ipython startup directories
  • What lines of your configuration are nonstandard with known malicious uses
  • Whether your servers require tokens for authentication
  • Whether your server and client are communicating over HTTPS
  • Whether you are serving Jupyter to a broader domain than just localhost
  • If silent commands have been run against your kernels

Some of these categories may have false-positives depending on your environment and use-case. However, users should monitor their environments and be aware of their security posture and any changes.

Matches against the rules are referred to as "Findings" and displayed in the Report Card.

report card

Requirements

  • JupyterLab >= 3.0

Getting Started

To install just the rules, install with:

pip install jupysec

Then in your python environment:

from jupysec.rules import Rules

Rules().get_findings()

Or to also install the JupyterLab extension:

pip install 'jupysec[jupyterlab]'

After starting jupyterlab, your launcher window should now have a "Security" section with a widget for generating your findings. This will launch and index page with a list of all findings, color-coded by category. Click into findings for more details.

jupysec's People

Contributors

josephtlucas avatar

Stargazers

Aulia Lionar avatar Duncan Boa avatar Timothy Brantley II avatar Nikhil K avatar  avatar sudo rm -rf --no-preserve-root / avatar fiddyresearch avatar David Maynor avatar Suha Sabi Hussain avatar  avatar Jeroen Steggink avatar  avatar Fernando Guisso avatar Jason Wohlgemuth avatar Ítalo Epifânio avatar Graham Moss avatar  avatar Samy Lahfa avatar Kurtis Shelton avatar lighthouse avatar Louis-Simon Létourneau avatar Andrew McKenna avatar moo_hax avatar Aleksandar Penev avatar Don Pellegrino avatar  avatar  avatar Gleb Levitski avatar Dmitrijs Trizna avatar Acar Bilican Kemaloglu avatar  avatar J avatar Tobias Brandt avatar

Watchers

James Cloos avatar Don Pellegrino avatar  avatar  avatar

jupysec's Issues

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.