├── LICENSE ├── README.md └── ami ├── Makefile ├── README.md ├── install-tools.sh ├── manifest.json └── my-aws-security-arsenal-packer-config.json /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | **Defensive (Hardening, Security Assessment, Inventory)** 2 | 3 | * **ScoutSuite**: [https://github.com/nccgroup/ScoutSuite](https://github.com/nccgroup/ScoutSuite) - Multi-Cloud Security auditing tool for AWS, Google Cloud and Azure environments (Python) 4 | * **Prowler**: [https://github.com/toniblyx/prowler](https://github.com/toniblyx/prowler) - CIS benchmarks and additional checks for security best practices in AWS (Shell Script) 5 | * **CloudSploit**: [https://github.com/cloudsploit/scans](https://github.com/cloudsploit/scans) - AWS security scanning checks (NodeJS) 6 | * **CloudMapper**: [https://github.com/duo-labs/cloudmapper](https://github.com/duo-labs/cloudmapper) - helps you analyze your AWS environments (Python) 7 | * **CloudTracker**: [https://github.com/duo-labs/cloudtracker](https://github.com/duo-labs/cloudtracker) - helps you find over-privileged IAM users and roles by comparing CloudTrail logs with current IAM policies (Python) 8 | * **AWS Security Benchmarks**: [https://github.com/awslabs/aws-security-benchmark](https://github.com/awslabs/aws-security-benchmark) - scrips and templates guidance related to the AWS CIS Foundation framework (Python) 9 | * **AWS Public IPs**: [https://github.com/arkadiyt/aws_public_ips](https://github.com/arkadiyt/aws_public_ips) - Fetch all public IP addresses tied to your AWS account. Works with IPv4/IPv6, Classic/VPC networking, and across all AWS services (Ruby) 10 | * **PMapper**: [https://github.com/nccgroup/PMapper](https://github.com/nccgroup/PMapper) - Advanced and Automated AWS IAM Evaluation (Python) 11 | * **AWS-Inventory**: [https://github.com/nccgroup/aws-inventory](https://github.com/nccgroup/aws-inventory) - Make a inventory of all your resources across regions (Python) 12 | * **Resource Counter**: [https://github.com/disruptops/resource-counter](https://github.com/disruptops/resource-counter) - Counts number of resources in categories across regions 13 | * **ICE**: [https://github.com/Teevity/ice](https://github.com/Teevity/ice) - Ice provides insights from a usage and cost perspective, with high detail dashboards. 14 | * **SkyArk**: [https://github.com/cyberark/SkyArk](https://github.com/cyberark/SkyArk) - SkyArk provides advanced discovery and security assessment for the most privileged entities in the tested AWS. 15 | * **Trailblazer AWS**: [https://github.com/willbengtson/trailblazer-aws](https://github.com/willbengtson/trailblazer-aws) - Trailblazer AWS, determine what AWS API calls are logged by CloudTrail and what they are logged as. You can also use TrailBlazer as an attack simulation framework. 16 | * **Lunar**: [https://github.com/lateralblast/lunar](https://github.com/lateralblast/lunar) - Security auditing tool based on several security frameworks (it does some AWS checks) 17 | * **Cloud-reports**: [https://github.com/tensult/cloud-reports](https://github.com/tensult/cloud-reports) - Scans your AWS cloud resources and generates reports 18 | * **Pacbot**: [https://github.com/tmobile/pacbot](https://github.com/tmobile/pacbot) - Platform for continuous compliance monitoring, compliance reporting and security automation for the cloud 19 | * **cs-suite**: [https://github.com/SecurityFTW/cs-suite](https://github.com/SecurityFTW/cs-suite) - Integrates tools like Scout2 and Prowler among others 20 | * **aws-key-disabler**: [https://github.com/te-papa/aws-key-disabler](https://github.com/te-papa/aws-key-disabler) - A small lambda script that will disable access keys older than a given amount of days 21 | * **Antiope**: [https://github.com/turnerlabs/antiope/](https://github.com/turnerlabs/antiope/) - AWS Inventory and Compliance Framework 22 | * **FunctionShield**: [https://www.puresec.io/function-shield](https://www.puresec.io/function-shield) A free AWS Lambda security library for developers, providing runtime protection such as: outbound network blocking, disable shell processes, /tmp/ disk I/O operations and prevents leakage of the handler's source code. 23 | * **Cloud Reports**: [https://github.com/tensult/cloud-reports](https://github.com/tensult/cloud-reports) Scans your AWS cloud resources and generates reports, includes security best practices. 24 | * **Terraform AWS Secure Baseline**: [https://github.com/nozaq/terraform-aws-secure-baseline](https://github.com/nozaq/terraform-aws-secure-baseline) Terraform module to set up your AWS account with the secure baseline configuration based on CIS Amazon Web Services Foundations. 25 | * **Cartography**: [https://github.com/lyft/cartography](https://github.com/lyft/cartography) - Cartography is a Python tool that consolidates infrastructure assets and the relationships between them in an intuitive graph view powered by a Neo4j database. 26 | * **TrailScraper**: [https://github.com/flosell/trailscraper](https://github.com/flosell/trailscraper) - A command-line tool to get valuable information out of AWS CloudTrail 27 | * **LambdaGuard**: [https://github.com/Skyscanner/LambdaGuard](https://github.com/Skyscanner/LambdaGuard) - An AWS Lambda auditing tool designed to create asset visibility and provide actionable results. 28 | * **Komiser**: [https://github.com/mlabouardy/komiser](https://github.com/mlabouardy/komiser) - Cloud Environment Inspector, nalyze and manage cloud cost, usage, security, and governance in one place. 29 | * **Perimeterator**: [https://github.com/darkarnium/perimeterator](https://github.com/darkarnium/perimeterator) - AWS perimeter monitoring: Periodically scan internet facing AWS resources to detect misconfigured services 30 | 31 | **Offensive:** 32 | 33 | * **weirdALL**: [https://github.com/carnal0wnage/weirdAAL](https://github.com/carnal0wnage/weirdAAL) - AWS Attack Library 34 | * **Pacu**: [https://github.com/RhinoSecurityLabs/pacu](https://github.com/RhinoSecurityLabs/pacu) - AWS penetration testing toolkit 35 | * **Cred Scanner**: [https://github.com/disruptops/cred_scanner](https://github.com/disruptops/cred_scanner) 36 | * **AWS PWN**: [https://github.com/dagrz/aws_pwn](https://github.com/dagrz/aws_pwn) 37 | * **Cloudfrunt**: [https://github.com/MindPointGroup/cloudfrunt](https://github.com/MindPointGroup/cloudfrunt) 38 | * **Cloudjack**: [https://github.com/prevade/cloudjack](https://github.com/prevade/cloudjack) 39 | * **Nimbostratus**: [https://github.com/andresriancho/nimbostratus](https://github.com/andresriancho/nimbostratus) 40 | * **GitLeaks**: [https://github.com/zricethezav/gitleaks](https://github.com/zricethezav/gitleaks) - Audit git repos for secrets 41 | * **TruffleHog**: [https://github.com/dxa4481/truffleHog](https://github.com/dxa4481/truffleHog) - Searches through git repositories for high entropy strings and secrets, digging deep into commit history 42 | * **DumpsterDiver**: [https://github.com/securing/DumpsterDiver](https://github.com/securing/DumpsterDiver) - Tool to search secrets in various filetypes, like keys (e.g. AWS Access Key, Azure Share Key or SSH keys) or passwords. 43 | * **Mad-King**: [https://github.com/ThreatResponse/mad-king](https://github.com/ThreatResponse/mad-king) - Proof of Concept Zappa Based AWS Persistence and Attack Platform 44 | * **Cloud-Nuke**: [https://github.com/gruntwork-io/cloud-nuke](https://github.com/gruntwork-io/cloud-nuke) - A tool for cleaning up your cloud accounts by nuking (deleting) all resources within it 45 | * **MozDef: The Mozilla Defense Platform** [https://github.com/mozilla/MozDef](https://github.com/mozilla/MozDef) - The Mozilla Defense Platform (MozDef) seeks to automate the security incident handling process and facilitate the real-time activities of incident handlers. 46 | * **Lambdashell**: [http://www.lambdashell.com/](http://www.lambdashell.com/) - This is a simple AWS lambda function that does a straight exec. Essentially giving you a shell directly in my AWS infrastructure to just run your commands. 47 | * **Lambda-Proxy**: [https://github.com/puresec/lambda-proxy/] - A bridge between SQLMap and AWS Lambda, which lets you use SQLMap to natively test AWS Lambda functions for SQL Injection vulnerabilities. 48 | * **CloudCopy**: [https://github.com/Static-Flow/CloudCopy](https://github.com/Static-Flow/CloudCopy) - Cloud version of the Shadow Copy attack against domain controllers running in AWS using only the EC2:CreateSnapshot permission 49 | * **enumerate-iam**: [https://github.com/andresriancho/enumerate-iam](https://github.com/andresriancho/enumerate-iam) - Enumerate the permissions associated with AWS credential set 50 | 51 | **Continuous Security Auditing:** 52 | 53 | * **Security Monkey**: [https://github.com/Netflix/security_monkey](https://github.com/Netflix/security_monkey) 54 | * **Krampus** (as Security Monkey complement) [https://github.com/sendgrid/krampus](https://github.com/sendgrid/krampus) 55 | * **Cloud Inquisitor**: [https://github.com/RiotGames/cloud-inquisitor](https://github.com/RiotGames/cloud-inquisitor) 56 | * **CloudCustodian**: [https://github.com/capitalone/cloud-custodian](https://github.com/capitalone/cloud-custodian) 57 | * **Disable keys after X days**: [https://github.com/te-papa/aws-key-disabler](https://github.com/te-papa/aws-key-disabler) 58 | * **Repokid** Least Privilege: [https://github.com/Netflix/repokid](https://github.com/Netflix/repokid) 59 | * **Wazuh CloudTrail module**: [https://documentation.wazuh.com/current/amazon/index.html](https://documentation.wazuh.com/current/amazon/index.html) 60 | * **Hammer**: [https://github.com/dowjones/hammer](https://github.com/dowjones/hammer) 61 | * **Streamalert**: [https://github.com/airbnb/streamalert](https://github.com/airbnb/streamalert) 62 | * **Billing Alerts CFN templates**: [https://github.com/btkrausen/AWS/tree/master/CloudFormation/Billing%20Alerts](https://github.com/btkrausen/AWS/tree/master/CloudFormation/Billing%20Alerts) 63 | * **Watchmen**: [https://github.com/iagcl/watchmen](https://github.com/iagcl/watchmen) - AWS account compliance using centrally managed Config Rules 64 | 65 | **DFIR:** 66 | 67 | * **AWS IR**: [https://github.com/ThreatResponse/aws_ir](https://github.com/ThreatResponse/aws_ir) - AWS specific Incident Response and Forensics Tool 68 | * **Margaritashotgun**: [https://github.com/ThreatResponse/margaritashotgun](https://github.com/ThreatResponse/margaritashotgun) - Linux memory remote acquisition tool 69 | * **LiMEaide**: [https://kd8bny.github.io/LiMEaide/](https://kd8bny.github.io/LiMEaide/) - Linux memory remote acquisition tool 70 | * **Diffy**: [https://github.com/Netflix-Skunkworks/diffy](https://github.com/Netflix-Skunkworks/diffy) - Triage tool used during cloud-centric security incidents 71 | * **AWS Security Automation**: [https://github.com/awslabs/aws-security-automation](https://github.com/awslabs/aws-security-automation) - AWS scripts and resources for DevSecOps and automated incident response 72 | * **GDPatrol**: [https://github.com/ansorren/GDPatrol](https://github.com/ansorren/GDPatrol) - Automated Incident Response based off AWS GuardDuty findings 73 | * **AWSlog**: [https://github.com/jaksi/awslog](https://github.com/jaksi/awslog) - Show the history and changes between configuration versions of AWS resources using AWS Config 74 | * **AWS_Responder** [https://github.com/prolsen/aws_responder](https://github.com/prolsen/aws_responder) - AWS Digital Forensic and Incident Response (DFIR) Response Python Scripts 75 | * **SSM-Acquire**: [https://github.com/mozilla/ssm-acquire](https://github.com/mozilla/ssm-acquire) - A python module for orchestrating content acquisitions and analysis via Amazon SSM 76 | 77 | **Development Security:** 78 | 79 | * **CFN NAG**: [https://github.com/stelligent/cfn_nag](https://github.com/stelligent/cfn_nag) - CloudFormation security test (Ruby) 80 | * **Git-secrets**: [https://github.com/awslabs/git-secrets](https://github.com/awslabs/git-secrets) 81 | * **Repository of sample Custom Rules for AWS Config**: [https://github.com/awslabs/aws-config-rules](https://github.com/awslabs/aws-config-rules) 82 | * **asecure.cloud**: [https://asecure.cloud](https://asecure.cloud) - A repository of cutomizable AWS security configurations (Cloudformation and CLI templates) 83 | * **CFripper**: [https://github.com/Skyscanner/cfripper/](https://github.com/Skyscanner/cfripper/) - Lambda function to "rip apart" a CloudFormation template and check it for security compliance. 84 | * **Assume**: [https://github.com/SanderKnape/assume](https://github.com/SanderKnape/assume) - A simple CLI utility that makes it easier to switch between different AWS roles 85 | * **Terrascan**: [https://github.com/cesar-rodriguez/terrascan](https://github.com/cesar-rodriguez/terrascan) - A collection of security and best practice tests for static code analysis of terraform templates using terraform_validate 86 | * **tfsec**: [https://github.com/liamg/tfsec](https://github.com/liamg/tfsec) - Provides static analysis of your terraform templates to spot potential security issues 87 | * **pytest-services**: [https://github.com/mozilla-services/pytest-services](https://github.com/mozilla-services/pytest-services) - Unit testing framework for test driven security of AWS configurations and more 88 | * **IAM Least-Privileged Role Generator**: [https://github.com/puresec/serverless-puresec-cli](https://github.com/puresec/serverless-puresec-cli) - A Serverless framework plugin that statically analyzes AWS Lambda function code and automagically generates least-privileged IAM roles. 89 | * **AWS Vault**: [https://github.com/99designs/aws-vault](https://github.com/99designs/aws-vault) - A vault for securely storing and accessing AWS credentials in development environments 90 | * **AWS Service Control Policies**: [https://github.com/jchrisfarris/aws-service-control-policies](https://github.com/jchrisfarris/aws-service-control-policies) - Collection of semi-useful Service Control Policies and scripts to manage them 91 | * **Half-Life**: [https://github.com/Skyscanner/halflife](https://github.com/Skyscanner/halflife) - AWS Lambda auditing tool that provides a meaningful overview in terms of statistical analysis, AWS service dependencies and configuration checks from the security perspective 92 | 93 | **S3 Buckets Auditing:** 94 | 95 | * [https://github.com/Parasimpaticki/sandcastle](https://github.com/Parasimpaticki/sandcastle) 96 | * [https://github.com/smiegles/mass3](https://github.com/smiegles/mass3) 97 | * [https://github.com/koenrh/s3enum](https://github.com/koenrh/s3enum) 98 | * [https://github.com/tomdev/teh_s3_bucketeers/](https://github.com/tomdev/teh_s3_bucketeers/) 99 | * [https://github.com/Quikko/BuQuikker](https://github.com/Quikko/BuQuikker) (multi threading for teh_s3_bucketeers) 100 | * [https://github.com/eth0izzle/bucket-stream](https://github.com/eth0izzle/bucket-stream) 101 | * [https://github.com/gwen001/s3-buckets-finder](https://github.com/gwen001/s3-buckets-finder) 102 | * [https://github.com/aaparmeggiani/s3find](https://github.com/aaparmeggiani/s3find) 103 | * [https://github.com/bbb31/slurp](https://github.com/bbb31/slurp) 104 | * [https://github.com/random-robbie/slurp](https://github.com/random-robbie/slurp) 105 | * [https://github.com/kromtech/s3-inspector](https://github.com/kromtech/s3-inspector) 106 | * [https://github.com/petermbenjamin/s3-fuzzer](https://github.com/petermbenjamin/s3-fuzzer) 107 | * [https://github.com/jordanpotti/AWSBucketDump](https://github.com/jordanpotti/AWSBucketDump) 108 | * [https://github.com/bear/s3scan](https://github.com/bear/s3scan) 109 | * [https://github.com/sa7mon/S3Scanner](https://github.com/sa7mon/S3Scanner) 110 | * [https://github.com/magisterquis/s3finder](https://github.com/magisterquis/s3finder) 111 | * [https://github.com/abhn/S3Scan](https://github.com/abhn/S3Scan) 112 | * [https://breachinsider.com/honey-buckets/](https://breachinsider.com/honey-buckets/) 113 | * [https://www.buckhacker.com](https://www.buckhacker.com) [Currently Offline] 114 | * [https://www.thebuckhacker.com/](https://www.thebuckhacker.com/) 115 | * [https://buckets.grayhatwarfare.com/](https://buckets.grayhatwarfare.com/) 116 | * [https://github.com/whitfin/s3-meta](https://github.com/whitfin/s3-meta) 117 | * [https://github.com/vr00n/Amazon-Web-Shenanigans/tree/master/S3PublicBucketCheck](https://github.com/vr00n/Amazon-Web-Shenanigans/tree/master/S3PublicBucketCheck) 118 | * [https://github.com/FishermansEnemy/bucket_finder](https://github.com/FishermansEnemy/bucket_finder) 119 | * [https://github.com/brianwarehime/inSp3ctor](https://github.com/brianwarehime/inSp3ctor) 120 | * [https://github.com/Atticuss/bucketcat](https://github.com/Atticuss/bucketcat) 121 | * [https://github.com/Ucnt/aws-s3-bruteforce](https://github.com/Ucnt/aws-s3-bruteforce) 122 | * [https://github.com/nahamsec/lazys3](https://github.com/nahamsec/lazys3) 123 | * [https://github.com/securing/BucketScanner](https://github.com/securing/BucketScanner) 124 | * [https://digi.ninja/projects/bucket_finder.php](https://digi.ninja/projects/bucket_finder.php) 125 | * [https://github.com/VirtueSecurity/aws-extender-cli](https://github.com/VirtueSecurity/aws-extender-cli) 126 | 127 | **Training:** 128 | 129 | * [http://flaws.cloud/](http://flaws.cloud/) - flAWS challenge to learn through a series of levels about common mistakes and gotchas when using AWS 130 | * [http://flaws2.cloud/](http://flaws2.cloud/) - flAWS 2 has two paths this time: Attacker and Defender! In the Attacker path, you'll exploit your way through misconfigurations in serverless (Lambda) and containers (ECS Fargate). In the Defender path, that target is now viewed as the victim and you'll work as an incident responder for that same app, understanding how an attack happened. 131 | * [https://github.com/RhinoSecurityLabs/cloudgoat](https://github.com/RhinoSecurityLabs/cloudgoat) - Vulnerable by Design AWS infrastructure setup tool 132 | * [https://github.com/m6a-UdS/dvca](https://github.com/m6a-UdS/dvca) - Damn Vulnerable Cloud Application [more info](https://medium.com/poka-techblog/privilege-escalation-in-the-cloud-from-ssrf-to-global-account-administrator-fd943cf5a2f6) 133 | * [https://github.com/sonofagl1tch/AWSDetonationLab](https://github.com/sonofagl1tch/AWSDetonationLab) - Scripts and templates to generate some basic detections of the AWS security services 134 | * [OWASP ServerlessGoat](https://www.owasp.org/index.php/OWASP_Serverless_Goat) - OWASP ServerlessGoat is a deliberately insecure realistic AWS Lambda serverless application, maintained by OWASP for educational purposes. Single click installation through the AWS Serverless Application Repository. 135 | 136 | **Honey-token:** 137 | 138 | * [https://bitbucket.org/asecurityteam/spacecrab](https://bitbucket.org/asecurityteam/spacecrab) 139 | * [https://breachinsider.com/honey-buckets/](https://breachinsider.com/honey-buckets/) 140 | * [https://github.com/0x4D31/honeyLambda](https://github.com/0x4D31/honeyLambda) 141 | * [https://github.com/thinkst/canarytokens-docker](https://github.com/thinkst/canarytokens-docker) 142 | 143 | **Others:** 144 | 145 | * [https://github.com/nagwww/s3-leaks](https://github.com/nagwww/s3-leaks) - a list of some biggest leaks recorded 146 | * **Model Risk AWS** [https://magoo.github.io/model-risk-aws/](https://magoo.github.io/model-risk-aws/) - POC about probabilistic risk model for AWS 147 | * **asecure.cloud** [https://asecure.cloud/](https://asecure.cloud/) - a great place for security resources regarding AWS Security. 148 | -------------------------------------------------------------------------------- /ami/Makefile: -------------------------------------------------------------------------------- 1 | KUBERNETES_VERSION ?= 1.10.3 2 | 3 | DATE ?= $(shell date +%Y-%m-%d) 4 | 5 | # Defaults to Amazon Linux 2 AMI 6 | # * use the us-east-1 image 7 | # https://aws.amazon.com/amazon-linux-2/release-notes/ 8 | SOURCE_AMI_ID ?= ami-b70554c8 9 | 10 | AWS_DEFAULT_REGION = us-east-1 11 | 12 | PACKER_CONFIG_FILE = my-aws-security-arsenal-packer-config.json 13 | 14 | all: ami 15 | 16 | validate: 17 | packer validate $(PACKER_CONFIG_FILE) 18 | 19 | ami: validate 20 | packer build -var source_ami_id=$(SOURCE_AMI_ID) $(PACKER_CONFIG_FILE) 21 | -------------------------------------------------------------------------------- /ami/README.md: -------------------------------------------------------------------------------- 1 | # Create an AMI with all security tools in the arsenal list 2 | 3 | Configuration scripts for building a custom Amazon AMI with [HashiCorp Packer](https://www.packer.io/). 4 | 5 | **NOT WORKING YET** 6 | Still in development 7 | 8 | ## Setup 9 | 10 | * You must have [Packer](https://www.packer.io/) installed on your local system. 11 | For more information, see [Installing Packer](https://www.packer.io/docs/install/index.html) 12 | in the Packer documentation. 13 | 14 | * You must also have AWS account credentials configured so that Packer can make 15 | calls to AWS API operations on your behalf. For more information, see [Authentication](https://www.packer.io/docs/builders/amazon.html#specifying-amazon-credentials) 16 | in the Packer documentation. 17 | 18 | **Note** 19 | 20 | The default region used is to build this AMI is `us-east-1` and the instance 21 | type is a `t2.medium` (4GB RAM, 2vCPUs, EBS only and $0.046400 hourly) and does 22 | not qualify for the AWS free tier. You are charged for any instances created 23 | when building this AMI. The base AMI used is `ami-b70554c8`, Amazon Linux 2. 24 | 25 | ## Building the AMI 26 | 27 | A Makefile is provided to build the AMI, but it is just a small wrapper around 28 | invoking Packer directly. You can initiate the build process by running the 29 | following command in the root of this repository: 30 | 31 | ```bash 32 | make 33 | ``` 34 | 35 | The Makefile runs Packer with the `my-aws-security-arsenal-packer-config.json` 36 | build specification template and the [amazon-ebs](https://www.packer.io/docs/builders/amazon-ebs.html) 37 | builder. An instance is launched and the Packer [Shell 38 | Provisioner](https://www.packer.io/docs/provisioners/shell.html) runs the 39 | `install-tools.sh` script on the instance to install software and perform other 40 | necessary configuration tasks. Then, Packer creates an AMI from the instance 41 | and terminates the instance after the AMI is created. 42 | 43 | ## Using the AMI 44 | 45 | If you are just getting started with security tools, visit [https://github.com/toniblyx/my-arsenal-of-aws-security-tools](https://github.com/toniblyx/my-arsenal-of-aws-security-tools) 46 | and get familiar with every tool that you are interested in. 47 | 48 | Launch an instance with the new AMI ID that is returned when Packer finishes building. 49 | 50 | ## Reference 51 | 52 | Some code is taken as reference from here [https://github.com/awslabs/amazon-eks-ami](https://github.com/awslabs/amazon-eks-ami) 53 | -------------------------------------------------------------------------------- /ami/install-tools.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -o pipefail 4 | set -o nounset 5 | set -o errexit 6 | IFS=$'\n\t' 7 | 8 | TEMPLATE_DIR=${TEMPLATE_DIR:-/tmp/arsenal} 9 | 10 | ################################################################################ 11 | ### Packages ################################################################### 12 | ################################################################################ 13 | 14 | # Update the OS to begin with to catch up to the latest packages. 15 | sudo yum update -y 16 | 17 | # Install necessary packages 18 | sudo yum install -y \ 19 | aws-cfn-bootstrap \ 20 | conntrack \ 21 | curl \ 22 | git \ 23 | socat \ 24 | unzip \ 25 | wget 26 | 27 | curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py" 28 | sudo python get-pip.py 29 | rm get-pip.py 30 | sudo pip install --upgrade awscli 31 | 32 | ################################################################################ 33 | ### Docker ##################################################################### 34 | ################################################################################ 35 | 36 | sudo yum install -y yum-utils device-mapper-persistent-data lvm2 37 | sudo amazon-linux-extras enable docker 38 | sudo yum install -y docker-17.06* 39 | sudo usermod -aG docker $USER 40 | 41 | # Clean up yum caches to reduce the image size 42 | sudo yum clean all 43 | 44 | # Enable docker daemon to start on boot. 45 | sudo systemctl daemon-reload 46 | sudo systemctl enable docker 47 | 48 | ################################################################################ 49 | ### AWS Security Arsenal ####################################################### 50 | ################################################################################ 51 | # get the latest list of tools from https://github.com/toniblyx/my-arsenal-of-aws-security-tools 52 | # and clone them in to the /opt/arsenal directory 53 | git clone https://github.com/toniblyx/my-arsenal-of-aws-security-tools 54 | cd my-arsenal-of-aws-security-tools 55 | # skipping RhinoSecurityLabs/pacu since it is not public yet and billing alerts CFN templates 56 | TOOLS_URL_LIST=$(grep github.com README.md |awk -F '[' '{ print $2 }'| awk -F ']' '{ print $1 }' | grep -v pacu$|grep -v btkrausen) 57 | sudo mkdir -p /opt/arsenal 58 | cd /opt/arsenal 59 | for tool_url in $TOOLS_URL_LIST; do 60 | sudo git clone $tool_url || \ 61 | sudo git clone $tool_url $(basename $tool_url)-$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1) || \ 62 | : 63 | done 64 | -------------------------------------------------------------------------------- /ami/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "builds": [ 3 | { 4 | "name": "amazon-ebs", 5 | "builder_type": "amazon-ebs", 6 | "build_time": 1533335897, 7 | "files": null, 8 | "artifact_id": "us-east-1:ami-05bbc777606893c06", 9 | "packer_run_uuid": "d64c8557-ff41-86f1-c9a5-511a79216c9e" 10 | } 11 | ], 12 | "last_run_uuid": "d64c8557-ff41-86f1-c9a5-511a79216c9e" 13 | } -------------------------------------------------------------------------------- /ami/my-aws-security-arsenal-packer-config.json: -------------------------------------------------------------------------------- 1 | { 2 | "variables": { 3 | "aws_region": "us-east-1", 4 | "ami_name": "My-AWS-Security-Arsenal-v0.1-{{timestamp}}", 5 | "creator": "toni@blyx.com", 6 | "instance_type": "t2.medium", 7 | "source_ami_id": "ami-b70554c8" 8 | }, 9 | 10 | "builders": [ 11 | { 12 | "type": "amazon-ebs", 13 | "region": "{{user `aws_region`}}", 14 | "source_ami": "{{user `source_ami_id`}}", 15 | "source_ami_filter": { 16 | "filters": { 17 | "architecture": "x86_64", 18 | "name": "amzn2-ami-hvm-*", 19 | "owner-id": "137112412989", 20 | "root-device-type": "ebs", 21 | "state": "available", 22 | "virtualization-type": "hvm" 23 | }, 24 | "most_recent": true 25 | }, 26 | "instance_type": "{{user `instance_type`}}", 27 | "launch_block_device_mappings": [ 28 | { 29 | "device_name": "/dev/xvda", 30 | "volume_type": "gp2", 31 | "volume_size": 20, 32 | "delete_on_termination": true 33 | } 34 | ], 35 | "ssh_username": "ec2-user", 36 | "ssh_pty": true, 37 | "run_tags": { 38 | "creator": "{{user `creator`}}" 39 | }, 40 | "tags": { 41 | "created": "{{timestamp}}" 42 | }, 43 | "ami_name": "{{user `ami_name`}}", 44 | "ami_description": "My AWS Security Arsenal AMI with AmazonLinux2 image - toni@blyx.com" 45 | } 46 | ], 47 | 48 | "provisioners": [ 49 | { 50 | "type": "shell", 51 | "inline": ["mkdir -p /tmp/arsenal/"] 52 | }, 53 | { 54 | "type": "shell", 55 | "script": "install-tools.sh" 56 | } 57 | ], 58 | "post-processors": [ 59 | { 60 | "type": "manifest", 61 | "output": "manifest.json", 62 | "strip_path": true 63 | } 64 | ] 65 | } 66 | --------------------------------------------------------------------------------