Does security lighting need to be installed outside of buildings and if so, where?

Yes, safety lighting must also be installed outside buildings, leading to a safe area, e.g. a collection point.
Source: DIN EN 1838 Pkt. 4.1.2 g:2019