Skip to content
FlashTowerFlashTower home

Insights

AI coding agents and production access: setting safe limits

The rules in this playbook separate what is reasonable from what is not: AI code execution against production without approval, unsupervised production or cloud access, human-approved execution that still reaches production, and AI pushing code without review. The goal is to keep the speed and remove the unreviewed path to production.

By FlashTower Security Team · Published

FlashTower graphic for the article “AI coding agents and production access: setting safe limits”

Coding assistants have moved from suggesting lines to running commands, opening pull requests, and deploying. That is useful, and it also means an AI system can now reach the same production and cloud systems your engineers can, sometimes with fewer checks than a junior engineer would face. The rules in this playbook separate what is reasonable from what is not: AI code execution against production without approval, unsupervised production or cloud access, human-approved execution that still reaches production, and AI pushing code without review. The goal is to keep the speed and remove the unreviewed path to production.

The checks at a glance

  • Critical: AI can execute code against production or cloud infrastructure without approval
  • High: AI system has unsupervised production or cloud access
  • High: AI can push code without review
  • Medium: Human-approved AI code execution with production reach

Work through them in that order. The sections below explain each gap, what to change, and what evidence shows it is closed.

AI can execute code against production or cloud infrastructure without approval

FlashTower rates this gap Critical. It applies when the AI system can execute code and reach production systems or cloud administration, without per-action human approval.

Code execution with production reach means one bad command — generated in error or injected via a malicious file, issue, or web page — can delete data, expose secrets, or take systems offline.

What to do

  • Run AI code execution in an isolated sandbox without production credentials.
  • Require human approval for any command that touches production or cloud control planes.
  • Use short-lived, least-privilege credentials for any deployment path.

Evidence to keep

  • Sandbox configuration
  • Approval gate configuration
  • Credential scope

Mapped to: OWASP LLM Top 10 LLM06, OWASP LLM Top 10 LLM05, NIST CSF 2.0 PR.AA-05, ISO 27001 A.8.2, SOC 2 TSC CC6.3.

AI system has unsupervised production or cloud access

FlashTower rates this gap High. It applies when the AI system can access production systems or manage cloud infrastructure without per-action human approval (and cannot execute code).

Production and cloud control-plane access should be limited to the minimum necessary and tightly supervised.

What to do

  • Reduce production access to read-only where possible.
  • Require approval for write actions and scope credentials narrowly.

Evidence to keep

  • Role/policy definition for the AI identity

Mapped to: NIST CSF 2.0 PR.AA-05, ISO 27001 A.8.2, SOC 2 TSC CC6.3.

AI can push code without review

FlashTower rates this gap High. It applies when the AI system can push code or open changes to repositories without per-action human approval.

Unreviewed AI-written code can introduce vulnerabilities, leak secrets, or alter CI/CD pipelines.

What to do

  • Require pull requests with human review for AI-authored changes; protect default branches.
  • Prevent AI identities from modifying CI/CD configuration or branch protections.

Evidence to keep

  • Branch protection settings
  • CODEOWNERS / review requirements

Mapped to: OWASP LLM Top 10 LLM06, ISO 27001 A.8.4, SOC 2 TSC CC8.1.

Human-approved AI code execution with production reach

FlashTower rates this gap Medium. It applies when the AI system can execute code with production or cloud access, and a person approves each action.

Approval gates help, but reviewers approving many AI-proposed commands suffer approval fatigue. The environment the AI runs in still determines worst-case impact.

What to do

  • Keep production credentials out of the AI's environment by default; elevate per task.
  • Log approvals and commands for later review.

Evidence to keep

  • Credential elevation workflow
  • Command logs

Mapped to: OWASP LLM Top 10 LLM06, ISO 27001 A.8.2.

Where to start this week

  1. Find every place an AI tool can run commands, push code, or call cloud APIs, including CI pipelines.
  2. Route AI-authored changes through the same review and branch protection as human changes.
  3. Give AI tools credentials for non-production environments by default, and require approval for anything that reaches production.

Related on FlashTower: Securing GitHub Copilot · AI agent security checklist.

How FlashTower checks this

Each check above is a rule in FlashTower's risk engine (FT-EXE-001, FT-PRD-001, FT-CDE-001, FT-EXE-002). The engine is deterministic: the same answers always produce the same findings, and each finding comes with the remediation steps and evidence list shown here. You can run these checks against your own environment with the free AI risk assessment.

Frequently asked questions

Which frameworks are these checks mapped to?

OWASP Top 10 for LLM Applications; NIST Cybersecurity Framework; ISO/IEC 27001:2022 Annex A; AICPA Trust Services Criteria (SOC 2). A mapping means the check is topically related to that control. It is not an audit result and does not show that any control is met.

Who should own this work?

Usually engineering leaders, DevOps, and platform security, with one named person accountable for each open item and a date to review it again.

Practical AI security guidance, twice a month

Sourced, vendor-neutral guidance on securing AI tools and agents. No spam; unsubscribe anytime.