The railway transport infrastructure ensures the transfer of large numbers of people and cargo every day. The importance of the railway in terms of ensuring the serviceability of the territory makes it a critical infrastructure. We can observe the development of the use of IT technologies on railway, as in all areas of the human system. The management of the railway as a physical system needs to be superseded by management of the railway as a cyberphysical system. The railway infra-structure has a large area of attack in both, physical space and cyber space. Multiple Independent Levels of Security (MILS) can meet the high system security requirements. The MILS is a high-assurance security architecture based on the concepts of separation and controlled information flow. The article discusses the possibilities of using the MILS platform in the data communication system and the control system of the railway. Keywords: Cyber Physical Systems, Critical Infrastructures, Multiple Independent Levels of Security