In this article, the DEVS formula of discrete event systems, which was introduced by Dr. Bernard P. Ziegler in 1976 in a book called Theory of Modeling and Simulation, the concept of DEVS is used and discussed for modeling and simulating an ATM machine. Today, ATM machine have undoubtedly become a necessity in banks, people no longer have to visit the banks to do their transactions, instead use these types of machines, however, the people who are using an ATM machine are not clear and aware of that how the secure processes work inside of the ATMs. With an ATM card and a valid PIN, the customers can use the ATM where the valid user is accepted based on a PIN (personal identification number). Authentication and authorization ensures that maximum security is maintained through ATMs. In fact, banks provide flexible functionalities for the users such as balance checking, cash deposit and money transactions, but the biggest challenge is the security of the transactions, which especially the mobility ATM machines suffer. According to the DEVS formula, in this article, an attempt has been made to provide an application model for secure data transmission using the above formula.