Works with SpockOps

Google SecOps and SpockOps

Send every deployment decision, policy change and signed checkpoint to Google SecOps through a feed from your own bucket, parsed into UDM beside the GitHub audit log you already collect.

Talk to us about audit streaming
The SpockOps mark beside the words Google SecOps

Many Google Cloud-first security teams already collect GitHub's audit log in Google SecOps. 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 through the same kind of feed, from a bucket in the firm's own cloud account.

What does Google SecOps already receive from GitHub? #

Google SecOps collects GitHub's audit log under the GitHub log type, through a Google Cloud Storage feed that reads GitHub's audit log stream, or through a webhook. Its prebuilt parser maps those events to the Unified Data Model, so they can be searched and matched by rules like any other source.

Nothing on this page alters that. SpockOps arrives as its own custom log type, SPOCKOPS_CHAIN, read by a feed from a bucket in the same way, and parsed into the same Unified Data Model. Events from the two sources share the user and the repository, so they can be read together in a single search or rule.

What does SpockOps add in Google SecOps? #

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 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 feed's bucket.
  • Daily signed checkpoints, which let the copy in the bucket be checked against SpockOps' published keys.

The audit streaming overview describes the full chain and why it can be trusted.

How does the chain reach Google SecOps? #

Through a bucket and a feed. SpockOps writes one compressed file a minute to a folder in a Google Cloud Storage, Amazon S3 or Azure Blob Storage bucket, in a folder layout modelled on GitHub's own stream. A Google SecOps feed reads each new file, and SpockOps' parser maps every event into the Unified Data Model.

In development. SpockOps' custom parser for the SPOCKOPS_CHAIN log type, and the rules below, are being built. 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.

Google Cloud Storage is the natural choice for a Google Cloud-first firm, and the one Google recommends for GitHub's own feed. A firm whose evidence already lives in AWS or Azure can use that bucket instead; the feed types for Amazon S3 and Azure Blob Storage work the same way. In each case the files stay in the firm's own account, under its own retention.

How is it set up? #

In three parts: the bucket and SpockOps' write access, the custom log type and parser in Google SecOps, and the feed that connects them. No workflow or repository changes.

The bucket. Prepare the bucket and SpockOps' write access: the Amazon S3 page covers Amazon S3; Google Cloud Storage takes an HMAC key for a service account that can create and replace objects in the bucket, and Azure Blob Storage a container SAS URL with create and write permission. Then, in SpockOps, open the Audit streaming page under Settings, choose Google SecOps and the matching bucket, enter its details, confirm the connection and choose how much history to send. For an audit, send the whole chain.

In Google SecOps:

  1. Create a custom log type, SPOCKOPS_CHAIN. Google SecOps lets a tenant register its own log types without waiting for a prebuilt parser.
  2. Add SpockOps' custom parser, once released. It maps each event into the Unified Data Model as described below.
  3. Create a feed with the matching source type, Google Cloud Storage V2, Amazon S3 V2 or Azure Blobstore V2, the log type SPOCKOPS_CHAIN, and the bucket and SpockOps' folder as its source. Grant the feed read access to the bucket as Google SecOps describes for that source, and leave the source files in place: they are the firm's copy of the record.

How do the events appear in the Unified Data Model? #

SpockOps' parser places each part of an event where Google SecOps users would expect to find it, and keeps SpockOps' own facts as additional fields. The fixed risk values become security result categories, so a search or a rule can match any one of them directly.

UDM field Holds
metadata.event_timestamp When SpockOps recorded the event
metadata.product_event_type The kind of record, such as spockops_deployment.decision or spockops_policy.update
principal.user.userid Who acted, as GitHub names them
target.resource.name The repository, where the record has one
security_result.category_details Each of the event's risk values, such as bot_actor or relaxed_without_reason
additional.fields SpockOps' own facts: actor_kind, outcome, environment, production, mode, policy_kind, policy_name, reason, seq

Which searches and rules should a team start with? #

Four searches cover the questions a security team is most often asked about change. Each is a UDM search; the rules that follow are written in YARA-L 2.0.

# Bots and agents deploying to production
metadata.log_type = "SPOCKOPS_CHAIN" AND metadata.product_event_type = "spockops_deployment.decision"
  AND security_result.category_details = "production"
  AND (security_result.category_details = "bot_actor" OR security_result.category_details = "agent_actor")

# Deployments that went through although a rule failed
metadata.log_type = "SPOCKOPS_CHAIN" AND security_result.category_details = "failed_in_evaluate"

# Policies loosened or removed
metadata.log_type = "SPOCKOPS_CHAIN" AND (security_result.category_details = "policy_weakened"
  OR security_result.category_details = "policy_widened" OR security_result.category_details = "policy_deleted")

# Deployments no policy covered
metadata.log_type = "SPOCKOPS_CHAIN" AND security_result.category_details = "no_policy_applied"

Two make sensible detection rules from the first day: a policy loosened without a reason, shown here, and a bot or an agent deploying to production, which follows the same shape from the first search above:

rule spockops_policy_relaxed_without_reason {
  meta:
    author = "SpockOps"
    description = "A SpockOps policy was weakened or widened and no reason was given"
    severity = "High"

  events:
    $e.metadata.log_type = "SPOCKOPS_CHAIN"
    $e.security_result.category_details = "relaxed_without_reason"
    $e.principal.user.userid = $user

  match:
    $user over 1h

  condition:
    $e
}

The rule 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 user carries the same value as in GitHub's own events, a detection raised by it can be read beside the GitHub changes the same person made.

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

With SpockOps' verifier, run against the files the feed reads. Because this route always passes through a bucket in the firm's own account, the firm always holds a copy it can check. The verifier confirms that every record is present and in order, that none was altered, and that every daily checkpoint carries a valid signature from SpockOps' published keys.

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. The Amazon S3 page shows the commands, which apply equally to files copied down from Google Cloud Storage or Azure. The ledger and the receipt explains why an auditor values the chain.

What should a Google SecOps team know before relying on it? #

Four points are worth settling at the start. The route is a bucket, not a direct push; the parser is in development; every kind of record arrives; and the chain covers what SpockOps governs. Each affects how the feed and its rules are set up.

  • A bucket, for now. Events reach Google SecOps as quickly as the feed reads new files. A direct webhook route may follow.
  • The parser is in development. The searches and rules on this page assume SpockOps' parser and its UDM mapping. 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 Google SecOps?

SpockOps writes a compressed file a minute to a Google Cloud Storage, Amazon S3 or Azure Blob Storage bucket, and a Google SecOps feed reads each new file under the SPOCKOPS_CHAIN log type.

Does it replace the GitHub log type?

No. Google SecOps keeps collecting GitHub's audit log under its own log type. SpockOps arrives as a custom log type, and the two share the user and repository.

Is there a parser?

Yes. SpockOps publishes a custom parser that maps every event into the Unified Data Model, with each risk value as a security result category.

How can we prove the data is complete?

Run SpockOps' verifier on the files in the bucket. It checks every record, link and daily signed checkpoint against SpockOps' published keys, offline.

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.