TL;DR: Cloud security agents can return fluent but wrong negatives when they sample only part of an environment, according to Sola Security, and the gap widens on blast radius and cross-account exposure questions. Completeness has to exist in the underlying representation before the question is asked, not after the answer looks confident.
At a glance
What this is: NHI Mgmt Group's analysis, drawing on Sola Security's research: Cloud security agents can produce clean negatives from partial environment sampling, and the problem is most acute for blast radius and cross-account exposure questions.
Why it matters: This matters because practitioners may trust fluent answers that never examined the full environment, which turns incomplete inspection into a governance and assurance problem for cloud identity and access decisions.
By the numbers:
- The Security Brain reached 0.549 coverage, against 0.340 for Claude Code and 0.281 for Codex.
- It cost 17.8x less per task than Claude Code and 20.8x less than Codex.
- Per unit of coverage, it cost 28.7x and 40.6x less.
- The Security Brain led 24 of the 28 tasks while running on the cheapest model in the comparison.
Context
Cloud security tools increasingly answer questions by calling live APIs directly, but direct access does not guarantee complete coverage of the environment. In practice, sampling a subset of cloud resources can produce confident-looking conclusions that miss the exposures that matter most, especially when identity relationships span multiple accounts, workloads and policies.
The central governance issue is not whether an agent can reason, but whether its view of the estate is complete enough to support a negative answer. That is a familiar control problem in cloud security and IAM, because access decisions depend on the full population of buckets, roles, principals and trust paths, not on a sampled slice.
This becomes more important as teams use AI systems to answer questions about reachability, exposure and blast radius across AWS and other environments. The failure mode is atypical for mature control design, but it is plausible wherever completeness depends on runtime discovery rather than precomputed inventory.
Key questions
Q: How do cloud security teams verify AI answers cover the full environment?
A: They verify coverage by comparing the AI output against a complete cloud inventory, then checking each account, region, subscription, workload, and permission path for gaps. Live API checks alone can miss dormant assets, transitive trust, and short-lived resources, so teams use graph correlation, configuration evidence, and policy queries to test whether the answer covers the full attack surface.
Q: Why do sampled cloud inspections miss blast radius exposure?
A: Sampled inspections miss blast radius exposure because they only inspect a subset of assets and relationships at a point in time. That can overlook inherited permissions, cross-account trust, stale roles, and resources that are inactive during the scan but still reachable. A graph-based inventory or continuous configuration query gives broader coverage than isolated API samples.
Q: How does cross-account exposure work in AWS security analysis?
A: Cross-account exposure is access in one AWS account that can be reached from another through trust policies, role assumptions, or resource sharing. Security analysis traces the trust path from the originating principal to the target role, resource, or data store, then checks whether the assumed permissions create unintended lateral movement or excessive blast radius.
Q: When should security teams prefer graph-based inventory over live API sampling?
A: Security teams should prefer graph-based inventory when they need complete relationship coverage, such as trust chains, inherited permissions, and multi-account blast radius. Live API sampling is useful for quick checks or validation, but it can miss dormant, newly created, or indirectly connected assets. A graph also helps correlate identities, roles, resources, and policies across the environment.
Technical breakdown
Why sampled cloud queries produce clean negatives
A sampled query inspects only part of the resource population, then generalises from what it saw. In cloud security, that is dangerous because a negative answer often depends on absence across the full estate, not just on a few observed objects. When the system checks a subset of buckets, roles or principals, it may miss policy edges that exist elsewhere. The resulting output can be grammatically precise and still operationally wrong. That is why coverage, not fluency, is the relevant technical measure when AI systems answer security questions from live infrastructure data. See the Cloud Security Guide.
Practical implication: Treat sampled inspection as an incomplete control and require proof that the query scope covered the full resource population.
Blast radius and cross-account exposure need multi-hop context
Blast radius questions are multi-hop problems. A single resource may be harmless on its own, but dangerous once linked to a role trust path, a bucket policy, or an external account relationship. Cross-account exposure is similar: the risk emerges from the path between identities, resources and permissions, not from any single object in isolation. Systems that do not pre-index those relationships can still answer local questions, but they struggle when the security question depends on joined data across the estate. That is the mechanism behind the article's sample-and-generalise pattern.
Practical implication: Use graph-backed inventory and relationship models for questions that depend on reachability rather than single-object status.
Why fluent negatives are hard to challenge operationally
A fluent negative is difficult because it looks like a complete result set even when it is only a partial inspection. Operators tend to trust the absence of flagged findings, especially when the response is well reasoned and the system does not expose its own coverage limit. In cloud governance, that creates an assurance gap: the answer may be technically honest about what it checked, yet still fail the security objective. The core issue is not model confidence but the hidden mismatch between the question asked and the population actually examined.
Practical implication: Require tools to surface inspection coverage, not just conclusions, before you rely on a no-risk answer.
Threat narrative
Attacker objective: The practical objective is not to compromise the agent itself, but to exploit incomplete inspection so that genuine cloud exposure remains undiscovered.
- Entry occurs through an analyst-style security question posed to a cloud agent with read-only API access.
- Credentialed access to the environment lets the system inspect resources, but only a sampled subset of the population is examined.
- Escalation appears as generalisation from partial results to whole-environment conclusions about exposure and reachability.
- Impact is a false negative that can hide real bucket access, cross-account reach, or blast-radius exposure from defenders.
Breaches seen in the wild
- Codefinger S3 ransomware 2025: Codefinger used victims' compromised AWS keys to re-encrypt S3 buckets with SSE-C, set 7-day deletion and demanded ransom for the key.
- 230M AWS environment compromise: 230M AWS environments compromised via exposed .env files with cloud credentials.
Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
Sample-and-generalise is the right label for this failure mode: cloud agents that inspect a subset of resources and answer for the whole estate create a new assurance problem, not just a tooling limitation. The issue is structural because the answer depends on coverage before reasoning begins. Practitioners should treat incomplete inspection as a governance defect in the query layer, not a minor accuracy issue.
Cloud security questions increasingly require precomputed relationship context: blast radius and cross-account exposure are graph problems, so live API access alone is not enough. When identity and resource relationships are not indexed in advance, the agent can still produce plausible answers while missing the security-critical path. That is exactly where cloud IAM and NHI governance meet.
Negative answers now need evidence of scope, not just confidence: a clean no is only useful when the system can show what population it examined. This changes evaluation from model quality to coverage quality, which is a stronger and more defensible control for cloud security programmes.
Identity is part of the failure, even when the headline is about cloud analysis: the missed exposures live in roles, trust paths and cross-account permissions, so cloud reasoning and IAM governance are inseparable here. Cloud security teams need inventory, identity and policy relationships to be complete before any AI layer can be trusted with a negative result.
From our research library:
- Claude Code-assisted commits leaked secrets at a rate of 3.2%, more than double the human-only baseline of 1.5%, with peaks reaching 31 secrets per 1,000 commits in August 2025, according to the State of Secrets Sprawl 2026.
- Read next: Cloud Security Guide
What this signals
Coverage becomes the new trust boundary: once AI systems answer cloud security questions directly from APIs, the deciding factor is whether they can prove whole-population inspection. A tool that cannot show scope should be treated as advisory, not authoritative, even when the answer sounds complete.
Multi-hop exposure is where the hardest misses will stay hidden: policies, trust paths and cross-account relationships are exactly the cases that defeat naive sampling. Cloud programmes that still rely on partial reads will keep underestimating blast radius and cross-account reach.
State-of-Secrets Sprawl 2026 showed Claude Code-assisted commits leaked secrets at a rate of 3.2%, more than double the human-only baseline of 1.5%, with peaks reaching 31 secrets per 1,000 commits in August 2025. That pattern reinforces a broader point for security teams: AI systems can magnify exposure when they operate on incomplete context, so governance must move upstream to scope and coverage before conclusions are trusted.
For practitioners
- Validate query coverage before accepting a negative Require every cloud security agent to show the resource population, account scope and policy set it inspected before the answer is accepted.
- Pre-index identity and resource relationships Build graph-backed views of roles, bucket policies, trust paths and cross-account links so exposure questions do not depend on live sampling.
- Separate partial inspection from assurance reporting Label sampled answers as partial when the system cannot prove whole-environment coverage, especially for blast radius and reachability questions.
- Test AI tools against full-population cloud tasks Use evaluation sets that require complete enumeration of resources, not just plausible reasoning over a subset, before putting the tool into production.
Key takeaways
- Cloud security AI can produce confident negatives while still missing exposures if it only inspects part of the estate.
- The strongest evidence in the source is the gap between coverage and cost, which shows why fluent answers are not the same as complete answers.
- Practitioners need scope proof, graph context and coverage-based validation before relying on a no-risk result from an AI security tool.
Related NHI Mgmt Group resources: Cloud Security Guide · AI Coding Agents Security Guide · AI Coding Tools Hub
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP API Security Top 10 and MITRE ATT&CK address the attack and risk surface, while NIST CSF 2.0 and CIS Controls v8 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP API Security Top 10 | API9 — Improper Inventory Management | The core failure is incomplete population coverage when agents query cloud APIs. |
| Recommendation — Build complete resource inventory coverage before trusting API-driven security answers. | ||
| NIST CSF 2.0 | ID.AM-01 — Physical devices and systems are inventoried | Cloud exposure questions depend on full asset inventory and relationship coverage. |
| PR.AA-05 — Access Permissions, Entitlements and Authorizations | The article centers on bucket access, role reach and cross-account entitlement paths. | |
| Recommendation — Maintain complete cloud asset inventory so negative answers rest on whole-population visibility. Map and govern cloud entitlements before relying on AI to assess exposure. | ||
| CIS Controls v8 | CIS-1 — Inventory and Control of Enterprise Assets | The sampling problem persists because the environment is not fully represented at query time. |
| Recommendation — Centralise cloud asset inventory to reduce blind spots in agent-led assessment. | ||
| MITRE ATT&CK | TA0007; TA0006 — Discovery; Credential Access | The failure pattern depends on discovery over cloud resources and the credentialed APIs used to inspect them. |
| Recommendation — Map incomplete cloud inspection to discovery and credential-access behaviours in detection engineering. | ||
Key terms
- Blast Radius: The potential scope of damage if a specific credential or identity is compromised. Identities with broad permissions have a larger blast radius and represent a higher priority for least-privilege enforcement and security controls.
- Cross-Account Exposure: Cross-Account Exposure is a cloud security condition where one account can influence or reach resources in another account. It usually arises from role assumption, trust policies, shared resources, or delegated permissions, and matters because it expands the effective access boundary beyond the owning account.
- Role Trust Path: Role Trust Path is the chain of trust that lets one principal assume a role and obtain its permissions. It starts with the trusting role’s policy and follows each allowed assumption step, showing how access moves across accounts or identities. Security teams use it to spot excessive delegation and unintended reachability.
- Cloud API Sampling: Cloud API Sampling is a security inspection method that queries selected cloud APIs to capture a partial view of accounts, resources, or permissions. It is fast and useful for spot checks, but it does not guarantee full coverage of relationships, inheritance, or transient assets, so it can understate exposure.
Deepen your knowledge
NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, machine identity security and secrets management. It helps security practitioners connect identity controls to the cloud and AI systems they already operate.
Published by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org