disaster-recovery-testing
Audited by Socket on Sep 16, 2026
2 alerts found:
AnomalySecurityThis is a recognizable disaster-recovery test script, not apparent malware. Its behavior is operationally privileged and security-sensitive: it modifies production alerting, reads production data, restores database content, deploys Kubernetes resources, and writes potentially sensitive artifacts to /tmp. The principal risks are failure to restore monitoring on error, insufficient temporary-file handling, unvalidated backup selection, and inaccurate success reporting. It should be revised with a cleanup trap, restrictive temporary files, explicit backup validation, controlled credentials and permissions, and accurate status tracking before use.
This is a legitimate-looking disaster-recovery test manifest, not clear malware. However, it contains significant security risks: hardcoded database credentials, access to production data and backups, broad cluster-wide RBAC including pod execution, mutable runtime dependencies, and use of an unpinned latest image. The manifest should not be deployed as written. Replace credentials with narrowly scoped Secrets or workload identity, restrict RBAC to the specific namespace and resources, use immutable image and package versions, isolate the test data, and avoid production access unless explicitly required and controlled.