MSBA-369 · Lesson 7 of 12 · 20 min

Domain review: security operations

▶ Video coming soon A video version of this lesson is on the way.

Freya Abernathy-Oduya took the seventh session herself. "This is the domain I would write if I wrote the exam," she said. "Anyone can turn on a feature. The hard part is what you do on Monday morning when the features have given you eleven thousand alerts and forty teams who would rather be shipping." She opened Skerry's security overview on the big screen and left it there for the whole hour.

The domain Security operations: best practices, prioritization and remediation carries 15 to 20 percent of the exam. It draws on Prioritizing alerts in GitHub Advanced Security: Secret Protection and Supply Chain Security and on Security overview, Security campaigns, Metrics and reporting and Integrating with development workflow in GitHub Advanced Security: Code Security and Security Operations. Its questions are usually scenarios: a team, a volume of alerts, a constraint, and a choice about what to do first or which feature to use. Priya's baseline was weakest here, and Seraphine's was only average, because practice assessment questions in this area reward judgment over recall.

Shift left, but keep a net

The domain's first principle is to find problems as early as possible, where they are cheapest to fix. In GitHub terms, the earliest point is the developer's push, where push protection stops secrets. Next is the pull request, where code scanning, Copilot Autofix and dependency review report problems before merge, and where rulesets can require those checks. After merge, alerts on the default branch, Dependabot alerts and security updates catch what slipped through or what became vulnerable later because a new advisory was published. A mature program uses all three layers.

A left-to-right timeline of a change: developer machine, push, pull request, merge, default branch, production. Controls are placed along it: pre-commit checks and push protection at push; code scanning, Autofix, dependency review and ruleset gates at the pull request; default-branch alerts, Dependabot alerts and updates, campaigns and security overview after merge. An arrow labelled cheaper to fix points left.
Security controls along the path of a change. Earlier is cheaper; later layers catch what earlier ones miss.

The exam often tests the placement of a control. Stopping a secret before it exists in the repository is push protection. Stopping a vulnerable dependency before merge is dependency review. Stopping a new code vulnerability before merge is a code scanning rule in a ruleset. Fixing what is already there is security updates, Autofix and campaigns. If an option acts at the wrong point, it is probably a distractor.

Prioritizing across alert types

Prioritization means using signals to decide order. Each alert type has its own signals, and the exam expects you to know them.

Priority signals by alert type. Exposure of the system ties them together.
Alert typeMain signalsHighest priority looks like
Secret scanningValidity, secret type, location, public exposureAn active production credential, especially in a public repository or an issue comment
DependabotSeverity, EPSS, runtime or development scope, fix availableHigh severity, high EPSS, runtime dependency in an exposed service, with a fix
Code scanningSecurity severity, rule, data-flow path from untrusted input, exposure of the repositoryCritical or high on the default branch of an internet-facing service

Exposure ties the three together. A critical alert in an internal prototype matters less than a high alert in the checkout service. Security overview can filter by custom properties, which are repository metadata defined by an organization. Skerry added an exposure property, with values internet, internal and offline, and found 61 internet-facing restricted repositories that became the first focus of every queue. A question that asks how to focus security overview on the most exposed repositories often points to custom properties.

Worked problem

Monday morning

Freya's queue on a Monday shows: (1) an active cloud key in an internal repository; (2) 300 new Dependabot alerts from one advisory affecting a logging library, high severity, high EPSS, runtime, fix available; (3) 12 new critical code scanning alerts in a deprecated internal tool due for deletion next month; (4) a secret scanning alert marked inactive in a public repository. What order, and which features?

Show solution
  1. (1) first: an active credential is an incident. Revoke it, check logs, close as revoked.
  2. (2) next: one advisory across many repositories with a fix is ideal for grouped Dependabot security updates, tracked in security overview.
  3. (4) after: inactive means lower risk, but it is public; confirm it is revoked and close it.
  4. (3) last: critical alerts in a tool due for deletion can be dismissed as won't fix with a comment, or left until deletion, recorded as a decision.

Answer: 1, 2, 4, 3: active secrets first, then broad fixable exposure, then low-risk clean-up, then alerts in code about to be removed.

Ownership and assignment

An alert without an owner is an alert that ages. Alerts can be assigned to people with write access, and security managers can see unassigned alerts across the organization. Ownership can come from custom properties such as an owning-team property, from CODEOWNERS for files, or from team membership. Skerry learned this from its November 17 incident: a service-account key had sat in an unassigned issue-comment alert for two weeks because the repository had no owning-team value. The fixes were to make owning-team required and to route alerts unassigned for more than 24 hours to the application security queue.

Notification routing is part of ownership. Secret scanning alerts notify repository administrators, people with security alert access and the commit author; Dependabot alert notifications follow each person's settings; code scanning results appear in pull requests to the people working on them. For a security team, webhooks and the REST API can deliver alert events to a ticketing system or a security information and event management platform, and the audit log records security setting changes and dismissals.

Remediation at scale

When the same problem appears in many places, fix it in one motion. The features for this are worth listing together, because questions often ask which to use for a described backlog.

Matching a backlog to the feature that clears it at scale.
BacklogFeatureWhy it scales
One vulnerable dependency across 80 repositoriesDependabot security updates, groupedPull requests open automatically in each repository
A class of code vulnerability across 30 repositoriesSecurity campaignDue date, contact, notifications and Autofix suggestions for every alert
Many similar code alerts in one repositoryCopilot Autofix on each alertGenerates a fix per alert for review
Thousands of low-impact development dependency alertsAuto-triage rulesDismisses or snoozes by rule rather than by hand
Historical secrets after a migrationValidity checks and filters in security overviewSeparates active secrets from dead ones

Campaigns deserve their own reminder because they belong to both this domain and Code Security. A good campaign is narrow (one class of vulnerability), sized to the teams' capacity, has a real contact who answers questions, and has a due date that avoids freezes. Skerry's SQL injection campaign had 186 alerts in 31 repositories across nine teams, and 112 were fixed by November 20 with four weeks left. One understaffed team's alerts were moved to a January date rather than left to fail.

Dismissal governance

Dismissing alerts is legitimate: false positives and test code exist. But a dismissal hides an alert from everyone, so programs control it. Secret scanning and code scanning both support delegated alert dismissal, which turns a dismissal into a request that a reviewer approves. Dependabot dismissals require a reason. Security overview can show dismissed alerts by reason and by person. Skerry approved 41 of 63 dismissal requests in its store systems organization and denied 22, and required a written decision record for any bulk dismissal of more than 20 alerts. The exam principle: allow dismissal with a reason, review it where risk is high, and be able to audit it.

Measuring and reporting

Security operations ends in numbers that tell leaders whether things are improving. Security overview provides views of coverage (which repositories have which features enabled), risk (open alerts by severity and repository), enablement trends, alert trends, and metrics for secret scanning push protection and for code scanning in pull requests, such as how many alerts were fixed before merge and how often Autofix suggestions were accepted. Useful measures include mean or median time to remediate, the proportion of alerts fixed before merge, the number of critical alerts open longer than a target, and bypass and dismissal rates.

A cycle of five steps: detect, prioritize, assign, remediate, measure, then back to detect. Each step is labelled with GitHub features: detect with scanning and push protection; prioritize with severity, EPSS, validity and custom properties; assign with assignees, owning-team properties and routing; remediate with security updates, Autofix and campaigns; measure with security overview metrics and scorecards.
The security operations loop. Each turn should leave fewer, faster-fixed alerts.

Freya showed the scorecard she sends Skerry's leadership. As of November 20: 691 of 712 repositories with a passing analysis, three critical alerts on internet-facing restricted repositories, 38 high, a median of nine days to fix, 74 percent of code alerts fixed before merge, and 96 percent of push protection bypasses reviewed. "Five numbers," she said. "Leaders cannot hold more than five. Pick the ones that change decisions."

Disclosure and response

Two practices from outside the alert queues round out the domain. A security policy, a SECURITY.md file, tells outside researchers how to report vulnerabilities. Private vulnerability reporting, when enabled, lets them report through GitHub privately, and maintainers can work on a fix in a repository security advisory with a temporary private fork, request a CVE and publish the advisory, which then feeds the Advisory Database and Dependabot alerts for everyone who depends on the project. For incidents, the order is always contain, investigate, remediate and learn: revoke a leaked credential before anything else, then use logs, then fix causes, then hold a review that changes a setting or a process, as Skerry did after November 17.

Worked problem

A scenario question

"A company's security overview shows that 40 percent of code scanning alerts in pull requests are dismissed as false positive, mostly by the authors of the pull requests. The security team suspects real issues are being hidden. What should it do first?"

Show solution
  1. Measure before changing: filter dismissed alerts by rule and by repository to see whether a few noisy queries explain most dismissals.
  2. If a noisy query explains them, tune it, for example with a model pack or by excluding the query, rather than restricting people.
  3. If dismissals of real issues are spread out, turn on delegated alert dismissal for code scanning so reviewers approve them.
  4. Track the dismissal rate in security overview after the change.

Answer: Investigate dismissals by rule and repository first, then tune noisy queries or require review through delegated dismissal.

Working with developers

Security operations succeed or fail on how developers experience them. The exam's best-practice questions favour answers that put information where developers already work, make the secure path the easy one, and avoid surprises. In GitHub terms that means results in pull requests rather than in separate reports, Autofix suggestions rather than tickets that say only "fix this", campaigns with a named contact rather than a list sent by email, and rulesets introduced in evaluate mode before they become active.

Skerry followed this pattern with its code scanning gate. The organization ruleset ran in evaluate mode from November 2 to November 16, recording which pull requests it would have blocked without blocking them. Of 57 such pull requests, 44 had real issues, nine were caused by one noisy query that a model pack fixed, and four were file moves. Only then was the rule made active. In the week before, 14 high or critical alerts had reached default branches; in the first week after, one did.

Best practices that appear in scenario questions, with the features that implement them.
Best practiceGitHub feature that supports it
Introduce a gate without surprisesRuleset evaluate mode before active
Explain how to fix, not only what is wrongCopilot Autofix, alert help text
Give developers a person to askCampaign contact, security champions role
Keep security work visible to leadersSecurity overview metrics and campaign progress
Stop repeating the same mistakeSecure defaults through security configurations

Security champions are part of the same idea. A champion is a developer in a team who takes on first-line security questions, reviews alerts and helps with campaigns. Skerry gave its 40 champions a custom organization role with permission to view and dismiss code scanning alerts, so they could act without a security engineer for routine cases. The exam may describe a champion program and ask which role or permission to grant; the least-privilege answer is a custom role, not the security manager role and not ownership.

Common mistakes

  • MistakeOrdering alerts by severity alone.

    InsteadCombine severity with validity, EPSS, exposure and whether a fix exists.

  • MistakeUsing a campaign to stop new vulnerabilities.

    InsteadCampaigns clear backlogs; rulesets and pull request checks prevent new ones.

  • MistakeRestricting dismissals before finding out why they happen.

    InsteadCheck for noisy rules first; use delegated dismissal where real risk is being hidden.

  • MistakeRewriting history before revoking a leaked credential.

    InsteadContain first: revoke, then investigate, then clean up.

Summary and key terms

  • Security operations is 15 to 20 percent and is mostly scenario judgment.
  • Place controls along the change: push protection at push, scanning and dependency review at pull request, alerts and updates after merge.
  • Prioritize with validity, EPSS, security severity, scope and exposure; custom properties focus security overview.
  • Give every alert an owner through assignment, owning-team properties and routing.
  • Clear backlogs at scale with grouped security updates, campaigns, Autofix and auto-triage rules.
  • Govern dismissals with reasons and delegated dismissal; measure with security overview and a short scorecard.
Shift left
Moving security checks earlier in development, where fixes are cheaper.
Custom property
Organization-defined repository metadata used to filter, target and report.
Delegated alert dismissal
A control that turns alert dismissal into a request approved by a reviewer.
Private vulnerability reporting
A way for outside researchers to report vulnerabilities to maintainers privately through GitHub.
Repository security advisory
A private workspace for fixing and publishing a vulnerability, which can request a CVE.
Time to remediate
The time from an alert opening to its fix, often reported as a median.

Practice problems

Work each problem on paper first, then reveal the answer to check.

  1. Which feature stops a vulnerable dependency from entering through a pull request?

    Show answer

    Dependency review, required by a ruleset.

  2. What repository metadata lets security overview focus on internet-facing systems?

    Show answer

    A custom property such as exposure.

  3. What is the first step when an active credential is found?

    Show answer

    Revoke or rotate it.

Lesson quiz · 5 questions

Score 60% or more to complete this lesson.

Take the quiz