Works with SpockOps

Microsoft Sentinel and SpockOps

Send every deployment decision, policy change and signed checkpoint to Microsoft Sentinel through Azure Blob Storage, the same way GitHub's audit log arrives, into a table you can query with KQL.

Talk to us about audit streaming
The SpockOps mark beside the words Microsoft Sentinel

Microsoft Sentinel is where many regulated firms bring the logs of the whole estate together, and GitHub's audit log is often among them. 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 reaches Sentinel the same way GitHub's own stream does, through Azure Blob Storage.

What does Sentinel already receive from GitHub? #

GitHub Enterprise Cloud can stream its audit log to an Azure Blob Storage container, and Microsoft's GitHub Enterprise Audit Log connector for Sentinel reads that container into a Log Analytics table, GitHubAuditLogsV3_CL. It is a sound record of change to GitHub itself: membership, permissions, repository settings, secrets and environments.

Nothing on this page alters that. SpockOps follows the same pattern, a container in the firm's own storage account read by a Sentinel connector, and lands in its own table, SpockOpsChain_CL. Delivery to the container works today; the connector that loads it into Sentinel is in development. The two tables can be joined on the fields they share, the actor, the organization and the repository, and searched together in one KQL query.

What does SpockOps add in Sentinel? #

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. Each policy either watches, in Evaluate, or enforces, in Block. Everything SpockOps decides, and every change to the policies it decides by, is written in order to a tamper-evident record called the governance chain. In Sentinel, that record becomes:

  • Deployment decisions, with each policy and rule checked, the rules that failed, the runner, and whether the actor was a person, a bot or an agent.
  • Reviews and outcomes: who approved or rejected each deployment, and how it ended.
  • Policy changes to workflow, agentic and deployment policies: who made them, what changed in plain words, whether the change weakened or widened the policy, and the reason given.
  • Stream changes: any change to where the chain is sent, including this connection.
  • Daily signed checkpoints, which let the copy in the firm's storage account be checked against SpockOps' published keys.

For a Sentinel team in a regulated firm, the last two points carry particular weight. The files stay in the firm's own Azure subscription, in the region it chooses and under its own retention, and they can be shown to be complete and unaltered without relying on SpockOps' word. The audit streaming overview describes the full chain and why it can be trusted.

How does the chain reach Sentinel? #

Through a container in the firm's own Azure storage account. SpockOps writes one compressed file a minute there, in a folder layout modelled on GitHub's own stream. A Sentinel connector built on Microsoft's Codeless Connector Framework is then notified of each new file and loads it into the SpockOpsChain_CL table. SpockOps provides that connector as a template the firm deploys into its own Sentinel workspace; it is in development, and the delivery to the container that it reads from is available now.

In more detail, once the connector is deployed, Event Grid announces each new file on a storage queue, and the connector reads the queue, fetches the file and passes its lines through a data collection rule into the table. Events typically reach Sentinel a few minutes after SpockOps records them.

There are three reasons this is the route rather than a direct one:

  • It is how Sentinel already reads GitHub. The same storage account, the same kind of connector and the same operating model the team runs today.
  • The files stay in the firm's subscription. Region, retention, access and encryption are the firm's to set, which simplifies data residency and outsourcing questions.
  • Sentinel's direct intake requires a Microsoft Entra identity. SpockOps intends to offer a direct connector later. Until then, the container is both the delivery route and the lasting copy of the record.

How is the container set up? #

A storage administrator creates the container and a link that lets SpockOps write to it and nothing else; a SpockOps administrator enters that link and confirms it works. Neither step changes any workflow or repository, and SpockOps is never given access to anything else in the subscription. The Azure Blob Storage page covers configuring the container as evidence.

In Azure:

  1. Choose a storage account with hierarchical namespace enabled (Azure Data Lake Storage Gen2). Sentinel's Blob Storage connectors require it. A firm that already streams GitHub's audit log to Blob Storage can use the same account with a separate container.
  2. Create a container for the chain, for example spockops. Files land at paths such as spockops/2026/11/16/09/31/21303b0e-73d6-5446-b1f4-627360e7912f.json.log.gz.
  3. Create a container SAS URL with Create and Write permissions only. Add Delete if SpockOps should remove its small connection-check file afterwards. Give it an expiry date that suits the firm's key-rotation policy, and note it: when it lapses, delivery pauses until a new one is entered.

In SpockOps:

  1. Open the Audit streaming page under Settings and choose Microsoft Sentinel.
  2. Paste the SAS URL. SpockOps stores it as a secret; it never appears in the chain or in any log. Storage accounts in Azure's public, US Government and China clouds are accepted.
  3. Confirm the connection. SpockOps writes a small test file to the container and removes it if the URL allows deletion. No events are sent.
  4. Choose how much history to send: from now on, the whole chain, or everything from a chosen date. For an audit, send the whole chain, so the container holds the full period under review.

If Azure ever refuses the URL, because it has expired or lost a permission, the stream pauses and the SpockOps workspace's administrators are emailed. Once a new URL is entered, an administrator resumes the stream, and it picks up from where it stopped.

How do the files reach a Log Analytics table? #

In development. SpockOps is building this connector template. Until it is released, SpockOps delivers the chain to the container every minute, and the files are complete and can be verified; loading them into Sentinel needs the template. The steps below describe how it will be deployed. Talk to us to be told when it ships, or to try it early.

Through a connector template SpockOps provides. Deployed once into the Sentinel workspace, it creates the SpockOpsChain_CL table, the data collection rule that shapes each event, and a connector that appears under Sentinel's data connectors, ready to point at the container.

Before deploying, check that:

  • the person deploying holds Microsoft Sentinel Contributor on the workspace, and Owner or EventGrid Contributor on the storage account;
  • the Microsoft.EventGrid resource provider is registered in the storage account's subscription;
  • the storage account's network rules allow Sentinel's connector to reach it, as Microsoft describes for connector-integrated storage.

Then:

  1. Deploy the template into the resource group that holds the Sentinel workspace.
  2. Open the SpockOps connector under Sentinel's data connectors and enter the storage account, the container and the folder.
  3. Connect. The connector creates the Event Grid subscription and the storage queue, filtered to files ending in .json.log.gz, so SpockOps' small connection-check file is never loaded. Microsoft's connector application may need an administrator's consent once per tenant; a firm already using the GitHub audit log connector will usually have given it.

The table holds one row per record. GitHub's common fields become columns, and everything SpockOps adds sits in one dynamic column:

Column Type What it holds
TimeGenerated datetime When SpockOps recorded the event, from @timestamp
Action string The kind of record, such as spockops_deployment.decision, spockops_policy.update or spockops_chain.checkpoint
Actor, Org, Repo string As in GitHub's own events
ActorIsBot bool True for bots and agents
DocumentId string The event's stable identifier
SpockOps dynamic Everything SpockOps adds: actor_kind, outcome, environment, production, mode, failed_rules, policy, changes, reason, risk, seq, the hashes and the full record

Which queries and analytics rules should a team start with? #

The queries below read the SpockOpsChain_CL table the connector creates, so they apply once it is deployed.

Four queries cover the questions a security team is most often asked about change, and two of them make sensible scheduled analytics rules from the first day. Each reads the fixed risk values SpockOps attaches to every event.

Bots and agents deploying to production. A short query, and one whose answer is rarely what a team expects:

SpockOpsChain_CL
| where Action == "spockops_deployment.decision"
| where tobool(SpockOps.production) and tostring(SpockOps.actor_kind) in ("bot", "agent")
| project TimeGenerated, Repo, Actor,
          ActorKind = tostring(SpockOps.actor_kind),
          Environment = tostring(SpockOps.environment),
          Outcome = tostring(SpockOps.outcome)

Deployments that went through although a rule failed. These are the deployments a policy in Evaluate allowed, counted by rule, to show which to move to Block first:

SpockOpsChain_CL
| where set_has_element(SpockOps.risk, "failed_in_evaluate")
| mv-expand Rule = SpockOps.failed_rules to typeof(string)
| summarize Deployments = count(), LastSeen = max(TimeGenerated) by Repo, Rule
| order by Deployments desc

Policies loosened or removed. Every weakening, widening or deletion of a workflow, agentic or deployment policy, with the reason given:

SpockOpsChain_CL
| where Action startswith "spockops_policy."
| where set_has_element(SpockOps.risk, "policy_weakened")
     or set_has_element(SpockOps.risk, "policy_widened")
     or set_has_element(SpockOps.risk, "policy_deleted")
| project TimeGenerated, Actor,
          Kind = tostring(SpockOps.policy.kind),
          Policy = tostring(SpockOps.policy.name),
          Changes = SpockOps.changes,
          Reason = tostring(SpockOps.reason)

Deployments no policy covered. A deployment SpockOps saw but no policy applied to is a gap in coverage, not a failure:

SpockOpsChain_CL
| where set_has_element(SpockOps.risk, "no_policy_applied")
| summarize Deployments = count() by Repo, Environment = tostring(SpockOps.environment)

As scheduled analytics rules, two of these earn their place:

Rule Query Entities Suggested severity
Bot or agent deployed to production The first query above Account from Actor Medium
Policy loosened without a reason The third query, narrowed to set_has_element(SpockOps.risk, "relaxed_without_reason") Account from Actor High

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. Because the actor, organization and repository carry the same values as in GitHub's own events, an incident raised by either rule can be investigated beside the GitHub settings changes made in the same window.

How can a team show that the record is complete? #

In two ways, which answer different questions. A KQL query shows that no record is missing from the table, because every record carries a sequence number with no gaps. SpockOps' verifier shows that no record was altered, by checking every hash and every daily signature. Together they let an auditor rely on what Sentinel holds.

The query lists any break in the sequence. An empty result means the table holds every record in order:

SpockOpsChain_CL
| extend Seq = tolong(SpockOps.seq), Workspace = tostring(SpockOps.workspace.schema)
| summarize by Workspace, Seq
| order by Workspace asc, Seq asc
| extend Previous = prev(Seq), PreviousWorkspace = prev(Workspace)
| where Workspace == PreviousWorkspace and Seq - Previous > 1
| project Workspace, Previous, Seq

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 a download of the chain for the audit period. The container meanwhile holds the complete copy in the firm's own subscription, so the record never depends on SpockOps alone. The ledger and the receipt explains why an auditor values the chain, and automating DevOps audits how it supports testing every change rather than a sample.

Retention is set in two places, and both are the firm's. The SpockOpsChain_CL table keeps what Sentinel searches for as long as the workspace's retention allows. The container keeps the files for as long as its lifecycle rules allow, which is where a requirement such as the twelve months of audit history in PCI DSS is most simply met. What regulators ask of a software change is set out in what regulators require.

What should a Sentinel team know before relying on it? #

Five points are worth settling at the start. The connector is in development; the storage account must have hierarchical namespace enabled; the SAS URL has an expiry; every kind of record arrives, not only deployments; and the chain covers what SpockOps governs. Each affects how the stream is set up and kept running.

  • The connector is in development. SpockOps delivers the chain to your container today. The template that loads it into a Sentinel table is being built; a container set up now will be read from the start of the chain once it is deployed.
  • Hierarchical namespace. Sentinel's Blob Storage connectors read only from Azure Data Lake Storage Gen2 accounts. Choose one before creating the container.
  • SAS expiry. When the SAS URL lapses, delivery pauses and SpockOps' administrators are emailed. Nothing is lost: once a new URL is entered and the stream resumed, delivery picks up from where it stopped. A renewal reminder avoids the gap.
  • 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 Microsoft Sentinel?

SpockOps writes a compressed file a minute to a container in your Azure storage account. A Sentinel connector built on the Codeless Connector Framework, which SpockOps is developing, loads each file into the SpockOpsChain_CL table.

Is the Sentinel connector available?

Not yet. Delivery to your Azure Blob container works today, and the files are complete and can be verified. The connector template that loads them into a Sentinel table is in development.

Why Azure Blob Storage rather than a direct connection?

It is how Sentinel already reads GitHub's audit log, the files stay in your subscription under your retention, and Sentinel's direct intake requires a Microsoft Entra identity. SpockOps intends to offer a direct connector later.

What access does SpockOps need in Azure?

A container SAS URL with Create and Write permissions, plus Delete if SpockOps should remove its connection-check file. It has no access to anything else in the subscription.

Does it replace the GitHub Enterprise Audit Log connector?

No. That connector loads GitHub's audit log into GitHubAuditLogsV3_CL. SpockOps loads its own table, and the two can be queried together.

What kind of storage account is needed?

One with hierarchical namespace enabled (Azure Data Lake Storage Gen2), which Sentinel's Blob Storage connectors require.

How can we prove the data in Sentinel is complete?

Every record carries a sequence number, so a KQL query can show there are no gaps. SpockOps' verifier then checks the hashes and daily signatures on a download from SpockOps.

Talk to us about audit streaming

Every run checked.
Every deployment decided.
Every decision signed.

One rulebook for people, bots and agents across your GitHub Actions estate. SpockOps checks every run as it starts, decides each deployment by who asked, what ran it and where it came from, and signs every decision into a record your auditors can re-run. Engineers see each verdict as a check beside their tests, and nothing in their workflows changes.

No changes to any workflow or repository: nothing runs inside your pipelines.