We are in a fast-paced industry. New technologies are entering the industry fast, and security concerns are also increasing with the same speed. Security is no one of the ultimate concerns in any software architecture. In a monolithic application, less surface areas are exposed to the outer world, but once it is breached with any single point, there is a high chance that the attacker can reach the entire system. As monolithic architecture has been around for a while now, there are some attack patterns that have been followed, and standards are developed to prevent them. Some famous types of attacks are spoofing, tampering, denial-of-service (DoS), escalation or privilege, information disclosure and so on.
The attacks mentioned earlier can happen in microservices also. One benefit we have in microservices is that unlike monolithic architecture, if an attacker gets into one microservice, it does not allow them to infect the other microservices. This is because...