oci
Audited by Socket on Sep 22, 2026
3 alerts found:
Securityx2AnomalyThe code is a destructive but plainly stated OCI cleanup utility, not apparent malware. It requires explicit confirmation and limits operations to the supplied compartment, but its forceful deletion scope creates a severe operational risk. The eval-based polling implementation introduces a command-injection weakness if attacker-controlled values containing shell metacharacters reach COMPARTMENT_ID or REGION; normal OCI formats reduce practical exploitability. The script should avoid eval, validate arguments against strict OCI formats, use safer polling logic, and provide stronger safeguards such as a dry-run mode and resource scope checks.
The fragment is ordinary OCI networking documentation, not evidence of malware or a supply-chain backdoor. It contains security-risky example configurations because several ingress rules allow the entire internet to access administrative and application ports, and forceful updates may overwrite existing controls. These risks apply when operators execute the examples and should be mitigated by restricting source CIDRs, minimizing exposed ports, reviewing existing rules before updates, and avoiding unrestricted management access.
The script is a legitimate-looking OCI capacity monitor and auto-deployer. It does not contain evident malware, credential theft, obfuscation, or suspicious exfiltration. The main security risk is the explicit eval of the user-supplied --notify-command, which permits arbitrary local command execution. Unquoted option-string expansions and automatic AUTO_APPROVED deployment add command-line and operational risks. The notification feature should use a fixed executable or safely constrained arguments instead of eval, and CLI options should be passed through Bash arrays with input validation.