Hub rules-newrelic

rules-newrelic

v3 public Verified

Newrelic

New Relic is an observability platform that helps engineers monitor, debug, and improve their entire stack. These rules ensure proper instrumentation, secure handling of telemetry data, and efficient alert configuration when agents interact with New Relic.

@sigmashakeinc 2 pulls 6 rules published Apr 8, 2026 synced Nov 22, 2026 sigmashakeinc/rules/rulesets/rules-newrelic →
Severity
3 error 2 warn 1 info
demo.cast
New Relic is an observability platform that helps engineers monitor, debug, and improve their entire stack. These rules ensure proper instrumentation, secure handling of telemetry data, and efficient alert configuration when agents interact with New Relic.

Rules index

6 governance rules

Indexed from the repository's .rules files, grouped by technology. Expand any rule to read the raw source.

newrelic

newrelic-block-unsafe-patterns error block

RISK: a hardcoded New Relic license key in source gives any repo reader the ability to send arbitrary telemetry to your account and bill you, and exposes account details via the NerdGraph API (CWE-798). FIX: set the key only via the NEW_RELIC_LICENSE_KEY environment variable or a secrets manager; rotate the exposed key in the New Relic console immediately.

Rule source requires an active Pro or Enterprise subscription.
newrelic-custom-attribute-pii warning log

RISK: sending PII (password, SSN, credit card number, date-of-birth) as a New Relic custom attribute violates GDPR/PCI-DSS and stores it unencrypted in New Relic's cloud (CWE-312). FIX: omit PII from custom attributes; send only opaque IDs or non-sensitive metadata.

Rule source requires an active Pro or Enterprise subscription.
newrelic-force-updated-api info log

INFO: newrelic.noticeError() is the correct API for reporting handled errors; this reminder is for review only. Ensure the error object (not a raw string) is passed as the first argument to get a full stack trace, and avoid passing PII in the custom attributes parameter.

Rule source requires an active Pro or Enterprise subscription.
newrelic-hardcoded-ingest-key error block

RISK: hardcoded New Relic ingest or API keys grant unauthenticated write access to your telemetry account and query access via NerdGraph (CWE-798). FIX: source the key from environment variables (NEW_RELIC_LICENSE_KEY, NEW_RELIC_API_KEY) and rotate any exposed key via the API Keys UI.

Rule source requires an active Pro or Enterprise subscription.
newrelic-high-security-disabled warning log

RISK: explicitly disabling high-security mode re-enables features that can leak sensitive data (raw SQL parameters, full stack traces with PII, message queue bodies) to New Relic's servers. FIX: set high_security: true in production or ensure each disabled sub-feature is intentionally reviewed.

Rule source requires an active Pro or Enterprise subscription.
newrelic-ssl-disabled error block

RISK: disabling TLS/SSL for the New Relic agent sends your license key and all telemetry payload over plaintext HTTP — easily intercepted on cloud or shared networks (CWE-295). FIX: keep ssl: true (the default) and ensure your environment trusts the New Relic CA chain.

Rule source requires an active Pro or Enterprise subscription.

Version metadata

Published metadata

The hash-locked record of this published ruleset. When source contents change, the maintainer resyncs and the version bumps.

Version
v3
Published
Apr 8, 2026
Source commits
0
Synced
Nov 22, 2026
Hash
405d14f84d861d4910e1f25278907da93242331f5a31836fdc033326e7fa44c7
Signature
Verified (publisher key)
Tested with
claude-code@current
Plan
Starter (free)
Visibility
Public

Source history

Recent commits

Latest commits touching rulesets/rules-newrelic/.sigmashake/rules in sigmashakeinc/rules/rulesets/rules-newrelic. The published version only bumps when a maintainer resyncs.

No commit history available.