heimdall_tools 1.3.38 → 1.3.39.pre1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '03588d0c8163127641a694259635188efb52cea353a57381185f4e2ca091d769'
4
- data.tar.gz: 305351619f2fe13b30db8886947cf5add3266522a4f292e90796cf111611a10a
3
+ metadata.gz: 5bf59c85ab39e97a18e7ef7a18d0820541df75fc321a017e3b5b633270596e51
4
+ data.tar.gz: 25c4ab33be6805034e122fb4491a2241ad8bb2f993f90290cef0c2fefe8f81a8
5
5
  SHA512:
6
- metadata.gz: 4a427090df081aff200cbba746724f7f42d89de4a6fcbe1d4634d87e63a4008624ef557cd3644ccefb16cd219d42f295e36eee8bb84e1bbaa12c03bb681c629d
7
- data.tar.gz: e02971ef50e65a52b4946a5451774efcf1555124cf34d88b0bb2058545ec741d9f8682e317d5a32c4b3226bbf17de1223f712b7d93edb65ece3c704811b244fe
6
+ metadata.gz: b05652317c333cc5e0ac9eee14cef1052438b0d4b0e71a5bd9a6cc5cc79c312a314d939b9bbde5eeba64cf15edeb7e53633d61eecf5f3d44f8a8522551204001
7
+ data.tar.gz: 62de5d7471629610a26b2074a0fd1088717f0b2cd6199ec15d7c8b89787c682511f00e3088e9f7df7135f860e279afb7baaf86901a82239b359d6ddcb47d8f82
@@ -63,7 +63,7 @@ module HeimdallTools
63
63
  end
64
64
 
65
65
  def nist_tag(cweid)
66
- entries = @cwe_nist_mapping.select { |x| cweid.include? x[:cweid].to_s }
66
+ entries = @cwe_nist_mapping.select { |x| cweid.include?(x[:cweid].to_s) && !x[:nistid].nil? }
67
67
  tags = entries.map { |x| [x[:nistid], "Rev_#{x[:rev]}"] }
68
68
  tags.empty? ? DEFAULT_NIST_TAG : tags.flatten.uniq
69
69
  end
@@ -58,7 +58,7 @@ module HeimdallTools
58
58
  end
59
59
 
60
60
  def nist_tag(cweid)
61
- entries = @cwe_nist_mapping.select { |x| cweid.include? x[:cweid].to_s }
61
+ entries = @cwe_nist_mapping.select { |x| cweid.include?(x[:cweid].to_s) && !x[:nistid].nil? }
62
62
  tags = entries.map { |x| x[:nistid] }
63
63
  tags.empty? ? DEFAULT_NIST_TAG : tags.flatten.uniq
64
64
  end
@@ -140,7 +140,7 @@ module HeimdallTools
140
140
  end
141
141
 
142
142
  def plugin_nist_tag(pluginfamily, pluginid)
143
- entries = @cwe_nist_mapping.select { |x| (x[:pluginfamily].eql?(pluginfamily) && (x[:pluginid].eql?('*') || x[:pluginid].eql?(pluginid.to_i)) ) }
143
+ entries = @cwe_nist_mapping.select { |x| (x[:pluginfamily].eql?(pluginfamily) && (x[:pluginid].eql?('*') || x[:pluginid].eql?(pluginid.to_i)) ) && !x[:nistid].nil? }
144
144
  tags = entries.map { |x| [x[:nistid].split('|'), "Rev_#{x[:rev]}"] }
145
145
  tags.empty? ? DEFAULT_NIST_TAG : tags.flatten.uniq
146
146
  end
@@ -71,7 +71,7 @@ module HeimdallTools
71
71
  end
72
72
 
73
73
  def nist_tag(niktoid)
74
- entries = @nikto_nist_mapping.select { |x| niktoid.eql?(x[:niktoid].to_s) }
74
+ entries = @nikto_nist_mapping.select { |x| niktoid.eql?(x[:niktoid].to_s) && !x[:nistid].nil? }
75
75
  tags = entries.map { |x| x[:nistid] }
76
76
  tags.empty? ? DEFAULT_NIST_TAG : tags.flatten.uniq
77
77
  end
@@ -74,7 +74,7 @@ module HeimdallTools
74
74
  end
75
75
 
76
76
  def nist_tag(cweid)
77
- entries = @cwe_nist_mapping.select { |x| cweid.include? x[:cweid].to_s }
77
+ entries = @cwe_nist_mapping.select { |x| cweid.include?(x[:cweid].to_s) && !x[:nistid].nil? }
78
78
  tags = entries.map { |x| x[:nistid] }
79
79
  tags.empty? ? DEFAULT_NIST_TAG : tags.flatten.uniq
80
80
  end
@@ -65,7 +65,7 @@ module HeimdallTools
65
65
  end
66
66
 
67
67
  def nist_tag(cweid)
68
- entries = @cwe_nist_mapping.select { |x| x[:cweid].to_s.eql?(cweid.to_s) }
68
+ entries = @cwe_nist_mapping.select { |x| x[:cweid].to_s.eql?(cweid.to_s) && !x[:nistid].nil? }
69
69
  tags = entries.map { |x| [x[:nistid], "Rev_#{x[:rev]}"] }
70
70
  tags.empty? ? DEFAULT_NIST_TAG : tags.flatten.uniq
71
71
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: heimdall_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.38
4
+ version: 1.3.39.pre1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Thew
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2021-03-05 00:00:00.000000000 Z
13
+ date: 2021-03-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: aws-sdk-configservice
@@ -242,9 +242,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
242
242
  version: '0'
243
243
  required_rubygems_version: !ruby/object:Gem::Requirement
244
244
  requirements:
245
- - - ">="
245
+ - - ">"
246
246
  - !ruby/object:Gem::Version
247
- version: '0'
247
+ version: 1.3.1
248
248
  requirements: []
249
249
  rubygems_version: 3.2.3
250
250
  signing_key: