java - Host Environment Security -
i reading article explained how java can used run unix commands. isn't possible threat environment application deployed in? measures can host system (assuming unix/linux environment) use prevent malicious scripts being run?
the host system won't take extraordinary measures beyond common platform itself. admin, implementers, or users restrict can happen on platform, , follow best practices.
some best practices:
- for servers, best server processes run restricted user, , not root or privileged user. create sandbox user process.
- separate out http server (which might require root privileges bind port 80), application server, , have them run under separate users.
- make sure user server processes have access local home, or dedicated user space, , no other parts of host system.
- do not trust program (whether java program or not), if comes shady origin.
Comments
Post a Comment