forked from threatgrid/ctim
/
judgements.cljc
56 lines (52 loc) · 1.58 KB
/
judgements.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
(ns ctim.examples.judgements
(:require [ctim.schemas.common :as c]))
(def judgement-maximal
{:id "http://ex.tld/ctia/judgement/judgement-494d13ae-e914-43f0-883b-085062a8d9a1"
:type "judgement"
:schema_version c/ctim-schema-version
:revision 1
:external_ids ["123" "ABC"]
: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/somewhere-else"
:observable {:type "ip",
:value "10.0.0.1"}
:disposition 1
:disposition_name "Clean"
:priority 99
:confidence "High"
:severity "Medium"
:valid_time {:start_time #inst "2016-02-11T00:40:48.212-00:00"
:end_time #inst "2525-01-01T00:00:00.000-00:00"}
:reason "reason"
:reason_uri "http://example.com/a-really-good-reason"})
(def judgement-minimal
{:id "http://ex.tld/ctia/judgement/judgement-494d13ae-e914-43f0-883b-085062a8d9a1"
:type "judgement"
:schema_version c/ctim-schema-version
:source "source"
:observable {:type "ip",
:value "10.0.0.1"}
:disposition 1
:disposition_name "Clean"
:priority 99
:confidence "High"
:severity "Medium"
:valid_time {}})
(def new-judgement-maximal
judgement-maximal)
(def new-judgement-minimal
{:observable {:type "ip",
:value "10.0.0.1"}
:source "source"
:priority 99
:confidence "High"
:severity "Medium"})