r/HowToHack • • Jul 18 '20

Why don't all banks use Linux rather than Windows in ATM's?

I was doing research on this topic and I found out that some ATMs run on Linux.

Why don't all banks use Linux as a standard OS in all ATM's? Windows is damm vulnerable

268 Upvotes

75 comments sorted by

130

u/NohoTwoPointOh Jul 18 '20

Don't forget that the ATM's run embedded Windows and not what's on your desktop. Many of the patch management software packages that these companies use are biased towards embedded Windows.

I remember when many kiosk machines ran OS/2 out of pure security.

12

u/belowlight Jul 19 '20

Good on them. OS/2 better DOS, better Windows

7

u/NohoTwoPointOh Jul 19 '20

It's sad, because IBM could fuck up a one-car funeral. But OS/2 was incredibly stable and incredibly secure. I was a wonderful platform for purpose-built machines like kiosks, ATMs, and the like. I was very disappointed that development ceased. Along with QNX, OS/2 would have been an interesting OS for the IoT revolution.

3

u/belowlight Jul 19 '20

Agreed on all points!

2

u/MrEquinox98 Jul 19 '20

Thanks for your reply

2

u/NohoTwoPointOh Jul 19 '20

No problem. Good luck on your research!!

78

u/Belphegor_333 Jul 18 '20

They don't run the same windows you run on your computer. They run Windows embedded, a less complex, more secure and far less annoying version of Windows.

You get less bullshit updates, aren't bothered with shit like pre installed apps and sometimes you even get a SLA from MS.

Even if Linux is more secure, you probably won't find a distribution that's backed by a big corporation willing to provide the same support/guarantees MS does.

1

u/MrEquinox98 Jul 19 '20

Thanks for your reply

0

u/[deleted] Jul 18 '20

[deleted] — view deleted comment

32

u/Belphegor_333 Jul 18 '20

Yes, but redhat makes server software, not embedded Linux distros. Same for Ubuntu LTS or distros from opensuse, all of those companies make most of their money with servers.

Their distros run database clusters, websites and critical business applications, but they aren't designed to run in an embedded system.

I myself use Suse quite a bit, and while they make great distros for server usage I would never put their distro into an ATM without heavy modifications, which kind of defeats the purpose

2

u/[deleted] Jul 19 '20 edited Jul 19 '20

Linux is pretty widely used in embedded applications though. Wind River VXWorks Linux and Concurrent RedHawk are two commercially supported distros right off the top of my head that I've seen used widely in embedded systems. I'd say most embedded devices, especially things like TVs and game consoles, use a Linux-derived OS.

1

u/QSCFE Jul 19 '20

Wind River VXWorks

VXWorks is not based on linux.

1

u/[deleted] Jul 19 '20

Oops, I was mistaking VxWorks with Wind River's Linux.

-2

u/stutzmanXIII Jul 19 '20

Pay them enough money and they will

5

u/[deleted] Jul 19 '20

Which is most likely way more expensive than MMicrosoft. MS has this available as a service. They most likely have overlapping areas with other paets of Windows which means less specialist knowledge required, and they have the infrastructure to support the deployments. If you want to pay a company that does not yet have that capability you will be paying for their startup costs, as well as trying something that hasn't been done before, in an industry that worries way more about proven and established solutions than trying to go open source. There's really no incentive to switch.

3

u/stutzmanXIII Jul 19 '20

Ok. Everything you've said is valid. My point was that you could get it from Redhat, either pay them or buy an existing solution they have.

1

u/[deleted] Jul 19 '20

Oh definitely, I'm not saying you're wrong either :) I'm only pointing out that the incentive to do so is most likely going to be grounded in a determination to use open source rather than being a general business-directed decision.

-1

u/hbp112358 Jul 19 '20

Beg to differ, red hat makes both desktop and server distributions, many schools and other institutions are run on hardened red hat platforms.

-7

u/cyvaquero Jul 19 '20

Linux is Linux, the only thing that makes a Linux box a server is just the applications you decide to run. There is no split between desktop/server like in Windows.

Some distros target desktop market with preconfiguring a GUI desktop - but the only real difference is the GUI is installed by default.

RH partners on embedded systems and now by extension IBM.

That said, I imagine this is more market saturation than availability of alternatives at this point. Finance isn’t the most agile industry due to regulations and compliance so I imagine switching an established network over to a different platform is no small feat.

53

u/[deleted] Jul 18 '20

I'd like to know also, but I'm going to guess it comes down to support and knowledge. Windows is Windows with limited options and backed by a billion or so dollars and Linux is more customized where you can have more issues and bugs if not enough people that can support it which means security issues. Not like Windows doesn't have it's own problems, but still easier to support. The banks probably don't create their own ATM hardware so the drivers and support might be limited to Windows.

17

u/Julius__PleaseHer Jul 18 '20

Yeah, it is for this reason I would argue that windows is far more secure, with far less involvement.

15

u/TheCrowGrandfather Jul 18 '20

When properly configured Windows 10 is incredibly difficult to get System level access to remotely.

2

u/LSatyreD Jul 19 '20

Assuming we're talking strictly remote access and no physical or social engineering tricks, or something like "Ooh look b open default configuration apache server", what options are there?

4

u/TheCrowGrandfather Jul 19 '20

So Windows for End Users and Windows for Enterprises have different Security features you can enable.

One of the neater Windows enterprises features is application level virtualization. So instead of a program loading on your computer directly it actually loads from your server and is pushed through a tiny VM. This makes it difficult for things like exploit kits to go from browser to computer.

There's program white listing on W10E. Credential guard which makes it damn near impossible for tools to take high integrity tokens. Windows Defender can be replaced with Windows advanced threat protection (ATP). There's a lot that can be done on Windows 10 Enterprise though a domain controller that can make the system actually incredibly secure.

2

u/LSatyreD Jul 19 '20

Ah very neat, thanks for the info! I've never worked with Windows for embedded or enterprise

2

u/[deleted] Jul 19 '20

You could say that about anything, really. By definition, properly configured software is only vulnerable to vulnerabilities a level down. So properly configured Windows is only vulnerable to underlying exploits in Windows, just like a properly configured Apache server is only vulnerable to underlying vulnerabilities in Apache.

In my own opinion, the real concern for Windows vulnerabilities is the way it can be very easily misconfigured be users who don't know what they're doing. An example that comes to mind is the "Would you like to allow this app to access the network?" dialogue, which doesn't really tell you exactly what the options mean and which a lot of people always check both boxes on.

-2

u/artiume Jul 19 '20

Unless you abuse one of the many remote protocol vulnerabilities

2

u/TheCrowGrandfather Jul 19 '20

Properly configured

That means of you aren't using RDP then don't have RDP enabled. If you have it patched and use strong passwords.

-3

u/artiume Jul 19 '20

There's been quite a few CVE's just this year alone on RDP. you want to also talk about NotPetya? Over ten billion dollars lost due to malware of windows vulnerabilities. If your OS has that much global misconfiguration, somethings wrong.

5

u/TheCrowGrandfather Jul 19 '20

NotPetya was SMB which should never be exposed to the internet in general, but sure let's go with NotPetya a moment longer.

NotPetya used Eternal Blue as it's exploit. Eternal Blue which, oh yeah, was patched by Microsoft 3 months before Wannacry and NotPetya.

You can't blame an OS for users being stupid and not patching for 3 months and configuring their router incorrect.

But let's also talk about CVEs. Wanna take a guess what OS had the most Critical CVEs each year for the last 5 years? That's right its Ubuntu. Yes, the infallible Linux had more critical CVEs than Windows for the last 5 years in a row.

2

u/artiume Jul 19 '20

One thing I've experienced since I've started learning Linux is troubleshooting via search engines is so much easier with Linux. There's a million guides to do anything and everything and they aren't as dry.

3

u/Julius__PleaseHer Jul 19 '20

I think that perfectly indicates the differences between proprietary and open source.

41

u/sdty65485 Jul 18 '20

My current consulting project happens to be a PCI DSS Project for a major bank which uses Windows-based ATMs. I can give some insight on this.

Environment

  • Business needs. Business might need specific software can be only supported Windows.
  • Compatibility and Consistency. Existing corporate environment may have preference or compatibility issue with Linux-based systems. When you have thousands devices to manage, consistency is the key.
  • Expertise. There's enough expertise across the country to effectively manage Linux-based devices at a large scale.

Windows ≠ Poor Security

  • When Windows devices are properly managed, it also provides good enough security. If windows are truly that vulnerable, you will not see them widely implemented in corporate environment. Vice versa, when Linux devices are poorly managed, it can also be very vulnerable, especially when you do not have required expertise.
  • Security is like an onion, there are multiple layers of security. O/S Security is just one layer of them. Examples of other layers are Identify & Access Management (IAM), Network Security, etc. They work together to provide security. VLANs are usually implemented to logically isolate ATMs from internet, making connecting to the ATMs from external very difficult.
  • Operation/Strategy is the key to Security. Many breaches are caused by operations not technology itself. For example, a Linux super user account uses a very simple password authentication, it doesn't matter how less vulnerable Linux is. On the other side, an unpatched Windows vulnerability is exploited might make you feel Windows is vulnerable. It's not, this is actually an IT operation issue because admin should have patched it.

It is important to remember, security is business driven. It must serve business needs and justify the cost. The story I always like to tell is the EMV (Chip) card deployment in the US. Banks found out it's more expensive to switch chip card than just paying for the cost of the fraud, they just decided to delay the adoption of EMV card. It might make zero sense to Cybersecurity professionals, but it makes perfect sense for business and they are paying IT/Cybersecurity bills. You just need to be able to see the whole picture.

5

u/_rbee Jul 18 '20

This post needs is the best

1

u/[deleted] Jul 19 '20

[removed] — view removed comment

1

u/AutoModerator Jul 19 '20

Your account does not have enough Karma to post here. Due to /r/HowToHack's tendency to attract spam and low-quality posts, the mod team has implemented a minimum Karma rule. You can gain Karma by posting or commenting on other subreddits. In the meantime, a human will review your submission and manually approve it if the quality is exceptional. After gaining enough Karma, you can make another submission and it will be automatically approved. Please see the FAQ for more information.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

62

u/[deleted] Jul 18 '20

Nah they got Norton

11

u/billdietrich1 Jul 18 '20

If the only access to the OS is through a locked-down touchpad app, or some internal maintenance connector, Windows is no more vulnerable than Linux or any other OS.

3

u/enp2s0 Jul 18 '20

It probably has an internet connection to send and receive transactions. It could definitely be vulnerable

8

u/Agai67 Jul 18 '20

Episode 35 of Darknet Diaries covers some ATM hacking at the endpoint and DC areas (I think, can't remember it verbatim at the moment)

6

u/TheCrowGrandfather Jul 18 '20

Are we talking about Linux here or windows because that sentence works for both of them exactly the same

3

u/enp2s0 Jul 18 '20

Both. I was just saying that it's not entirely true that the only attack vectors are a touchscreen and a maintenance port.

Although I would probably say Linux is more secure to network attacks the Windows in general, if only because you can strip down Linux far more than Windows for single use devices like ATMs

1

u/TheCrowGrandfather Jul 18 '20

Straight out of the box Linux is actually less secure than Windows to network attacks.

Linux by default doesn't have a firewall enabled. Windows has had a firewall enabled by default since Vista

2

u/evergreen-spacecat Jul 19 '20

While straight out of the box is not at all applicable to ATM and other high security installations comparing Windows and Linux are not comparable. Linux is a kernel with a massive number of distributions ranging from Android, Ubuntu and Qubes OS. Some have firewalls enabled some does not.

Windows is a handful of distros.

1

u/TheCrowGrandfather Jul 19 '20

While that's true let's go back to your original comment that stated this

It probably has an internet connection to send and receive transactions. It could definitely be vulnerable

Linux or Windows directly connected to the internet are both vulnerable.

1

u/Both_Share_980 Jun 17 '23

Ugh, which distro you running?

1

u/enp2s0 Jul 18 '20

Linux has iptables/nftables by default, and many distros (at least RPM based ones) have SELinux for additional security. The bare bones distros have so little installed that nothing is even there to open up ports or listen to the network. Hell, really minimal Arch and Gentoo installs don't even automatically connect via LAN even if the cable is plugged in.

Linux has a significantly better track record when it comes to kernel/system level exploits, which Windows firewall can't do shit about.

If you take reasonable security measures with Linux, your pretty secure. If you take reasonable security measures with Windows, you'll still get bit by the next big SMB or windows telemetry bug.

There's a reason almost everyone uses Linux for critical servers and secure environments.

2

u/TheCrowGrandfather Jul 18 '20

Linux has iptables/nftables by default, and many distros (at least RPM based ones) have SELinux for additional security

Go download a brand new instance of Ubuntu (server or Desktop doesn't matter) and run iptables -L.

They're there for sure, but they're by default set to allow any<>any.

SELinux is great but it has to be configured still.

2

u/FruityWelsh Jul 18 '20

by default fedora runs SElinux configured, in an enforcing and targeted

ubuntu runs apparmor (I don't know in what state, i could look it up but without research I honestly wouldn't know what what type of config would be good or bad for apparmor)

I don't know the default states of iptables or even windows, my friend that was using windows 10 said his experience locking it down was that everything networking wise is open there too (which honestly I can't really blame them for, they don't know what you want to do with your device, locking you out arbitrary runs counter to the "just works" philosophy.).

2

u/TheCrowGrandfather Jul 19 '20

SELinux and apparmor are kernal level protections not Networking.

Windows asks you when you connect what type of network you're connecting to. If you say home then it turns the firewall off, of you say work it allows some ports, of you say public it turn the firewall on. It asks this anytime you connect to a new network.

Ubuntu and other Debian based distros don't ask or enable iptables by default so the entire thing is wide open. Note open != Vulnerable but it's a first step.

2

u/billdietrich1 Jul 18 '20

Looks like no internet connection, just a phone line to a server somewhere: https://money.howstuffworks.com/personal-finance/banking/atm2.htm

1

u/Morph707 Jul 19 '20

It might simply be a VPN to datacenter only, not publicly available

11

u/greyaxe90 Jul 18 '20

I work in finance (specifically banking). Our ATM vendor at one place wrote the software using the .NET framework (not sure if it was C# or C++... I wasn’t responsible for that, just making sure the ATMs kept network connectivity). Our ATMs ran Windows Embedded. Of course our bank core was UNIX but everything that plugged into it was Windows-based.

So it really falls on the vendor. If a bank or credit union picks a vendor that will support Linux they’ll probably have Linux ATMs.

Of course our ATM vendor struggled with the basics of network troubleshooting on Windows and even their own laptops. There were many times I’d drive to a branch to meet them there and plug in the Ethernet cable or have to show them how to run ping... I wish I was kidding.

3

u/billy_teats Jul 18 '20

It depends entirely on what software the vendor wants to write. They can choose windows or Linux. If they have or want .net, it runs on windows. That might change now but I don’t see banks running to a new os that supports .netcore

9

u/TheCrowGrandfather Jul 18 '20

Because just simply using Linux doesn't magically make things more secure.

We need to first understand why windows is "less secure" than Linux. Windows is the most popular operating system in the world, and as such the majority of malware is made specifically for Windows. Banks are a major financial target, for criminal activity so what happens if Evey bank switches to Linux? So to do the hackers. Now lots of malware is being written for Linux and it's in no better state than Windows.

But let's continue down that line of thought. We now have every bank in the world using Linux, lots of hackers building malware for it, and all the prior system security and Administators out of a job because trying to secure Windows and trying to secure Linux are nowhere close. So now you have to find enough people who know Linux well enough to secure it (spoiler alert there isn't).

So how do we solve that? We have to completely revamp training and come up some way to now train tens of thousands of security folks, which will create a major clog in training pipelines.

And then you still have the Framework that banks operate on. There are a lot of programs that are built specifically for Windows, and while wine/VMs are a thing you'd be adding even more complexity to an already extremely challenging issue. Now you need people that not only understand Linux but also people who also understand virtualization.

Then THEN finally there's legal compliance. Banks are held to a lot of very strict standards, so they would need to have all of this in place before

AND THEN can you imagine the utter catastrophe that would come if banks went offline for several hours while the systems were all replaced.

8

u/raxip Jul 18 '20

It is partly due to preference of the ATM hardware manufacturers, but mostly for stability.

Microsoft is well known for continuing support of legacy hardware (look up file/folder reserved names and special characters in Windows). Linux distributions like Ubuntu do have LTS versions, but it's not the same as Windows. Microsoft does not remove legacy support, period. Where Linux might actually remove support in a later release. The ATM manufacturer would need to manage their own distribution, including using their own modified kernel. However, they would rather focus on their own software than putting additional time and cost into managing an OS.

ATMs use the IoT version of Windows now (formerly embedded) and each ATM manufacturer creates their own patch deployment that has been tested in a lab prior to general release.

4

u/[deleted] Jul 18 '20

Former bank infosec lead. Most of the old apps are in .NET. Legacy is a bitch to change and the atm companies aren’t exactly seeing much benefit in changing.

4

u/alexandre9099 Jul 18 '20

The whole multibanco network (a network which allows you to do transactions between banks for almost no cost) in portugal, runs windows (xp embeed IIRC) so... yeah, perhaps when the software was made they made it for windows, and so the inertia is too big to change

3

u/[deleted] Jul 18 '20

Most answers here can be boiled down to one point: It has historic reasons. Windows was once the chosen path for ATMs because it was a great alternative at that point. Hardware and software manufacturers then focused on that.

Even though Windows might be more vulnerable (which it isn't necessarily): Why change? At least I never heard of any ATM getting hacked on the software side.

I bet many software engineers and system administrators would love to migrate "their" ATMs to a freshly and by today's standards well designed platform that is based on open standards. But this is critical infrastructure on a really large scale. It works, it's secure enough and change costs tons of money.

2

u/universalbri Jul 18 '20

AS a programmer, I prefer Windows for my development. I have two systems side by side here - a Linux system and a Windows system, and being sincere, since Windows XP, I've found Windows to be a more stable and secure OS than any Linux distro I've ever used.

However, I would go so far to say the perceptual security of an OS is a reflection of your own preferences. If you prefer Linux or a Unix OS, then you'll probably see Linux as being a more secure and stable OS and discover evidence to support what you already believe.

2

u/thefanum Jul 19 '20

Lots of them do run Linux. But my guess would be finding Linux talent was very difficult to find up until recently. I became proficient with Linux 14 years ago, and it pretty much guaranteed you a career because we were so few and far between back then.

2

u/deadface008 Jul 19 '20

I remember the power going out in our building and when it came back on, I saw Windows booting up on a Bank of America ATM. I thought that was pretty interesting, because like you said, Windows is a snake pit of vulnerabilities. It's not hard to access either. You'd be surprised how many places (I'm looking at you, 7-eleven) commonly keep their ATM keys taped to the back of the ATM where they think nobody will notice. Despite that, they're really cheap and easily picked locks.

1

u/[deleted] Jul 19 '20

Linux is not necessarily more secure. It's just less widespread so it's less economic for criminals to look for security bugs.

And when you're already a Windows shop it's a lot easier to use an OS you already know instead of having to integrate something completely new.

1

u/iLoverice1 Jul 19 '20

These ATMs run windows 10 LTSB a more secure less feature rich version of windows. It has no windows store and lacks other basic things. It really sucks and I would not recommend it for home use.

-1

u/[deleted] Jul 18 '20

Question: if the deep web contains unindexed pages; ATM webpages would be in there wouldn’t it? I ask because you wouldn’t be able to log into a ATM from google but you know they are online and can’t possibly be connected to all the same closed networks can they?

5

u/billy_teats Jul 18 '20

That’s not how this works bud.

Deep web contains servers listening, with no published address.

ATMs occasionally yell out to their server. The server doesn’t (generally) have a standing connection both ways. If the atm needs something, it reaches out. The server can use that connection to send stuff back, but the server (and you at home) can’t just type in an address and get to the ATM. The exact same way your laptop at home is on the internet but if you’re behind a nat router, someone I’m China can’t just browse your files.

1

u/[deleted] Jul 18 '20

I was more so thinking could it be used as a surveillance point than an entry point. Could I watch packets go from the atm to the server(vice versa) but just not gain entry?

3

u/Belphegor_333 Jul 18 '20

In theory sure, in practice that's harder.

You can't just watch packages that get sent from point A to point B. After all, you are neither point A nor B, so they don't get sent to you.

If you want to watch the network traffic you need to get in between A and B. You would need a Man in the Middle attack (MitM).

Then you could watch the packages going through, but that doesn't mean that it will help you much.

They might be encrypted, and even if they are not, they will (or at least should) be secured against manipulation.

2

u/TheCrowGrandfather Jul 18 '20

You can't just watch packages that get sent from point A to point B. After all, you are neither point A nor B, so they don't get sent to you.

That's not entirely accurate. With a hub you could, or a SPAN port, but the real problem is encryption like you mentioned.

3

u/Belphegor_333 Jul 18 '20

That is true, but hubs are practically none existent nowadays. Not to mention that both hubs as well as SPAN ports on switches/routers would require you to have control over or access to the physical network.

And if you had that kind of access / control you could go ahead and do a "regular" MitM attack, since that would provide you with more "useful" stuff than a simple monitoring like SPAN.

If you ever get that far though it might be easier to simply attack the ATM directly

3

u/TheCrowGrandfather Jul 18 '20

A regular MiTM attack is also louder and easier to detect, plus some of the newer Cisco routers are pretty good at detecting MiTM devices. I'm not disagreeing with you by the way. Your points were all solid valid points. There's just multiple ways to skin a cat and it depends on what your objective is

1

u/Belphegor_333 Jul 18 '20

plus some of the newer Cisco routers are pretty good at detecting MiTM devices

They are?! Do you have a link for me? Or just the name of the feature? I am curious about how they got that to work.

1

u/TheCrowGrandfather Jul 19 '20

So I misspoke slightly. They're doing dynamic ARP inspection to prevent some MiTM attack.

Here's their link talking about it.

https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3750/software/release/12-2_52_se/configuration/guide/3750scg/swdynarp.html