Skip to content

Parser that takes the OSSEM data model as input and generates a YAML file as output

License

Notifications You must be signed in to change notification settings

westwardai/OSSEM_Parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OSSEM_Parser

Parser that takes the OSSEM data model as input and generates a YAML file as output.

Usage:

Generate initial data set:
python3 ossem_parser.py --ossem ../<path-to-ossem> --output yaml
Supported output formats are python, yaml, xml, and json.

Extract a subset of data. For example, just sysmon events:
python3 ossem_parser.py --ossem ../OSSEM --subset data_dictionaries.windows.sysmon

Some use cases:

Write all sysmon events to their own json files:

from data.ossem import ossem
import json
sysmon_events = ossem['OSSEM']['data_dictionaries']['windows']['sysmon']
sysmon_events = {key: sysmon_events[key] for key in sysmon_events.keys() if key.isnumeric()}
for event in sysmon_events:
    with open("event-{}.json".format(event), 'w') as fh:
        fh.write(json.dumps(sysmon_events[event]))

About

Parser that takes the OSSEM data model as input and generates a YAML file as output

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages