Configures or audits CI/CD pipelines against Singapore Government ICT&SS Policy Reform SD-1..SD-10 and SC-1..SC-9 controls. Use when setting up repos, pipeline config, or preparing for security audits on SG government agency projects.
Ships in cybersecurity. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are configuring or auditing a repo + pipeline against 19 controls from the ICT&SS Policy Reform Cybersecurity Control Catalog: SD-1..SD-10 (Secure Development) and SC-1..SC-9 (Software Supply Chain). A security audit of the delivery pipeline checks these controls. Most are configuration, and are far easier to set up at project start than to retrofit during an audit.
Control text in this skill and references/sd-sc-controls.md is embedded from
info.standards.tech.gov.sg as of 2026-07-16. The standards iterate actively. For any
compliance-critical decision, verify against the live pages:
Machine-readable OSCAL: https://github.com/GovtechSG/tech-standards is useful for tooling, but it lags the site; the site is authoritative.
references/sd-sc-controls.md — full text of all 19 controls (statement,
recommendations, risk statement, parameters). Read it when you need exact wording,
e.g. for an audit response or SSP documentation.references/platform-recipes.md — concrete GitHub and GitLab recipes per control,
with plan-gating notes and open-source fallbacks (gitleaks, semgrep, trivy, ZAP,
cosign). Read it when actually configuring a platform.Every agency system has a System Security Plan (SSP) that selects which controls apply at which level and sets the parameter values. Four of these 19 controls carry agency-defined parameters; the catalog sets no values:
| Control | Parameter | What the SSP defines |
|---|---|---|
| SD-4 | sd-4_prm_1 | Where static analysis runs (typically "CI/CD pipeline, per merge request") |
| SD-5 | sd-5_prm_1, sd-5_prm_2 | Dependency scan frequency in days, and where it runs |
| SD-6 | sd-6_prm_1, sd-6_prm_2 | Where secret detection runs, and the remediation SLA in days for true positives |
| SD-9 | sd-9_prm_1 | Where dynamic analysis runs |
Ask for the project's SSP (or the agency ISO/CISO contact) and use its values. Never invent a frequency or SLA. Writing "7 days" into a pipeline when the SSP says 3 is a finding. If no SSP exists yet, flag that first: PM-3/PM-4/PM-5 (SSP development, residual-risk approval, central submission) are Level 0 in every cybersecurity SSP. The sibling skill sg-gov-ssp-navigator determines which SSP applies and which level each SD/SC control sits at for this system. Notably, SD-8 (environment segregation) is promoted to Level 0 (mandatory, no deviation) in the medium-risk cloud SSP.
Work through the five lifecycle stages in order; each stage's controls assume the
previous stage is in place. For setup, apply each step. For audit, verify each step and
record pass/fail with evidence (a settings screenshot, a config file path, a pipeline
run URL). Platform-specific mechanics for every step are in
references/platform-recipes.md.
1a. Central VCS (SC-1). Code lives in the organisation's sanctioned Git platform: for whole-of-government teams, usually SHIP-HATS (GovTech's GitLab-based CI/CD suite), otherwise an agency-managed GitHub org or GitLab instance. Personal accounts and unversioned file shares fail the control. Why: without central version control you lose code history, consistency, and the base every other control here depends on.
1b. Push protection for secrets (SD-1). Enable secret push protection (GitHub push protection / GitLab secret push protection; gitleaks pre-commit + CI as fallback) so secrets are rejected at push, before they enter history. Why: a secret in Git history is compromised even after deletion, so blocking it at push is the cheapest fix.
1c. Protected default branch (SD-2). No direct pushes, no force pushes, no branch deletion on the default branch, for everyone including admins (empty bypass list, or audited break-glass only). Why: force pushes destroy history; direct pushes bypass every CI gate and review requirement you set up below.
1d. Peer review before merge (SC-3). Require ≥1 approval from a designated reviewer before merge; dismiss stale approvals on new commits; block self-approval. Use CODEOWNERS/approval rules to route sensitive paths (auth, crypto, IaC) to the right reviewers. Why: unreviewed merges are the main channel for both accidental defects and malicious code.
1e. Commit signing (SC-2). Configure the repo to reject unsigned commits (GitHub ruleset "Require signed commits"; GitLab push rule "Reject unsigned commits", which needs Premium; see recipes for the fallback). Onboard every developer with SSH or GPG signing keys registered to their platform account before enforcing, or the team is blocked. Why: unsigned commits can impersonate any author; signing ties each change to a verified identity.
2a. Pin everything (SC-4). Direct and transitive dependencies pinned via a
committed lockfile (package-lock.json, Pipfile.lock, go.sum, Cargo.lock, …), and
enforce lockfile sync in CI. Version ranges in a manifest alone fail the control because
transitive versions still float. Also pin container base images by digest and CI actions
by commit SHA. Why: unpinned dependencies mean every build can pull different,
possibly compromised, code without anyone noticing (version drift, dependency-confusion, hijacked releases).
If you cannot resolve an action's commit SHA or an image's digest right now (e.g. no
network access), pin what you can, mark each unresolved pin as an explicit blocking TODO
in the file, and report the control as open — not satisfied. Never let a runbook or
audit response claim SC-4 compliance while uses: lines still carry mutable tags: the
claim will fail audit, and it tells the team the work is done when it isn't.
2b. Install only pinned versions at deploy (SC-6). Every install step in CI and
Dockerfiles uses the lockfile-strict command: npm ci not npm install,
pipenv sync not pipenv install, yarn install --immutable,
pip install --require-hashes, etc. Audit grep: npm install/bare pip install in
Dockerfiles and deploy scripts. Why: a strict install makes the deploy reproduce exactly
what was reviewed and scanned; a resolving install can ship code nobody has seen.
2c. Dependency scanning on a schedule (SD-5). SCA scanning (Dependabot + dependency review, GitLab Dependency Scanning, or osv-scanner/trivy/grype on a scheduled job) running at least every sd-5_prm_1 days per the SSP, in the location the SSP names (sd-5_prm_2). Emit an SBOM (SPDX or CycloneDX; syft works) as scan evidence. Why: known CVEs in outdated libraries are the most common exploited weakness; scanning only counts as a control if it runs on the required cadence.
3a. Tests must pass before merge (SD-3). Required status checks / "pipelines must succeed" on the default branch, with the check names pinned so a skipped workflow can't silently satisfy the gate. Why: the default branch is what ships; a merge that never ran tests puts regressions one deploy away from production.
3b. Static analysis (SD-4). SAST (CodeQL, GitLab SAST, or semgrep) plus IaC scanning (trivy/checkov/KICS) in the location the SSP names (sd-4_prm_1, typically the CI pipeline per merge request). True-positive findings are remediated or formally risk-accepted before production deploy; keep an auditable triage trail (suppressions link to an issue with an approver). Why: static analysis catches vulnerability classes (injection, misconfiguration) before they exist in any running environment.
3c. Secret detection with an SLA (SD-6). Full-history and ongoing secret scanning (distinct from SD-1's push-time block: this catches what slipped through or predates enablement) in the SSP-named location (sd-6_prm_1). True positives remediated within sd-6_prm_2 days per the SSP, and remediation always means: revoke/rotate the credential, then purge it from Git history. Rewriting history without revoking does not close the exposure. Why: exposed secrets are live credentials; the SLA bounds the exposure window.
3d. Masked, protected CI secrets (SD-7). CI secrets limited to protected
pipelines/environments (so a branch pipeline or fork PR can't read deploy credentials)
and masked in job logs (GitLab masked variables; GitHub Actions secrets +
::add-mask:: for derived values). Prefer OIDC federation to the cloud provider over
long-lived credentials. Why: CI logs are broadly readable; an unmasked secret in
a log is an unmonitored copy, and unprotected variables let anyone who can push a branch
exfiltrate them.
3e. Dynamic analysis (SD-9). DAST (GitLab DAST, OWASP ZAP baseline/full scan) against a deployed staging/test environment, in the SSP-named location (sd-9_prm_1); findings addressed or risk-accepted before production deploy. Active scans target non-production only. Why: runtime testing finds what static analysis cannot: auth flaws, misconfigured endpoints, input-validation gaps in the composed system.
4a. Consistent build with provenance (SC-5). All release artifacts built by the
pipeline (never a laptop), with a record of how each artifact was built and deployed:
GitHub artifact attestations / SLSA provenance, GitLab runner artifact metadata
(RUNNER_GENERATE_ARTIFACTS_METADATA), or minimally commit SHA + pipeline URL bound to
the artifact. Why: without a build record you cannot prove, to an auditor or during an
incident, that what is running came from reviewed source.
4b. Sign artifacts during build (SC-7). Sign code and container images with Cosign (keyless via the CI job's OIDC identity is the low-maintenance option) or AWS Signer/Notation. Sign the digest, never a floating tag. Why: an unsigned artifact can be swapped for a tampered one anywhere between registry and runtime with no detection.
4c. Verify signatures before deploy (SC-8). A verification step gating deployment:
a pipeline stage (cosign verify / gh attestation verify pinned to the exact expected
identity: repo, workflow, issuer) and/or a Kubernetes admission controller (Sigstore
policy-controller, Kyverno verifyImages). Why: signing achieves nothing unless
something verifies it; verification is what stops unsigned or foreign artifacts from
running.
5a. Prod / non-prod segregation (SD-8). Segregate across all six planes the control names: applications, services, data, secrets, roles, networks. Ideally use separate cloud tenant accounts per environment (on GCC: separate accounts). Check each plane explicitly: no production data in non-prod, separate secret stores, no standing developer write access to prod, no network path from non-prod into prod, CI deploy credentials scoped per environment (GitHub environments / GitLab protected environments
5b. SSDLC framework (SD-10). Document which framework governs the lifecycle (NIST SSDF (SP 800-218), OWASP SAMM, or Microsoft SDL), with roles and responsibilities per phase, and map its practices to concrete evidence (this pipeline's gates, threat modelling at design, VAPT per ST-4, patch cadence). The other 18 controls here are the build/deploy-phase evidence. Why: point controls without an owning framework decay; audits ask "who is accountable" as much as "is it configured".
5c. InnerSource (SC-9). Default repos to internal visibility on the agency/WOG platform, with CONTRIBUTING.md and a maintainer list, after screening for confidential algorithms or embedded sensitive data (SD-1/SD-6 clean is a prerequisite). The Singapore Government Developer Portal's InnerSource guidelines are the named framework. Why: closed silos duplicate effort and hide bugs from the colleagues most likely to spot them.
Verify each row; record evidence (setting location, config path, pipeline run URL). "Param" marks controls whose pass criteria come from the SSP.
| ID | Check | Where | Param |
|---|---|---|---|
| SC-1 | Code in sanctioned central Git platform, SSO+MFA | Platform org | |
| SD-1 | Secret push protection enabled (or gitleaks pre-commit + CI) | Repo security settings | |
| SD-2 | Default branch: no direct push, no force push, no deletion, empty bypass | Ruleset / protected branch | |
| SC-2 | Unsigned commits rejected; all devs have signing keys | Ruleset / push rules | |
| SC-3 | ≥1 required approval; stale approvals dismissed; no self-approval | Ruleset / approval rules | |
| SD-3 | Named CI checks required before merge; no skip-path bypass | Ruleset / merge checks | |
| SC-4 | Lockfile committed and CI-enforced; base images by digest; actions by SHA | Repo + CI config | |
| SC-6 | All deploy installs lockfile-strict (npm ci, pipenv sync, …) | Dockerfiles, CI, deploy scripts | |
| SD-5 | SCA scan every ≤ sd-5_prm_1 days in sd-5_prm_2; SBOM emitted | Scheduler + scan reports | ✓ |
| SD-4 | SAST + IaC scan in sd-4_prm_1; findings fixed or risk-accepted pre-prod | CI config + triage trail | ✓ |
| SD-6 | Secret detection in sd-6_prm_1; true positives revoked+purged ≤ sd-6_prm_2 days | Scanner + remediation records | ✓ |
| SD-7 | CI secrets protected-pipeline-only and masked in logs; OIDC preferred | CI variable settings | |
| SD-9 | DAST in sd-9_prm_1 vs staging; findings fixed or risk-accepted pre-prod | CI config + triage trail | ✓ |
| SC-5 | Pipeline-only builds; provenance/attestation per artifact | Workflow + attestation store | |
| SC-7 | Artifacts signed at build (cosign/AWS Signer), by digest | Build job + registry | |
| SC-8 | Signature verification gates deploy (pipeline stage or admission controller) | Deploy job / cluster policy | |
| SD-8 | Prod/non-prod segregated: apps, services, data, secrets, roles, networks | Cloud accounts + IAM + network | |
| SD-10 | SSDLC framework documented with roles; practices mapped to evidence | Team docs / wiki | |
| SC-9 | Internal visibility + contribution docs, after sensitivity screening | Repo visibility + docs |
Report audit results per control ID with pass / fail / not-applicable-per-SSP, the
evidence found, and, for failures, the fix from references/platform-recipes.md.
evals/evals.json (opens in a new tab)evals/files/Dockerfile (opens in a new tab)evals/files/REPO-SETTINGS.md (opens in a new tab)evals/files/deploy.yml (opens in a new tab)evals/trigger-evals.json (opens in a new tab)references/platform-recipes.md (opens in a new tab)references/sd-sc-controls.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
/cybersecurity:sg-gov-secure-pipelinefrom cybersecurity
npx claudepluginhub kyleoliveiro/sg-gov-skills --plugin cybersecurity10 skills in this plugin
/sg-gov-access-controlSet up or audit identity and access management against the Singapore Government's ICT&SS Policy Reform (IM8 successor) Access Control controls (AC-1..AC-16): account inventory and deny-by-default least privilege, MFA for privileged accounts, Singpass/Corppass for public users vs government SSO (WOG AAD) for internal users, inactive/expired account handling, access reviews, automated account lifecycle, static credential rotation, endpoint hardening/MDM, identity- and device-based access, and separation of duties. Use whenever designing IAM policies or roles, authentication flows, admin or privileged access, account provisioning and deprovisioning, credential/API-key management, or when auditing who can access an agency system. Triggers: "access control", IM8/ICT&SS AC controls, least privilege, MFA, Singpass/Corppass login, SSO, dormant/orphaned accounts, access review, credential rotation, endpoint compliance, zero trust on a government project./sg-gov-container-securityBuild, scan, distribute, and run containers that satisfy the Singapore Government's ICT&SS Policy Reform (IM8 successor) Container Security (CS-1..CS-11) controls. Use whenever writing or reviewing a Dockerfile, a Kubernetes manifest or Helm chart, a container build pipeline, or registry/runtime configuration for a Singapore government agency project, or when preparing for a security audit or VAPT of a containerised workload. Triggers: "ICT&SS container requirements", IM8 container security, Dockerfile hardening, minimal/distroless/alpine/scratch base image, digest-pinned FROM, non-root container user, read-only root filesystem, runtime secrets, Hadolint, image scanning (Trivy, Grype, Amazon Inspector), private container registry, Kubernetes API private endpoint, namespace/workload segmentation, NetworkPolicy, Falco / runtime protection, container security audit, GCC container workload, CS control catalog./sg-gov-data-protectionBuild or audit a system's data handling against the Singapore Government's ICT&SS Policy Reform (IM8 successor) Data Protection controls (DP-1..DP-8): Singapore data residency, encryption at rest and in transit, central cloud tenant management, storage sanitisation and witnessed destruction, data loss prevention, and classification disclosure in the UI. Use whenever handling government data classifications, pinning cloud regions or checking cross-region replication, configuring encryption (including the CK key-management work behind it: algorithms, rotation, HSM; pair with sg-gov-secure-coding-as), decommissioning storage, setting up DLP, or when PDPA questions come up on an agency project. Triggers: "data residency", IM8 data protection requirements, DP controls, ap-southeast-1 pinning, encryption at rest / in transit or key management for government data, AWS Organizations / landing zone / GCC tenancy, media sanitisation or disposal, DLP, PDPA or PSGA obligations, maximum classification for input fields./sg-gov-gen-ai-securityBuild or audit a Generative AI feature so it satisfies the Singapore Government's ICT&SS Policy Reform (IM8 successor) Gen-AI SSP overlay: the 8 GA controls (GA-1..GA-8) plus DP-8. Use whenever writing, reviewing, or hardening code that calls a GenAI/LLM API, builds a RAG or agent or chatbot feature, self-hosts open-weights models, or handles user prompts/uploads for a Singapore government agency project, or when preparing for a security audit or VAPT of a GenAI application. Triggers: "ICT&SS Gen-AI requirements", IM8 GenAI controls, GA controls, LLM/chatbot/RAG/agent for a government service, GenAI data classification limits, overseas vs Singapore-hosted GenAI API, GCC 2.0 GenAI API, no-log no-train agreement, safetensors / approved model loaders, open-weights model hosting, GenAI file upload safeguards, LLM output evaluation / safety testing, prompt injection testing, hallucination acknowledgement, GenAI security audit, data classification disclosure for AI inputs./sg-gov-logging-monitoringSet up or audit logging and monitoring against the Singapore Government's ICT&SS Policy Reform (IM8 successor) Logging and Monitoring controls (LM-1..LM-21): capturing the five security log sources, off-box tamper-resistant storage, retention, structured formats and log sanitisation, central security log management (GCSOC), security monitoring and detection, and service-health/SLO/DORA/WOGAA monitoring. Use whenever configuring logs, CloudTrail/VPC Flow Logs/WAF or database logging, GuardDuty-class detection, SIEM or UEBA, log retention or lifecycle policies, alerting, observability, or when auditing an agency system's detection posture. Triggers: "logging requirements", IM8/ICT&SS LM controls, GCSOC, central log management, security monitoring, log retention, log sanitisation, SLOs / golden signals, DORA metrics, web defacement monitoring, WOGAA on a government project./sg-gov-network-securityDesign or audit a system's network boundaries against the Singapore Government's ICT&SS Policy Reform (IM8 successor) Network Security controls (NS-1..NS-11): VPC/VNet segmentation and tiered subnets, access restrictions on CSP resources outside the virtual network, deny-by-default security groups and egress allowlisting, private inter-network connectivity (PrivateLink, peering, Transit Gateway), WAF/DDoS/CDN filtering, valid auto-renewed TLS certificates, authenticated and encrypted service-to-service traffic (mTLS, service mesh), secure cloud-to-on-premises connectivity, IPS/IDS, hardened remote admin access, and firewall-change alerting. Triggers: "network segmentation", security group rules, 0.0.0.0/0 ingress, deny by default, egress allowlist, VPC endpoints, WAF in front of an agency service, certificate expiry, mTLS between microservices, site-to-site VPN / Direct Connect, IDS/IPS, bastion or VPN access to private networks, firewall rule change alerts, IM8 network requirements, GCC network architecture.Other plugins' skills for the same job