
When the Same Cloud Security Checks Keep Coming Back
Recurring audit checks across AWS accounts often send reviewers back to the same workload evidence, policies, and past decisions. I used a Lambda VPC check to test whether Amazon Bedrock could combine that context with official AWS guidance and prepare a draft for human review.
In cloud security governance, running the scanner is rarely the slow part.
The report says FAILED. Then the real work starts:
- The application team explains the workload
- Security checks the official documentation
- Everyone confirms what the policy actually says
If it was discussed before even with a still-valid approved exception, which has its own scope, conditions and validity period a new reviewer in the next audit often means starting the same conversation from scratch.
So I tested a narrower question:
With a bounded set of sources, can an agent draft the repetitive lookup work for a human reviewer — without changing any check, or any standard?
The lab
To validate the idea safely, I first built a small lab in us-east-1, using CloudFormation to deploy one log path:
CloudWatch Logs subscription → Lambda
export-cloudwatch-log-to-s3 → S3 bucketThe setup, in short:
- The function decompresses each log event and writes it to S3
- I sent one synthetic message with a unique token, and confirmed it arrived in S3
- The function had no customer VPC connection
- A separate read-only script checked that one fact against the Lambda.3 control definition and reported FAILED
No full scanner was run, and no Security Hub finding was created or modified. This was a single check of a single configuration fact.
The evidence behind the review
- Deployed handler bytes matched the reviewed source
- Environment, IAM actions, subscription destination and S3 events all checked
- The handler's only business API was S3
PutObjectno custom endpoint, no layer, no known private network dependency
- The bucket had Block Public Access on — but "not public" is not the same question as "needs a private network connection"
That dependency conclusion applies only to this lab. It cannot be inferred for another Lambda from its name or purpose.
I also provided a versioned lab policy: workload-specific review allowed, no mandatory customer VPC. I set that policy myself for the experiment — the agent did not discover it.
How the agent worked
A local application used Amazon Bedrock Nova 2 Lite (
us.amazon.nova-2-lite-v1:0 , US cross-Region inference profile, API region us-east-1 inference is not guaranteed to stay in that region).Three stages, all arranged by the application
- The model generated search terms
- The model selected and read passages from official sources
- The model submitted a structured recommendation
Bounded sources only
- Search called the AWS Knowledge MCP server, plus pre-downloaded official sources
- Reading used prepared snapshots only: the Lambda.3 definition, the Lambda VPC developer guide, and the networking section of the AWS serverless whitepaper
- No open web browsing, no Bedrock Knowledge Base
Before accepting anything, the application checked the output structure, that citations existed in the passages actually read, and that policy, evidence and human-review requirements were met.
A citation existing does not make the inference correct. That is why the last step is always a human.

Results
Scenario | Model proposed | What happened |
|---|---|---|
Main case — lab policy, full evidence | FALSE_POSITIVE_CANDIDATE | Accepted as a draft for human review. Original result stayed FAILED |
Hypothetical mandatory-VPC policy | POLICY_APPLIES | Rejected — it wrongly set human_review_required=false . Documentation cannot override a mandatory policy |
Dependency evidence removed | NEEDS_EVIDENCE | Accepted as a draft asking for evidence. No guessing from a function's name |
Timing: about 8.2 seconds (8.228s — one observation, not a benchmark), including model calls, search and reading. Excluding deployment, evidence collection and human review.
What "false positive" means here
- The scanner correctly saw no VPC connection
- Whether the VPC fix applies depends on dependencies and policy
- So the label only means "worth a human look" never compliant, never exempt, never PASSED
Not everything passed, either. The main draft's wording was more certain than it should have been and needed human editing, and earlier iterations had citation problems including a PDF page header breaking citation checks across pages.
Cost
Rates as checked when the lab was run — not current pricing.
Item | Detail |
|---|---|
Token rates (us-east-1, standard) | US$0.33 / US$2.75 per million input / output tokens |
Main case | 3 calls · 10,235 input + 597 output tokens · ≈ US$0.0050 |
Two iterations, incl. rejected outputs | 18 calls · ≈ US$0.0292 in model fees |
That excludes Lambda, CloudWatch Logs and S3 usage, which I did not reconcile. The lab was cleaned up afterwards.
From lab to daily work
The lab was only the proof. After tuning the prompts and checks, and integrating the same idea with our code review tooling, I now use this pattern in daily work.
Let me be clear about what changed and what did not:
- The checks are the same checks
- The standard is the same standard
- A human still reviews, decides, and owns the result
- What changed is where the time goes: the repetitive lookup documents, citations, policy conditions is drafted by the agent, so reviewer time goes on judgment instead of re-searching
Why that matters at scale
- One project I work on covers around 20 accounts, many running large numbers of Lambda functions
- And a workload account is never just Lambda networking, storage, IAM and many other resources together form the architecture, and every one of them has configurations worth checking
- That 20-account project is only one small project in one team. Run three projects like it in parallel, and the repeated lookup multiplies with them
The effect, in my experience
| Before | Now |
|---|---|---|
One account review | ~2 people, ~1 week | 1 person, ~2 days* |
*Depending on the size of the architecture.
That is not fewer checks done faster. It is the same review, with the repetitive part removed — so findings reach the workload owner earlier, and remediation can start earlier too.
Takeaway
The agent drafts the lookup. The human keeps the judgment, the wording, and the decision.
Next time the same FAILED appears, retrieving which document, what evidence, which policy version faster is what shortens the audit conversation without lowering the bar.
References
- Lambda VPC developer guide: https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html
- Security Hub — Lambda.3: https://docs.aws.amazon.com/securityhub/latest/userguide/lambda-controls.html#lambda-3
- AWS serverless whitepaper, networking (PDF pp. 11–12 in the version used): https://docs.aws.amazon.com/pdfs/whitepapers/latest/serverless-multi-tier-architectures-api-gateway-lambda/serverless-multi-tier-architectures-api-gateway-lambda.pdf
- AWS Knowledge MCP Server: https://awslabs.github.io/mcp/servers/aws-knowledge-mcp-server
- Amazon Bedrock pricing (rates as checked when the lab was run): https://aws.amazon.com/bedrock/pricing/
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article