Skip to content

Commit

Permalink
bugfix 'SQS' and 'SNS' are inspected when 'all-checks' is executed.
Browse files Browse the repository at this point in the history
  • Loading branch information
motikan2010 committed Mar 26, 2023
1 parent 02db8a4 commit 51f0b65
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions cli/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -1410,6 +1410,32 @@ func runAllChecksCommand(cmd *cobra.Command, args []string) {
}
iamSimulator.PrintIamSimulator(SimulatorPrincipal, SimulatorAction, SimulatorResource, AWSOutputFormat, AWSOutputDirectory, Verbosity)

sqsMod := aws.SQSModule{
SQSClient: sqsClient,

StorePolicies: StoreSQSAccessPolicies,

Caller: *Caller,
AWSRegions: internal.GetEnabledRegions(profile, cmd.Root().Version),
AWSProfile: profile,
Goroutines: Goroutines,
WrapTable: AWSWrapTable,
}
sqsMod.PrintSQS(AWSOutputFormat, AWSOutputDirectory, Verbosity)

snsMod := aws.SNSModule{
SNSClient: snsClient,

StorePolicies: StoreSNSAccessPolicies,

Caller: *Caller,
AWSRegions: internal.GetEnabledRegions(profile, cmd.Root().Version),
AWSProfile: profile,
Goroutines: Goroutines,
WrapTable: AWSWrapTable,
}
snsMod.PrintSNS(AWSOutputFormat, AWSOutputDirectory, Verbosity)

fmt.Printf("[%s] %s\n", cyan(emoji.Sprintf(":fox:cloudfox :fox:")), green("That's it! Check your output files for situational awareness and check your loot files for next steps."))
fmt.Printf("[%s] %s\n\n", cyan(emoji.Sprintf(":fox:cloudfox :fox:")), green("FYI, we skipped the outbound-assumed-roles module in all-checks (really long run time). Make sure to try it out manually."))
}
Expand Down

0 comments on commit 51f0b65

Please sign in to comment.