aws_recon 0.5.3 → 0.5.4
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/check-aws-regions.yml +2 -1
- data/aws_recon.gemspec +1 -1
- data/lib/aws_recon/version.rb +1 -1
- data/utils/aws/check_region_exclusions.rb +10 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d64ead4511b072694c681eb0e13fab491d01398319ba19ea1c70e533040e0454
|
|
4
|
+
data.tar.gz: 37c12b9b8dda2ac030fd62f4da97912800a2725070b56cc3fac70fdea118e281
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6ef8c579c750d232000e2d1e0d53b0cb5054da766a8e62c9e0f49f6000d860b2cecb36c403126bad7cc9e1aa593fe459da953412c73829957786a4837cb0f9da
|
|
7
|
+
data.tar.gz: b70c879f9f092a5f74076f97109374b3ddcf948f6d4d9163cce99b313499b6bb63e2d73165d1a32b5e254000ef0a354ca6666ee6f301f50a7d30180e7870fc64
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
name: check-service-regions
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
|
+
workflow_dispatch:
|
|
4
5
|
schedule:
|
|
5
6
|
- cron: '0 10 * * *'
|
|
6
7
|
|
|
@@ -12,6 +13,6 @@ jobs:
|
|
|
12
13
|
uses: actions/checkout@v2
|
|
13
14
|
with:
|
|
14
15
|
fetch-depth: 1
|
|
15
|
-
- name:
|
|
16
|
+
- name: Check AWS service regions
|
|
16
17
|
run: |
|
|
17
18
|
cd utils/aws ; ruby check_region_exclusions.rb
|
data/aws_recon.gemspec
CHANGED
|
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
|
|
|
8
8
|
spec.name = 'aws_recon'
|
|
9
9
|
spec.version = AwsRecon::VERSION
|
|
10
10
|
spec.authors = ['Josh Larsen', 'Darkbit']
|
|
11
|
-
spec.required_ruby_version = '>= 2.
|
|
11
|
+
spec.required_ruby_version = '>= 2.6.0'
|
|
12
12
|
spec.summary = 'A multi-threaded AWS security-focused inventory collection tool.'
|
|
13
13
|
spec.description = 'AWS Recon is a command line tool to collect resources from an Amazon Web Services (AWS) account. The tool outputs JSON suitable for processing with other tools.'
|
|
14
14
|
spec.homepage = 'https://github.com/darkbitio/aws-recon'
|
data/lib/aws_recon/version.rb
CHANGED
|
@@ -3,11 +3,21 @@
|
|
|
3
3
|
#
|
|
4
4
|
# Check regional service availability against services.yaml exclusions.
|
|
5
5
|
#
|
|
6
|
+
# AWS updates the regional service table daily. By checking regional service
|
|
7
|
+
# coverage, we can identify regions that should be excluded from AWS Recon
|
|
8
|
+
# checks. We exclude non-supported regions because service APIs handle non-
|
|
9
|
+
# availability differently. Some will respond with an error that can be handled
|
|
10
|
+
# by the errors defined in the AWS Ruby SDK client. Others will fail at the
|
|
11
|
+
# network level (i.e. there is no API endpoint even available). We could handle
|
|
12
|
+
# those errors and silently fail, but we choose not to so we can identify cases
|
|
13
|
+
# where there is a lack of service availability in a particular region.
|
|
14
|
+
#
|
|
6
15
|
require 'net/http'
|
|
7
16
|
require 'json'
|
|
8
17
|
require 'yaml'
|
|
9
18
|
|
|
10
19
|
TS = Time.now.to_i
|
|
20
|
+
# AWS Regional services table
|
|
11
21
|
URL = "https://api.regional-table.region-services.aws.a2z.com/index.json?timestamp=#{TS}000"
|
|
12
22
|
|
|
13
23
|
service_to_query = ARGV[0]
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aws_recon
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Josh Larsen
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2021-04-
|
|
12
|
+
date: 2021-04-16 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: aws-sdk
|
|
@@ -270,7 +270,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
270
270
|
requirements:
|
|
271
271
|
- - ">="
|
|
272
272
|
- !ruby/object:Gem::Version
|
|
273
|
-
version: 2.
|
|
273
|
+
version: 2.6.0
|
|
274
274
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
275
275
|
requirements:
|
|
276
276
|
- - ">="
|