CACAO Playbooks 103: Integrations

TutorialsCacao

If you are reading this blog post via a 3rd party source it is very likely that many parts of it will not render correctly. Please view the post on signalscorps.com for the full interactive viewing experience. In this post I will look at integrating CACAO playbooks into other products (MISP) and other standards (STIX 2.1).

The CACAO playbook specification is still in draft state. As such, adoption by vendor (and thus ultimately end users) is very low at the time of writing.

However, CACAO is designed to be easily integrated into existing tooling, following many existing playbook concepts.

In fact some tooling is already supporting CACAO playbooks, most notably, MISP as MISP Security Playbook objects.

CACAO -> MISP Security Playbook

The playbook-file property in MISP Security Playbook objects can be used to encompass an entire playbook file/document in its native format (for example, a MISP Security Playbook could contain an entire CACAO JSON).

By creating a MISP Security Playbook from a CACAO playbooks makes it much easier to share and collaborate on them using the ever-popular MISP as the distribution tool.

What makes it even easier it that many of the properties of CACAO Playbooks map directly to MISP Security Playbook object attributes.

In order to automate the entire flow of creating a MISP Security Playbook from a CACAO playbook I have devised the following mappings (note fields in <> are from the CACAO playbook properties);

Although MISP is a popular tool, it is built on its own concepts (which are comprehensive, but as a result can often lead you confused — well, me anyway).

Seeing as most of the work we do at Signals Corps is built on the STIX 2.1, I decided to take a look at the compatibility of STIX and CACAO (they’re both maintained after OASIS after all).

STIX 2.1 and CACAO

For those familiar with STIX, the structure and properties of CACAO Playbooks are very similar, and in some time identical, to STIX (both are managed by OASIS).

The benefit of STIX is that it’s a standard that is widely adopted (including by MISP) for describing threat intelligence. One of these descriptive objects (STIX Domain Objects), Course of Action Objects;

A Course of Action is an action taken either to prevent an attack or to respond to an attack that is in progress.

A CACAO Playbook could, in my mind, be considered a course of action as defined above.

However, the standard STIX 2.1 Course of Action Object properties do not sufficiently provide the ability to fully map a CACAO playbook.

Though I an not the only one with this line of thinking. The team at Fovea Research have already extended the STIX 2.1 Course of Action Object to support CACAO.

If you are unfamiliar with extending STIX 2.1 Objects using extension definitions I recommend reading my post; STIX 2.1 104: Customisation.

Fovea Research have built a STIX 2.1 extension-definition Object that defines how CACAO Playbooks can be nested inside STIX 2.1 Course of Action Objects using an extension definition.

Here is an example of a STIX 2.1 Course of Action Object with a CACAO Playbook embedded;

You can see the entire CACAO Playbook JSON (base64 encoded) under the playbook_bin property embedded under the extension-definition--1e1c1bd7-c527-4215-8e18-e199e74da57c - in the example above I've only encoded the first few lines of a playbook so it isn't too long for this page.

In attempt to automate the creation of the Course of Action object with the extension definition from CACAO playbooks I came up with the following CACAO playbooks -> STIX Course of Action with extension-definition--1e1c1bd7-c527-4215-8e18-e199e74da57c properties (note fields in <> are from CACAO playbooks);

It doesn’t matter that all the CACAO playbook property values are not mapped to the STIX Course of Action Object, as they are all still available by decoding the entire playbook in the playbook_bin property.

By embedding the CACAO playbook into the STIX Course of Action Object the other contextual information around the playbook itself can also be easily access and understood (e.g. relationships to other STIX 2.1 Objects).

I’ve seen this used particularly well for detection playbooks, where the intelligence about the threat is mapped in STIX, and the CACAO Playbook added to the knowledge graph as a STIX 2.1 Course of actions.

There are a heap of other benefits into writing CACAO playbooks into STIX Course of Action Objects;

  • lots of tooling already understands STIX 2.1
  • these tools can be used to collaborate and share STIX 2.1 Object without any customisation
  • lots of threat intelligence is now stored exclusively as STIX 2.1

STIX 2.1 Course of Action -> MISP Security Playbook

During my research I discovered FOVEA had also been looking into mapping their Course of Action extension definition properties into MISP Objects.

STIX 2.1 Course of Action Objects (without the CACAO extension definition) have long been mapped by MISP Course of Action Objects (in the misp-stix library) which provides a good starting point.

However STIX 2.1 Course of Action Objects with the CACAO extension definition, the team at the Fovea needed to, and have, conducted a similar exercise mapping them to MISP Security Playbook objects.

Here is how the STIX 2.1 Course of Action Objects with the CACAO extension definition can be mapped to MISP Security Playbook Object Attributes (note fields in <> are from the STIX 2.1 Course of Action Properties);

By modelling CACAO Playbooks as STIX Objects and/or MISP Objects, the ease of sharing is massively increased (and will hopefully lead to wider adoption).

Note, the difference between this approach (STIX -> MISP) and the first (CACAO -> MISP) is subtle. If I had to choose, I’d take the STIX approach as STIX is more widely adopted right now (should the consumer want to go back to the original source object). You might wanted to use a mix of the two mappings. I’m just hear to spark your imagination!

That said, a few years ago (2019) a lot of big name companies got behind CACAO, although in the intervening years it seems none have delivered a productised offering around CACAO, sadly.

To me it comes down to lack of CACAO playbook content…

Next up: Getting hands on

In the next post in this tutorial I will help you practice what I’m preaching.

For that I will take some examples of existing playbooks and convert them into CACAO format.

CACAO Certification (Virtual and In Person)

The content used in this post is a small subset of our full training material used in our CACAO training.

If you want to join a select group of certified CACAO professionals, subscribe to our newsletter below to be notified of new course dates.

Similar Posts You Will Enjoy Reading…

Originally published at https://www.signalscorps.com on November 28, 2022.

--

--

I help early stage cyber-security companies to build products that make users go; “Wow! That’s what I need!”. https://www.himynamesdave.com/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
David G

I help early stage cyber-security companies to build products that make users go; “Wow! That’s what I need!”. https://www.himynamesdave.com/