-
Notifications
You must be signed in to change notification settings - Fork 33
/
identity_assertions.cljc
41 lines (37 loc) · 1.78 KB
/
identity_assertions.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
(ns ctim.examples.identity-assertions
(:require [ctim.schemas.common :as c]))
(def identity-assertion-maximal
{:id "http://ex.tld/ctia/identity-assertion/identity-assertion-eb965192-9f85-4bc8-baa2-0766f9f63db3"
:type "identity-assertion"
:schema_version c/ctim-schema-version
:revision 1
:external_ids ["http://ex.tld/ctia/identity-assertion/identity-assertion-5023697b-3857-4652-9b53-ccda297f9c3e"
"http://ex.tld/ctia/identity-assertion/identity-assertion-82f9b9b3-0aa4-4676-8254-02deef8aa8ef"]
:external_references
[{:source_name "source"
:external_id "T1067"
:url "https://ex.tld/wiki/T1067"
:hashes ["#section1"]
:description "Description text"}]
:timestamp #inst "2016-02-11T00:40:48.212-00:00"
:language "language"
:tlp "green"
:source "source"
:source_uri "http://example.com"
:identity {:observables [{:type "amp_computer_guid" :value "68e94bf7-e239-4821-90d6-b7eaa0233443"}
{:type "ip" :value "1.2.3.4"}]}
:assertions [{:name "cisco:ctr:device:security_group" :value "employees"}
{:name "cisco:ctr:device:connector_version" :value "1.12.0 Mac Connector"}]
:valid_time {:start_time #inst "2020-01-11T00:40:48.212-00:00"
:end_time #inst "2525-01-01T00:00:00.000-00:00"}})
(def identity-assertion-minimal
{:id "http://ex.tld/ctia/identity-assertion/identity-assertion-eb965192-9f85-4bc8-baa2-0766f9f63db3"
:type "identity-assertion"
:schema_version c/ctim-schema-version
:identity {:observables [{:type "ip" :value "100.213.110.122"}]}
:assertions [{:name "cisco:ctr:device:id"
:value "00-00-00-01"}]})
(def new-identity-assertion-maximal
identity-assertion-maximal)
(def new-identity-assertion-minimal
identity-assertion-minimal)