perspectivegraph
Open source attack-path engine for AWS and Kubernetes: correlates your scanners into one graph and blocks the pull request that opens a route to your data.
Install / Use
claude mcp add luiacuaniello -- npx -y github:luiacuaniello/perspectivegraphIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
SecuritySupported Platforms
Our assessment of perspectivegraph
perspectivegraph scores 76/100 on our quality scale, 1018th of 1,095 Security skills we index.
Its MCP Server is 18 KB long, well organised into 9 sections with 7 code examples: a thorough specification that gives an agent plenty to work with.
It has 10 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated today, so perspectivegraph is actively maintained.
- It is released under the Apache-2.0 license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 97/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
perspectivegraph compared with similar skills
All 4 of these similar skills score higher than perspectivegraph; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| perspectivegraph (this skill)by luiacuaniello | 76 | 10 | today | MCP Server |
| Agent-Reachby Panniantong | 100 | 114.5k | today | CLAUDE.md |
| hyperframesby heygen-com | 100 | 89.4k | today | CLAUDE.md |
| rufloby ruvnet | 100 | 82.4k | today | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 80.7k | today | CLAUDE.md |
Frequently asked questions
- How do I install perspectivegraph?
- Run
claude mcp add luiacuaniello -- npx -y github:luiacuaniello/perspectivegraph. The install tabs above show the steps for each supported agent. - Which AI agents does perspectivegraph work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is perspectivegraph safe to use?
- It is Apache-2.0-licensed and scores 97/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is perspectivegraph still maintained?
- The repository was last updated today, so perspectivegraph is actively maintained.
Skill content
View source on GitHubPerspectiveGraph joins what you already run - Trivy, Semgrep, Cloud Custodian, Falco, plus your AWS and Kubernetes state - into one graph of your real environment, and asks a single question of it: can someone get from the internet, through privilege that is too broad, to something worth stealing?
On a pull request it asks that question before the merge: the check goes red only when this change opens a route, and the fix comes back as its own pull request. Open source (Apache 2.0), runs on your infrastructure, collects no telemetry.

Twelve seconds of make demo: what is exploitable now → the ranked routes → one route's kill
chain and the fix it generates → whether the scores can be trusted. Sample scanner output and
seeded verdicts, not a real environment.
- See it running - the same dashboard, published read-only. Nothing to install.
- Read the documentation - the manual, one page per subject, with search.
- Check your own AWS account - one read-only command, no deployment.
- Put it on your pull requests - ten lines of YAML.
A score here is what the model concludes from the evidence it was given, not a measured frequency: nothing has been calibrated against field data yet, and the engine says so itself rather than rounding up. What is measured, and what is not.
Check your own account in 30 seconds
No deployment, no Docker, nothing ingested. One static binary asks AWS's own policy evaluator which of your roles can reach administrator - applying the service control policies, permission boundaries and condition keys that a policy reader on its own does not see:
# macOS (Apple silicon); swap darwin_arm64 for linux_amd64, linux_arm64 or darwin_amd64
curl -sSL https://github.com/luiacuaniello/perspectivegraph/releases/latest/download/perspectivegraph_darwin_arm64.tar.gz | tar xz
./perspectivegraph redteam -roles -region eu-west-1
It is read-only and free: each check is one iam:SimulatePrincipalPolicy dry run, which
creates nothing and costs nothing, and the only permissions it needs are that and
iam:ListRoles, both inside SecurityAudit. Windows builds are on the
releases page; every binary
is signed with cosign and carries SLSA provenance, and two commands
verify both before you run anything.
Add -compare and it also runs the engine over the same account, exiting non-zero where the
two disagree. That is how the engine's
first real false positive
was found, and how it stays fixed. If it disagrees on yours,
report it: no report is more useful. From here, how to evaluate this walks to a
verdict on your own estate in stages that each end in an answer.
See the whole engine in 90 seconds
make demo
Pulls the published, cosign-signed images, feeds them sample Trivy / Semgrep / Custodian /
Falco / Kubernetes / IAM / SSO output, and prints the top attack path with its generated fix.
Dashboard on http://localhost:3000, make down to tear it down. It needs Docker, jq and
curl, compiles nothing, and takes about 23 seconds from an empty image cache; make demo-build
is the same demo built from your working tree.
On Kubernetes, the chart is an official package on Artifact Hub:
helm install perspectivegraph oci://ghcr.io/luiacuaniello/charts/perspectivegraph \
--set secrets.generate=true \
--version 1.39.5 # x-release-please-version
A default install is authenticated, and the chart will not render one that does not say
where its credentials come from: secrets.generate=true generates them and keeps them
across upgrades, and the install notes print how to read the admin token back.
The chart's page has the other choices.
On one machine - a VM with Docker and a DNS name - one command sets up TLS, generated credentials, an authenticated bus and daily backups, and starts it: production on one machine.
make prod-init DOMAIN=perspectivegraph.example.com
The chart and the three images it runs (ghcr.io/luiacuaniello/perspectivegraph, -dashboard
and -postgres) are signed with cosign keyless and carry an SPDX SBOM and SLSA provenance:
verify them rather than taking the supply chain on trust.
The dashboard opens on the decision, not the inventory: what is being exploited now, the fewest changes that remove the most risk, and how far the numbers can be trusted. Routes are ranked by triage priority - what the route reaches, whether runtime confirmed it, how exposed the entry is - so a lower-scoring route can outrank a higher-scoring one.

| | |
|---|---|
|
|
|
| Why the route is P1, one probability with its range, and every hop with what it lets the attacker do and where its probability came from. | Whether the engine's own scores held up against recorded outcomes - and whether there are enough of them to say. |
The screenshots are make demo with seeded verdicts: make seed-validation records
synthetic outcomes on part of the routes, the way a BAS run tests part of an estate, which is why
the calibration panel has something to show - and why it still says not enough outcomes yet:
the handful it records is far short of the 30 a verdict needs. The counts in the pictures are
those of the release they were taken on; the sample data has grown since, so yours differ by a
route or two. A fresh install and the public demo report
insufficient data instead, until real outcomes exist. The public demo runs on one free VM, so
treat it as best-effort.
Why?
A scanner reports that a container carries a critical CVE. It cannot report that the container sits behind an internet-facing load balancer, runs with a role that reads the production database, and is therefore the one finding out of ten thousand worth fixing this week. That needs the other tools' output in the same graph, which is what this builds. A developer gets a check that goes red only when their change opens a real route; a security team gets a short ranked list of attack paths instead of a flat list of findings.
Block the pull request that opens the path
No deployment required. The runner reads your estate read-only, ingests this pull request's scan, and answers in-process with the same engine:
- uses: luiacuaniello/perspectivegraph@v1
with:
mode: local
aws-region: eu-west-1 # read-only; give the job an OIDC role with SecurityAudit
report: trivy.json
The check goes red when this change opens a route to a sensitive asset - or makes one likelier - not when it adds a critical CVE: a critical on a host nothing routes to does not fail the build, and a medium on a container that now reaches the production database does. Routes that were there before the change do not count, even when they run through what it touches: the scan is applied to a copy of the estate and compared with it, and nothing is written. It also has a third outcome, because a pipeline whose scan never arrived must not get the same green tick as one that is clean:
| Verdict | Exit | Meaning |
| --- | --- | --- |
| clean | 0 | The engine analysed this change: it opens or worsens no critical path |
| blocked | 1 | It opens or worsens critical attack paths - the check names them |
| unknown | 2 | Nobody analysed it. The scan, the ingest or the SHA is wrong |
A Terraform plan goes through the same gate before anything is deployed: source: terraform
with the output of terraform show -json, judged on its own or against the live estate. A
security group rule, a policy attachment or a bucket policy that opens a route fails the check
in the pull request that writes it - see Terraform plans.
Outside GitHub Actions it is one command, and it installs as a Trivy plugin too:
perspectivegraph gate -local -aws-region eu-west-1 -report trivy.json -slug owner/name -sha "$COMMIT_SHA"
trivy plugin install github.com/luiacuaniello/perspectivegraph
trivy image -f json myapp:pr-42 | trivy perspectivegraph gate -local -aws-region eu-west-1 -report -
[!WARNING] Fork pull requests get no secrets, so the gate fails closed as
unknownon them. Do not work around it withpull_request_target: that runs your secrets - in local mode, cloud credentials - against the contributor's code.On a public repository, a blocked check prints the route (real asset names, the CVE, the sensitive asset) into a public job log. Use
soft-failand post the detail somewhere private.
The manual covers the rest:
pointing the action at a deployed engine, gating rendered manifests, a pre-collected estate,
rolling the gate out, and every input in action.yml.
Let an agent query it
A language model cannot enumerate thousands of edges reliably or run Dijkstra, and asked for "the attack paths in my account" it will invent plausible ones. So the engine speaks MCP: the agent asks, and reasons over answers it could not have made up.
perspectivegraph mcp --api http://localhost:8080 # or https://demo.a3thinker.it, no credential needed
Eight tools, every one read-only and declared so on the wire. The one worth the integration
is simulate_fix: it re-runs the simulation with the given edges cut and reports what actually
changes. The server is in the official MCP Registry
and on Glama; the tools and the
client configuration are in the manual.
[