Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including vcdb-monte-carlo with all npm packages installed. Try it out:

var vcdbMonteCarlo = require("vcdb-monte-carlo")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

vcdb-monte-carlo v1.0.8

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.

VCDB Monte Carlo

This is a monte carlo simulation script written in JavaScript for use with the REST API for verisdb-analyst, a MapReduce tool for the vz-risk/vcdb cybersecurity incident dataset.


Installation is by npm by running:

npm install --save vcdb-monte-carlo


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=""

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.

Comments and Contributions

Please do feel free to submit a pull request or submit an issue with your comments. This package is maintained.


Copyright (c) Steven Walker-Roberts 2017. All rights reserved. MIT license.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free