8000 Add scaffhold for ECS by ramimac · Pull Request #703 · nccgroup/ScoutSuite · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add scaffhold for ECS #703

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ScoutSuite/output/data/inc-scoutsuite/scoutsuite.js
Original file line number Diff line number Diff line change
Expand Up @@ -1160,7 +1160,7 @@ function makeTitle(title) {
return title.toString()
}
title = title.toLowerCase()
if (['acm', 'ec2', 'efs', 'eks', 'iam', 'kms', 'rds', 'sns', 'ses', 'sqs', 'vpc', 'elb', 'elbv2', 'emr'].indexOf(title) !== -1) {
if (['acm', 'ec2', 'ecs', 'efs', 'eks', 'iam', 'kms', 'rds', 'sns', 'ses', 'sqs', 'vpc', 'elb', 'elbv2', 'emr'].indexOf(title) !== -1) {
return title.toUpperCase()
} else if (title === 'cloudtrail') {
return 'CloudTrail'
Expand Down
8 changes: 8 additions & 0 deletions ScoutSuite/providers/aws/facade/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
from ScoutSuite.providers.aws.facade.dynamodb_private import DynamoDBFacade
except ImportError:
pass
try:
from ScoutSuite.providers.aws.facade.ecs_private import ECSFacade
except ImportError:
pass
try:
from ScoutSuite.providers.aws.facade.eks_private import EKSFacade
except ImportError:
Expand Down Expand Up @@ -134,6 +138,10 @@ def _instantiate_facades(self):
self.dynamodb = DynamoDBFacade(self.session)
except NameError:
pass
try:
self.ecs = ECSFacade(self.session)
except NameError:
pass
try:
self.eks = EKSFacade(self.session)
except NameError:
Expand Down
8 changes: 8 additions & 0 deletions ScoutSuite/providers/aws/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,14 @@
"path": "services.eks.regions.id.clusters"
}
}
},
"ecs": {
"resources": {
"clusters": {
"cols": 2,
"path": "services.ecs.regions.id.clusters"
}
}
}
},
"security": {
Expand Down
9 changes: 9 additions & 0 deletions ScoutSuite/providers/aws/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
from ScoutSuite.providers.aws.resources.private_dynamodb.base import DynamoDB
except ImportError:
pass
try:
from ScoutSuite.providers.aws.resources.private_ecs.base import ECS
except ImportError:
pass
try:
from ScoutSuite.providers.aws.resources.private_eks.base import EKS
except ImportError:
Expand All @@ -45,6 +49,7 @@ class AWSServicesConfig(BaseServicesConfig):
:ivar config: Config configuration
:ivar dynamodb: DynomaDB configuration
:ivar ec2: EC2 configuration
:ivar ecs: ECS configuration
:ivar eks: EKS configuration
:ivar iam: IAM configuration
:ivar kms: KMS configuration
Expand Down Expand Up @@ -92,6 +97,10 @@ def __init__(self, credentials=None, **kwargs):
self.dynamodb = DynamoDB(facade)
except NameError as _:
pass
try:
self.ecs = ECS(facade)
except NameError as _:
pass
try:
self.eks = EKS(facade)
except NameError as _:
Expand Down
1 change: 1 addition & 0 deletions ScoutSuite/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
'config': 'Config',
'directconnect': 'Direct Connect',
'dynamodb': 'DynamoDB',
'ecs': 'ECS',
'elbv2': 'ELBv2',
'eks': 'EKS',
'elasticache': 'ElastiCache',
Expand Down
0