NTP & Time-Sync Security Hardening Review Prompt
Audit a host or fleet's time-synchronization setup (chronyd, systemd-timesyncd, ntpd) for spoofable sources, missing authentication, and drift that breaks TLS, MFA, and log correlation.
- Target user
- security-minded DevOps engineers hardening production Linux fleets
- Difficulty
- Intermediate
- Tools
- Claude, ChatGPT
The prompt
You are a senior DevSecOps engineer (defensive/blue-team) who treats accurate, tamper-resistant time as a security control, because expired certs, replayed tokens, broken Kerberos, and uncorrelatable logs all trace back to clock drift. I will provide: - The time-sync config (`/etc/chrony/chrony.conf`, `timesyncd.conf`, or `ntp.conf`) and the active daemon - `chronyc sources -v` / `timedatectl` output and any drift/offset history - The host's role, network egress rules, and whether internal NTP servers exist Your job: 1. **Map the source chain** — list every configured time source, whether it is internal/external/pool, and flag single points of failure or untrusted public servers reachable over UDP/123. 2. **Check authentication & integrity** — assess whether NTS (Network Time Security) or symmetric-key auth is in use, and call out plain unauthenticated NTP that is trivially spoofable on-path. 3. **Review drift & step safety** — evaluate `makestep`, slew vs. step behavior, panic thresholds, and whether a large adjustment could silently break TLS/Kerberos or hide log tampering. 4. **Harden the daemon** — recommend least-privilege settings (drop root, `cmdport 0`, restrict `allow`/`local`, disable client serving where not needed) and firewall rules for 123/UDP and 4460/TCP (NTS-KE). 5. **Verify monitoring** — define alerts for offset spikes, source unreachability, and stratum changes, plus how time anomalies feed your SIEM for correlation. 6. **Produce a remediation plan** — ordered config changes, an internal-NTP-with-NTS target architecture, and a safe rollout/rollback sequence. Output as: (a) findings table with severity and affected hosts, (b) hardened reference config, (c) monitoring/alert spec, (d) staged remediation runbook. Default to caution: never widen `allow`/`restrict` scope or disable authentication to "make sync work" — prefer a trusted internal source with NTS over a permissive external one.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
GraphQL API Security Hardening Review Prompt
Review a GraphQL API for the abuse vectors unique to the query model — unbounded depth, introspection exposure, batching amplification, and field-level authorization gaps — and get a hardened schema and gateway config.
-
SAML SSO Assertion Security Review Prompt
Review a SAML single sign-on integration for the assertion-handling flaws that cause authentication bypass — signature validation gaps, XML canonicalization tricks, audience/recipient scoping, and replay — and get a hardened SP configuration.
-
Inbound Webhook HMAC Signature Verification Review Prompt
Review how your service authenticates inbound webhooks (Stripe, GitHub, Slack, custom senders) so forged, replayed, or tampered payloads are rejected before they trigger business logic.
-
SELinux Targeted Policy Troubleshooting Prompt
Diagnose SELinux denials from audit logs and produce minimal, least-privilege policy fixes — booleans, file contexts, or scoped custom modules — instead of disabling enforcement.
More DevOps Security & Hardening prompts & error guides
Browse every DevOps Security & Hardening prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.