ruby-stix2 0.1.2 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/build.yml +2 -1
- data/Gemfile.lock +7 -3
- data/README.md +1 -1
- data/lib/stix2/bool.rb +5 -0
- data/lib/stix2/bundle.rb +5 -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 +4 -2
- metadata +47 -14
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dario Lombardo
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hashie
|
@@ -126,30 +126,58 @@ dependencies:
|
|
126
126
|
name: mutex_m
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- - "
|
129
|
+
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
131
|
+
version: 0.2.0
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- - "
|
136
|
+
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
138
|
+
version: 0.2.0
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: standardrb
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- - "
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 1.0.1
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 1.0.1
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: ostruct
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
144
158
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
159
|
+
version: 0.6.1
|
146
160
|
type: :development
|
147
161
|
prerelease: false
|
148
162
|
version_requirements: !ruby/object:Gem::Requirement
|
149
163
|
requirements:
|
150
|
-
- - "
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: 0.6.1
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: logger
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - "~>"
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: 1.6.5
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - "~>"
|
151
179
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
180
|
+
version: 1.6.5
|
153
181
|
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
182
|
email: lomato@gmail.com
|
155
183
|
executables: []
|
@@ -165,6 +193,7 @@ files:
|
|
165
193
|
- Rakefile
|
166
194
|
- lib/stix2.rb
|
167
195
|
- lib/stix2/base.rb
|
196
|
+
- lib/stix2/bool.rb
|
168
197
|
- lib/stix2/bundle.rb
|
169
198
|
- lib/stix2/common.rb
|
170
199
|
- lib/stix2/confidence_scale.rb
|
@@ -211,6 +240,7 @@ files:
|
|
211
240
|
- lib/stix2/domain_objects/tool.rb
|
212
241
|
- lib/stix2/domain_objects/vulnerability.rb
|
213
242
|
- lib/stix2/enum.rb
|
243
|
+
- lib/stix2/exception.rb
|
214
244
|
- lib/stix2/extension_definition.rb
|
215
245
|
- lib/stix2/extensions/alternate_data_stream_type.rb
|
216
246
|
- lib/stix2/extensions/archive_file.rb
|
@@ -242,13 +272,16 @@ files:
|
|
242
272
|
- lib/stix2/relationship_objects/relationship.rb
|
243
273
|
- lib/stix2/relationship_objects/sighting.rb
|
244
274
|
- lib/stix2/storage.rb
|
275
|
+
- lib/stix2/validators/array.rb
|
276
|
+
- lib/stix2/validators/hashes.rb
|
277
|
+
- lib/stix2/validators/hex.rb
|
245
278
|
- lib/stix2/version.rb
|
246
279
|
- ruby-stix2.gemspec
|
247
280
|
homepage: https://github.com/crondaemon/ruby-stix2
|
248
281
|
licenses:
|
249
282
|
- GPL-2.0-or-later
|
250
283
|
metadata: {}
|
251
|
-
post_install_message:
|
284
|
+
post_install_message:
|
252
285
|
rdoc_options: []
|
253
286
|
require_paths:
|
254
287
|
- lib
|
@@ -263,8 +296,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
263
296
|
- !ruby/object:Gem::Version
|
264
297
|
version: '0'
|
265
298
|
requirements: []
|
266
|
-
rubygems_version: 3.
|
267
|
-
signing_key:
|
299
|
+
rubygems_version: 3.5.16
|
300
|
+
signing_key:
|
268
301
|
specification_version: 4
|
269
302
|
summary: Ruby implementation for the STIX protocol version 2.1
|
270
303
|
test_files: []
|