A framework for improving the IT-Security of your teams through gamification. It allows teams to self-asses their security level and rewards them with security belts (from yellow through black) and topic specific badges. It also ranks the teams by the amount of aquired skills.
git clone https://github.com/philippnormann/security-belt.git
cd security-beltA mongoDB for storing the progress of the teams is required. The database is automatically seeded once the app is running.
The included docker-compose file can be used to launch a mongoDB and a node container running the belt application. It also mounts the ./data/db folder as a volume for the database.
docker-compose build
docker-compose up
For development purposes a mongoDB container can be started without a volume:
docker run -d --name belt-mongo -p 27017:27017 mongoThis is better suited for development since the app container doesn't have to be rebuilt after every change.
Afterwards you can launch the application:
npm install
npm startOptionally a webpack watcher can be launched in a seperate shell to dynamically recompile the client assets:
npm build:devAll the tests for the application can be executed using the test target:
npm testSB_LOG_LEVELone ofdebug,info(default),warn,errorSB_LOG_FILEif set, will log to the given file (disabled by default)
PORT, defaults to 3000
DB_USERDB_PASSDB_NAMEDB_COLLECTIONDB_HOST
NODE_ENV=production, to enable HTTPS redirect.
A team needs to have a security champion. A person from the team who is interested in security and wants to track the current security status of the team regularly. This person also coordinates the tasks that need to be done, in order to advance.
The team names and security champions are stored in a config file (config/teams.json)
You need to edit this file accordingly.
A valid team file should look like this:
{
"teams": [
{
"name": "Team 1",
"champion": {
"name": "Chuck Norris",
"email": "chuck.norris@example.com"
}
}
]
}All the skills are sorted by colors and written in .yml files. (config/skills)
It helps to organize a workshop with the security chapions, in order to define a set of skills that make sense in your enviroment.
Please complement the skills and send pull requests.
A valid skill file should look like this:
title: A nice title shown in the card
why: Why is this skill useful?
how: How can we reach this goal?
validation: How can we tell we reached the goal?
links:
- Example: https://example.com
- Some link in Confluence: https://confluence/?id=234You can enable badges by adding .yaml files in the folder config/badges.
The badges serve as a further motivation and relate to different skills that have been achieved.
title: Always up to date
description: Your dependencies and software is always up to date.
requiredSkills:
- dependency_checks
- software_updatesTo check if all skills are valid YAML syntax, you can use the included lint target:
npm run lint:yamlGet skill progress for all teams over the last n days
Response:
x: Unix epoch timestamp in secondsy: Total number of completed skills at datex
{
"progress": [
{
"x": 1497435199,
"y": 172
},
{
"x": 1497521599,
"y": 175
},
{
"x": 1497607999,
"y": 194
}
]
}Get skill progress for a specific team over the last n days
Response:
x: Unix epoch timestamp in secondsy: Total number of completed skills at datex
{
"progress": [
{
"x": 1497435199,
"y": 30
},
{
"x": 1497521599,
"y": 34
},
{
"x": 1497607999,
"y": 38
}
]
}Get all teams including their belt and skills
Response:
{
"teams": [
{
"name": "Team Awesome",
"belt": "white",
"skills": [
{
"name": "secure_sauce",
"since": 1498747187
}
],
"skillCount": 1
}
]
}Contributions are always welcome!
Especially the content of the skills should be complemented with your experience.
