api-client

Warn

Audited by Socket on Sep 2, 2026

1 alert found:

Security
SecurityMEDIUM
scripts/api-request.sh

No clear evidence of intentionally malicious payloads (backdoor/exfiltration/cryptomining) is present in the provided fragment. The dominant security risk is that it constructs a dynamic shell command (CURL_CMD) and executes it via `bash -c` inside the container using multiple interpolated, potentially untrusted variables (METHOD/ENDPOINT/FULL_URL and JSON_PAYLOAD/DATA). This creates a credible command-injection risk that can have high impact even though execution occurs in a container. Additionally, debug logging can leak sensitive payloads and partial token material, and the bundled auth script is executed without integrity verification. Overall: treat as security-sensitive automation code requiring strict input validation/safe execution (argv-based curl invocation, proper escaping, and auth-script integrity controls).

Confidence: 66%Severity: 74%
Audit Metadata
Analyzed At
Sep 2, 2026, 06:27 AM
Package URL
pkg:socket/skills-sh/mikopbx%2Fagent-skills%2Fapi-client%2F@0d7dfcf7701fe51ae346514a577a4ee686820cf4ca05f03d267ff1b53e65e07d
Security Audit — socket — api-client