Audits and configures logging and monitoring against Singapore Government ICT&SS Policy Reform controls (LM-1..LM-21): captures five security log sources, off-box tamper-resistant storage, retention, sanitisation, GCSOC forwarding, and service-health/SLO/DORA/WOGAA monitoring.
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 setting up or auditing how a system captures, protects, and acts on its logs and telemetry against the ICT&SS Policy Reform Logging and Monitoring family (LM-1..LM-21), the largest cybersecurity family in the catalog. It covers what to log, where logs live, how long they survive, who watches them, and the operational monitoring (SLOs, golden signals, DORA, WOGAA) that keeps the service healthy.
Two points matter most:
Control text in this skill and references/lm-controls.md is embedded from
info.standards.tech.gov.sg as of 2026-07-23; the LM family page was last updated
24 March 2026. The standards iterate. For any compliance-critical decision, verify
against the live page:
references/lm-controls.md — full text of LM-1..LM-21 (statement, recommendations,
risk, the three parameters) plus per-SSP level assignments and cross-family notes.
Read it when you need exact wording for an audit response or SSP documentation.references/implementation-recipes.md — concrete config per control: Terraform for
flow logs/CloudTrail/ALB logging, off-box shipping and tamper-resistant bucket
policies, retention lifecycle, OCSF/OTel formatting, sanitisation patterns, GuardDuty,
and the monitoring stack (SLOs, golden signals, DORA, defacement). Read it when
building.Get these values from the System Security Plan. If the SSP is missing or a value is blank, flag that as its own finding and ask; never invent a number (the sibling skill sg-gov-ssp-navigator determines levels):
| Control | Parameter | What the SSP defines |
|---|---|---|
| LM-8 | lm-8_prm_1 | Security log retention period in days |
| LM-12 | lm-12_prm_1 | The central security log management and monitoring service |
| LM-21 | lm-21_prm_1 | Maximum days between malware/IOC detection updates |
LM-12 is Level 0 in every SSP. Medium-Risk Cloud additionally promotes LM-3, LM-4, LM-6, LM-9 to Level 0; High-Risk Cloud CII puts LM-1..LM-9, LM-12, LM-13 at Level 0. The project's own SSP is authoritative.
Work in this order. For setup, produce each configuration/artifact. For audit,
verify each and record pass / fail / not-applicable-per-SSP with evidence (the logging
config, the bucket policy, the retention rule, the GCSOC subscription, the dashboards).
Recipes for every step are in references/implementation-recipes.md.
Enable all five security log sources:
2a. Off the box, immediately (LM-1). Ship logs to a different system/component than the one that generated them, as soon as possible after the event. If an app server keeps its only copy on local disk, a compromise can erase the evidence. Store cloud audit logs in a separate system or account.
2b. Tamper-resistant (LM-2). Least-privilege access to log storage; as far as possible, read-only. Nobody on the delivery team needs delete rights on security logs. Logs sent to GCC Central Logs are tamper-resistant already.
2c. Sanitise before recording (LM-19). Identify classified/sensitive data that could reach logs (NRIC-class PII, credentials, API keys, payment details) and mask or tokenise it before it is written or shared with any third party.
2d. Structured format (LM-15). Security logs in OCSF/ECS-style schemas; operational logs in OpenTelemetry or structured JSON. Consistent formats make central analysis and automated detection possible.
2e. Retain long enough (LM-8). Security logs (all five Stage-1 sources) kept at least lm-8_prm_1 days, with lifecycle automation (e.g. S3 Lifecycle). Non-security logs: as long as needed for incident resolution and debugging.
3a. Central security log management (LM-12 — Level 0 everywhere). Centralise with the service named in lm-12_prm_1. On GCC, tenant security logs are already central and forwardable to GCSOC; subscribe rather than build.
3b. Security monitoring with automated alerts (LM-9). GuardDuty / Defender / equivalents, alerting to somewhere a human responds. Error tracking (Sentry-class tools) and uptime checks are not security monitoring: they watch bugs and availability, not breaches.
3c. Deeper detection where warranted: anomalous database activity monitoring (LM-13, e.g. RDS Activity Streams), UEBA integrated with the SIEM for insider-threat signals (LM-20), and web defacement monitoring for internet-facing systems (LM-14) with a recovery plan.
3d. Keep detections current (LM-21). Malware/IOC detections updated at least every lm-21_prm_1 days, with automation to monitor rollout and conformance.
Verify each row; record evidence. "Param" marks controls whose pass criteria come from the SSP; ask for the values rather than inventing them.
| ID | Check | Where | Param |
|---|---|---|---|
| LM-1 | Logs shipped off the generating component promptly; cloud audit logs in a separate system/account | Log pipeline config | |
| LM-2 | Log storage least-privilege, read-only as far as possible; no team delete rights | IAM / bucket policy | |
| LM-3 | Flow logs on all network interfaces | VPC config | |
| LM-4 | Cloud management/audit events logged (CloudTrail or equivalent; SaaS audit features on) | Trail config | |
| LM-5 | Database audit events logged | DB config | |
| LM-6 | WAF / LB / proxy / web server access requests logged | LB/WAF config | |
| LM-7 | Host security events logged (OS, auth, EDR, config and access changes) | Host/EDR config | |
| LM-8 | Security logs retained ≥ lm-8_prm_1 days with lifecycle automation | Retention rules | ✓ |
| LM-9 | Security monitoring with automated alerts (GuardDuty-class), responded to | Detection config | |
| LM-10 | Resource usage monitoring and abnormal-usage alerts | Alarms | |
| LM-11 | SLOs/SLIs monitored, maintained, alerted | Monitoring config | |
| LM-12 | Central security log management with lm-12_prm_1 (GCC → GCSOC forwarding) | Central logging / subscription | ✓ |
| LM-13 | Anomalous database activity monitored | DB activity streams | |
| LM-14 | Web defacement detection and recovery measures (internet-facing) | Monitoring plan | |
| LM-15 | Structured formats (OCSF/ECS for security; OTel/JSON for ops) | Log schema | |
| LM-16 | 4 Golden Signals tracked and analysed | Dashboards | |
| LM-17 | DORA 4 Key metrics measured and used | Delivery metrics | |
| LM-18 | WOGAA implemented in public-facing services | WOGAA registration | |
| LM-19 | Sensitive data masked/tokenised before logging or sharing | Log samples + pipeline | |
| LM-20 | UEBA integrated with SIEM, tuned, real-time alerts | UEBA config | |
| LM-21 | Detections updated ≤ every lm-21_prm_1 days, rollout automated | Update automation | ✓ |
Report per control ID with pass / fail / not-applicable-per-SSP, the evidence found,
and, for failures, the fix from references/implementation-recipes.md. Attribute log
store encryption/residency findings to DP and misconfiguration-posture findings to ST-2,
not LM. Reject "we have Sentry so monitoring is covered" reasoning and say why.
evals/evals.json (opens in a new tab)evals/files/LOGGING-POSTURE.md (opens in a new tab)evals/files/app.log (opens in a new tab)evals/files/main.tf (opens in a new tab)evals/trigger-evals.json (opens in a new tab)references/implementation-recipes.md (opens in a new tab)references/lm-controls.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
sg-government, im8, ictss, logging-controls, security-monitoring, gcsoc
10 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./cybersecurity:sg-gov-logging-monitoringfrom cybersecurity
npx claudepluginhub kyleoliveiro/sg-gov-skills --plugin cybersecurityOther plugins' skills for the same job