Panther and SpockOps
Send every deployment decision, policy change and signed checkpoint to Panther, through an HTTP source or a bucket, with detections as code for bot deploys and weakened policies.
Many security teams already monitor GitHub in Panther, with detections written as code. SpockOps adds the record of how change was governed: each deployment decision with the rules behind it, each review and outcome, and every change to the policies themselves. It arrives as its own log type, ready for detections in Python.
What does Panther already receive from GitHub? #
Panther ingests GitHub's audit log as the GitHub.Audit log type, either by querying GitHub's API every minute or from GitHub's audit log stream in Amazon S3 or Google Cloud Storage. It is a sound record of change to GitHub itself, and Panther ships detections for it.
Nothing on this page alters that. SpockOps arrives as Custom.SpockOpsChain, in the same shape as GitHub's events, so the two log types share actor, org and repo and can be correlated in the data lake.
What does SpockOps add in Panther? #
It adds judgment to the record of configuration. GitHub's log can show that a deployment reached production and that a reviewer approved it. SpockOps adds which policies and rules it was checked against, which failed, whether a person, a bot or an AI agent asked for it, and whether those rules had been loosened beforehand.
SpockOps is a GitHub App that checks workflows, AI agents and deployments against a team's policies, either watching, in Evaluate, or enforcing, in Block. Everything it decides, and every change to the policies it decides by, is written in order to a tamper-evident record called the governance chain: deployment decisions with each rule checked, reviews, outcomes, policy changes with their reasons, changes to where the chain is sent, and daily signed checkpoints.
For a detection engineer, the most useful part is the risk field: a short list on every event, drawn from a fixed vocabulary such as bot_actor, failed_in_evaluate or relaxed_without_reason. A detection can test membership in that list rather than reconstruct the logic that produced it. The audit streaming overview describes the full chain and why it can be trusted.
Which route should a Panther team use? #
Either works, and both land in the same log type. SpockOps can send events to a Panther HTTP source with a bearer token, about a minute after each is recorded, or write files to an Amazon S3, Azure Blob Storage or Google Cloud Storage bucket that a Panther log source reads. A firm that wants a copy it holds itself should use a bucket.
In development. The
Custom.SpockOpsChainschema that lets Panther classify SpockOps' events is being prepared. Until it is released, SpockOps delivers the chain by the routes below today, and the copy can be verified; the fields, searches and rules on this page assume it. Talk to us to be told when it ships, or to try it early.
| HTTP source | Bucket source | |
|---|---|---|
| How events arrive | SpockOps sends each batch to Panther's ingest URL | SpockOps writes a file a minute to your bucket; Panther reads each new file |
| What Panther needs | An HTTP source with Bearer authentication | An S3, Azure Blob Storage or Google Cloud Storage log source |
| What you keep outside Panther | Nothing; the data lake is the copy | A complete copy in your own cloud account |
How is the HTTP source set up? #
In Panther, create the source and copy its URL and token; in SpockOps, paste them and confirm. No workflow or repository changes.
In Panther:
- Add the
Custom.SpockOpsChainschema SpockOps provides, once released. Panther needs a schema before it can classify events, and this one maps SpockOps' timestamp to Panther's event time. - Create an HTTP log source with the Bearer authentication method, attach the schema, and copy the ingest URL and the token.
In SpockOps:
- Open the Audit streaming page under Settings, choose Panther, then the HTTP source route.
- Paste the ingest URL and the token. SpockOps stores the token as a secret; it never appears in the chain or in any log.
- Confirm the connection. SpockOps sends Panther an empty request. A wrong token is refused; a valid one gets past the check and the empty body is turned away, so the check proves the token works without ingesting anything.
- Choose how much history to send: from now on, the whole chain, or everything from a chosen date.
How is a bucket source set up? #
The storage side is the same for every tool: the Amazon S3 page covers Amazon S3, an Azure Blob Storage container takes a SAS URL with create and write permission, and Google Cloud Storage an HMAC key for a service account that can create and replace objects in the bucket. In SpockOps, choose Panther and the matching bucket route. In Panther, add the matching log source for the bucket and SpockOps' folder, limited to files ending in .json.log.gz, with the Custom.SpockOpsChain schema attached. The files stay in your bucket, where they also serve as the copy you can check with SpockOps' verifier.
Which detections should a team start with? #
Two rules earn their place from the first day: a bot or an AI agent deploying to production, and a policy loosened without a reason. Both read the risk list or a few plain fields, so they stay short and easy to review.
Bot or agent deployed to production. bot_or_agent_production_deploy.py:
def rule(event):
if event.get("action") != "spockops_deployment.decision":
return False
return (
event.deep_get("spockops", "production") is True
and event.deep_get("spockops", "actor_kind") in ("bot", "agent")
)
def title(event):
kind = event.deep_get("spockops", "actor_kind")
environment = event.deep_get("spockops", "environment")
return f"{kind} {event.get('actor')} deployed {event.get('repo')} to {environment}"
def dedup(event):
return event.get("repo")
With its specification, bot_or_agent_production_deploy.yml:
AnalysisType: rule
RuleID: SpockOps.BotOrAgentProductionDeploy
DisplayName: Bot or agent deployed to production
Enabled: true
Filename: bot_or_agent_production_deploy.py
LogTypes:
- Custom.SpockOpsChain
Severity: Medium
Policy loosened without a reason. policy_relaxed_without_reason.py, specified the same way with severity High:
def rule(event):
risks = event.deep_get("spockops", "risk") or []
return "relaxed_without_reason" in risks
def title(event):
policy = event.deep_get("spockops", "policy", "name")
return f"{event.get('actor')} loosened policy {policy} without giving a reason"
The second deserves its severity. A control loosened with a written reason is a decision someone can be asked about; one loosened without a reason is the pattern an investigation looks for afterwards.
What can be asked of the data lake? #
Anything the questions of an audit or an incident require, in SQL. SpockOps events sit in panther_logs.public.custom_spockopschain, with SpockOps' own fields in the spockops column. Here, the deployments a policy in Evaluate allowed despite failing rules, counted by rule, show which policy to move to Block first:
SELECT repo,
r.value::string AS failed_rule,
COUNT(*) AS deployments
FROM panther_logs.public.custom_spockopschain,
LATERAL FLATTEN(input => spockops:failed_rules) r
WHERE ARRAY_CONTAINS('failed_in_evaluate'::variant, spockops:risk)
AND p_occurs_since('30 days')
GROUP BY repo, failed_rule
ORDER BY deployments DESC;
How can a team show that the record is complete? #
In two ways, which answer different questions. A query in the data lake shows that no record is missing, because every record carries a sequence number with no gaps. SpockOps' verifier shows that no record was altered, by checking files against every hash and every daily signature. Together they let an auditor rely on what Panther holds.
The query lists any break in the sequence. An empty result means the data lake holds every record in order:
SELECT workspace, previous_seq, seq
FROM (
SELECT spockops:workspace.schema::string AS workspace,
spockops:seq::number AS seq,
LAG(spockops:seq::number) OVER (
PARTITION BY spockops:workspace.schema::string
ORDER BY spockops:seq::number
) AS previous_seq
FROM panther_logs.public.custom_spockopschain
)
WHERE seq - previous_seq > 1;
SpockOps' verifier, spockops-verify, does the checking. It is a single script, in Python or in Bash, downloaded from the Audit streaming page in SpockOps, and it needs no connection to SpockOps to run. It exits with 0 when everything holds and 1 when anything does not, naming each failure. The checks rest on standard SHA-256 hashes and Ed25519 signatures, so a team can also write its own in any language. It runs on the files in a bucket or on a download of the chain from SpockOps. The Amazon S3 page shows the commands, and the ledger and the receipt explains why an auditor values the chain.
What should a Panther team know before relying on it? #
Three points are worth settling at the start. The schema is in development; every kind of record arrives, not only deployments; and the chain covers what SpockOps governs. Each affects how the source and its detections are set up.
- The schema is in development. Panther classifies events against
Custom.SpockOpsChain, which SpockOps is preparing. Once it is installed, keep it current as the event format gains fields; new fields are added, never renamed. - The whole chain arrives. Policy changes, stream changes and checkpoints come with the deployment records. They are few in number, and they keep the copy complete enough to verify.
- The chain covers what SpockOps governs. A deployment to an environment that does not use SpockOps' protection rule produces no decision. SpockOps shows which environments and workflows its policies cover, so gaps are visible rather than assumed.
Questions
How does SpockOps send data to Panther?
To a Panther HTTP source with Bearer authentication, about a minute after each record is written, or as files in an Amazon S3, Azure Blob Storage or Google Cloud Storage bucket that a Panther log source reads.
Which log type do SpockOps events use?
Custom.SpockOpsChain, defined by a schema SpockOps is preparing. It sits beside Panther's GitHub.Audit log type and shares its actor, org and repo fields.
Are there ready-made detections?
Yes. SpockOps' repository includes Python rules with tests, starting with bot or agent deployments to production and policies loosened without a reason.
How can we prove the data is complete?
Every record carries a sequence number, so a data lake query can show there are no gaps. SpockOps' verifier then checks the hashes and daily signatures on the files.
SpockOps












