{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import stix_notebook" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
{\n",
       "    "type": "malware",\n",
       "    "spec_version": "2.1",\n",
       "    "id": "malware--2cea45fc-50f6-4f30-af29-38291ff9744c",\n",
       "    "created": "2019-05-01T19:29:50.716Z",\n",
       "    "modified": "2019-05-01T19:29:50.716Z",\n",
       "    "name": "Test",\n",
       "    "malware_types": [\n",
       "        "trojan",\n",
       "        "ransomware"\n",
       "    ]\n",
       "}\n",
       "{\n",
       "    "type": "indicator",\n",
       "    "spec_version": "2.1",\n",
       "    "id": "indicator--f4f021b1-eb41-4cb5-863a-0a808f3d453f",\n",
       "    "created": "2019-05-01T19:29:50.718Z",\n",
       "    "modified": "2019-05-01T19:29:50.718Z",\n",
       "    "indicator_types": [\n",
       "        "Type i",\n",
       "        "Type ii"\n",
       "    ],\n",
       "    "pattern": "[foo:bar=1]",\n",
       "    "valid_from": "2019-05-01T19:29:50.71854Z"\n",
       "}\n",
       "{\n",
       "    "type": "relationship",\n",
       "    "spec_version": "2.1",\n",
       "    "id": "relationship--df91ae64-f8b3-488d-be9a-27a192acd62f",\n",
       "    "created": "2019-05-01T19:29:50.741Z",\n",
       "    "modified": "2019-05-01T19:29:50.741Z",\n",
       "    "relationship_type": "indicates",\n",
       "    "source_ref": "malware--2cea45fc-50f6-4f30-af29-38291ff9744c",\n",
       "    "target_ref": "indicator--f4f021b1-eb41-4cb5-863a-0a808f3d453f"\n",
       "}\n",
       "
\n" ], "text/plain": [ "" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "%%stix\n", "Malware indicates Indicator." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.3" } }, "nbformat": 4, "nbformat_minor": 2 }