Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse error from json2veris #27

Open
hukuzatuna opened this issue May 30, 2022 · 2 comments
Open

Parse error from json2veris #27

hukuzatuna opened this issue May 30, 2022 · 2 comments

Comments

@hukuzatuna
Copy link

I'm working through the examples from Data Driven Security, and have also cloned the repo. I am getting an error from json2veris as shown in the screenshot:

Screen Shot 2022-05-30 at 10 29 04

The command I use is vcdb <- json2veris("/Volumes/prm/DataDrivenSecurity/verisr-master/data")

The R package was installed today (30 May 2022 10:00) from the GitiHub repo.

I read the other issues and didn't see anything that replicated this. If you need me to do more debugging, just let me know!

@GlenmaelA
Copy link

Try this, I found that you need to specify the schema manually and also call both the idustry2 and 2021_pattern_models:

library(devtools)
install.packages("readr")
install.packages("skmeans")
install_github("vz-risk/verisr")
library(verisr)

jsondir <- "./data/vcdb/"
data('industry2', package='verisr')
data('2021_pattern_models', package='verisr')
##Specify the schema manually and download from https://github.com/vz-risk/VCDB/blob/master/vcdb-merged.json
vcdb <- json2veris(jsondir, schema="./vcdb/vcdb-merged1.3.6.json")  

@gdbassett
Copy link

REcommend using jay jacobs' verisr (https://github.com/jayjacobs/verisr) as it's been static since about when the book was written. The one thing missing is veris2matrix(). it's in the /r/1.0/ directory of the repository but not exported by the function. Something I think Jay is looking into.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants