deploy-tidb-aws
Fail
Audited by Gen Agent Trust Hub on Jul 27, 2026
Risk Level: HIGHREMOTE_CODE_EXECUTIONEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONDATA_EXFILTRATIONCREDENTIALS_UNSAFE
Full Analysis
- [REMOTE_CODE_EXECUTION]: The cloud-init configuration for the center server (
assets/terraform-up-tidb-aws/files/cloudinit_center.sh) downloads and executes shell scripts directly from remote servers using thecurl | shpattern. This occurs for both the TiUP installer and the go-tpc tool. - [DATA_EXFILTRATION]: The IAM policy defined in
assets/terraform-up-tidb-aws/resource_iam.tfgrants broads3:*permissions on all resources (*). This violates the principle of least privilege and creates a high risk of data exfiltration or manipulation if any EC2 instance in the cluster is compromised. - [CREDENTIALS_UNSAFE]: The network configuration in
assets/terraform-up-tidb-aws/resource_vpc.tfcreates security groups that allow inbound traffic from any IP address (0.0.0.0/0) on sensitive management ports, including SSH (22), ETCD/Dashboard (2379), and Grafana (3000). While documented in the safety section, this defaults the infrastructure to an insecure state. - [EXTERNAL_DOWNLOADS]: The skill fetches installation scripts from
tiup-mirrors.pingcap.comandraw.githubusercontent.com/pingcap/go-tpc. While PingCAP is the official vendor for TiDB, fetching unversioned scripts from remote mirrors for execution remains a supply chain risk. - [COMMAND_EXECUTION]: The
scripts/scaffold_project.pyscript and the agent instructions inreferences/deployment.mdinvolve extensive local shell execution of Python, Terraform, and AWS CLI commands to manage infrastructure lifecycle.
Recommendations
- HIGH: Downloads and executes remote code from: https://raw.githubusercontent.com/pingcap/go-tpc/master/install.sh, https://tiup-mirrors.pingcap.com/install.sh - DO NOT USE without thorough review
- AI detected serious security threats
Audit Metadata