Coder Social home page Coder Social logo

csi's Introduction

Cybersecurity Services Infrastructure (CSI) Build Status

CSI is a distributed (service-oriented) infrastructure intended solely for educational purposes (and should never be used in a production environment).

At the core is a generic REST server that accepts server specifications, which are then executed to start what we call subservers. IMPORTANT NOTE: this server accepts and executes executable JavaScipt code. This approach is suitable in our context of education, but should never be used in a production environment.

The file launcher.js launches a number of services, including

  • YellowPages: a subscription service where services can find eachother
    • provide: here, a server describes a service that it offers.
    • require: here, a server describes all services that it needs.
      For each required service, the requestor will receive a /fulfill message describing
      a provider (either immediately or as soon as the service is 'provided')
  • IDManager: a service persisting user names and hashed passwords
    • verify: check if the offered credentials are bona fide
  • AccessManager: a service which checks access rights/roles
    • verify: checks if a user has the required right/role
  • Login: allows users to log in on HTML pages
    • keyexchange: create secure communication (shared secret)
    • login: secure login

Getting Started [local] node (tag)

See generic info on cloning a github repo

Prerequisites

Recent node.js, see nodejs.org

e.g. download Win msi, Mac pkg or tarball

modules

NPM NPM NPM

Van Nick

Two Factor Authentication is at the moment only in demo phase, to run the demo, launch app.js with node.js en go to http://localhost:3000

Installing

install npm and run the script (debian as an example):

$ sudo apt install npm
$ npm install 
$ npm start

Last step is to visit jsoneditor.html and press login

(currently jsoneditor has dummy data and doesn't do much

Getting Started [Docker] Docker Automated build

First we need to install docker to run everything:

For Debian based systems:

sudo apt install docker

# Start docker
sudo systemctl start docker

# Test if docker works correctly
sudo docker run hello-world

For Arch based systems:

sudo pacman -Syu
sudo pacman -S docker

# Start docker
sudo systemctl start docker

# Test if docker works correctly
sudo docker run hello-world

For centOS based systems:

$ sudo yum install -y yum-utils \
  device-mapper-persistent-data \
  lvm2
  
$ sudo yum-config-manager \
    --add-repo \
    https://download.docker.com/linux/centos/docker-ce.repo
    
$ sudo yum install docker-ce

$ sudo systemctl start docker

# Test if docker works
$ sudo docker run hello-world

Authors

See also the list of contributors who participated in this project.

License MIT license

This project is licensed under the MIT License.
Copyright (c) 2018 Pum Walters, HvA

To see the full licence see the file calles: 'LICENSE'

Acknowledgements

Professors

  • Pum Walters
  • James Watson

Students

Technotes

Messages

jsoneditor
	#login:
		=> keyexchange(sessionID, pubsecr, halfsecr)
		  <= (halfsecret)//sharedsecret
	#connect
		=> login(uname, pw)
		  <= sessionToken
yp
	=> provides(desc)
	=> require([ip], port, srvcs)
idMngr
	=> verify(sid, name, pw)
		<= OK/KO
accessMngr
	=> verify(name, right)
		<= OK/KO
login
	=> fulfill(port, srvc, ...)
	=> keyExchange(sessionID, pubSecr, halfSecr)
	  <= halfSecr
	~=> login(pw, uname)
		=> ID-Mngr
			+=> verify/uname{pw)
	<= token

csi's People

Contributors

mackynous avatar admin-hva-cybersec avatar kinghorse2015 avatar pumpapa avatar

Watchers

 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.