diff --git a/docs/guide/creating.ipynb b/docs/guide/creating.ipynb index b1f92a8..5be60ed 100644 --- a/docs/guide/creating.ipynb +++ b/docs/guide/creating.ipynb @@ -144,12 +144,12 @@ ".highlight .vm { color: #19177C } /* Name.Variable.Magic */\n", ".highlight .il { color: #666666 } /* Literal.Number.Integer.Long */
{\n",
        "    "type": "indicator",\n",
-       "    "id": "indicator--7e5fa3b3-dffd-4c57-a655-02b1c78539be",\n",
-       "    "created": "2019-05-10T15:28:49.358Z",\n",
-       "    "modified": "2019-05-10T15:28:49.358Z",\n",
+       "    "id": "indicator--dd10c6df-572f-4494-97c4-245af992a0fe",\n",
+       "    "created": "2019-05-10T16:25:11.193Z",\n",
+       "    "modified": "2019-05-10T16:25:11.193Z",\n",
        "    "name": "File hash for malware variant",\n",
        "    "pattern": "[file:hashes.md5 = 'd41d8cd98f00b204e9800998ecf8427e']",\n",
-       "    "valid_from": "2019-05-10T15:28:49.358947Z",\n",
+       "    "valid_from": "2019-05-10T16:25:11.193329Z",\n",
        "    "labels": [\n",
        "        "malicious-activity"\n",
        "    ]\n",
@@ -465,9 +465,9 @@
        ".highlight .vm { color: #19177C } /* Name.Variable.Magic */\n",
        ".highlight .il { color: #666666 } /* Literal.Number.Integer.Long */
{\n",
        "    "type": "malware",\n",
-       "    "id": "malware--1b5d97a8-c4a6-4032-b6f4-a5e741036946",\n",
-       "    "created": "2019-05-10T15:29:37.208Z",\n",
-       "    "modified": "2019-05-10T15:29:37.208Z",\n",
+       "    "id": "malware--fbfbe336-cc8d-4b2e-8c87-567ed1bef476",\n",
+       "    "created": "2019-05-10T16:25:29.127Z",\n",
+       "    "modified": "2019-05-10T16:25:29.127Z",\n",
        "    "name": "Poison Ivy",\n",
        "    "labels": [\n",
        "        "remote-access-trojan"\n",
@@ -588,12 +588,12 @@
        ".highlight .vm { color: #19177C } /* Name.Variable.Magic */\n",
        ".highlight .il { color: #666666 } /* Literal.Number.Integer.Long */
{\n",
        "    "type": "relationship",\n",
-       "    "id": "relationship--aa324701-26d1-447e-b369-1347fb138f44",\n",
-       "    "created": "2019-05-10T15:29:44.848Z",\n",
-       "    "modified": "2019-05-10T15:29:44.848Z",\n",
+       "    "id": "relationship--33be944d-2d23-4f73-b254-988cb7fbd2d5",\n",
+       "    "created": "2019-05-10T16:25:32.644Z",\n",
+       "    "modified": "2019-05-10T16:25:32.644Z",\n",
        "    "relationship_type": "indicates",\n",
-       "    "source_ref": "indicator--7e5fa3b3-dffd-4c57-a655-02b1c78539be",\n",
-       "    "target_ref": "malware--1b5d97a8-c4a6-4032-b6f4-a5e741036946"\n",
+       "    "source_ref": "indicator--dd10c6df-572f-4494-97c4-245af992a0fe",\n",
+       "    "target_ref": "malware--fbfbe336-cc8d-4b2e-8c87-567ed1bef476"\n",
        "}\n",
        "
\n" ], @@ -700,12 +700,12 @@ ".highlight .vm { color: #19177C } /* Name.Variable.Magic */\n", ".highlight .il { color: #666666 } /* Literal.Number.Integer.Long */
{\n",
        "    "type": "relationship",\n",
-       "    "id": "relationship--de00dd44-7685-46b5-bf01-04003a2ee496",\n",
-       "    "created": "2019-05-10T15:29:47.422Z",\n",
-       "    "modified": "2019-05-10T15:29:47.422Z",\n",
+       "    "id": "relationship--d0d3ff20-d0f4-4807-b4dd-692724801ce3",\n",
+       "    "created": "2019-05-10T16:25:34.989Z",\n",
+       "    "modified": "2019-05-10T16:25:34.989Z",\n",
        "    "relationship_type": "indicates",\n",
-       "    "source_ref": "indicator--7e5fa3b3-dffd-4c57-a655-02b1c78539be",\n",
-       "    "target_ref": "malware--1b5d97a8-c4a6-4032-b6f4-a5e741036946"\n",
+       "    "source_ref": "indicator--dd10c6df-572f-4494-97c4-245af992a0fe",\n",
+       "    "target_ref": "malware--fbfbe336-cc8d-4b2e-8c87-567ed1bef476"\n",
        "}\n",
        "
\n" ], @@ -810,26 +810,26 @@ ".highlight .vm { color: #19177C } /* Name.Variable.Magic */\n", ".highlight .il { color: #666666 } /* Literal.Number.Integer.Long */
{\n",
        "    "type": "bundle",\n",
-       "    "id": "bundle--026ce7aa-1a14-4dc3-8dd3-8c2cd4eeaa66",\n",
+       "    "id": "bundle--feaf8f9f-3342-4613-954b-ae22235f8d0b",\n",
        "    "spec_version": "2.0",\n",
        "    "objects": [\n",
        "        {\n",
        "            "type": "indicator",\n",
-       "            "id": "indicator--7e5fa3b3-dffd-4c57-a655-02b1c78539be",\n",
-       "            "created": "2019-05-10T15:28:49.358Z",\n",
-       "            "modified": "2019-05-10T15:28:49.358Z",\n",
+       "            "id": "indicator--dd10c6df-572f-4494-97c4-245af992a0fe",\n",
+       "            "created": "2019-05-10T16:25:11.193Z",\n",
+       "            "modified": "2019-05-10T16:25:11.193Z",\n",
        "            "name": "File hash for malware variant",\n",
        "            "pattern": "[file:hashes.md5 = 'd41d8cd98f00b204e9800998ecf8427e']",\n",
-       "            "valid_from": "2019-05-10T15:28:49.358947Z",\n",
+       "            "valid_from": "2019-05-10T16:25:11.193329Z",\n",
        "            "labels": [\n",
        "                "malicious-activity"\n",
        "            ]\n",
        "        },\n",
        "        {\n",
        "            "type": "malware",\n",
-       "            "id": "malware--1b5d97a8-c4a6-4032-b6f4-a5e741036946",\n",
-       "            "created": "2019-05-10T15:29:37.208Z",\n",
-       "            "modified": "2019-05-10T15:29:37.208Z",\n",
+       "            "id": "malware--fbfbe336-cc8d-4b2e-8c87-567ed1bef476",\n",
+       "            "created": "2019-05-10T16:25:29.127Z",\n",
+       "            "modified": "2019-05-10T16:25:29.127Z",\n",
        "            "name": "Poison Ivy",\n",
        "            "labels": [\n",
        "                "remote-access-trojan"\n",
@@ -837,12 +837,12 @@
        "        },\n",
        "        {\n",
        "            "type": "relationship",\n",
-       "            "id": "relationship--aa324701-26d1-447e-b369-1347fb138f44",\n",
-       "            "created": "2019-05-10T15:29:44.848Z",\n",
-       "            "modified": "2019-05-10T15:29:44.848Z",\n",
+       "            "id": "relationship--33be944d-2d23-4f73-b254-988cb7fbd2d5",\n",
+       "            "created": "2019-05-10T16:25:32.644Z",\n",
+       "            "modified": "2019-05-10T16:25:32.644Z",\n",
        "            "relationship_type": "indicates",\n",
-       "            "source_ref": "indicator--7e5fa3b3-dffd-4c57-a655-02b1c78539be",\n",
-       "            "target_ref": "malware--1b5d97a8-c4a6-4032-b6f4-a5e741036946"\n",
+       "            "source_ref": "indicator--dd10c6df-572f-4494-97c4-245af992a0fe",\n",
+       "            "target_ref": "malware--fbfbe336-cc8d-4b2e-8c87-567ed1bef476"\n",
        "        }\n",
        "    ]\n",
        "}\n",
@@ -997,9 +997,99 @@
   },
   {
    "cell_type": "code",
-   "execution_count": null,
+   "execution_count": 17,
    "metadata": {},
-   "outputs": [],
+   "outputs": [
+    {
+     "data": {
+      "text/html": [
+       "
{\n",
+       "    "type": "ipv4-addr",\n",
+       "    "value": "177.60.40.7",\n",
+       "    "resolves_to_refs": [\n",
+       "        "1",\n",
+       "        "2"\n",
+       "    ]\n",
+       "}\n",
+       "
\n" + ], + "text/plain": [ + "" + ] + }, + "execution_count": 17, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "from stix2 import MACAddress\n", "\n",