A monte carlo simulation using the vcdb cybersecurity incident dataset and the verisdb-analyst analytics application REST API to perform MapReduce on the data. Scripts simulates attack modes to explore possibly attack mode distributions.
npm install vcdb-monte-carlonpm` by running:
`
npm install --save vcdb-monte-carlo
`Usage
To use this tool, ensure that verisdb-analyst is running in the background and simply run the following command:
`
>node monte.js [number of times to run simulation]
`You must ensure that an environment variable VERIS is set for your verisdb-analyst application URL, for example:
`
export VERIS="http://127.0.0.1/"
``If run successfully, data.json will be output to the same directory as monte.js, containing resultant data.
This simulation requires considerable computing power to do quickly, so on a standard personal computer this will be slow.
You should ensure that you edit vcdbFactory.js in the factories folder of verisdb-analyst so that this.bypass = 1.