MillerMedia/awtest
GitHub: MillerMedia/awtest
快速枚举AWS凭证在63个服务中权限范围的Go语言扫描工具,专为渗透测试和云安全评估设计
Stars: 5 | Forks: 0
___ _ ________ __
/ || | /| / /_ __/__ ___ / /_
/ /| || |/ |/ / / / / -_|_-</ __/
/_/ |_||__/|__/ /_/ \__/___/\__/
用于安全评估的 AWS 凭证权限扫描器
AWTest 通过对 **63 个 AWS 服务** 执行只读的 list/describe 操作(共计 **117 个 API 调用**),快速枚举 AWS 凭证的权限。专为渗透测试人员、红队成员和云安全审计师打造。 ## 功能特性 - **广泛的 AWS 覆盖** -- 涵盖 S3、EC2、IAM、Lambda、EKS、RDS、DynamoDB、GuardDuty、Security Hub 等 63 个服务,117 个 API 调用 - **速度预设** -- `--speed` 预设(`safe`、`fast`、`insane`)用于符合 OPSEC 要求的扫描并行度 - **多种输出格式** -- Text、JSON、YAML、CSV 和 table 输出 - **文件导出** -- 使用 `--output-file` 将结果直接写入文件 - **服务过滤** -- 使用 `--services` 和 `--exclude-services` 包含或排除特定服务 - **可配置超时** -- 使用 `--timeout` 设置扫描持续时间限制 - **并发扫描** -- `--speed` 预设或细粒度的 `--concurrency` 控制 - **会话令牌支持** -- 支持临时凭证 (STS) - **跨平台** -- 提供 macOS、Linux 和 Windows 的预编译二进制文件 ## 安装说明 ### Homebrew (macOS/Linux) ``` brew install --cask MillerMedia/tap/awtest ``` ### Go Install 需要 Go 1.19+: ``` go install github.com/MillerMedia/awtest/cmd/awtest@latest ``` ### 二进制文件下载 从 [GitHub Releases](https://github.com/MillerMedia/awtest/releases) 下载预编译的二进制文件: | 平台 | 文件 | |---|---| | macOS (Intel) | `awtest_点击展开完整服务列表(63 个服务,117 个 API 调用)
### 计算与容器 | 服务 | API 调用 | |---|---| | Batch | ListJobs | | EC2 | DescribeInstances | | ECS | ListClusters | | EKS | ListClusters | | Elastic Beanstalk | DescribeApplications, DescribeEvents | | EMR | ListClusters, ListInstanceGroups, ListSecurityConfigurations | | Fargate | ListFargateTasks | | Lambda | ListFunctions | ### 数据库 | 服务 | API 调用 | |---|---| | DynamoDB | ListTables, ListBackups, ListExports | | ElastiCache | DescribeCacheClusters | | Neptune | DescribeDBClusters, DescribeDBInstances, DescribeDBClusterParameterGroups | | OpenSearch | ListDomains, DescribeDomainAccessPolicies, DescribeDomainEncryption | | RDS | DescribeDBInstances | | Redshift | DescribeClusters | ### 安全与身份 | 服务 | API 调用 | |---|---| | Certificate Manager (ACM) | ListCertificates | | Cognito Identity | ListIdentityPools | | Cognito User Pools | ListUserPools | | ECR | DescribeRepositories, ListImages, GetRepositoryPolicy | | GuardDuty | ListDetectors, GetFindings, ListFilters | | IAM | ListUsers | | KMS | ListKeys | | Macie | ListClassificationJobs, ListFindings, DescribeBuckets | | Organizations | ListAccounts, ListOrganizationalUnits, ListPolicies | | Secrets Manager | ListSecrets | | Security Hub | GetEnabledStandards, GetFindings, ListEnabledProductsForImport | | STS | GetCallerIdentity | | WAF | ListWebACLs | ### 存储 | 服务 | API 调用 | |---|---| | Backup | ListBackupVaults, ListBackupPlans, ListRecoveryPointsByBackupVault, GetBackupVaultAccessPolicy | | EFS | DescribeFileSystems | | Glacier | ListVaults | | S3 | ListBuckets | ### 网络 | 服务 | API 调用 | |---|---| | API Gateway | RestApis, GetApiKeys, GetDomainNames | | CloudFront | ListDistributions | | Direct Connect | DescribeConnections, DescribeVirtualInterfaces, DescribeDirectConnectGateways | | Route53 | ListHostedZones, ListHealthChecks | | VPC | DescribeVpcs | ### 管理与监控 | 服务 | API 调用 | |---|---| | CloudFormation | ListStacks | | CloudTrail | DescribeTrails, ListTrails | | CloudWatch | DescribeAlarms | | CloudWatch Logs | DescribeLogGroupsAndStreams, ListMetrics | | Config | DescribeConfigurationRecorders | | Systems Manager (SSM) | DescribeParameters | ### 应用服务 | 服务 | API 调用 | |---|---| | EventBridge | ListEventBuses | | SES | ListIdentities | | SNS | ListTopics | | SQS | ListQueues | | Step Functions | ListStateMachines | ### 开发者工具 | 服务 | API 调用 | |---|---| | Amplify | ListApps | | AppSync | ListGraphqlApis | | CodeBuild | ListProjects, ListProjectEnvironmentVariables, ListBuilds | | CodeCommit | ListRepositories, ListBranches | | CodeDeploy | ListApplications, ListDeploymentGroups, ListDeploymentConfigs | | CodePipeline | ListPipelines | | Glue | ListJobs, ListWorkflows | ### 分析 | 服务 | API 调用 | |---|---| | Athena | ListWorkGroups, ListNamedQueries, ListQueryExecutions | | Kinesis | ListStreams, ListShards, ListStreamConsumers | ### 媒体与机器学习 | 服务 | API 调用 | |---|---| | IVS | ListChannels, ListStreams, ListStreamKeys | | IVS Chat | ListRooms | | IVS Realtime | ListStages | | MediaConvert | ListQueues, ListJobs, ListPresets | | Rekognition | ListCollections, DescribeProjects, ListStreamProcessors | | SageMaker | ListNotebookInstances, ListEndpoints, ListModels, ListTrainingJobs | | Transcribe | ListTranscriptionJobs, ListLanguageModels, ListVocabularies, StartTranscriptionJob | ### 物联网 | 服务 | API 调用 | |---|---| | IoT | ListThings, ListCertificates, ListPolicies |标签:AWS, DevSecOps, DPI, DynamoDB, EC2, EKS, EVTX分析, Go, IaC, IAM, Lambda, Linux安全, RDS, Ruby工具, S3, 上游代理, 二进制发布, 云审计, 凭证枚举, 原子扫描, 反取证, 安全评估, 开源工具, 数据展示, 日志审计, 权限扫描, 权限边界, 红队, 足迹分析