A monitoring and observability platform runs code on every host it watches, holds read credentials for every database, network device and cloud account it checks, and stores telemetry that often contains tokens and personal data, so whoever controls it holds a quiet route into the whole estate. This guide treats the platform itself as the asset to protect: the console and its admin roles, the agent fleet and its remote configuration channel, the credentials the platform stores for checks and integrations, synthetic test accounts, notification webhooks, the telemetry it keeps and its own audit trail. It is for platform owners, SREs and security architects, self-hosted or service, and is vendor-neutral: confirm setting names in your platform's documentation. For what the platform should collect and how security teams use it, see Observability, telemetry and SRE for security teams; for incident handling on AI agent telemetry, see the AI Agent Observability and Incident Response Guide.
Key takeaways
- Classify the platform as tier 0. Agents often run as root or SYSTEM on every host and accept configuration from the central server, which makes the console a software deployment tool in ATT&CK terms (T1072).
- Separate who configures from who reads. Platform administration, agent and check configuration, alert routing and data access are different jobs; most compromises abuse one broad role that does all four.
- Every stored check credential is a privileged non-human identity. Database logins, SNMP communities, SSH keys and cloud roles held for monitoring need owners, least privilege and rotation at the target, not only in the platform.
- Telemetry is a data store with secrets in it. Redact at the collector before data leaves the host, restrict sensitive data sets, and hunt for credentials in what you already keep.
- Keep the platform's audit trail outside the platform. Muted alerts, deleted monitors and changed notification routes are how an attacker blinds the operations team first.
Why the observability platform is a target
Monitoring platforms combine three things attackers want: privileged execution on hosts, broad read access to infrastructure, and control over what operators see. The 2020 compromise of a widely used network monitoring product led CISA to issue Emergency Directive 21-01, which required affected agencies to disconnect the platform, treat every credential used by or stored in it as compromised, and remove all inbound trust relationships to the rebuilt system. Its supplemental hardening guidance works for any monitoring platform: confine it to a network management enclave, block its internet access, put application, web and database servers on dedicated hosts, give service accounts minimum privilege, keep its logs centrally for at least 180 days and apply security updates within 48 hours.
The component table reflects a common architecture and is NHI Mgmt Group's view; your platform may name, merge or split these parts differently.
| Component | What it holds or can do | If an attacker controls it | Primary control |
|---|---|---|---|
| Console, query interface and API | Dashboards, queries across all telemetry, exports, admin and application keys | Reads secrets and personal data in telemetry, creates new keys, mutes alerts | SSO with phishing-resistant MFA, scoped roles, key inventory |
| Agent fleet and remote configuration | Privileged process on each host, custom checks, remote configuration and update channel | Runs commands on every monitored host (T1072), stops reporting | Remote commands and custom scripts off unless needed, signed updates, configuration as code |
| Check and integration credentials | Database logins, SNMP communities, SSH keys, JMX and API credentials, cloud roles | Logs on to databases, network devices and cloud accounts directly (T1078.004) | Read-only monitoring identities per target class, federation, vaulting |
| Synthetic and browser tests | Test user passwords, one-time password seeds, API tokens in scripts | Valid logins to production applications | Dedicated low-privilege test accounts, secrets referenced from a vault |
| Alerting and notification routes | Paging, chat and ticketing webhooks, escalation policies, silences | Suppresses alerts, redirects pages, phishes responders through a trusted channel | Change control on routes and silences, signed webhooks, alert on silence creation |
| Telemetry store | Metrics, logs, traces, session replays, profiles | Harvests tokens from headers and URLs (T1552.001), deletes evidence | Redaction at collection, data access by data set, retention controls |
Admin roles, data access and console sign-in
The NCSC secure system administration principles apply directly: trusted management devices, protected administration interfaces, tiered administration, privileged access management, and logging and audit of administration.
| Role | Can do | Should not be able to |
|---|---|---|
| Platform administrator | SSO, roles, organisation settings, retention, key management | Act without a second approver on deletion, retention cuts or SSO changes |
| Agent and check engineer | Agent policies, check definitions, integration setup | Change roles or read restricted data sets |
| Alerting owner | Monitors, alert rules, notification routes, on-call schedules | Create organisation-wide silences without expiry |
| Team user | Query and build dashboards on the team's own data sets | Export estate-wide data or create API keys |
| Auditor | Read the platform audit log and configuration | Change anything |
- Authentication: enforce SSO through your identity provider with phishing-resistant MFA, disable local password sign-in for everyone except one documented break-glass account, and map roles from identity provider groups so that leavers lose access automatically. See the Break-Glass Account Guide.
- Data access by data set: restrict indexes, projects or tenants that hold session replays, request bodies, security logs or health data to the teams that need them. See the Privacy in Security Logging and Monitoring Guide.
- Shared and public dashboards: turn off public or anonymous dashboard links at organisation level, or restrict them to an approved list with expiry, because a shared link can expose host names, internal addresses and business figures.
- Admin devices: perform platform administration from privileged access workstations. See the Privileged Access Workstations Guide.
The agent fleet and remote configuration
The agent turns a console compromise into an estate compromise: many run with elevated privileges and accept custom checks, scripts or configuration pushed from the server.
- Disable what you do not use: turn off remote command execution, remote script or custom check deployment and remote configuration features unless a documented use case needs them, and record the decision.
- Least privilege on the host: run the agent as a dedicated unprivileged account where the platform supports it, granting only the specific capabilities or group memberships its collectors need; on Kubernetes, scope the agent's service account and cluster roles to the resources it reads. See the Kubernetes Security Guide.
- Configuration as code: manage agent configuration through your configuration management tool or repository rather than console edits, review changes and alert on drift between the deployed and approved configuration.
- Verified updates: install agents only from signed packages or verified checksums, stage agent upgrades through pilot rings, and keep the previous version available for rollback.
- Ingest keys: issue one ingest key per environment or team, write-only, stored in the host's secret store, never in images or public repositories. The OpenTelemetry Collector guidance makes the same point for configuration files: keep tokens and private keys in a secret store or encrypted filesystem and use environment variable expansion.
- Listeners: bind receivers and debug endpoints to specific addresses, not 0.0.0.0 (the OpenTelemetry Collector defaults to localhost from v0.110.0). Pipeline detail is in Securing the log pipeline (collectors, forwarders, data pipeline) itself.
Credentials the platform stores
Each stored credential is a non-human identity with access to a system outside the platform.
| Credential | Needs | Avoid | Pattern |
|---|---|---|---|
| Cloud integration | Read metrics and configuration in each account | Static access keys; broad reader or contributor roles granted during setup | Cross-account role or workload identity federation with a narrow read policy. See the Workload Identity Federation Guide. |
| Database check login | Read performance and status views | Administrator or owner logins; one login shared across all databases | Dedicated monitoring login per database class with only the performance view grants |
| Network device polling | Read device counters | SNMPv1 or v2c community strings with write access | SNMPv3 with authentication and privacy, read-only views. See the SNMP Security Guide. |
| SSH or remote check account | Run defined read commands | Root keys; sudo to all | Per-segment account with restricted commands and source address limits |
| Synthetic test user | Sign in to the application under test | Real user accounts; admin roles; one-time password seeds in scripts | Dedicated test account with minimal rights, excluded from privileged groups, secrets referenced from a vault |
| Admin and application API keys | Automate dashboards, monitors and queries | Personal keys used by pipelines; keys with full admin scope | Service-owned keys with scoped permissions and expiry. See the API Key Management Guide. |
- Rotate at the target: a password changed in the platform but not on the database is not rotated. ED 21-01 required changing all credentials and shared secrets, including SNMP strings, used by or previously used by the affected device.
- Inventory every credential with owner, target, scope and last rotation, and include them in your NHI reviews. See the Service Account Security Guide.
Alerting, silences and notification routes
An attacker who can mute alerts does not need to disable the platform.
- Silences and maintenance windows: require an owner, a reason and an expiry on every silence or downtime, cap the maximum duration, and alert the on-call channel when a silence covers a critical service or many monitors at once.
- Alert manager APIs: protect them with authentication. The Prometheus project documents that, without it, anyone with HTTP access to its alert manager can create, modify or delete silences, and that templated routing can let anyone who can send alerts direct notifications to arbitrary destinations.
- Webhooks: sign outbound webhooks where the receiver supports it, store webhook URLs as secrets, and rotate them when staff with access leave. See the Webhook Secrets Security Guide.
- Independent heartbeat: send a scheduled "dead man's switch" alert through a channel outside the platform, so the absence of alerts is itself detected. NCSC advises automated alerts when logs stop arriving centrally.
Telemetry content and data handling
OpenTelemetry's sensitive data guidance is explicit that the project cannot decide what is sensitive in your context: authentication credentials, session tokens, personal, financial and health data can all appear in telemetry, and reviewing what instrumentation libraries emit is the implementer's job. The OWASP Logging Cheat Sheet lists session identifiers, access tokens, passwords, database connection strings and encryption keys among data to exclude or mask.
- Redact before it leaves the host: use collector processors that drop attributes not on an allow list and mask values that match secret or card number patterns. Hashing small, predictable values such as numeric user IDs can be reversed, as OpenTelemetry warns.
- Turn off body and header capture by default in tracing and real-user monitoring.
- Hunt in what you keep: schedule searches for credential patterns across logs and span attributes, rotate anything found at its source, then purge or restrict the data.
- Retention by data set: keep high-volume debug telemetry short and security-relevant logs as long as your schedule requires. See the Log Management and Retention Guide.
The platform's own audit trail
| Event | Why it matters | Alert |
|---|---|---|
| Role change, new local user, SSO or MFA setting change | Persistence in the console | Always |
| API or application key created, or used from a new network | Added credentials (T1098.001) or stolen keys | New keys and unusual sources |
| Agent policy change enabling remote commands or custom checks | Opens code execution on the fleet | Always |
| Monitor deleted, alert rule disabled, silence created on critical services | Blinds operators (T1685) | Always for critical services |
| Notification route or webhook changed | Redirects or suppresses pages | Always |
| Large export or query across restricted data sets | Data theft through the console | Above a set volume |
Forward these events to your SIEM and to write-once storage under a different administrative account, in line with NIST SP 800-53 AU-9(2) and AC-6(9). OWASP adds tamper detection and recording all access to logs. See Securing the SIEM itself for the receiving side.
Self-hosted hardening and lifecycle
| Stage | Security actions |
|---|---|
| Buy | Confirm SSO and MFA at no extra cost, a tenant audit log with export, scoped API keys, documented provider support access and data residency options. See Security Requirements for Selecting an Observability and APM Platform. |
| Deploy | Place servers in a management segment with no direct internet access; split application, web and database tiers where the product allows; keep metrics, API and profiling endpoints off public networks (the Prometheus security model warns against exposing /metrics, the API and /pprof); leave admin and lifecycle HTTP APIs disabled unless required; enable TLS on every listener and do not set insecure_skip_verify on clients. See the Monitoring and observability platform rollout playbook. |
| Run | Apply vendor security updates promptly and follow the vendor's security advisories page; review roles, keys, stored credentials and silences every quarter; size storage and alert before disks fill, as NCSC advises. |
| Back up | Back up configuration, dashboards, monitors and routing separately from telemetry, under credentials platform admins do not hold, and test a restore. See the Backup Security and Immutable Backup Guide. |
| Migrate or retire | Run old and new in parallel until alerting is proven; uninstall old agents; revoke every ingest key, API key, cloud role and stored check credential at its target. See the Monitoring and observability platform migration playbook. |
Rollback: when narrowing an agent's privileges or a check credential breaks a collector, restore only the specific permission the collector reports as missing, documented against the change, never the previous broad role.
Decision guidance
- Self-hosted or service: self-hosted gives you network isolation and control of the update channel but makes you responsible for server, database and agent update security; a service removes that work but moves the main risks to admin sessions, leaked API keys and the provider relationship (T1199).
- Agents or agentless checks: agents avoid storing remote logon credentials centrally but add a privileged process to every host; agentless polling keeps hosts clean but concentrates credentials in the platform. Large estates usually mix both, so apply the credential table above to the agentless part.
- Small organisations: prioritise SSO with MFA, disabling remote commands, scoping cloud integrations and moving secrets out of configuration. Large organisations add per-team tenancy, configuration as code and an independent heartbeat.
Detection and measurement
- Integration identities used from unexpected places: cloud sign-ins by monitoring roles outside the platform's documented source ranges (T1078.004).
- Check credentials used interactively: monitoring logins on databases or devices from hosts other than the collectors.
- Agent behaviour change: agents spawning shells or unusual child processes, or agent configuration changing outside a deployment.
Metrics that show the controls are working:
- Share of agents with remote command and custom script features disabled or under an approved exception (target 100%).
- Share of stored check and integration credentials with an owner, least-privilege scope and rotation at the target within policy.
- Number of full platform administrators and the share using just-in-time elevation.
- Active silences without owner or expiry (target zero).
- Secret pattern hits found in stored telemetry per month and median time to rotate at source.
- Share of admin actions in the platform audit log with a matching change reference.
Framework mapping
| Control area | NIST SP 800-53 Rev. 5 | NIST CSF 2.0 | ATT&CK threat addressed |
|---|---|---|---|
| Admin roles and console access | AC-2, AC-6, AC-6(5) | PR.AA-05 | T1078.004 Cloud Accounts |
| Agent fleet and remote configuration | CM-3, CM-7, SI-7 | PR.PS-01 | T1072 Software Deployment Tools |
| Stored credentials and keys | IA-5, SC-12 | PR.AA-01 | T1098.001 Additional Cloud Credentials, T1528 Steal Application Access Token |
| Telemetry content | SC-28, SI-12 | PR.DS-01 | T1552.001 Credentials In Files |
| Alerting and audit trail | AU-6, AU-9, AU-9(2), AC-6(9) | PR.PS-04, DE.CM-09 | T1685 Disable or Modify Tools |
| Provider relationship | SA-9 | GV.SC-07 | T1199 Trusted Relationship |
Common failure patterns
- Remote commands left on: an agent feature enabled for a troubleshooting session stays on across the fleet, so one stolen admin session can run commands everywhere.
- One database login for all checks: a high-privilege login stored once and reused across every database, never rotated because "monitoring would break".
- Community strings and SSH keys from years ago: credentials rotated in the platform after an incident but not on the devices, which ED 21-01 explicitly warned against.
- Permanent silences: a noisy monitor muted with no expiry becomes the gap an attacker works in.
Practitioner checklist
- Classify the platform, its agents and stored credentials as tier 0 and administer them from privileged access workstations.
- Enforce SSO with phishing-resistant MFA, map roles from groups and keep one tested break-glass account.
- Separate platform admin, agent and check engineering, alerting and data access roles; restrict sensitive data sets.
- Disable agent remote commands and custom script deployment unless an approved use case needs them.
- Replace static cloud keys with federation or roles, and give every check its own read-only identity rotated at the target.
- Redact secrets and personal data at the collector and hunt for credentials in stored telemetry.
- Export the platform audit log to write-once storage outside the platform administrators' control.
- Revoke every key, role and stored credential at its target when migrating or retiring.
Standards and references
- CISA: Emergency Directive 21-01 and supplemental guidance
- NCSC: Secure system administration
- NCSC: Introduction to logging for security purposes
- NIST: SP 800-53 Rev. 5 Security and Privacy Controls
- OpenTelemetry: Collector configuration best practices
- OpenTelemetry: Handling sensitive data
- Prometheus: Security model
- OWASP: Logging Cheat Sheet
Related NHI Mgmt Group resources: If your monitoring and observability platform is compromised · Monitoring and observability platform rollout playbook · Securing the LLM observability platform itself · Monitoring vs Observability · Securing the SIEM itself