SuperAPIAI Directory

perspectivegraph

github.com · AI developer platforms

🎖️ 🏎️ 🏠 🍎 🪟 🐧 - Attack-path engine for cloud and Kubernetes: list routes from internet exposure to sensitive assets, explain each hop, find choke points and simulate fixes.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux · API

About this tool

Purpose PerspectiveGraph is an open-source attack path engine focused on AWS and Kubernetes environments. Its core goal is not to be another scanner, but to bring together the output of existing security tools (Trivy, Semgrep, Cloud Custodian, Falco, and the state of AWS and Kubernetes) into a graph that reflects the real environment, and then answer one question: can someone starting from the internet pass through overly broad permissions and reach something worth stealing. A single scanner can report that a container has a critical CVE, but cannot explain that the container sits behind an internet-facing load balancer and uses a role that can read the production database, making it the one finding among tens of thousands most worth handling this week. The engine exists to solve exactly this lack of context.

Main capabilities

  1. Attack path correlation: merge multi-source scan results with cloud and cluster state into a single graph, list paths from the internet-exposed surface to sensitive assets, and explain every hop of every path.
  2. Prioritization: routes are ranked by remediation priority based on what the route can reach, whether it is confirmed at runtime, the degree of ingress exposure, and so on, so a lower-scored route may be ranked ahead of a higher-scored one.
  3. Pull request gate: before merging, determine whether the change opens a route to a sensitive asset or makes a route more likely to occur. The check turns red only because a real path was added, not because a critical CVE was added-a critical vulnerability on a host no one can reach will not fail the build, while a medium-risk issue that newly lets a container reach the production database will cause a failure. Routes that already existed before the change are not counted. The scan is applied to a copy of the permissions snapshot and compared with it, without writing anything. It has a third outcome for pipelines that were not reached by the scan, avoiding the same green check as a clean state.
  4. Terraform plan gate: takes the output of terraform show -json as input, and can evaluate it on its own or against the live environment. If a security group rule, policy attachment, or bucket policy opens a path, the check fails in the PR that writes it.
  5. Remediation generation: after a problem is found, the fix is returned as a separate Pull Request.
  6. MCP interface: the engine supports MCP; language models cannot reliably enumerate thousands of edges or run Dijkstra's algorithm, so let agents ask questions and reason from answers they cannot fabricate. There are eight tools in total, all read-only and declared in the protocol. One worth integrating is simulate_fix: rerun the simulation after a given edge is cut, and report the actual change. The server is already listed in the official MCP Registry and Glama.
  7. Calibration panel: the dashboard opens oriented toward decisions rather than inventory: what is currently being exploited, the minimum change needed to remove the most risk, and how trustworthy the numbers are.

How to use View the demo: make demo pulls the published cosign-signed image, feeds in sample Trivy / Semgrep / Custodian / Falco / Kubernetes / IAM / SSO output, and prints the top-ranked attack paths and the remediations they generate. The dashboard is located at http://localhost:3000,make down can be removed. Requires Docker, jq and curl, compiles nothing, and takes about 23 seconds with an empty image cache. make demo-build is the same demo built from the working directory. No need to deploy to inspect an AWS account: a static binary asks AWS's own policy evaluator which roles can reach administrator, and applies service control policies, permission boundaries and condition keys. It is read-only and free: each check is an iam:SimulatePrincipalPolicy dry run, creates nothing and incurs no cost, and the required permissions are only that permission and iam:ListRoles, both part of SecurityAudit. With -compare, it also runs the engine on the same account and exits with a non-zero code when the two disagree. Kubernetes: the chart is the official package on Artifact Hub. The chart and the three images it runs (ghcr.io/luiacuaniello/perspectivegraph, -dashboard and -postgres) use cosign keyless signing, and come with an SPDX SBOM and SLSA provenance. Single-machine production: on one virtual machine with Docker and a DNS name, a single command sets up TLS, generates credentials, authenticates the bus and daily backups, and starts. GitHub Actions: no deployment required. The runner reads your environment read-only, ingests this PR's scan, and answers in-process with the same engine. Outside GitHub Actions, it is a single command and can also be installed as a Trivy plugin.

Use cases

  • Gate in developer workflows: make the check turn red only when a change opens a real path.
  • Triage for security teams: get a short ranked list of attack paths instead of a pile of flat findings.
  • Agent integration: let an LLM query the read-only tool via MCP and reason from reliable answers.
  • Read-only assessment of AWS accounts: quickly see role reachability without deploying.

Limitations and current state Scoring is not yet calibrated: the scores here are conclusions the model draws from the given evidence, not measured frequencies; nothing has been calibrated against field data, and the engine itself says so. It should be read as what the model believes and how certain it claims to be, not as measured frequency. It can be used to find and cut off routes, but do not put the percentages in front of the board. No one has yet in realRun in the environment, test the paths it exposes, and feed back conclusions: the machinery for this loop is built and tested, but the loop is not yet closed, so fresh installs and public demos report insufficient data until real results exist. Supported clouds: AWS is live and verified against real accounts; reading multiple accounts at once is exercised on fixtures, not yet against real accounts. Azure is fixtures only. There is no GCP or OpenStack connector. CI benchmarks: make bench-cloudgoat scores the engine on four CloudGoat-shaped scenarios, precision and recall 1.00 on all four, two of them negative controls, so this is a regression gate rather than a measure of accuracy on a real environment. On real AWS, make reachability-lab-aws checks exposure the same way for free, and make redteam-aws evaluates the engine's privilege-escalation claims against AWS's own policy evaluator. That scoring already caught one false positive (a permissions boundary the engine ignored), now fixed; make boundary-lab-aws fails when the engine and AWS disagree. make entrypoints-lab-aws, make public-access-lab-aws, and make terraform-lab-aws likewise verify each class of issue against AWS, and the findings from each run are written to the build, shown on the dashboard's Accuracy page under Checked against AWS. Interfaces: the GraphQL schema is frozen and drift-protected, breaking changes get a major version bump, and never appear in a patch. Deployment: the backend is distroless, non-root, read-only root filesystem, with images pinned by digest; under Helm every workload satisfies the restricted Pod Security Standard, asserted in CI. The compose defaults are intentionally open; PG_ENV=production refuses to start unless the API and ingest are authenticated. A real deployment needs more (TLS, backups, TRUSTED_PROXY_CIDRS behind a proxy, a failover-capable database): on a single machine make prod-init does the first three, CI restores one of those backups on every change; the runbook lists the rest. Support: latest version only, security fixes are time-bound (Critical 7 days, High 30 days). Telemetry: none. Nothing opens an outbound connection out of the box; GitHub, AI assistants, and the KEV/EPSS feeds each stay off until configured. Scope: focused on reachable attack path issues in the developer workflow, not a scanner, CNAPP, or compliance product, and no substitute for them. Public repository note: in a public repository, a blocked check prints the route (real asset names, CVEs, sensitive assets) into a public job log. Use soft-fail and publish details to a private location. Fork pull requests have no secrets, so on those PRs the gate fails closed as unknown; do not bypass with pull_request_target, which would run your secrets on contributor code. How it was written: produced by a human collaborating with Claude (Anthropic), the design and releases are decided by the maintainer, and much of the implementation and testing comes from that collaboration. You can check rather than trust via make test, make bench-cloudgoat, govulncheck ./..., and CONTRIBUTING. Licensed under the Apache License 2.0, with each file's license declared per REUSE definitions and checked in CI.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools