PermisoScope runs prowler's agent checks offline and writes one report per agent identity
From read-only AWS and Google Cloud exports, PermisoScope finds every identity an AI agent runs as and writes findings, least-privilege changes and a re-test diff per agent, in English and Spanish.
By David Discua
Measured in the lab
- 14
- prowler checks run offline
- 8
- agent identities found
- 0
- critical findings after fixes
- 40
- per-agent reports (EN + ES)
- 14 prowler 5.45.0 checks executed on the export, 12 with results
- 4 AWS agent roles and 4 Google Cloud principals found
- Critical findings went from 2 to 0 after partial remediation
- 30 least-privilege changes suggested before the fix
- 20 English and 20 Spanish per-agent reports
From reports/permisoscope.json · run on October 21, 2026. synthetic exports for the fictional Example Cooperativa; prowler 5.45.0 and cloudsplaining 0.9.1; the report carries no timestamp, generated_at is its file time
How it is wired
01/03Start from read-only exports of AWS IAM and Google Cloud IAM.
AI agents often run under a shared or admin cloud identity, and generic scanners report per policy, not per agent. PermisoScope takes read-only exports from AWS and Google Cloud, finds every identity an agent runs as, runs 14 of prowler's own agent checks plus cloudsplaining on each AWS agent role, reads IAM Recommender, Policy Analyzer, Agent Identity and Principal Access Boundary data on Google Cloud, and writes one report per agent identity in English and Spanish. On synthetic exports for a fictional "Example Cooperativa", it found 8 agent identities, and a partial fix took critical findings from 2 to 0. The catch is that prowler runs offline here, and nobody has checked that it matches a live prowler run.
The catch
The 14 prowler checks are prowler's unmodified code, but their AWS clients are swapped for stand-ins built from the export. Equivalence with a live prowler run was not verified; the live AWS path was not run in this lab. prowler also skips service roles in iam_role_administratoraccess_policy and bedrock_full_access_policy_attached, and agent roles are service roles, so those two checks never fire on them. PermisoScope adds its own rules for that gap.
scripts/export_aws.sh has not been tested against a real account. The Agent Identity API, Vertex AI Agent Engine and Principal Access Boundary readers are tested only on synthetic data shaped after the public discovery documents. The Google Cloud exporter did one live read-only run on October 21, 2026, and its results stay private. Agent discovery is incomplete. Agents outside Bedrock and Agent Engine must be declared, and identities matched by name are guesses to confirm. Suggestions are service or role level; no action-level policy is generated. The optional Gemini rewording was not run in this lab, so every report uses the deterministic templates.
What we ran (keyless)
uv sync --frozen --group dev
uv sync --frozen --project engines/prowler
uv run permisoscope audit --aws fixtures/aws/before --gcp fixtures/gcp/before --out out/before
uv run permisoscope audit --aws fixtures/aws/after --gcp fixtures/gcp/after --out out/after
uv run permisoscope retest --before out/before/audit.json --after out/after/audit.json --out out/retest
From reports/permisoscope.json, run on October 21, 2026, on synthetic exports:
| Measured | Value |
|---|---|
| prowler checks executed offline / with at least one result | 14 / 12 (prowler 5.45.0) |
| prowler results (FAIL / PASS / MANUAL) | 14 / 15 / 0 |
| Agent identities (AWS roles + Google Cloud principals) | 4 + 4 (10 agents) |
| Findings before (critical / high / medium / low / info) | 2 / 19 / 20 / 6 / 5 |
| Least-privilege changes suggested before | 30 |
| Findings after partial remediation | 0 / 9 / 11 / 2 / 4 |
| Re-test (fixed / still open / new) | 26 / 26 / 0 |
| Per-agent report files (EN / ES) | 20 / 20 |
cloudsplaining 0.9.1 produced the largest share of findings before the fix (16), then prowler (13) and PermisoScope's own rules (6). The fix in the after fixtures is partial, so the re-test diff shows both closed and still-open findings. Sample output is committed under reports/sample/, including a Spanish report for the shared agent role.
How it is wired
On AWS, PermisoScope finds agent identities from Bedrock agent execution roles, roles trusted by bedrock or bedrock-agentcore, ai-agent tags and declared roles. On Google Cloud it reads Agent Engine effective identities, agent principals, Agent Identity workload ids and declared principals. A bridge hands prowler's check classes the export instead of live clients. Report text comes only from EN and ES templates, and each finding quotes the tool's own output line. Suggested gcloud and AWS commands are printed for a human; nothing runs them.
Minilab (open source)
It runs prowler-cloud/prowler (15,093 stars, Apache-2.0, Python) and salesforce/cloudsplaining (2,252 stars, BSD-3-Clause, JavaScript), as of October 24, 2026. Run the before, after and retest commands above and compare retest in reports/permisoscope.json.
Run it yourself
SkilledDragonCorp/permisoscope-audit
Clone, install and run the report with no API keys. The numbers above are what that run writes.
uv sync --frozen --group dev && uv sync --frozen --project engines/prowler && uv run permisoscope audit --aws fixtures/aws/before --gcp fixtures/gcp/before --out out/beforeSkilledDragon is not affiliated with Amazon Web Services, Google, Prowler or Salesforce. All numbers come from synthetic exports of a fictional organization; re-run the report before relying on them. Marks belong to their owners.
All labs