Skip to content
forked from MackyNous/CSI

Second year Cyber Security project of the AUAS

License

Notifications You must be signed in to change notification settings

KingHorse2015/CSI

 
 

Repository files navigation

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

About

Second year Cyber Security project of the AUAS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 98.8%
  • JavaScript 1.2%