LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 01-08-2015, 06:12 PM   #1
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
How secure is this system to access my bank account


My bank has issued card with a matrix of characters. It looks like this:
Code:
 |A|B|C|D|E|F|G|H|I|J|
1|Q|D|E|4|T|V|X|9|F|B|
2|L|Q|3|C|H|M|C|P|4|H|
3|L|A|N|E|4|W|S|Z|3|K|
4|K|F|B|M|Q|7|8|Y|C|N|
5|T|F|H|K|3|X|J|5|0|J|
The contents is fake, the numbers of rows and columns are correct. Obviously every customer has his own card.
I login with a (easy to guess) account code + (hopefully strong) password. Then 3 characters of the card above are asked, say B4, C2, J1. At each login, the requested cells are different. However, when a login attempt fails due to entering the wrong characters, the same cells are requested again. After 3 attempts the account is blocked for 24 hours.

How safe is this?

jlinkels
 
Old 01-08-2015, 07:29 PM   #2
ordealbyfire83
Member
 
Registered: Oct 2006
Location: Leiden, Netherlands
Distribution: LFS, Ubuntu Hardy
Posts: 302

Rep: Reputation: 89
It's debatable, and it depends how you choose to look at this. On the one hand, you can consider the array as a 50-character sequence, or ordered array. Just think of this as a 50-character password that you cannot change. So you are being asked for (1) a public key, aka your account number or identifier, (2) a private key, aka your password, and (3) selected characters from the bank-issued, quasi-private key.

On the other hand, you could consider each of the three required characters from the matrix to be three individual, single-character passwords. Furthermore, being asked that all three be correct exponentially decreases the chance that someone could guess the proper character at random. But then being given three chances to enter this information will recoup some of the lost opportunity.

But in general, after a finite number of logins you will exhaust all random combinations of three characters from the matrix, so it is probably only of marginal benefit unless your bank changes the matrix at frequently irregular intervals.

Is it better than a straight username/password login? Probably. Is it as secure as it could be? Hardly. If the bank wanted to get really creative, they could harness the matrix arrangement of characters more fully - think of being asked to perform advanced algebraic calculations utilizing particular entries, and then being asked to perform calculations on those answers. That would be far more advantageous than just strictly recalling the characters.

Likewise the definition of "safe" plays a part - who is this information being kept private from? It might keep out the casual "crackers," but if this is all transmitted over SSL et al then you are also relying on the strength of external libraries.

Last edited by ordealbyfire83; 01-08-2015 at 07:34 PM.
 
1 members found this post helpful.
Old 01-08-2015, 07:33 PM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
All I can say is, "I could never explain it to my grandmother."

And that will probably turn out to be the system's downfall.
 
Old 01-08-2015, 07:36 PM   #4
Dig
Member
 
Registered: Nov 2009
Posts: 50

Rep: Reputation: 1
this second factor authentication which add new security layer to your login. I prefer the Mobile sms sent by banks with the code or hardware tokens because once you lost it you can report to block the account, IDs can be copied without your knowledge however this is not the optimum security practice but its still good.

Safety depend on many factors actually, From client side keep this ID away from anyone and use secure connection to login to your account with safe browsing. From server side deal with reputable bank
 
Old 01-08-2015, 07:42 PM   #5
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,224

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Wow, a new system that looks like it was designed to be implemented with punched cards!

And it doesn't sound secure at all. Wouldn't getting a copy (photo, photocopy, etc) of the matrix be trivial?

Last edited by dugan; 01-08-2015 at 07:44 PM.
 
Old 01-08-2015, 07:46 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Excellent - I've still got a box of them somewhere ...

Better than just the account #/password my bank (still) uses.
 
Old 01-08-2015, 09:21 PM   #7
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Seems to be overly complex for minimal benefit. I don't think it will catch on. If the card is re-issued often then it might be of some benefit, but otherwise it will be just as useful as the three numbers on the back of your credit card.
 
Old 01-08-2015, 10:20 PM   #8
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,780

Rep: Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081
Quote:
Originally Posted by jlinkels View Post
However, when a login attempt fails due to entering the wrong characters, the same cells are requested again.
This is dubious. Do they at least also request the same cells again if the password is wrong even if the characters are right? Otherwise they are leaking info about your credentials.

Quote:
Originally Posted by ordealbyfire83
But in general, after a finite number of logins you will exhaust all random combinations of three characters from the matrix, so it is probably only of marginal benefit unless your bank changes the matrix at frequently irregular intervals.
Specifically, 50 choose 3 = 19600. Which isn't a whole lot, but assuming the rate limiting to 1 a day works that is 53 years.

Quote:
If the bank wanted to get really creative, they could harness the matrix arrangement of characters more fully - think of being asked to perform advanced algebraic calculations utilizing particular entries, and then being asked to perform calculations on those answers. That would be far more advantageous than just strictly recalling the characters.
This doesn't sound especially usable for humans.

Quote:
Likewise the definition of "safe" plays a part - who is this information being kept private from?
Yes.

Quote:
Originally Posted by dugan
Wouldn't getting a copy (photo, photocopy, etc) of the matrix be trivial?
I don't think physically stealing it (even temporarily) should be considered trivial.

Quote:
Originally Posted by metaschima
Seems to be overly complex for minimal benefit. I don't think it will catch on. If the card is re-issued often then it might be of some benefit, but otherwise it will be just as useful as the three numbers on the back of your credit card.
It provides some security against keyloggers, it's better than just 3 constant numbers. Also, while it's still common to hand over your credit card to others (to pay them), presumably you wouldn't do that with this card. On the other hand, if the attacker can install a keylogger on your machine, presumably they could install something that listens to the whole session, so they would only need 50/3 ~ 7 sessions to figure out the whole matrix... (this requires something more specialized than a keylogger though).
 
Old 01-08-2015, 11:37 PM   #9
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 616

Rep: Reputation: 142Reputation: 142
Quote:
Originally Posted by ntubski View Post
Specifically, 50 choose 3 = 19600. Which isn't a whole lot, but assuming the rate limiting to 1 a day works that is 53 years.
Isn't it 50*50*50=125000?

And who knows, what bank will do if (for example) 3-digits combinations was entered wrongly 15 times in a row (5 days * 3 attempts)?
Bank may just block this account, and send you invitation to visit them to be sure that it was not an attempt to crack an account.
 
Old 01-09-2015, 02:27 AM   #10
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
Looking at that card, it looks as though the characters are the 26 capital alphabetic characters plus the 10 digits 0-9, so according to my mathematics, the chance of a random guess being correct is 1 in 36^3 (=46656).
 
Old 01-09-2015, 07:34 AM   #11
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Original Poster
Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Quote:
Originally Posted by sundialsvcs
All I can say is, "I could never explain it to my grandmother."
My father has Alzheimer and he still seems to use it.

Quote:
Originally Posted by allend View Post
Looking at that card, it looks as though the characters are the 26 capital alphabetic characters plus the 10 digits 0-9, so according to my mathematics, the chance of a random guess being correct is 1 in 36^3 (=46656).
I think I agree. Although I have never been able to figure out what to enter for '0'. I think I always enter zero, and I think I never tried OH. I have about 4 accounts with different cards and I never see the OH used. Maybe more characters are excluded. But yes, basically it is 36 * 36 * 36. The same cell is never asked twice, but the cell contents can be identical for multiple celss. So it is not 36 * 35 * 34.

Quote:
Originally Posted by ntubski
This is dubious. Do they at least also request the same cells again if the password is wrong even if the characters are right? Otherwise they are leaking info about your credentials.
If you enter the wrong password you don't get the questions for the cell contents.

Quote:
Originally Posted by Teufel
And who knows, what bank will do if (for example) 3-digits combinations was entered wrongly 15 times in a row (5 days * 3 attempts)?
Bank may just block this account, and send you invitation to visit them to be sure that it was not an attempt to crack an account.
It never happened, so I have no idea. I do know that I never noticed that my account was blocked by logins I did not perform myself. But that of course doesn't say a thing.

Quote:
Originally Posted by ntubski
I don't think physically stealing it (even temporarily) should be considered trivial.
I am afraid it is. Many people carry this card in their wallet. OTOH, neither the name, nor the account number is written on the matrix card. But since the card is often carried in the wallet together with the bank's debit card, which does carry the account number this is a risk. Like I said, the login name is easily derived from those data. I don't carry the cards.

About those code generating tokens some banks issue: I have one which generates 6-digit key. The odds to guess that key correctly is 1 in 10e6. Although the chances to guess are less I am not sure practically one system is more safe or less safe than the other. Both systems block after 3 invalid attempts.

jlinkels

Last edited by jlinkels; 01-09-2015 at 07:35 AM.
 
Old 01-09-2015, 10:49 AM   #12
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
(Alzheimer's ...)

My prayers for your father . . .

---

(Punched Cards ...)

Yessir, I still have my "card saw," and I am a proud member of the "dropped an entire box, and a few of the cards vanished under a three-hundred-pound printer and I had to dig them out without getting high-potted" club.
 
Old 01-09-2015, 01:26 PM   #13
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,780

Rep: Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081
Quote:
Originally Posted by Teufel View Post
Isn't it 50*50*50=125000?
No, because they won't ask you the same cell twice, start with 50*49*48 = 117600. And since it doesn't matter what order they ask in, divide by possible permutations: 3! = 3*2*1 = 6; 117600 / 6 = 19600.

Quote:
And who knows, what bank will do if (for example) 3-digits combinations was entered wrongly 15 times in a row (5 days * 3 attempts)?
Bank may just block this account, and send you invitation to visit them to be sure that it was not an attempt to crack an account.
If they are doing their job, then yes.

Quote:
Originally Posted by jlinkels View Post
If you enter the wrong password you don't get the questions for the cell contents.
So the password can be attacked independently of the card. That's not very good.

Quote:
I am afraid it is. Many people carry this card in their wallet.
But only people physically close to you can steal it. That's a minority of humans.
Quote:
I have one which generates 6-digit key. The odds to guess that key correctly is 1 in 10e6. Although the chances to guess are less I am not sure practically one system is more safe or less safe than the other.
It's harder to copy at least.
 
Old 01-09-2015, 02:45 PM   #14
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 616

Rep: Reputation: 142Reputation: 142
If someone will get access (even temporarily) to the card, you'll lose your money. No matter how many symbols contains that matrix.

To get it secure enough, you need to remember the matrix and burn a card.
No one can steal symbols from your head.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it secure to create a system account with -R(w/no pw) and nolgin? Kapn.K Linux - Security 6 12-02-2011 07:25 PM
MySql and a simple Bank Account DB air4time Programming 16 10-27-2010 03:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration