forked from p34709852/monkey
Improved style and text of SS setup tutorials
This commit is contained in:
parent
2e0d06b17a
commit
5f28808885
|
@ -23,12 +23,13 @@ _add_scoutsuite_to_python_path()
|
||||||
def is_cloud_authentication_setup(provider: PROVIDERS) -> Tuple[bool, str]:
|
def is_cloud_authentication_setup(provider: PROVIDERS) -> Tuple[bool, str]:
|
||||||
if provider == PROVIDERS.AWS.value:
|
if provider == PROVIDERS.AWS.value:
|
||||||
if is_aws_keys_setup():
|
if is_aws_keys_setup():
|
||||||
return True, "AWS keys already setup. Run monkey on Island to scan."
|
return True, "AWS keys already setup. Run Monkey on Island to start the scan."
|
||||||
|
|
||||||
import common.cloud.scoutsuite.ScoutSuite.providers.aws.authentication_strategy as auth_strategy
|
import common.cloud.scoutsuite.ScoutSuite.providers.aws.authentication_strategy as auth_strategy
|
||||||
try:
|
try:
|
||||||
profile = auth_strategy.AWSAuthenticationStrategy().authenticate()
|
profile = auth_strategy.AWSAuthenticationStrategy().authenticate()
|
||||||
return True, f" Profile \"{profile.session.profile_name}\" is already setup. Run monkey on Island to scan."
|
return True, f" Profile \"{profile.session.profile_name}\" is already setup. " \
|
||||||
|
f"Run Monkey on Island to start the scan."
|
||||||
except Exception:
|
except Exception:
|
||||||
return False, ""
|
return False, ""
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ export default function AWSCLISetup(props) {
|
||||||
const getContents = (props) => {
|
const getContents = (props) => {
|
||||||
return (
|
return (
|
||||||
<div className={'aws-scoutsuite-configuration'}>
|
<div className={'aws-scoutsuite-configuration'}>
|
||||||
<h2>ScoutSuite configuration for AWS</h2>
|
<h2>AWS CLI configuration for scan</h2>
|
||||||
<p>To assess your AWS infrastructure's security do the following:</p>
|
<p>To assess your AWS infrastructure's security do the following:</p>
|
||||||
<ol>
|
<ol>
|
||||||
<li>
|
<li>
|
||||||
|
@ -34,10 +34,11 @@ const getContents = (props) => {
|
||||||
<li>
|
<li>
|
||||||
2. Run <code>aws configure</code>. It's important to configure credentials, which
|
2. Run <code>aws configure</code>. It's important to configure credentials, which
|
||||||
allows ScoutSuite to get information about your cloud configuration. The most trivial way to do so is to
|
allows ScoutSuite to get information about your cloud configuration. The most trivial way to do so is to
|
||||||
provide
|
provide
|
||||||
<Button
|
<Button
|
||||||
href={'https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-quickstart.html#cli-configure-quickstart-creds'}
|
href={'https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-quickstart.html#cli-configure-quickstart-creds'}
|
||||||
variant={'link'}
|
variant={'link'}
|
||||||
|
className={'cli-link'}
|
||||||
target={'_blank'}>
|
target={'_blank'}>
|
||||||
Access key ID and secret access key
|
Access key ID and secret access key
|
||||||
</Button>.
|
</Button>.
|
||||||
|
@ -48,7 +49,10 @@ const getContents = (props) => {
|
||||||
2. If you change the configuration, make sure not to disable AWS system info collector.
|
2. If you change the configuration, make sure not to disable AWS system info collector.
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
3. Go back and run Monkey on the Island server.
|
3. Go <Button onClick={() => props.setComponent()}
|
||||||
|
variant={'link'}
|
||||||
|
className={'cli-link'}>back</Button>
|
||||||
|
and run Monkey on the Island server.
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
4. Assess results in Zero Trust report.
|
4. Assess results in Zero Trust report.
|
||||||
|
|
|
@ -13,9 +13,21 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.aws-scoutsuite-configuration li {
|
.aws-scoutsuite-configuration li {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.aws-scoutsuite-configuration h2 {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.aws-scoutsuite-configuration p {
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.aws-scoutsuite-configuration .cli-link {
|
||||||
|
padding: 0 0 4px 0;
|
||||||
|
}
|
||||||
|
|
||||||
.monkey-submit-button {
|
.monkey-submit-button {
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue