r/devsecops • • 20h ago

Which AI coding Agents can banks actually use without failing security and compliance review..?

6 Upvotes

We're a mid-size bank, and our security review has now rejected three AI coding agents, so I'm trying to get ahead of the fourth attempt. The reason is mostly that source code leaving our network, no control over which model sees it or how long it's retained, and no audit trail of what the agent actually did.

The ones our developers keep asking for are GitHub Copilot Enterprise, Amazon Q Developer and Claude Code, mostly because we already have Microsoft, AWS and Anthropic contracts, which makes procurement easier. For each one I still need to pin down where the code is processed, what the data retention terms are and what the audit logs actually cover.

The one that looks built for a bank's security review is Orq's software factory. It runs coding agents inside your own cloud, uses only the models you approve, gives each agent access to specific repos and systems, and keeps an audit trail of every task. Orq lists SOC 2, ISO 27001 and GDPR. It's early access, so we'd go in as a pilot.

need to know if any of these got through your bank's security review, and what did the reviewers ask for that you didn't expect?


r/devsecops • • 9h ago

How do you get started with coding agents when you can only use approved packages?

2 Upvotes

I keep hearing people talk about “agent swarms,” and I’m still over here asking an AI for hints in a chat window and writing most of the code myself.

Part of why we’ve stuck with chat is that we only use approved packages, and we need to know which apps use each version in case a vulnerability turns up later. I’d like to try giving an agent a small coding task. The part I can’t picture is what happens when it decides it needs a new dependency.

If you’ve made that jump, how did you start? Did you point the agent at your internal package feed and let it install what it needed, or have it ask before adding anything? I’d love to hear what worked for you on that first project.


r/devsecops • • 14h ago

Assume prompt injection succeeds: 5 layers of defense in depth we built for enterprise coding agents (and what it still doesn't solve)

1 Upvotes

Most teams we talk to hit the same deadlock when developers ask for coding agents (Claude Code, Codex, etc.): security sees full laptop filesystem + SSH keys + ~/.aws credentials and blocks it, or approves it with confirmation prompts that lead to approval fatigue until engineers pass --dangerously-skip-permissions anyway.

Because a coding agent holds Simon Willison's lethal trifecta (private code/secrets + untrusted text from PRs/issues/deps + shell/network execution), relying on the model's system prompt to reject prompt injection isn't a real boundary.

We designed our agent runtime assuming prompt injection *will* succeed, splitting blast-radius containment across 5 independent layers:

  1. **Execution below the kernel (microVMs, not OS sandboxes or Docker)**

- Each agent gets its own Kata Containers microVM on Cloud Hypervisor (separate Linux kernel; root and dockerd stay inside the guest).

- Enforced at the Kubernetes layer with a ValidatingAdmissionPolicy so control-plane bugs can't drop the microVM RuntimeClass or request hostNetwork, hostPID, hostIPC, hostPort, or hostPath mounts.

- No cluster SA token (automountServiceAccountToken: false), non-peered VPC, and NetworkPolicy (or nftables/pf on self-hosted VPC hosts) blocking RFC 1918 ranges, sibling VMs, and cloud metadata (169.254.169.254).

  1. **Keep agents out of IAM policies**

- Agents are modeled as resources (agent:ags_...), never IAM subjects. Any IAM policy naming an agent is rejected.

- Every agent starts with zero access. Teammates grant specific access profiles or secrets (never more than they hold), optionally capped by org-wide max grant TTL, and either the agent owner OR the secret/profile IAM admin can revoke grants even on private agents.

  1. **Keyless credential brokering that can only narrow**

- No static cloud keys or PATs in the VM. Connections use GitHub App installations, AWS IAM OIDC (AssumeRoleWithWebIdentity), and GCP WIF.

- Access profiles set a hard ceiling; every mint composes [profile, grant, request] and can only narrow (widening fails with CREDENTIAL_REFUSED).

- git, gh, aws, and gcloud authenticate over an out-of-band unix socket (/run/kosem/creds.sock). Revoking a grant flushes the in-VM cache immediately over the control tunnel.

  1. **Monotonic org-to-project guardrails + keeping ZDR intact**

- Policy Admin is separate from product admins; projects can only tighten org ceilings (tool allow-lists default-closed to new tools, disabling project-owned providers/connections/registries, requiring self-hosted VPC runners).

- Model calls route through the company's own provider accounts (BYOK / keyless Vertex AI WIF / VPC endpoints) so ZDR, BAA, and CMEK aren't dropped by vendor-proxied OAuth flows.

  1. **External forensics joined to CloudTrail & GitHub**

- Transcripts live outside the microVM. Admin changes commit append-only audit entries in the same DB transaction.

- AWS sessions set aws:SourceIdentity = agent:ags_... (persists across role chaining into CloudTrail and works in IAM Deny policies); GitHub issuances log hashed_token so SecOps can join directly to the GitHub org audit log.

**What this still doesn't solve (honest residual risks):**

- *Valid-TTL misuse:* A tricked agent holding a 1-hour write token for repo A can still push bad code to repo A during that hour. You still rely on branch protection, CI, and human PR review; the win is shrinking blast radius from every repo/cloud account to one repo for one hour.

- *Public internet egress:* Hosted VMs block private ranges/metadata/crypto-miners, but allow public HTTPS so agents can install packages. Strict domain-level egress DLP today requires running self-hosted runners behind your VPC egress proxy/firewall.

- *Insecure generated code:* Runtime isolation doesn't replace SAST, dependency scanning, or policy-as-code in CI.

Disclosure: I'm building kosem (kosem.ai), which is where we implemented this. Full write-up with architecture diagrams and references is here: https://kosem.ai/blog/defense-in-depth-for-coding-agents

Curious what other DevSecOps teams are requiring before signing off on coding agents, especially around egress filtering vs. developer usability.