Wednesday, October 19, 2016

Cyber-security in a non-linear world.

I was mulling over a tweet this morning where I read about how Canada was going to be helping in financial cyber security with other G7 nations (Link).  I found this a bit ironic as the financial security in Canada is usually quite atrocious.  I’ve spent a while now, collecting proof of how bad it is, and there are definite trends I've noticed.

I’ve been trying to work out for a while as to what the root cause of the problem is.  Usually, I can simply correlate a symptom to a cause; Yesterday, for instance, I pointed out to ScotiaBank that they’re allowing customers to be phished again.  

This is a problem I’d previously reported to the CCIRC.

Whilst that’s the symptom, the underlying cause is one of these three things:
* The bank doesn’t check for this.
* The bank does check for this, but failed to check properly.
* The bank did test properly, but someone thought it was OK to publish regardless.

The problem is simply that the aforementioned symptom is just the tip of the iceberg.  Elsewhere, I see way bigger issues.  My thoughts turned to trying to work out why the bank security keeps failing - something I usually blame on policy, because if the people writing the rules for “what to check” know what they’re doing, and other people following those procedures do it properly, you wouldn’t have these problems.

And then the idea occurred to me today that there’s a bigger fundamental issue…  

Anyone that has followed military tactics will know how the current Russian/Surkov non-linear warfare model is bamboozling lots of people, well, basically the bank’s face a similar problem and it’s bamboozling them, too.  In the old days, you had the bank and the bank robber.  The linear aim was for the robber to get the money in the vault - so it was the bank’s job to stop that happening.

Fast forward to 2016 and we have this triangle, where if you compromise one side of the triangle, you can get to the other two.  

In this model, we have:
1) The bank.  This is the bank and it’s infrastructure like online banking, virtual vaults, payment messaging systems, etc.
2) The customer.  This is your average Joe on the street.  He/She can be socially engineered.
3) The shared environment.  This is where the bank interacts with customer’s hardware.  

In a non-linear attack, an attacker can go for any side of this triangle, any combination of two sides, or the hat-trick of all three sides.  That means the bank cannot easily anticipate how to out-fox a would be attacker - and sometimes the attack on the bank means the bank isn't directly attacked in any detectable way.  

The modern bank has to be on guard on all three sides and protect itself from a non-linear threat, and that simply doesn’t always happen.  Any bank that gets sloppy with it’s procedures, or allows customer phishing on it’s own site is going to be inviting trouble.  If a bank leaks data, has incomplete security procedures or leaks source code, then it’s going to invite really big trouble.

I’m not a security expert by trade, but I am observant and I track what I see.  When I see banks suffering these symptoms, I see the potential for really big trouble.

Monday, October 17, 2016

An attempt with Visual Studio 2015s "Visual Studio" template

I've been programming since I was about 8.  Trouble was for 3 years I did it on paper as I didn't get an actual computer until 1984.

Over the years, I've programmed a lot of things:  Notable items include working on first Palm Pilot banking app in Canada.  Mobile advertising on buses.  Writing several versions (singlehandedly until I was given help) of iHeartRadio for iOS, and most recently I programmed the app for Tellspec.

That quick run down skips a lot of Windows, Mac, iOS, Palm, Blackberry, and so on, jumping about between development environments and platforms.  I've literally spent my past 9 years up to my eyeballs in iOS with some runs into C# for FEMA EAS related stuff, and other languages for banking or manufacturing.

So it was that I found myself installing Visual Studio last week.  This is something I first got introduced to in the late 1990s when VB 6 merged with Visual C++ (and IT Ake with Visual InterDev for web development).  (I'd been with VB since v3 before that)

I may have started programming on a 48k Spectrum, and I may have had millions of people running my code on iOS, but Windows is like my spiritual home.  I've spent decades there.  My first professional Windows app (the "Memory Compactor") worked on Windows 3.11 and played on a mechanism of Windows that I could use to the users advantage to free up memory.

Now, I found myself "coming home" for a new project on the side, where I was tinkering with an idea.  The outcome of the project has no bearing on the company i work for - the only thing at stake was whether the idea would fly or not.  If it flies, I present the idea to the boss - and if it fails, then I've spent a bit of time keeping abreast. At worst, if someone asks me what the latest version of Visual Studio I've used is, because they're trying to trip me up, I can answer 2015.

So I installed the Community Edition to get re-acquainted with it. (yes, this hardcore Apple Dev was back in Microsoft land)

On the whole, I was very pleasantly surprised.  There was some familiarity that made me happy - and there was something new, which made me really happy.... the MFC "Visual Studio" style template.

The standard templates for SDI and MDI MFC apps have been around 20+ years and are well documented to the nth degree.  If you have a problem, 20 seconds in your favourite search engine will show you the answer.  This new Visual Studio template, however, is new, undocumented, and doesn't have a tone of Q&A.

On the flip side, I posted a comment on Twitter that I'd spent a day in VS (which for a person who spends most of his time in Xcode, makes for a massive change), and was surprised to hear from the Visual Studio Twitter team.

They were proactive, but given my circumstances (I work on a mac in a virtual machine), their enthusiasm to share keyboard shortcuts didn't hit a bullseye with me - but that's not their fault as I'm on a Mac right now.

Now I let them know that unfortunately I was a slight edge case, and they took it gracefully and extended that if I needed future help to shout....

And this is where this post comes into play.

I started Windows programming in VB3.  Like before the data access control showed up and revolutionized things.  I've grown up through VB4, 5, 5 Control Edition, 6, Fred, C#, and simultaneously gone through MSVC 1, 2, 3, 6, (skip a lot) and now land at (14?).....

... and I hit a problem.

Rather than complain about lack of docs, I spend several consecutive evenings (I have a day job to attend to) trying to find a solution and ultimately now decided to pick up the offer from the Twitter team about help.

What I want to know is how this VS template works.  I can put properties in the Property Sheet view and if I ask for the current document, it always null, meaning I cannot persist those changes.

I normally don't consider myself an idiot, but if I'm using a VS2015 template, surely there is some documentation somewhere explaining how this is supposed to work?

It's not the end of the world for me (I can just drop the idea that we ship a windows app), but I'm kinda feeling that I should have a solution.


Thursday, October 6, 2016

Thoughts on this month's #FraudChat

Toronto's Financial Crimes Unit (FCU), in partnership with other community and government stakeholders, has a Twitter chat each month called #FraudChat.  I usually try to listen in on it, and most months I have no comment.

But not this month.

I was particularly looking forward to this month's, as in Canada right now it's Cyber Security Awareness Month, and this means we were more likely to be in for some special guests.  As always, it was an informative event to follow along with.  The topic was identity theft/fraud.  Some guests concentrated on property/title fraud, but I was interested in hearing what one particular guest had to say - the Canadian Bankers Association (hereafter the "CBA").

The entire chat covered many angles, from physical issues like people dumpster diving for mail, to hacking and trojans, credit reports, scams, property title fraud, etc.  However, given my knowledge of Toronto, I was looking for signs of something specific to come up in conversation.  

Diving in a dumpster might reasonably reveal information on between 1 to 5-6 people.  A trojan on your phone might slurp the contact details of 1,000 people.  When you have 20 million people doing online banking on just a handful of websites, thats where I'm interested.

Now, the CBA is obviously going to be biased into pushing all the security onus on to the customer.  In this chat, however, all they brought to the table was a series of tweets that pointed to pre-existing articles on their website.  All of which were exactly as biased as you would expect them to be (how to spot a phishing email, don't give out your personal details, etc).  

I feel like this was a lost opportunity on the part of the CBA.  Whilst there was no usual "we take security very seriously" that you'd expect to hear from any bank or banking-related organisation, there was also zero mention of what their members were doing that was new and would tackle the existing security deficiencies that Canadian banks have.

However, every cloud has a silver lining.  The CBA website gave me something that I can use to determine what I've suspected for years, but have never been able to prove with bank cyber security.  So, as soon as I've had some spare time, I will be back with the result to the burning question of the past five years.