ruby-stix2 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github/workflows/build.yml +31 -0
- data/.gitignore +56 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +43 -0
- data/LICENSE +339 -0
- data/README.md +116 -0
- data/Rakefile +8 -0
- data/lib/stix2/boolean.rb +18 -0
- data/lib/stix2/bundle.rb +7 -0
- data/lib/stix2/common.rb +62 -0
- data/lib/stix2/cyberobservable_objects/artifact.rb +12 -0
- data/lib/stix2/cyberobservable_objects/autonomous_system.rb +9 -0
- data/lib/stix2/cyberobservable_objects/base.rb +6 -0
- data/lib/stix2/cyberobservable_objects/directory.rb +12 -0
- data/lib/stix2/cyberobservable_objects/domain_name.rb +8 -0
- data/lib/stix2/cyberobservable_objects/email_addr.rb +9 -0
- data/lib/stix2/cyberobservable_objects/email_message.rb +21 -0
- data/lib/stix2/cyberobservable_objects/email_mime_part_type.rb +10 -0
- data/lib/stix2/cyberobservable_objects/file.rb +18 -0
- data/lib/stix2/cyberobservable_objects/ipv4_addr.rb +11 -0
- data/lib/stix2/cyberobservable_objects/ipv6_addr.rb +11 -0
- data/lib/stix2/cyberobservable_objects/mac_addr.rb +7 -0
- data/lib/stix2/cyberobservable_objects/mutex.rb +7 -0
- data/lib/stix2/cyberobservable_objects/network_traffic.rb +23 -0
- data/lib/stix2/cyberobservable_objects/software.rb +12 -0
- data/lib/stix2/cyberobservable_objects/url.rb +7 -0
- data/lib/stix2/cyberobservable_objects/user_account.rb +20 -0
- data/lib/stix2/cyberobservable_objects/windows_registry_key.rb +11 -0
- data/lib/stix2/cyberobservable_objects/windows_registry_value.rb +9 -0
- data/lib/stix2/cyberobservable_objects/x509_certificate.rb +19 -0
- data/lib/stix2/cyberobservable_objects/x509_v3_extension_type.rb +22 -0
- data/lib/stix2/domain_objects/attack_pattern.rb +12 -0
- data/lib/stix2/domain_objects/base.rb +6 -0
- data/lib/stix2/domain_objects/campaign.rb +12 -0
- data/lib/stix2/domain_objects/course_of_action.rb +9 -0
- data/lib/stix2/domain_objects/grouping.rb +10 -0
- data/lib/stix2/domain_objects/identity.rb +12 -0
- data/lib/stix2/domain_objects/indicator.rb +15 -0
- data/lib/stix2/domain_objects/infrastructure.rb +13 -0
- data/lib/stix2/domain_objects/intrusion-set.rb +15 -0
- data/lib/stix2/domain_objects/location.rb +17 -0
- data/lib/stix2/domain_objects/malware.rb +19 -0
- data/lib/stix2/domain_objects/malware_analysis.rb +22 -0
- data/lib/stix2/domain_objects/note.rb +10 -0
- data/lib/stix2/domain_objects/observed_data.rb +11 -0
- data/lib/stix2/domain_objects/opinion.rb +10 -0
- data/lib/stix2/domain_objects/report.rb +11 -0
- data/lib/stix2/domain_objects/threat_actor.rb +19 -0
- data/lib/stix2/domain_objects/tool.rb +12 -0
- data/lib/stix2/domain_objects/vulnerability.rb +8 -0
- data/lib/stix2/enum.rb +32 -0
- data/lib/stix2/external_reference.rb +13 -0
- data/lib/stix2/identifier.rb +18 -0
- data/lib/stix2/kill_chain_phase.rb +10 -0
- data/lib/stix2/meta_objects/base.rb +6 -0
- data/lib/stix2/meta_objects/data_markings/base.rb +11 -0
- data/lib/stix2/meta_objects/data_markings/granular_marking.rb +15 -0
- data/lib/stix2/meta_objects/data_markings/marking_definition.rb +19 -0
- data/lib/stix2/meta_objects/data_markings/object_marking.rb +22 -0
- data/lib/stix2/meta_objects/language_content.rb +9 -0
- data/lib/stix2/ov.rb +319 -0
- data/lib/stix2/relationship_objects/base.rb +6 -0
- data/lib/stix2/relationship_objects/relationship.rb +12 -0
- data/lib/stix2/relationship_objects/sighting.rb +14 -0
- data/lib/stix2/storage.rb +23 -0
- data/lib/stix2/version.rb +3 -0
- data/lib/stix2.rb +101 -0
- data/ruby-stix2.gemspec +27 -0
- metadata +208 -0
metadata
ADDED
@@ -0,0 +1,208 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ruby-stix2
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Dario Lombardo
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-06-20 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: hashie
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 5.0.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 5.0.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.3'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.3'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '13.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '13.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: pry
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.13.0
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.13.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: pry-byebug
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 3.10.1
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 3.10.1
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: minitest
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 5.18.1
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 5.18.1
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: simplecov
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 0.22.0
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 0.22.0
|
111
|
+
description: Ruby implementation for the STIX protocol version 2
|
112
|
+
email: lomato@gmail.com
|
113
|
+
executables: []
|
114
|
+
extensions: []
|
115
|
+
extra_rdoc_files: []
|
116
|
+
files:
|
117
|
+
- ".github/workflows/build.yml"
|
118
|
+
- ".gitignore"
|
119
|
+
- Gemfile
|
120
|
+
- Gemfile.lock
|
121
|
+
- LICENSE
|
122
|
+
- README.md
|
123
|
+
- Rakefile
|
124
|
+
- lib/stix2.rb
|
125
|
+
- lib/stix2/boolean.rb
|
126
|
+
- lib/stix2/bundle.rb
|
127
|
+
- lib/stix2/common.rb
|
128
|
+
- lib/stix2/cyberobservable_objects/artifact.rb
|
129
|
+
- lib/stix2/cyberobservable_objects/autonomous_system.rb
|
130
|
+
- lib/stix2/cyberobservable_objects/base.rb
|
131
|
+
- lib/stix2/cyberobservable_objects/directory.rb
|
132
|
+
- lib/stix2/cyberobservable_objects/domain_name.rb
|
133
|
+
- lib/stix2/cyberobservable_objects/email_addr.rb
|
134
|
+
- lib/stix2/cyberobservable_objects/email_message.rb
|
135
|
+
- lib/stix2/cyberobservable_objects/email_mime_part_type.rb
|
136
|
+
- lib/stix2/cyberobservable_objects/file.rb
|
137
|
+
- lib/stix2/cyberobservable_objects/ipv4_addr.rb
|
138
|
+
- lib/stix2/cyberobservable_objects/ipv6_addr.rb
|
139
|
+
- lib/stix2/cyberobservable_objects/mac_addr.rb
|
140
|
+
- lib/stix2/cyberobservable_objects/mutex.rb
|
141
|
+
- lib/stix2/cyberobservable_objects/network_traffic.rb
|
142
|
+
- lib/stix2/cyberobservable_objects/software.rb
|
143
|
+
- lib/stix2/cyberobservable_objects/url.rb
|
144
|
+
- lib/stix2/cyberobservable_objects/user_account.rb
|
145
|
+
- lib/stix2/cyberobservable_objects/windows_registry_key.rb
|
146
|
+
- lib/stix2/cyberobservable_objects/windows_registry_value.rb
|
147
|
+
- lib/stix2/cyberobservable_objects/x509_certificate.rb
|
148
|
+
- lib/stix2/cyberobservable_objects/x509_v3_extension_type.rb
|
149
|
+
- lib/stix2/domain_objects/attack_pattern.rb
|
150
|
+
- lib/stix2/domain_objects/base.rb
|
151
|
+
- lib/stix2/domain_objects/campaign.rb
|
152
|
+
- lib/stix2/domain_objects/course_of_action.rb
|
153
|
+
- lib/stix2/domain_objects/grouping.rb
|
154
|
+
- lib/stix2/domain_objects/identity.rb
|
155
|
+
- lib/stix2/domain_objects/indicator.rb
|
156
|
+
- lib/stix2/domain_objects/infrastructure.rb
|
157
|
+
- lib/stix2/domain_objects/intrusion-set.rb
|
158
|
+
- lib/stix2/domain_objects/location.rb
|
159
|
+
- lib/stix2/domain_objects/malware.rb
|
160
|
+
- lib/stix2/domain_objects/malware_analysis.rb
|
161
|
+
- lib/stix2/domain_objects/note.rb
|
162
|
+
- lib/stix2/domain_objects/observed_data.rb
|
163
|
+
- lib/stix2/domain_objects/opinion.rb
|
164
|
+
- lib/stix2/domain_objects/report.rb
|
165
|
+
- lib/stix2/domain_objects/threat_actor.rb
|
166
|
+
- lib/stix2/domain_objects/tool.rb
|
167
|
+
- lib/stix2/domain_objects/vulnerability.rb
|
168
|
+
- lib/stix2/enum.rb
|
169
|
+
- lib/stix2/external_reference.rb
|
170
|
+
- lib/stix2/identifier.rb
|
171
|
+
- lib/stix2/kill_chain_phase.rb
|
172
|
+
- lib/stix2/meta_objects/base.rb
|
173
|
+
- lib/stix2/meta_objects/data_markings/base.rb
|
174
|
+
- lib/stix2/meta_objects/data_markings/granular_marking.rb
|
175
|
+
- lib/stix2/meta_objects/data_markings/marking_definition.rb
|
176
|
+
- lib/stix2/meta_objects/data_markings/object_marking.rb
|
177
|
+
- lib/stix2/meta_objects/language_content.rb
|
178
|
+
- lib/stix2/ov.rb
|
179
|
+
- lib/stix2/relationship_objects/base.rb
|
180
|
+
- lib/stix2/relationship_objects/relationship.rb
|
181
|
+
- lib/stix2/relationship_objects/sighting.rb
|
182
|
+
- lib/stix2/storage.rb
|
183
|
+
- lib/stix2/version.rb
|
184
|
+
- ruby-stix2.gemspec
|
185
|
+
homepage: https://rubygemspec.org/gems/stix2
|
186
|
+
licenses:
|
187
|
+
- GPL-2.0-or-later
|
188
|
+
metadata: {}
|
189
|
+
post_install_message:
|
190
|
+
rdoc_options: []
|
191
|
+
require_paths:
|
192
|
+
- lib
|
193
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
194
|
+
requirements:
|
195
|
+
- - ">="
|
196
|
+
- !ruby/object:Gem::Version
|
197
|
+
version: '0'
|
198
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
199
|
+
requirements:
|
200
|
+
- - ">="
|
201
|
+
- !ruby/object:Gem::Version
|
202
|
+
version: '0'
|
203
|
+
requirements: []
|
204
|
+
rubygems_version: 3.3.26
|
205
|
+
signing_key:
|
206
|
+
specification_version: 4
|
207
|
+
summary: Ruby implementation for the STIX protocol version 2
|
208
|
+
test_files: []
|