forked from threatgrid/ctim
/
tools.cljc
47 lines (43 loc) · 1.63 KB
/
tools.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
(ns ctim.examples.tools
(:require [ctim.schemas.common :as c]))
(def tool-maximal
{:id "http://ex.tld/ctia/tool/tool-0663cefa-c8f0-48c2-aefd-e9fbf84551ce"
:type "tool"
:schema_version c/ctim-schema-version
:revision 1
:external_ids ["http://ex.tld/ctia/tool/cisco-tool-0663cefa-c8f0-48c2-aefd-e9fbf84551ce"
"http://ex.tld/ctia/tool/mitre-tool--bba595da-b73a-4354-aa6c-224d4de7cb4e"]
:external_references
[{:source_name "TechNet Dir"
:external_id "S0004"
:url "https://technet.microsoft.com/en-us/library/cc755121.aspx"
:description "Microsoft. (n.d.). Dir. Retrieved April 18, 2016."
:hashes ["#section1"]}]
:timestamp #inst "2016-05-11T00:40:48.212-00:00"
:language "language"
:tlp "green"
:source "source"
:source_uri "http://example.com"
:title "cmd"
:labels ["tool"]
:description "cmd is the Windows command-line interpreter"
:short_description "Windows command-line interpreter"
:kill_chain_phases [{:kill_chain_name "mitre-attack"
:phase_name "persistence"}]
:tool_version "2.5.3"
:x_mitre_aliases ["cmd.exe"]})
(def tool-minimal
{:id "http://ex.tld/ctia/tool/tool-0663cefa-c8f0-48c2-aefd-e9fbf84551ce"
:type "tool"
:schema_version c/ctim-schema-version
:title "cmd"
:description "cmd is the Windows command-line interpreter"
:short_description "Windows command-line interpreter"
:labels ["tool"]})
(def new-tool-maximal
tool-maximal)
(def new-tool-minimal
{:title "cmd"
:description "cmd is the Windows command-line interpreter"
:short_description "Windows command-line interpreter"
:labels ["tool"]})