Back to skill

Security audit

Monitoring Plus

Security checks for vulnerabilities and agentic risk

Overview

This is a documentation-only monitoring skill with purpose-aligned templates, but users should harden the sample alerting and Loki configurations before production use.

Before installing or using this skill, treat the provided YAML as starter material. Replace placeholder credentials, review whether alert contents may reveal internal service names or incident details before sending them to third parties, and do not expose Loki or other monitoring ports to untrusted networks without authentication and network controls.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (1)

T09 · Insecure Skill Coding Practices

Warning
Location
SKILL.md:234
Finding

Loki Authentication Disabled in Deployment Template

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:234
Vulnerability Type: Unauthenticated access to log aggregation services
Risk Level: Medium

yaml
# loki-config.yml
auth_enabled: false

server:
  http_listen_port: 3100

Technical Analysis

The Loki configuration explicitly sets auth_enabled: false, placing the service in unauthenticated, single-tenant mode. The template does not prescribe an authenticated reverse proxy, network access controls, TLS, or another compensating security boundary.

If port 3100 is exposed to an untrusted network, any client able to connect to the Loki API may submit queries without presenting credentials. Depending on the enabled Loki APIs and surrounding deployment controls, an unauthorized client may also submit forged log entries. This is a configuration vulnerability rather than evidence of intentionally malicious behavior.

Attack Path

  1. A user deploys Loki using the supplied configuration.
  2. Loki listens on port 3100, and that port becomes reachable from an untrusted network through a container mapping, firewall rule, ingress, or load balancer.
  3. An attacker discovers the endpoint through network scanning or service enumeration.
  4. The attacker accesses unauthenticated Loki endpoints to enumerate labels, streams, and stored log data.
  5. The attacker queries logs for operational details or sensitive values such as internal hostnames, user identifiers, request data, tokens, or credentials accidentally recorded by applications.
  6. Where log-ingestion endpoints are also exposed, the attacker may submit fabricated entries, degrading monitoring integrity or triggering misleading investigations and alerts.

Impact Assessment

Exploitation does not directly grant operating-system privileges. It can, however, expose all log streams available in the unauthenticated Loki tenant and disclose sensitive operational or application data. Information recovered ...[truncated 415 chars]

Remediation
View remediation

Remediation Suggestions

  1. Do not expose Loki port 3100 directly to public or otherwise untrusted networks.
  2. Place Loki behind an authenticated reverse proxy or observability gateway that enforces identity and authorization for both query and ingestion APIs.
  3. Restrict access using firewall rules, private networking, Kubernetes NetworkPolicies, or equivalent controls.
  4. Enable TLS at the gateway and use encrypted service-to-service transport where appropriate.
  5. Separate read and write access, granting clients only the minimum APIs required for their roles.
  6. Add rate limits and request-size controls to reduce log-injection and resource-exhaustion risks.
  7. Document this unauthenticated configuration as suitable only for isolated local development, and provide a hardened production example with explicit compensating controls.
  8. Prevent applications from logging credentials, tokens, and other secrets; apply redaction and retention controls to limit the impact of log exposure.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (1)

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The Alertmanager examples include live-looking outbound integrations for email, PagerDuty, and Slack but do not warn that enabling them will transmit alert contents and metadata to third-party services. In a monitoring skill, users may copy these configurations directly, which can unintentionally leak internal hostnames, service names, incident details, or operational metadata outside the organization.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.