-
Notifications
You must be signed in to change notification settings - Fork 33
/
actors.cljc
63 lines (59 loc) · 2.18 KB
/
actors.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
(ns ctim.examples.actors
(:require [ctim.schemas.common :as c]))
(def actor-maximal
{:id "http://ex.tld/ctia/actor/actor-5023697b-3857-4652-9b53-ccda297f9c3e"
:type "actor"
:schema_version c/ctim-schema-version
:revision 1
:external_ids ["http://ex.tld/ctia/actor/actor-5023697b-3857-4652-9b53-ccda297f9c3e"
"http://ex.tld/ctia/actor/actor-9a2860bf-e239-4355-aa7a-2ef3f9921961"]
: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"
:actor_types ["Hacker"],
:confidence "High",
:source "a source"
:source_uri "http://example.com/somewhere-else"
:title "title"
:description "description"
:short_description "short description"
:identity {:description "identity"
:related_identities [{:identity "http://example.com/1"
:confidence "Low"
:information_source "somewhere"
:relationship "rel"}
{:identity "http://example.com/2"
:confidence "High"
:information_source "nowhere"
:relationship "rel"}]}
:motivation "Ego"
:sophistication "Innovator"
:intended_effect "Fraud"
:planning_and_operational_support "foo"
:valid_time {:start_time #inst "2016-02-11T00:40:48.212-00:00"
:end_time #inst "2016-07-11T00:40:48.212-00:00"}
:tlp "green"
:aliases ["alias 1" "alias 2"]})
(def actor-minimal
{:id "http://ex.tld/ctia/actor/actor-5023697b-3857-4652-9b53-ccda297f9c3e"
:type "actor"
:schema_version c/ctim-schema-version
:title "title"
:description "description"
:short_description "short description"
:confidence "High"
:source "a source"
:valid_time {}})
(def new-actor-maximal
actor-maximal)
(def new-actor-minimal
{:title "title"
:description "description"
:short_description "short description"
:confidence "High"
:source "a source"})