Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have written a web service in Erlang using mochiweb and jiffy and now face the task of deploying it to production. Since it is going to be open to the public I was wondering how secure Erlang actually is, since this is something that seems to be more or less never talked about.

Erlang itself is a VM language, so should be (hopefully) fairly secure, but many extensions (like jiffy) have NIFs written in C and thus are more prone to buffer overflows and the like if not written carefully and tested thoroughly.

So basically, how should I go about securing an Erlang server on Ubuntu? Restricted user? AppArmor? Or is this overkill?

share|improve this question
up vote 2 down vote accepted

I'd wager that Erlang itself is orders of magnitude more likely to be secure than the code that's written in it. As far as securing it goes, it's no different to anything else -- you restrict privileges to the minimum necessary and monitor the bejesus out of it. Exact implementation details are up to your discretion, experience, and paranoia.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.