Google · Gemini App AI Ultra · Nov 10, 2026
20 free Gemini 4 Carbon prompts — copy and paste. Google's new coding and cybersecurity model. Code audits, threat models, agentic workflows, CI/CD hardening. No signup needed.
This Gemini 4 Carbon prompt generator gives you 20 copy-paste prompts built for Gemini 4 Carbon, Google's newest Gemini 4 variant that rolled out to AI Ultra subscribers on November 10, 2026. Carbon is optimised for the two most demanding professional use cases: software engineering and cybersecurity. It is the model in the Gemini 4 family you reach for when the job is to write, audit, or secure code — not just read and reason over long documents (that is what Gemini 4 Argon is for).
Carbon brings Google's security tooling knowledge into the model itself — understanding vulnerability classes (OWASP Top 10, CWE identifiers), compliance frameworks (SOC 2, ISO 27001, PCI DSS), and threat modelling methodologies (STRIDE, PASTA) at a depth that generic models lack. For agentic workflows, it handles multi-step tool-call loops, CI/CD pipeline integration, and autonomous code generation with testing plans.
The prompts below are structured for Carbon's strengths: each one is scoped to a specific artefact (code, config, logs, architecture), numbered for sequential execution, and ends with an explicit quality constraint so Carbon doesn't pad output with generic advice.
Full-codebase vulnerability scans with OWASP classification, severity, and targeted fixes
Multi-step task delegation, CI/CD integration, autonomous code generation with tests
STRIDE threat models, penetration test reports, incident response runbooks
Terraform / CloudFormation / IaC reviews for misconfigurations and open permissions
CVE checks on package manifests, upgrade plans, transitive dependency risk
SOC 2, ISO 27001, PCI DSS 4.0, NIST CSF 2.0 gap analysis with remediation roadmaps
Replace the [bracketed] parts with your own code, config, or details. Each prompt is structured for Carbon's coding and security strengths.
Audit this codebase for security vulnerabilities. For every issue found provide: (1) file path and exact line number, (2) vulnerability class (OWASP Top 10 or CWE identifier), (3) the specific input or state that triggers it, (4) severity rating (Critical/High/Medium/Low) with justification, (5) a minimal targeted fix with corrected code. After the issue list, write an executive summary of the three most critical risks and the total attack surface. Do not report style issues. [Paste codebase]
Create a STRIDE threat model for this new feature: [describe feature — authentication flow, API endpoint, data pipeline, etc.]. For each threat category (Spoofing, Tampering, Repudiation, Information Disclosure, Denial of Service, Elevation of Privilege): (1) list every specific threat that applies to this feature, (2) rate each threat's likelihood and impact (High/Medium/Low), (3) specify the security control that mitigates it, (4) flag any threat with no current mitigation. Finish with a prioritised remediation backlog sorted by risk score.
Write a professional penetration test report for the following findings: [paste raw notes — IPs, ports, services, CVEs, screenshots descriptions, payloads]. Structure the report as: (1) Executive Summary (risk posture, top 3 findings in plain language for a non-technical reader), (2) Scope and Methodology, (3) Findings table (ID, title, severity, CVSS score, affected component), (4) Detailed findings for each — description, evidence, reproduction steps, impact, remediation, (5) Remediation roadmap sorted by severity. Use professional, neutral language.
Review this code for security and correctness. I need: (1) every security issue with its CWE ID, the attack vector, and a corrected code snippet, (2) every logic bug — describe the input that triggers it and the incorrect output, (3) every performance issue that matters at scale (>10K requests/day), (4) any dependency that has a known CVE in the version pinned, (5) a risk-ranked list of changes where #1 is the most urgent. Only flag real issues — no style nits. [Paste code]
Design a multi-step agentic workflow that: [describe goal, e.g. 'monitors a GitHub repository for new PRs, runs automated security checks, posts a risk summary as a PR comment, and escalates High findings to a Slack channel']. Specify: (1) every tool call needed (APIs, webhooks, file reads, notifications), (2) the decision tree — which condition triggers which branch, (3) mandatory human checkpoints before irreversible actions, (4) failure handling for each tool — what happens on timeout, auth error, or bad response, (5) Python pseudocode using an async agent loop. List the three most likely production failure modes.
Audit this CI/CD pipeline configuration for security gaps: [paste GitHub Actions / GitLab CI / Jenkinsfile]. Check: (1) any secret or token that could be exfiltrated via log injection or forked-PR attacks, (2) pipeline steps that run with excessive permissions — flag every GITHUB_TOKEN scope that is broader than needed, (3) third-party Actions or plugins used with mutable tags (not pinned SHA) — supply-chain risk, (4) any build artefact that is not cryptographically signed, (5) the minimum permission set for each job. Output a hardened version of the config with every change annotated.
Write an incident response runbook for this scenario: [describe incident type — ransomware, data breach, API credential leak, DDoS, insider threat]. The runbook must cover: (1) Detection — the specific log entries, alerts, or user reports that indicate this incident type, (2) Containment — ordered steps to isolate affected systems without destroying evidence, (3) Eradication — how to remove the threat and verify it is gone, (4) Recovery — ordered steps to restore service safely, (5) Post-incident review — what data to collect and how to prevent recurrence. Format as a numbered checklist an on-call engineer can follow at 3 AM.
Review this API design — endpoints, request/response schemas, authentication, and error codes: [paste OpenAPI spec or describe the API]. Evaluate: (1) REST / GraphQL conventions — flag every violation with the correct pattern, (2) authentication and authorisation — are endpoints properly protected? Can a user access another user's data? (3) rate limiting — which endpoints need it and what is the right limit?, (4) error handling — do error responses leak internal details?, (5) breaking change risk — which fields, if changed, would break existing clients. Output a prioritised fix list.
Analyse this dependency manifest for security risk: [paste package.json / requirements.txt / go.mod / Gemfile]. For each dependency: (1) check if the pinned version has any known CVE — list CVE ID, severity, and fixed version, (2) flag any package that is no longer maintained (last commit > 2 years, archived, or deprecated), (3) identify direct vs transitive dependencies for each CVE, (4) for each vulnerable package, give the exact upgrade command to reach the patched version, (5) output a risk-sorted upgrade plan — fix Critical first, then High, then Medium.
Review this Terraform / CloudFormation / Pulumi infrastructure code for security misconfigurations: [paste IaC code]. Flag every resource that: (1) exposes a port to 0.0.0.0/0 (open to the internet), (2) uses a permissive IAM policy (wildcards in Action or Resource), (3) stores secrets or credentials in plain text, (4) disables encryption at rest or in transit, (5) lacks deletion protection on stateful resources (RDS, S3 with versioning off). For each finding, provide the corrected resource block. Finish with a CIS Benchmark alignment summary.
Read this codebase and produce a refactoring plan. I need: (1) a module dependency map — flag every circular dependency, (2) the five highest-debt areas ranked by risk and cost to fix, (3) a migration path for the highest-risk area — ordered steps, breaking change risks, and test strategy at each step, (4) every function over 100 lines that should be decomposed — suggest the decomposition for the longest one, (5) the single change with the highest risk-reduction-to-effort ratio. Present as an ordered sprint plan. [Paste codebase or describe architecture]
Review this system against zero-trust security principles: [describe or paste architecture diagram, service mesh config, or IAM policies]. Assess: (1) implicit trust — list every network path, service account, or user role that implicitly trusts something without verification, (2) least-privilege violations — every permission broader than the minimum needed for the job, (3) lateral movement paths — how far could an attacker move from each entry point if credentials for one service are compromised, (4) missing mutual TLS or certificate rotation, (5) the five highest-priority zero-trust controls to implement first. Provide a 90-day remediation roadmap.
Optimise these database queries for performance at scale: [paste SQL queries + relevant schema + index definitions]. For each query: (1) explain the execution plan in plain language, (2) identify the specific bottleneck — missing index, full table scan, N+1 pattern, unnecessary JOIN, (3) write the optimised query and explain the change, (4) specify the exact index to create if one is needed (with column order and type), (5) estimate the performance gain as a rough multiplier (e.g. '10–100× faster on a 50M-row table'). Flag any query that cannot be optimised without a schema change.
Review this cryptography implementation for weaknesses: [paste code handling encryption, hashing, key management, or certificate handling]. Check: (1) use of deprecated or weak algorithms — MD5, SHA-1, DES, ECB mode AES, RSA < 2048-bit, (2) hardcoded keys or IVs, (3) incorrect IV reuse or predictable nonce generation, (4) key storage in plaintext or in version-controlled files, (5) certificate validation — is hostname verification disabled anywhere? For every finding, provide the corrected implementation using a modern, safe alternative.
Audit service-to-service communication in this microservices architecture for security gaps: [describe services, communication patterns, authentication mechanisms, and network topology]. Evaluate: (1) authentication between services — is every call verified? Can Service A impersonate Service B?, (2) authorisation — does each service only call the APIs it is permitted to call, or can any authenticated service call any endpoint?, (3) data-in-transit encryption — is mTLS enforced on all internal channels, or only on ingress?, (4) secret rotation — how are service credentials rotated? What is the blast radius of a single leaked credential?, (5) provide a hardened service mesh configuration as the fix.
Diagnose this production incident. I will give you: the error output, relevant code, the last 500 lines of logs before the failure, and the git diff of changes deployed in the 24 hours before the incident. Work through in order: (1) list every plausible cause ranked by likelihood with brief reasoning, (2) for the top cause, write the exact diagnostic command and predict what its output looks like if the hypothesis is correct, (3) write the minimal code fix, (4) write a regression test that would have caught this before deployment, (5) identify whether this failure class can recur elsewhere. [Paste error, code, logs, diff]
Audit this cloud environment for resources that represent both a security risk and an unexpected cost: [paste AWS Cost Explorer export / GCP billing export / Azure cost data + current IAM/resource config]. Flag: (1) over-provisioned compute instances that could be right-sized AND are running with overly broad IAM roles, (2) publicly accessible storage buckets or blobs with data egress costs, (3) unused or orphaned resources that could be exfiltrated or used as C2 infrastructure, (4) API keys with no expiry still active on unused services, (5) provide a combined security-and-cost remediation table sorted by estimated monthly savings.
Write a secure coding guidelines document for a team building [specify: web API in Node.js, mobile app in React Native, ML pipeline in Python, etc.]. Cover: (1) input validation — the five most common injection patterns in this stack and how to prevent each, (2) authentication and session management — the correct implementation pattern with a code example, (3) secrets management — where keys and tokens must and must not be stored, (4) dependency management — pinning, auditing, and update cadence, (5) code review checklist — a 10-point security checklist every PR reviewer must check. Format as a developer handbook page.
You are a senior software engineer. Break down this feature into an agentic coding plan: [describe feature — e.g. 'add OAuth 2.0 login with Google to this Express.js app']. Produce: (1) a task list ordered by dependency — which subtasks must be done before others, (2) for each task: the files to edit, the specific change needed, and the test to verify it, (3) the integration test that proves the whole feature works end-to-end, (4) the rollback plan if the feature needs to be reverted after deployment, (5) the three edge cases most likely to cause a production incident after launch. Format as a numbered sprint plan an AI coding agent can execute step by step.
Perform a gap analysis against [SOC 2 Type II / ISO 27001 / PCI DSS 4.0 / NIST CSF 2.0 — specify] for this system: [describe your tech stack, data flows, access controls, logging, and incident response process]. For each control domain: (1) state current compliance status (Compliant / Partial / Non-Compliant), (2) cite the specific control or requirement number, (3) for every gap, describe the minimum change to achieve compliance and estimate effort in engineering-days, (4) flag any area requiring a legal or compliance specialist, (5) produce a compliance roadmap sorted by risk priority and estimated effort.
Where Carbon fits in the Gemini 4 family and against comparable frontier models.
| Model | Best for | Speciality | Prompts |
|---|---|---|---|
| Gemini 4 Carbon ✓ | Coding, agentic workflows, cybersecurity audits | Security-domain specialisation, fast tool-call loops | This page |
| Gemini 4 Argon | Long-context reasoning, scientific synthesis, huge documents | 1M context, 62K avg output tokens, exhaustive analysis | Argon prompts |
| Gemini 4 | Everyday tasks, writing, research, general coding | Balanced capability across all domains | Gemini 4 prompts |
| Claude Fable 5.1 | Nuanced reasoning, long-form writing, careful code review | Best code explanations and nuanced output quality | Fable 5.1 prompts |
| Claude Sonnet 5.5 | Fast agentic coding, visual tasks, everyday work | Speed + agentic capability, free-plan access | Sonnet 5.5 prompts |
| GPT-6 Astra | Coding benchmarks, math, long-context reasoning | Top coding benchmarks, strong multi-modal | GPT-6 Astra prompts |
| MAI Thinking 1 | Microsoft reasoning model — math and logic | Step-by-step logical reasoning chains | MAI Thinking 1 prompts |
gemini-4-carbon in API calls to pin the model versionGemini 4 Carbon is Google's newest Gemini 4 variant, rolled out to Gemini app AI Ultra subscribers on November 10, 2026. It is positioned as Google's most capable model for coding, agentic workflows, and cybersecurity tasks. Carbon is distinct from Gemini 4 Argon (deep long-context reasoning) in that it is optimised specifically for fast, precise code generation, security analysis, and running autonomous multi-step agent tasks — the same workloads that dominate professional software engineering.
Both are top-tier Gemini 4 variants, but they are optimised for different use cases. Gemini 4 Argon is built for maximum reasoning depth — scientific synthesis, long-document analysis, 1M-token context, and extremely thorough outputs (averaging 62K tokens per task). Gemini 4 Carbon is optimised for coding, agentic execution, and cybersecurity: faster tool-call loops, tighter code output, and security-domain specialisation. Use Argon when the task is 'read and reason over a huge corpus'; use Carbon when the task is 'build, audit, or secure this code'.
Gemini 4 Carbon excels at: (1) full-codebase security audits — it understands vulnerability classes (OWASP, CWE) and writes targeted fixes; (2) agentic coding workflows — multi-step task delegation, CI/CD integration, and autonomous code generation with testing; (3) threat modelling and penetration test report drafting; (4) infrastructure-as-code security review; (5) dependency vulnerability scanning; and (6) compliance gap analysis (SOC 2, ISO 27001, PCI DSS). It is the right choice whenever the prompt involves code, security, or automated agent execution.
Carbon responds best to structured, task-specific prompts with explicit output requirements. Best practices: (1) lead with the specific artefact — paste the actual code, config, or logs rather than describing them; (2) number your tasks so Carbon processes them in the right order; (3) specify the output format per section ('present as a table', 'write as a checklist', 'give the corrected code block'); (4) add a scope constraint ('do not report style issues, only security findings'); (5) for agentic tasks, describe the full workflow including the tools it has access to and what a successful outcome looks like.
Gemini 4 Carbon is priced at $2 per million input tokens and $10 per million output tokens through the Gemini API — the same introductory rate as Gemini 4 Argon and Gemini 4. This introductory pricing is in effect until November 30, 2026. From December 1, 2026, the rate doubles to $4/$20. It is available through the Gemini API, Google AI Studio, and in the Gemini app for AI Ultra subscribers. It is not available on the free Gemini tier.
Gemini 4 Carbon, GPT-6 Astra, and Claude Fable 5.1 are all frontier-tier coding models, each with different strengths. Carbon's key advantage is its native integration with Google's security tooling and its specialisation on cybersecurity — it performs particularly well on threat modelling, compliance analysis, and secure code review. GPT-6 Astra leads on pure coding benchmarks and long-context reasoning. Claude Fable 5.1 excels on code quality, careful reasoning, and nuanced written explanations of code. For pure security-domain work, Carbon is the strongest choice; for general engineering tasks, benchmark on your specific use case.
1M context, scientific synthesis, long documents — 20 prompts
Google's flagship base model — 20 copy-paste prompts
Anthropic's most capable model — 20 prompts
Fastest Sonnet — agentic coding, visual tasks — 20 prompts
OpenAI's frontier reasoning and coding model — 20 prompts
Microsoft reasoning model — math and logic — 20 prompts