OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

cti-users message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: STIX-Validator: Validate STIX data (http server)


Hi everyone

We just uploaded a new tool for working with STIX 2.x data: STIX-Validator:Âhttps://github.com/StephenOTT/STIX-ValidatorÂ(v0.5.0)

This is a HTTP server that will allow you to validate stix json data as a bundle or individual stix sdo, sro, and data markings.

Found this to be helpful for working with stix data and you want to run some quick validations.

The validation rules will return some robust error messages for you such as:

{
    "result": "invalid",
    "errors": [
        {
            "type": "attack-pattern",
            "id": "attack-pattern--17e6110c-0f51-4d91-8c1c-417d3f886bda",
            "path": "name",
            "value": null,
            "message": "must not be blank"
        },
        {
            "type": "attack-pattern",
            "id": "attack-pattern--17e6110c-0f51-4d91-8c1c-417d3f886bda",
            "path": "customProperties<K>[xx_gats].<map key>",
            "value": "xx_gats",
            "message": "StartsWith violation: string must start with value: x_, but provided value: xx_gats"
        }
    ]
}


You can quickly find where you made a error with the data.

STIX-Validator is uses the STIX-Java (https://github.com/StephenOTT/STIX-Java) library for STIX parsing and validation.

You can quickly test it would with the release:Âhttps://github.com/StephenOTT/STIX-Validator/releases/tag/0.5.0, download the .jar file and run on your local machine as per the Readme:Âhttps://github.com/StephenOTT/STIX-Validator/tree/0.5.0#deploy

Community feedback is always welcome!

Enjoy!






[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]