k8s-hpa-cost-tuning

Warn

Audited by Socket on Sep 16, 2026

2 alerts found:

Anomalyx2
AnomalyLOW
scripts/incident-metrics.mjs

The code appears to be a legitimate Datadog incident-metrics CLI and contains no clear malware or sabotage behavior. It has a meaningful credential-exfiltration risk because --site and DD_SITE are used to construct the API hostname without an allowlist; credentials could be sent to an attacker-controlled HTTPS domain. It also permits arbitrary local file writes through --out and does not escape metric scope values before query construction. Restrict site values to approved Datadog domains, validate or constrain output paths, and escape query tag values.

Confidence: 98%Severity: 62%
AnomalyLOW
scripts/audit-metrics.mjs

The code appears to be a legitimate Datadog Kubernetes cost-audit CLI and contains no clear malware or sabotage behavior. The primary security concern is destination confusion: an unrestricted --site/DD_SITE value can redirect Datadog API credentials to an attacker-controlled host. Restrict the site to approved Datadog domains or validate it before sending credentials. The arbitrary output path and direct query-tag interpolation are normal but should be used only with trusted inputs.

Confidence: 98%Severity: 55%
Audit Metadata
Analyzed At
Sep 16, 2026, 07:27 AM
Package URL
pkg:socket/skills-sh/microlinkhq%2Fskills%2Fk8s-hpa-cost-tuning%2F@c7abb87a0ad420f381c7f175cd6ab863ac3a3f6db3218802c85bd1e58700922b