-
Notifications
You must be signed in to change notification settings - Fork 33
/
asset_mappings.cljc
46 lines (40 loc) · 1.92 KB
/
asset_mappings.cljc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
(ns ctim.examples.asset-mappings
(:require [ctim.schemas.common :as c]))
(def asset-mapping-maximal
{:id "http://ex.tld/ctia/asset-mapping/asset-mapping-668d86a2-02c1-499f-b953-5383be954aa6"
:type "asset-mapping"
:schema_version c/ctim-schema-version
:revision 1
:external_ids ["http://ex.tld/ctia/asset-mapping/asset-mapping-636ef2cc-1cb0-47ee-afd4-ecc1fe4be451"]
:source "cisco:unified_connect"
:source_uri "http://example.com/asset-mapping"
:external_references [{:source_name "source"
:external_id "T1061"
:url "https://ex.tld/wiki/T1061"
:hashes ["#section1"]
:description "Description text"}]
:timestamp #inst "2016-02-11T00:40:48.212-00:00"
:language "language"
:tlp "green"
:confidence "High"
:specificity "Unique"
:stability "Managed"
:valid_time {:start_time #inst "2020-01-11T00:40:48.212-00:00"
:end_time #inst "2525-01-01T00:00:00.000-00:00"}
:observable {:type "ip" :value "100.213.110.122"}
:asset_ref "http://ex.tld/ctia/asset/asset-61884b14-e273-4930-a5ff-dcce69207724"
:asset_type "device"})
(def asset-mapping-minimal
{:id "http://ex.tld/ctia/asset-mapping/asset-mapping-668d86a2-02c1-499f-b953-5383be954aa6"
:type "asset-mapping"
:schema_version c/ctim-schema-version
:source "cisco:unified_connect"
:valid_time {}
:observable {:type "ip" :value "100.213.110.122"}
:confidence "High"
:specificity "Unique"
:stability "Managed"
:asset_ref "http://ex.tld/ctia/asset/asset-61884b14-e273-4930-a5ff-dcce69207724"
:asset_type "device"})
(def new-asset-mapping-maximal asset-mapping-maximal)
(def new-asset-mapping-minimal asset-mapping-minimal)