Secret scanning
Know the moment an API key or token turns up in a space, and whether it left. Marshal checks what agents write to files, send in outbound requests and push to git. Every secret it finds becomes a finding on the Findings tab of the Security Center: what kind of key it is, where it was found, whose space it was in, and every place it was sent. The secret itself never leaves the space.
Available to org admins and owners, once secret scanning is turned on for your organization.
What you can do with it
- Answer “did it leak?” first. Each finding shows whether the secret was sent out of a space, to which host or git remote, and whether it got through or was blocked. A key first found in a file shows Exposed as soon as any request or push carries it.
- Rotate the right key. A finding names the provider and the kind of key (“GitHub · Personal access token”), shows a hint such as
ghp_…d8EEso you can tell which key it is, and links to the provider’s page for rotating it. - Go straight to the source. Open the space, the run or the audit trail from the finding. The owner, the person who used the space, the deputy, the manifest and the stack are on the same panel.
- See how far it spread. A secret seen again is the same finding, however often and wherever it appears. The finding counts its occurrences and the spaces and people it was seen with, and lists each sighting.
- Keep your SIEM in the loop. Every new finding writes an audit event, so your audit export carries it to your own bucket and SIEM with everything else.
How it works
The scanner runs inside each space, next to the agent, and looks in three places:
| Source | What is checked |
|---|---|
| File | Files under the agent’s home folder. Marshal checks them once shortly after the space starts, then each file again when it changes. Package caches, node_modules, .git folders, binary files and the credential files Marshal writes itself are not checked. |
| Outbound request | The headers, query and text body of each request through the space’s egress proxy, as the agent wrote it. Credentials Marshal injects on the way out are added after the check, so your managed secrets never raise a finding by being used. |
| Git push | The new commits a push sends (those not already held by any remote), with the file and line in each commit. |
Each secret is matched by a rule for its kind: hundreds of providers’ key formats, private keys, and the credentials Marshal itself put in the space. The scanner reports the rule, the place and a fingerprint of the value, keyed to your organization. The same secret seen again, in any space, gets the same fingerprint, so it lands on the same finding. A secret found in a file and in a request gets one finding for each source, and both show where it was sent.
Scanning runs beside the agent. Nothing the agent does waits for it: requests and pushes go out at the same speed with scanning on or off.
Severity
| Severity | When |
|---|---|
| Critical | A credential Marshal manages, such as one you added under Connections, reached a file or left the space. The finding is marked Managed secret. |
| High | A secret was in an outbound request or a git push. |
| Medium | A secret was written to a file while the space was running. |
| Low | A secret was already on disk when the space started. The finding is marked Pre-existing. |
The list puts the highest severity first, then findings that were sent out, then the most recent.
Turn it on
- Go to Settings > Configuration.
- In the Security group, turn on Secret Scanning and save.
Spaces pick up the setting when they start or resume. Until it is on, the Findings tab says Secret scanning is off and links to the setting.
Work with findings
Open Security Center > Findings.
At the top, a summary strip shows counts for Critical, High, Medium, Low, Exposed, Open and Resolved (7d). Each count uses the same filters as the list. Select a count to apply that filter. Very large organizations may see 1,000+ on a count when the total is still being calculated.
Search matches rule names, providers, space names, owners, users, hosts and locations. Filters stay in the address bar, so you can bookmark a view or share a link.
| Control | What it does |
|---|---|
| State | Open (default), All states, Resolved or Ignored. |
| Severity, Source, Category | Multi-select. Pick one or many. |
| Space, Owner, User, Host | Multi-select with search. Each option shows how many findings match. |
| Sent out or not | Sent out, Not sent, or both. |
| Group by secret | One row per secret fingerprint. Expand opens the full list for that secret. |
The list loads more rows as you scroll. Each row is two lines: severity, secret title, hint, exposure and state on the first line; source, location, space, owner, last seen and occurrence count on the second. Long locations open in a popover so the row stays readable.
Select the checkbox on a row to include it in a bulk action. Select page checks every row on the current page. With rows selected, Resolve or Ignore updates them in one step. Clear drops the selection. You can still Resolve, Ignore or Reopen a single finding from its row.
Select a finding’s title to open its panel:
| Section | What it shows |
|---|---|
| What | Type, Provider, Category, Hint, Rule, Severity, and for a managed value the Marshal credential it belongs to. |
| Exposure | Whether the secret was sent out of a space, and when first. Destinations lists each Model provider, Git remote or External host it went to, with Sent, Blocked or Unknown, a count, and the first and last time. |
| Where | Source and Location: the file and line, the method, host and path of a request with the Part that held it, or the repository, branch, commit, file and line of a push. |
| Who | Space, Space owner, User, Deputy, Manifest, Stack and Teams, with Open space, Open run and View audit trail. |
| Spread | Occurrences, Spaces, Users, First seen, Last seen and the Sightings, each linking to its space and run. |
| What to do | Guidance for that kind of key, Rotate at the provider, and Move to Marshal secrets (or Rotate in Marshal for a managed value). |
| Triage | Resolve, Ignore or Reopen, and a Note for what was done. |
A finding’s link opens it directly, so you can paste it into a ticket or a chat.
Triage
- Resolve when the key is rotated or removed. If the same secret turns up again, the finding opens again by itself.
- Ignore when the value is safe, such as a test key. An ignored finding stays ignored when the secret is seen again.
- Reopen puts a finding back on the open list.
Every change of state and every note is recorded in the audit log with who made it.
In the audit log
| Action | When |
|---|---|
security.secret_detected | A new finding, a resolved finding seen again, a finding seen in another space, or a secret sent out for the first time. |
security.managed_secret_exposed | The same moments, for a credential Marshal manages. It is recorded as a security event. |
security.finding_triaged | An admin resolved, ignored or reopened a finding, or saved a note. |
The events carry the rule, the source, the location and the space. They never carry the secret. See Audit log to export them to your own bucket.
From an AI agent
| Tool | What it does |
|---|---|
security_findings_list | Lists findings with type, location, space, owner and exposure. Filter by state, severity, source, category, space, owner, user or host (comma-separated for several values). Search with q. Use group=fingerprint to group by secret. |
security_findings_update | Resolves, ignores or reopens a finding, with an optional note. |
See Connect an AI agent (MCP).
Try it
- Turn on Secret Scanning and start a space.
- In the space, write a test token in a file, for example a string in the shape of a GitHub token:
ghp_followed by 36 letters and digits. - Open Security Center > Findings. Within a few minutes you see a Medium finding for GitHub · Personal access token, with the file and line under Location.
- Select Resolve. You see “Finding resolved”.