Serverless applications, also known as cloud functions, perform very specific tasks and exist for mere seconds. This makes them more efficient when it comes to getting the most out of your cloud environments and keeping costs down. As with any new technologies, the security implications of this new paradigm are yet to be fully explored or understood. But it is possible to harden serverless applications and apply security best practices to reduce the likelihood of compromise. The fact that a server contains your functions source code and the temporary containers executing your functions means security should be taken seriously.”]
Source: https://www.csoonline.com/article/3300563/how-to-secure-serverless-apps-and-how-they-are-hacked.html