# Insights overview

> Analyze captured traffic in Cloak Proxy's Insights window for API endpoints, security grades, leaked secrets, performance problems and schema changes.

Source: https://docs.subcloak.com/cloak-proxy/insights/overview/

Insights reads the traffic you've captured and tells you what's in it: which API endpoints your app calls, how each host scores on security headers and cookies, whether keys or tokens are leaking, what's slow or wasteful, and when a backend changed the shape of its JSON. Use it after a test session, before a release, or whenever you want a second look at an app's network behavior without reading every request by hand.

Everything runs on your Mac. Nothing is uploaded to analyze it.

## Open the Insights window

Open Insights in any of these ways:

| Where | How |
|---|---|
| Menu bar | **Tools › Insights…** |
| Keyboard | <kbd>⌥</kbd> <kbd>⌘</kbd> <kbd>I</kbd> |
| Main window toolbar | Click **Insights** |
| Search Everything | Press <kbd>⇧</kbd> <kbd>⌘</kbd> <kbd>A</kbd> and type a tab name, such as `Secrets` or `Timeline`. Each tab is listed under Windows with the subtitle **Insights** and opens the window on that tab. See [Search and command palette](https://docs.subcloak.com/cloak-proxy/inspect/search-and-command-palette/). |

The window remembers the last tab you used and the scope you picked.

*[Screenshot: The Insights window on the Overview tab, with six summary cards and a Needs attention list of high-severity problems. The Overview tab: summary cards across the top and the high-severity problems below.]*

## Choose what to analyze

The menu at the top right sets the scope:

| Option | What Insights analyzes |
|---|---|
| **All traffic** (default) | Every captured request in the session, whatever the main window shows. |
| **Current filter** | Only the requests the main window's sidebar selection and filters currently show. Use it to focus on one app or one domain. See [Filtering](https://docs.subcloak.com/cloak-proxy/inspect/filtering/). |
| **In scope** (added in Cloak Proxy 0.5.1) | Only requests in the active [scope](https://docs.subcloak.com/cloak-proxy/security/scope/). Shown while a scope is active. |

Insights updates as new traffic arrives. It re-analyzes at most once a second, in the background, so heavy traffic doesn't slow the app down. A small spinner appears next to the scope menu while an analysis runs. Until the first analysis finishes, the window shows **Analyzing traffic…**.

> **Decrypt HTTPS first:**
> Insights can only look inside requests Cloak Proxy decrypted. HTTPS traffic that passes through as a tunnel has no headers or bodies to analyze, so it doesn't appear in the endpoint catalog, security audit, secret scan or schema checks. Turn on [SSL Proxying](https://docs.subcloak.com/cloak-proxy/capture/ssl-proxying/) for the hosts you want analyzed.

## The tabs

| Tab | What it shows | Page |
|---|---|---|
| **Overview** | Summary cards and the high-severity problems from every other tab. | This page |
| **Endpoints** | An API catalog: requests grouped into endpoint templates such as `/users/{id}`, with calls, errors, p50 and p95 latency, size, query parameters and callers. | [Endpoints](https://docs.subcloak.com/cloak-proxy/insights/endpoints/) |
| **Security** | An A to F grade per host for security headers, cookie flags, CORS and version disclosure. | [Security](https://docs.subcloak.com/cloak-proxy/insights/security/) |
| **API Scan** (added in Cloak Proxy 0.5.1) | A passive API security scan: likely IDOR, mass assignment, missing rate limits, verbose errors, weak JWTs, CORS, GraphQL and request-smuggling signals. | [API scan](https://docs.subcloak.com/cloak-proxy/insights/api-scan/) |
| **Secrets** | API keys, tokens, private keys, card numbers and credentials found in requests and responses, with values masked. | [Secrets](https://docs.subcloak.com/cloak-proxy/insights/secrets/) |
| **Performance** | Slow and large responses, missing compression, duplicate requests, N+1 bursts, uncacheable static files and errors. | [Performance](https://docs.subcloak.com/cloak-proxy/insights/performance/) |
| **Schema** | Fields added, removed or changed in type between successive JSON responses from the same endpoint. | [Schema changes](https://docs.subcloak.com/cloak-proxy/insights/schema-changes/) |
| **Timeline** | Every request on one time axis, like a browser's network waterfall but across all apps. | [Timeline](https://docs.subcloak.com/cloak-proxy/insights/timeline/) |
| **AI** (added in Cloak Proxy 0.4.0) | Model calls: spend, tokens, cache use and time to first token by model, app or host, and the most expensive calls. | [LLM Inspector](https://docs.subcloak.com/cloak-proxy/inspect/llm-inspector/#insights--ai) |
| **Alerts** | A history of the alerts your Alert rules fired. | [Alerts history](https://docs.subcloak.com/cloak-proxy/insights/alerts-history/) |

[Privacy Map](https://docs.subcloak.com/cloak-proxy/insights/privacy-map/) (**Tools › Privacy Map…**, <kbd>⌥</kbd> <kbd>⌘</kbd> <kbd>P</kbd>) has its own window. For one app, it shows which outside companies receive its users' personal data and identifiers, and where in each request. (added in Cloak Proxy 0.2.1)

## Read the Overview tab

### Summary cards

Six cards sum up the analysis. Click a card to open the tab behind it.

| Card | Value | Color | Opens |
|---|---|---|---|
| **Requests** | Number of requests analyzed. | Accent color | **Timeline** |
| **Endpoints** | Number of endpoint templates in the API catalog. | Blue | **Endpoints** |
| **Errors** | Requests to API endpoints that returned 4xx or 5xx, or failed with no response. | Red when above zero, green at zero | **Performance** |
| **Possible secrets** | Number of secret findings. | Red if any is High, orange if all are lower, green at zero | **Secrets** |
| **Worst security grade** | The lowest grade of any host, or `–` when no responses were audited. | Green for A, mint for B, yellow for C, orange for D, red for F | **Security** |
| **Schema changes** | Number of JSON shape changes. | Orange when above zero, green at zero | **Schema** |

### Needs attention

Below the cards, **Needs attention** lists the High-severity problems so you can deal with the worst first. It takes up to five High items from each of these, in this order:

1. Secrets, titled with the kind and where it was found, such as "Stripe secret key in URL", with the host and masked value underneath.
2. Security issues, with the host underneath.
3. Performance problems, such as "Slow: GET api.example.com/v1/search", with the detail underneath.
4. Schema changes, such as "Removed price", with the endpoint underneath.

Each row has two buttons:

- **Details** switches to the tab the problem came from.
- **Show Request** (or **Show N Requests**) selects the requests in the main window and brings it to the front.

When nothing is High, the list says **No high-severity problems found.** With no traffic at all, it says **Capture some traffic to see insights.**

## Jump from a finding to the request

Every tab has **Show Request** buttons. They select the matching requests in the main window's [traffic list](https://docs.subcloak.com/cloak-proxy/inspect/traffic-list/) and bring the window forward. If the main window's sidebar selection or filters would hide those requests, Cloak Proxy switches the sidebar to all traffic and clears the filters first, so the selection is always visible.

If you've cleared the session since the analysis, the button does nothing for requests that no longer exist.

## Severity levels

Findings on the Security, Secrets, Performance and Schema tabs carry one of three severities, shown as a colored badge:

| Badge | Meaning |
|---|---|
| (High) | Likely to cause a breach, an outage or a broken app. Fix these first. |
| (Medium) | A real weakness or waste that's worth fixing. |
| (Low) | Hygiene and best practice. |

Each tab's page lists exactly which findings get which severity.

## Use Insights outside the window

The same analysis is available without opening the window:

- **Markdown report**: click **Export Report** to save a summary for a pull request, ticket or CI log. The report has an **AI** section when the traffic includes model calls. See [Insights report](https://docs.subcloak.com/cloak-proxy/insights/report/).
- **Command line**: `cloakctl run --report report.md` writes the same report after a headless run, and `--fail-on-secrets` or `--fail-on-schema-change` turn findings into a failing exit code. See [Headless and CI](https://docs.subcloak.com/cloak-proxy/automation/headless-and-ci/).
- **AI assistants**: the MCP server's `insights` tool returns a summary, the endpoint catalog, security grades, secrets, performance findings, schema changes or the Markdown report. See [MCP server](https://docs.subcloak.com/cloak-proxy/automation/mcp-server/).

> **Analysis is a starting point:**
> Insights uses patterns and heuristics. It can miss a secret in an unusual format, and it can flag something harmless. Treat findings as leads to check, not as a security audit. Only analyze traffic from apps and services you own or have written permission to test.

## Related

  - [Endpoints](https://docs.subcloak.com/cloak-proxy/insights/endpoints/): The API catalog built from your traffic.
  - [Secrets](https://docs.subcloak.com/cloak-proxy/insights/secrets/): Find keys, tokens and card numbers in captured traffic.
  - [Insights report](https://docs.subcloak.com/cloak-proxy/insights/report/): Export the analysis as Markdown.
  - [Find leaked secrets](https://docs.subcloak.com/cloak-proxy/guides/find-leaked-secrets/): A step-by-step guide using Insights and redaction.
