by falcolas · 13y ago · 0 comments
This script is a huge security risk.
It takes arbitrary commands issued to it via the API and runs those on your system, then uploads the stdout from those commands back to their servers, where it's stored for an indeterminate amount of time with indeterminate security. (Their privacy policy makes no mention of the storage, usage, or dissemination of data collected via this tool)
There is literally no limit to what commands to be run, and you can't easily audit which commands it will run prior to them being executed. There's even a built-in privilege escalation path, via the upgrade script.
You might as well give them a login with passwordless sudo to any system you install this to.
I've created the account, copy the command, pasted in a terminal but I just couldn't hit enter... and that is in my home computer. I downloaded the link and the target manually, just checkout the content.
1. Agent installation script is available at https://agent.sealion.com. Feel free to check it out.
2. We create a non-privileged user using the above script. Hence, we cannot run privileged commands without your permission.
3. The data logged is solely for your usage. The data is stored in secure Amazon servers. Will improve the privacy policy.
4. BTW, we are thinking of providing installer packages and also release the agent code under an open source license to alleviate your concerns.
Specifically, lib/authentication.js receives a new command, passes it to addActivity in lib/execute_services.js, which schedules it to `exec` periodically (the period is defined by the API response) via ExecuteCommand.executeCommand.
As for the user that the sealion-agent is run as, it's started as root, then setuid'ed to the sealion user in index.js, so any update can undo the setuid and allow full root access.
Basically, by installing sealion-agent, I have given you, all of your current employees and of your future employees (both in CA and India) full access to the server.
No offense, but I don't trust you that much.