kasm-admin
Audited by Socket on Apr 10, 2026
4 alerts found:
Securityx4Overall, this is administrative workspace-management guidance, but it contains a highly dangerous example: storing a command in docker_exec_config that modifies sudoers to grant passwordless sudo inside KASM-managed workspaces. This represents a persistence mechanism and a strong indicator of potential backdoor/abuse capability if DB access or operators are compromised/misled. Additional risk comes from disabling TLS verification (-k) for API calls and from bypassing constrained admin APIs via direct DB edits of execution/runtime fields. No explicit exfiltration or remote-control behavior is shown in the provided fragment.
No direct evidence of embedded malware (no exfiltration/C2 logic or obfuscated payloads) is present in this fragment. However, the configuration establishes a high-impact security risk by enabling passwordless sudo (NOPASSWD: ALL) via a root-run first_launch bootstrap, and by mounting a shared writable directory across all agents (creating a cross-agent tampering surface such as registry.json). Treat this as unsafe unless all agents/workspaces and shared storage are fully trusted and tightly controlled.
No clear evidence of classic malware behavior (no networking/exfiltration shown) is present in this fragment. However, it performs high-impact code-execution-on-start behavior by injecting shell commands into docker_exec_config, including granting passwordless sudo to kasm-user and optionally starting dbus-daemon. This is a significant security-risk pattern that could function as a backdoor if misused, and it warrants strict access control, workspace trust assumptions, and auditing of who can modify the underlying images.docker_exec_config and selection criteria.
No direct indicators of overt malware (e.g., exfiltration/backdoor callbacks) are present in the provided fragment. However, the templates deliberately weaken security boundaries by enabling passwordless full sudo for kasm-user and by using eval on command outputs during first_launch. Combined with runtime apt-get installs and an optional privileged Docker-in-Docker mode, the fragment presents a substantial security risk if the workspace can be influenced or compromised. Treat as a high-risk configuration requiring strict controls (trusted inputs, minimal privileges, and avoiding privileged mode/eval where possible).