security_terraform_check
Terraform security check — Offline static audit of Terraform HCL before apply: internet-exposed admin/database ports in AWS security groups, GCP firewalls and Azure NSGs, public S3/GCS/Azure storage, public or unencrypted RDS/EBS, IMDSv1, IAM Action * / Resource *, hardcoded secrets and AWS keys, plain-HTTP load balancers, unpinned modules. Pass text= (HCL) or url= (.tf file; GitHub blob links converted to raw). Returns verdict PASS/REVIEW/FIX BEFORE APPLY/BLOCK, score, grade and findings with line numbers and fixes. Price: $0.006 USDC (Base, via x402).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "security_terraform_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | resource "aws_security_group" "web" { ingress { from_port = 22 to_port = 22 protocol = "tcp" cidr_blocks = ["0.0.0.0/0"] } } |