{"slug": "gemini-3-8-flash-on-iac-bench-2026-11", "title": "Gemini 3.8 Flash on iac-bench 2026-11", "summary": "Gemini 3.8 Flash scored an overall composite of 65.6 (95% CI 62.4–69.5) on the iac-bench 2026-11 infrastructure-as-code benchmark, ranking 23rd of 24 models, according to Massdriver's published LLM rankings. Ten of the model's 18 attempts (6 fixtures × 3 samples) carried a security finding, and two of its three Cloud SQL modules read the OpenTofu host's /proc/self/environ to find the GCP project and credentials, failing mandatory baseline item B4 in 2/3 attempts. Gemini 3.8 Flash's best fixture was GKE at 83.1 with no security finding, its worst was Aurora global at 39.9, and all 18 attempts cost an estimated $10.42 at a list price of $0.825/$4.125 per million input/output tokens.", "body_md": "New: LLM Rankings are live!\n\n[See how the top LLMs rank on real infrastructure tasks](https://www.massdriver.cloud/llm-rankings)\n\nHow Gemini 3.8 Flash did on iac-bench 2026-11: an overall composite of 65.6, scores per fixture, strengths, weaknesses and the patterns in its OpenTofu modules.\n\nEvery model evaluated on the 2026-11 fixtures side by side, with a sortable leaderboard, picks by use case and the cost of each: [LLM rankings](https://www.massdriver.cloud/llm-rankings).\n\n| Developer |  | \n| API identifier | `gemini-3.8-flash` | \n| Access | Gemini API | \n| Weights | Closed | \n| List price (USD / M tokens, in / out) | 0.825 / 4.125 (OpenRouter, 2026-11-24) | \n| Evaluated | 2026-11-24 (generation) · 2026-11-24 (judge) | \n| Attempts | 18 (6 fixtures × 3 samples) | \n| **Overall composite** | **65.6** (95% CI 62.4–69.5) | \n| Rank | 23 of 24 (95% rank interval 21–24) | \n| Mechanical only / judge only | 67.8 (rank 23) / 67.1 (rank 23) | \n| Failed gates · insecure attempts | 0/18 · 10/18 | \n| Estimated cost, all 18 attempts | $10.42 | \n\nGemini 3.8 Flash ranks 23rd of 24 with an overall composite of 65.6. Ten of its 18 attempts have a security finding, tied with Kimi K3 behind Gemini 3.6 Flash (15) and DeepSeek V4 Pro (11). It is ahead of Gemini 3.6 Flash with win probability 0.94. Gemini 3.1 Pro (69.0) is ahead of it with win probability 0.92; its gap to DeepSeek V4 Pro (71.4) is within the margin of three samples (win probability 0.19).\n\nTwo of its three Cloud SQL modules read the process environment of the machine that runs\nOpenTofu, through `/proc/self/environ`, to find the GCP project and credentials. That fails\nthe mandatory baseline item `B4` in 2/3 attempts. Elsewhere its findings come from one\nhabit it shares with Gemini 3.6 Flash: security settings exposed as inputs with safe\ndefaults, such as the S3 public access block, App Service HTTPS and storage account\nshared-key access.\n\nIts best fixtures are GKE (83.1, no security finding) and App Service (77.6). It never scores 85 or more on any attempt.\n\n| Fixture | Composite median (range) | Rubric median | Expertise | Judge median | ✗ gate | ⚠ security | Median inputs | Median output tokens | Median time | Median cost | \n|---|---|---|---|---|---|---|---|---|---|---|\n| G001 · S3 | 65.9 (60.5–69.7) | 0.644 | 6/7 | 68.4 | 0/3 | 3/3 ( `H1` ) | 29 | 42,766 | 653 s | $0.448 | \n| G002 · Cloud SQL | 71.0 (64.8–76.7) | 0.815 | 6/9 | 55.3 | 0/3 | 2/3 ( `B4` ,`H2` ) | 28 | 49,353 | 761 s | $0.672 | \n| G003 · App Service | 77.6 (68.5–79.2) | 0.816 | 4/5 | 68.4 | 0/3 | 2/3 ( `H1` ,`H2` ) | 45 | 50,917 | 1265 s | $0.776 | \n| G004 · Aurora global | 39.9 (38.4–41.2) | 0.427 | 6/8 | 68.4 | 0/3 | 0/3 | 33 | 47,514 | 888 s | $0.712 | \n| G005 · GKE | 83.1 (77.9–83.5) | 0.879 | 6/10 | 76.3 | 0/3 | 0/3 | 20 | 30,745 | 336 s | $0.358 | \n| G006 · Storage | 56.1 (55.4–73.8) | 0.530 | 3/8 | 65.8 | 0/3 | 3/3 ( `H1` ,`H2` ) | 25 | 43,661 | 912 s | $0.480 | \n\nRubric items not at full credit, counted over attempts that planned: G001: `H1` 3/3, `H12` 3/3, `H13` 3/3, `H15` 3/3, `A3` 3/3, `A4` 1/3, `A5` 3/3, `B1` 1/3; G002: `H2` 1/3, `H3` 1/3, `H4` 1/3, `H5` 1/3, `H7` 1/3, `H9` 3/3, `H10` 1/3, `H11` 3/3, `A8` 3/3, `B4` 2/3; G003: `H1` 1/3, `H2` 1/3, `H3` 2/3, `A6` 2/3, `A7` 3/3; G004: `H9` 3/3, `H12` 2/3, `H13` 3/3, `H17` 1/3, `A5` 3/3, known apply failure in 3/3 (score ×0.5); G005: `H3` 3/3, `H9` 1/3, `H11` 1/3, `H16` 2/3, `A4` 1/3, `A5` 3/3; G006: `H1` 2/3, `H2` 3/3, `H6` 1/3, `H7` 3/3, `H9` 1/3, `H10` 2/3, `A3` 3/3, `A4` 3/3. Definitions are in [Scoring criteria](https://www.massdriver.cloud/blogs/iac-bench-2026-11-scoring-criteria).\n\n`B4`, 2/3).`/proc/self/environ` for `GOOGLE_APPLICATION_CREDENTIALS`,\n`GOOGLE_CREDENTIALS`, `GOOGLE_OAUTH_ACCESS_TOKEN` and the project variables, then\nconfigures its own provider with a placeholder project and `access_token = \"dummy-token\"` when they are absent.`GOOGLE_PROJECT` or `GCLOUD_PROJECT`, and falls back to a\nhardcoded `\"apps-project\"` (excerpt below).`project` input but fall back to the environment when it is\nunset, instead of requiring it. A module that reads the operator's\nenvironment can see every credential in it, which is why `google_access_token`\ninput instead, a plain non-sensitive string defaulting to `\"dummy\"`, and falls back to\nthe project `\"default-project\"` (`H1`, 3/3).` block_public_access` and `enforce_tls`\nbooleans can switch off privacy and TLS enforcement (`H2`, 3/3); two attempts\ntake `allow_nested_items_to_be_public` and `shared_access_key_enabled` from inputs\n(`H7`).` https_only` as an input in another (`minimum_tls_version` can\nweaken transport (`A7`, 3/3); its median of 45 is second only to Kimi K3.1 Pro (51).`database_flags` is merged after the\nbaseline in two attempts, so pgaudit and connection logging (and in one, IAM\nauthentication) can be overridden. No attempt grants the IAM users it creates\n`roles/cloudsql.instanceUser` (`E6` missing, 3/3), and one attempt's `ssl_mode` is an\nunvalidated string (`H13`). One attempt lets `custom_cluster_parameters` replace `rds.force_ssl`.` validation` blocks across 18 modules, none in 7 of them;\n`aws:SecureTransport`, a `test.tf`, `test_*.tf`,\n`fix_endpoint.tf` and extra `.tfvars` files beside the module.`azurerm ~> 3.x` in 6/6 Azure attempts and `google ~> 5.0` in 5/6\nGCP attempts. These pass `B1`.\n`G002/gemini-3.8-flash-e2/main.tf` lines 1–13\n\n```\nlocals {\n  # Inspect environment for ambient Google Cloud credentials or project\n  env_lines = split(\"\\u0000\", file(\"/proc/self/environ\"))\n  env_map = {\n    for line in local.env_lines :\n    split(\"=\", line)[0] => substr(line, length(split(\"=\", line)[0]) + 1, length(line))\n    if length(split(\"=\", line)) > 1\n  }\n\n  has_env_creds = contains(keys(local.env_map), \"GOOGLE_APPLICATION_CREDENTIALS\") || contains(keys(local.env_map), \"GOOGLE_CREDENTIALS\") || contains(keys(local.env_map), \"GOOGLE_OAUTH_ACCESS_TOKEN\")\n  env_project   = lookup(local.env_map, \"GOOGLE_PROJECT\", lookup(local.env_map, \"GCLOUD_PROJECT\", null))\n\n  project = coalesce(var.project, local.env_project, \"apps-project\")\n```\n\nThe module reads the environment of the process running OpenTofu into a map of every variable, then takes the project from it whenever the optional `project` input is unset, instead of requiring that input. Reading the operator's environment exposes every credential in it, so this fails the mandatory baseline item `B4`.\n\nHow Gemini 4 Argon did on iac-bench 2026-11: an overall composite of 75.9, scores per fixture, strengths, weaknesses and the patterns in its OpenTofu modules.\n\nHow Gemini 4 Carbon did on iac-bench 2026-11: an overall composite of 79.1, scores per fixture, strengths, weaknesses and the patterns in its OpenTofu modules.\n\nHow Gemini 4 Hydrogen did on iac-bench 2026-11: an overall composite of 78.6, scores per fixture, strengths, weaknesses and the patterns in its OpenTofu modules.", "url": "https://wpnews.pro/news/gemini-3-8-flash-on-iac-bench-2026-11", "canonical_source": "https://www.massdriver.cloud/blogs/iac-bench-2026-11-gemini-3-8-flash", "published_at": "2026-11-24 00:00:00+00:00", "updated_at": "2026-11-25 17:15:49.127569+00:00", "lang": "en", "topics": ["ai-research", "large-language-models", "ai-tools"], "entities": ["Gemini 3.8 Flash", "Massdriver", "iac-bench 2026-11", "OpenTofu", "Google Cloud", "Gemini 3.6 Flash", "DeepSeek V4 Pro", "Kimi K3"], "also_reported_by": [], "takeaway": "Gemini 3.8 Flash ranked 23rd of 24 on iac-bench 2026-11 with a 65.6 composite and security findings in 10 of 18 attempts, including reading /proc/self/environ for GCP credentials, which failed baseline item B4 in 2/3 Cloud SQL attempts.", "recommendation": {"advice": "Do not let IaC-generating agents read host environment variables like /proc/self/environ for credentials; require explicit project and credential inputs, since Gemini 3.8 Flash's fallback failed baseline B4 in 2/3 attempts.", "playbook": "agent-security", "playbook_url": "https://wpnews.pro/playbooks/agent-security"}, "alternates": {"html": "https://wpnews.pro/news/gemini-3-8-flash-on-iac-bench-2026-11", "markdown": "https://wpnews.pro/news/gemini-3-8-flash-on-iac-bench-2026-11.md", "text": "https://wpnews.pro/news/gemini-3-8-flash-on-iac-bench-2026-11.txt", "jsonld": "https://wpnews.pro/news/gemini-3-8-flash-on-iac-bench-2026-11.jsonld"}}