Skip to content

Security: nertwork/nxtflow

SECURITY.md

Security Policy

Supported Versions

Version Supported
0.2.x (main, current v0.2.4) ✅

Security Architecture

  • Non-Root Containers: nxtflow-enricher runs as UID/GID 100:65533 (flow:nogroup, matching upstream netsampler/goflow2:v2.2.7), and nxtflow-mcp runs as UID/GID 65532:65532 with allowPrivilegeEscalation: false.
  • Query Injection Prevention: All user-supplied site, dir, search, and host inputs in nxtflow CLI, nxtflow-ui, and nxtflow-mcp pass through strict validators and backend-specific escaping (validate_range(), validate_dir(), escape_logql_label(), sanitize_logql_regex(), LogsQL quoting, and ClickHouse parameterized escaping).
  • Bounded Memory & Query Cardinality: Enricher queues use bounded ring buffers (ringBufferMaxFlows), rDNS uses a bounded LRU+TTL cache (maxEntries), Loki streams use strictly bounded labels ({job, site, dir}), and ephemeral ports (>=10000) are filtered from top-ports aggregations to prevent 5000-series exhaustion.
  • Secret Isolation: Storage backend (VictoriaLogs, Loki, ClickHouse) and NetBox credentials are injected via Kubernetes Secret environment variables (NXTFLOW_LOKI_*, NXTFLOW_CLICKHOUSE_*, NXTFLOW_NETBOX_TOKEN) and secret-grafana-datasources.yaml, never rendered into ConfigMaps, and redacted by nxtflow config.
  • Automated Security & Static Analysis: Every PR and push runs GitHub CodeQL static analysis (codeql.yml across Python and GitHub Actions), scripts/security_audit.py (scanning source, chart, SVG, workflow, and documentation files for exposed credentials, private keys, and syntax errors), Ruff linting, and Helm schema validation. GitHub Dependabot vulnerability & malware alerts, Secret Scanning, and Push Protection are enabled on the repository.

Reporting a Vulnerability

Please do not open a public GitHub issue for sensitive security vulnerabilities.

Instead, report vulnerabilities via:

  1. GitHub Private Vulnerability Reporting: Open a security advisory on nertwork/nxtflow
  2. Email: james@nertwork.com

We will acknowledge receipt within 48 hours and coordinate a fix and disclosure timeline.

There aren't any published security advisories