misp-book/misp-object/README.md

47 lines
3.2 KiB
Markdown
Raw Normal View History

2017-11-06 16:40:59 +01:00
<!-- toc -->
## MISP-Objects
[MISP objects](https://github.com/MISP/misp-objects) to be used in MISP (2.4.80) system and can be used by other information sharing tool. MISP objects are in addition to MISP attributes to allow advanced combinations and concatenation of attributes. The creation of these objects and their associated attributes are based on real cyber security use-cases and existing practices in information sharing.
### Using object
Objects can be added by using the side menu:
![This menu allows you to add objects.](figures/add_object.png)
This will open a popup where you can choose the type of object:
![Object Popup](figures/select_obj_cat.png)
2019-02-15 15:56:22 +01:00
If there are only few templates available for this type, they will all be shown this way:
![Object Popup All](figures/select_object1.png)
Otherwise you will be able to search and select the desired object within a scrolling list (a search field is available)
![Object Popup All](figures/select_object2.png)
A description of each object is shown by hovering the info icon or directly besides it.
2017-11-06 16:40:59 +01:00
For this example we will try to add an ip|port object:
![ip|port form](figures/object_ipport.png)
2019-02-15 15:56:22 +01:00
Note: This screenshot displays an old version of the template
2017-11-06 16:40:59 +01:00
For some objects, there might be attributes that required to be set. For instance in this object, there is a required attribute, "Ip", and it is also required to set one of the attributes between "dst-port" and "src-port". If these requirements are not met, the object will not be valid and therefore not added to the event. Also you can't add an object without setting any attribute.
After pressing "Submit, you are given the possibility to review your object before saving it.
![object preview](figures/object_preview.png)
### Creating object
2019-02-15 09:25:48 +01:00
An object is designed using a JSON file which should respect a format described in [this document](https://github.com/MISP/misp-objects/blob/master/schema_objects.json).
2017-11-06 16:40:59 +01:00
2019-02-15 09:25:48 +01:00
An object is basically a combination of two or more attributes that can be used together to represent real cyber security use-cases. These attributes are listed in a JSON object.
2017-11-06 16:40:59 +01:00
2019-02-15 09:25:48 +01:00
Each attribute is an JSON object defined by a name, a description, a misp-attribute and an ui-priority value.
- Name and description are self-explanatory.
- misp-attribute is an existing type of attribute in misp that matches the attribute.
2017-11-06 16:40:59 +01:00
- Concerning ui-priority, the higher the number is, the most it is expected to be seen.
There are also others options that can be added to define an attribute more precisely.
- sane_default is a list of default valid value for this attribute. The user can pick a value from this list or choose "Enter value manually"
2019-02-15 09:25:48 +01:00
- disable_correlation will disable correlation for this value. Useful for dates for instance
2017-11-06 16:40:59 +01:00
- recommended value for this field
2017-11-07 13:56:53 +01:00
- multiple, if set to true, allow the user to add multiple instances of this attribute.
2017-11-06 16:40:59 +01:00
2019-02-15 09:25:48 +01:00
Not all attributes are mandatory, but some can be required. If so, they need to be listed in a list called "required". The object will only be valid if the listed attributes are set.
The same way, there are sometimes when only one attribute in a set is needed. This set can be put in a list called "requiredOneOf". If at least oen of the attributes in this list is set, the object will be valid.