ruby-stix2 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/build.yml +2 -1
- data/Gemfile.lock +5 -1
- data/README.md +1 -1
- data/lib/stix2/bool.rb +5 -0
- data/lib/stix2/bundle.rb +1 -1
- data/lib/stix2/common.rb +40 -38
- data/lib/stix2/custom_object.rb +16 -12
- data/lib/stix2/cyberobservable_objects/artifact.rb +12 -1
- data/lib/stix2/cyberobservable_objects/email_message.rb +1 -1
- data/lib/stix2/cyberobservable_objects/file.rb +12 -1
- data/lib/stix2/cyberobservable_objects/ipv4_addr.rb +12 -1
- data/lib/stix2/cyberobservable_objects/ipv6_addr.rb +12 -1
- data/lib/stix2/cyberobservable_objects/network_traffic.rb +1 -1
- data/lib/stix2/cyberobservable_objects/process.rb +1 -1
- data/lib/stix2/cyberobservable_objects/user_account.rb +4 -4
- data/lib/stix2/cyberobservable_objects/x509_certificate.rb +13 -2
- data/lib/stix2/domain_objects/indicator.rb +13 -1
- data/lib/stix2/domain_objects/infrastructure.rb +12 -1
- data/lib/stix2/domain_objects/intrusion-set.rb +12 -1
- data/lib/stix2/domain_objects/malware.rb +31 -5
- data/lib/stix2/domain_objects/report.rb +12 -1
- data/lib/stix2/domain_objects/threat_actor.rb +30 -4
- data/lib/stix2/domain_objects/tool.rb +12 -1
- data/lib/stix2/exception.rb +131 -0
- data/lib/stix2/extension_definition.rb +12 -1
- data/lib/stix2/extensions/alternate_data_stream_type.rb +12 -1
- data/lib/stix2/extensions/icmp.rb +18 -2
- data/lib/stix2/extensions/pdf.rb +1 -1
- data/lib/stix2/extensions/socket.rb +3 -3
- data/lib/stix2/extensions/tcp.rb +18 -2
- data/lib/stix2/extensions/windows_pe_optional_header_type.rb +48 -7
- data/lib/stix2/extensions/windows_pe_section_type.rb +12 -1
- data/lib/stix2/extensions/windows_pebinary.rb +30 -4
- data/lib/stix2/extensions/windows_process.rb +2 -2
- data/lib/stix2/external_reference.rb +12 -1
- data/lib/stix2/identifier.rb +2 -2
- data/lib/stix2/meta_objects/data_markings/marking_definition.rb +10 -4
- data/lib/stix2/meta_objects/data_markings/object_marking.rb +2 -2
- data/lib/stix2/meta_objects/language_content.rb +12 -1
- data/lib/stix2/relationship_objects/relationship.rb +7 -2
- data/lib/stix2/relationship_objects/sighting.rb +1 -1
- data/lib/stix2/validators/array.rb +11 -0
- data/lib/stix2/validators/hashes.rb +11 -0
- data/lib/stix2/validators/hex.rb +10 -0
- data/lib/stix2/version.rb +1 -1
- data/lib/stix2.rb +8 -10
- data/ruby-stix2.gemspec +2 -0
- metadata +36 -6
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ruby-stix2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dario Lombardo
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: hashie
|
|
@@ -150,6 +149,34 @@ dependencies:
|
|
|
150
149
|
- - "~>"
|
|
151
150
|
- !ruby/object:Gem::Version
|
|
152
151
|
version: 1.0.1
|
|
152
|
+
- !ruby/object:Gem::Dependency
|
|
153
|
+
name: ostruct
|
|
154
|
+
requirement: !ruby/object:Gem::Requirement
|
|
155
|
+
requirements:
|
|
156
|
+
- - "~>"
|
|
157
|
+
- !ruby/object:Gem::Version
|
|
158
|
+
version: 0.6.1
|
|
159
|
+
type: :development
|
|
160
|
+
prerelease: false
|
|
161
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
162
|
+
requirements:
|
|
163
|
+
- - "~>"
|
|
164
|
+
- !ruby/object:Gem::Version
|
|
165
|
+
version: 0.6.1
|
|
166
|
+
- !ruby/object:Gem::Dependency
|
|
167
|
+
name: logger
|
|
168
|
+
requirement: !ruby/object:Gem::Requirement
|
|
169
|
+
requirements:
|
|
170
|
+
- - "~>"
|
|
171
|
+
- !ruby/object:Gem::Version
|
|
172
|
+
version: 1.6.5
|
|
173
|
+
type: :development
|
|
174
|
+
prerelease: false
|
|
175
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
176
|
+
requirements:
|
|
177
|
+
- - "~>"
|
|
178
|
+
- !ruby/object:Gem::Version
|
|
179
|
+
version: 1.6.5
|
|
153
180
|
description: 'Ruby implementation for the STIX protocol version 2.1. Full specs: https://docs.oasis-open.org/cti/stix/v2.1/stix-v2.1.html'
|
|
154
181
|
email: lomato@gmail.com
|
|
155
182
|
executables: []
|
|
@@ -165,6 +192,7 @@ files:
|
|
|
165
192
|
- Rakefile
|
|
166
193
|
- lib/stix2.rb
|
|
167
194
|
- lib/stix2/base.rb
|
|
195
|
+
- lib/stix2/bool.rb
|
|
168
196
|
- lib/stix2/bundle.rb
|
|
169
197
|
- lib/stix2/common.rb
|
|
170
198
|
- lib/stix2/confidence_scale.rb
|
|
@@ -211,6 +239,7 @@ files:
|
|
|
211
239
|
- lib/stix2/domain_objects/tool.rb
|
|
212
240
|
- lib/stix2/domain_objects/vulnerability.rb
|
|
213
241
|
- lib/stix2/enum.rb
|
|
242
|
+
- lib/stix2/exception.rb
|
|
214
243
|
- lib/stix2/extension_definition.rb
|
|
215
244
|
- lib/stix2/extensions/alternate_data_stream_type.rb
|
|
216
245
|
- lib/stix2/extensions/archive_file.rb
|
|
@@ -242,13 +271,15 @@ files:
|
|
|
242
271
|
- lib/stix2/relationship_objects/relationship.rb
|
|
243
272
|
- lib/stix2/relationship_objects/sighting.rb
|
|
244
273
|
- lib/stix2/storage.rb
|
|
274
|
+
- lib/stix2/validators/array.rb
|
|
275
|
+
- lib/stix2/validators/hashes.rb
|
|
276
|
+
- lib/stix2/validators/hex.rb
|
|
245
277
|
- lib/stix2/version.rb
|
|
246
278
|
- ruby-stix2.gemspec
|
|
247
279
|
homepage: https://github.com/crondaemon/ruby-stix2
|
|
248
280
|
licenses:
|
|
249
281
|
- GPL-2.0-or-later
|
|
250
282
|
metadata: {}
|
|
251
|
-
post_install_message:
|
|
252
283
|
rdoc_options: []
|
|
253
284
|
require_paths:
|
|
254
285
|
- lib
|
|
@@ -263,8 +294,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
263
294
|
- !ruby/object:Gem::Version
|
|
264
295
|
version: '0'
|
|
265
296
|
requirements: []
|
|
266
|
-
rubygems_version:
|
|
267
|
-
signing_key:
|
|
297
|
+
rubygems_version: 4.0.16
|
|
268
298
|
specification_version: 4
|
|
269
299
|
summary: Ruby implementation for the STIX protocol version 2.1
|
|
270
300
|
test_files: []
|