Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
sadcloud — 一个用于搭建(以及拆除!)刻意不安全的云基础设施的工具 | Kitploit
工具/GitHubGitHub/nccgroup/sadcloud
云基础设施安全渗透测试云安全错误配置学习与教育实验室与实践
GitHubnccgroup/sadcloud

sadcloud

一个用于搭建(以及拆除!)刻意不安全的云基础设施的工具

查看仓库
78411362年前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
网站

Sadcloud

sadcloud 是一个用于通过 Terraform 搭建不安全 AWS 基础设施的工具。

它支持约 84 个错误配置,涵盖 22 个 AWS 服务。 初始的错误配置集取自 ScoutSuite——NCCGroup 的多云审计工具。

sadcloud 的创建旨在让安全研究人员能够轻松地出于培训目的而错误配置 AWS,或用于评估 AWS 安全工具——包括内置和第三方工具。

安全说明 - 必读

该工具会创建_故意存在漏洞_的 AWS 配置资源。请勿在你的生产云环境或任何需要保持安全的地方运行它。 建议新建一个 AWS 账户来运行此工具。由于该工具会创建云资源,因此你的 AWS 账户将产生费用。我们已尽力将费用降到最低,但 NCC Group 和该工具的维护者不对因使用此工具而产生的任何费用或安全问题负责。不使用时,请务必拆除所有 Terraform 资源!

费用

sadcloud 的一次 24 小时测试运行产生了约 10 美元的费用。其中大部分费用来自 Redshift 模块(0.25 美元/小时 = 6 美元/天)和 EKS 模块(0.10 美元/小时 = 2.40 美元/天)。

使用 sadcloud 的示例审计

我们定期使用 sadcloud 来演示各种 AWS 和 Terraform 审计工具。所有审计均针对全部可能的错误配置集。

设置

所需软件:Terraform

确保你的 SSH 密钥已写入 data/ssh_keys/terraform_rsa{,.pub}。

root@kitploit:~
ssh-keygen -t rsa -b 4096 -f data/ssh_keys/terraform_rsa
  1. git clone https://github.com/nccgroup/sadcloud.git
  2. cd sadcloud/sadcloud

环境设置

配置 AWS provider(有关如何跳过此步骤的说明,请参阅下方的"使用 Providers 代替环境变量"部分):

root@kitploit:~
export AWS_ACCESS_KEY_ID="accesskey"
export AWS_SECRET_ACCESS_KEY="secretkey"
export AWS_DEFAULT_REGION="us-east-1"

准备 Terraform:

root@kitploit:~
terraform init

配置 sadcloud

使用你想要的错误配置来配置 sadcloud:

  • 启用所有发现项(……排除与其他发现项冲突的项目):

    1. 取消注释 sadcloud/main.tf 中的所有模块
    2. 将 sadcloud/terraform.tfvars 中的 all_findings 标志编辑为 true,或使用 --var="all_findings=true" 标志调用 terraform apply
  • 启用一个或多个服务中的所有发现项:

    1. 取消注释 sadcloud/main.tf 中相关的服务
    2. 对于单个服务,将 sadcloud/terraform.tfvars 中相关的 all_{service}_findings 标志编辑为 true,或使用 --var="all_{service}_findings=true" 标志调用 terraform apply
    3. 对于多个服务,将 sadcloud/terraform.tfvars 中的 标志编辑为 ,或使用 标志调用

注意: sadcloud 中的所有错误配置默认处于禁用状态。所有服务默认处于禁用状态,以防止创建不必要的资源。将错误配置的变量设置为 true 始终会引发错误配置。运行 all_findings 可能需要 10-15 分钟。

检查它:

root@kitploit:~
terraform plan

部署它:

root@kitploit:~
terraform apply

拆除它:

root@kitploit:~
terraform destroy

注意: terraform apply 将在 AWS 中创建服务。这些服务需要付费。完成后不要忘记执行 terraform destroy。在运行 all_findings 之前,请务必先执行 terraform plan,这样你就能了解自己将要面对什么!

附加内容

使用 Providers 代替环境变量

你可以设置一个 AWS provider,这样就不必每次都设置环境变量。

创建一个名为 sadcloud/providers.tf 的文件,内容如下:

root@kitploit:~
provider "aws" {
  access_key = "YOUR_AWS_ACCESS_KEY"
  secret_key = "YOUR_AWS_SECRET_KEY"
  region     = "us-east-1"
}
下载工具
工具示例报告
ScoutSuitehttps://ramimac.github.io/sadcloud-reports/scoutsuite-reports/scoutsuite-report_03_2020/aws.html
prowlerhttps://ramimac.github.io/sadcloud-reports/prowler-report/report.html
cloudmapperhttps://ramimac.github.io/sadcloud-reports/cloudmapper-reports/web_03_2020/account-data/report.html
cloudsploithttps://ramimac.github.io/sadcloud-reports/cloudsploit-scans-reports/scans.04_2020.txt
tfsechttps://ramimac.github.io/sadcloud-reports/tfsec/tfsec.03_27_2020.txt
all_findings
true
--var="all_findings=true"
terraform apply
注意:目前 Terraform 与 Cloudformation 服务存在一个 bug。要生成 Cloudformation 发现项,你需要运行 Terraform apply 两次
  • 按粒度启用特定发现项:

    1. 取消注释 sadcloud/main.tf 中相关的服务
    2. 直接在 sadcloud/main.tf 中编辑感兴趣的变量,在需要的地方将它们改为 true。
    3. 对于需要 VPC 的服务,请确保在 sadcloud/main.tf 中将 needs_network 设置为 true