Question regarding clipboard security

Hi all, :wave:

I have a question regarding the “security” of using the clipboard for inserting sensitive information in the browser.

Here´s the background to my question.

When doing my online banking I´m supposed to enter my username on the bank´s online-banking page. This is the first step.

Then - in order to complete the login process - I have to enter my personal password (2nd step).
This is a very long one, in order to meet the demands set up by the banking institute. :wink:

In order to enter both of these, I always use onboard (on-screen keyboard) instead of my physical keyboard.
So instead of hitting the real keys it´s just a matter of clicking with the mouse.
This is to avoid any potential keyloggers.

To be clear, I have no cause to assume I´ve ever run into keylogger-related problems.

Apart from that I invariably go about my online banking business in a safe sandboxed environment.
My thoughts behind it are just: I want to implement any security mechanism at my disposal. Just to be on the safe side. :neutral_face:

Yet I was wondering:

What if I copy the password beforehand (either primary or default clipboard) and then paste it into the respective field. :thinking:

Would this method be as secure as “typing it out” (or rather: clicking it out) with the help of onboard :question:
Inserting would be a just click after all.

In other words: Would a potential keylogger be able to see the contents of the clipboard at all :question:
I doubt it but I´m by no means sure.

Thanks a lot in advance for your opinions.

Many greetings from Rosika :slightly_smiling_face:

4 Likes

What a great question.
My bank will not allow that idea, it has a design pattern to draw on the screen in the second step process.
Then if it thinks the transaction could be different to my normal actions such as a transfer etc, it messages my phone where there is a special application which asks me to confirm .
So three step process.
But keylogging is a security issue, be interesting to see how others respond, will watch with interest

3 Likes

Hi Rosika,
I think, not a keylogger, but some other malware may be able to see a clipboard
Do all types of copy/paste use the clipboard… I am not sure.?
I guess there is no way to transfer a long password into a banking app without some
form of copy/paste.?
Is it possible to get some program to write its output directly into the banking page of the browser? That would bpass the clipboard.
Regards
Neville

3 Likes

Hi Paul, :wave:

thanks for taking a keen interest in my question.

Yes, right.
There´s a third step with me, too. It consists of entering the TAN, which is generated by the ChipTAN generator.
However this is mainly for transactions.

The 2 steps I was referring to are just for login purposes.

Thanks again and many greetings from Rosika :slightly_smiling_face:

2 Likes

If I’m to believe their promises, Proton Pass should bypass the clipboard and insert userid/password in my credit union’s sign-in page directly and securely. On my phone, it uses the fingerprint stored there.

I don’t use a fingerprint on my computer because I can’t find a distro or application for fingerprints anywhere in Linux.

So, Rosika, is a password manager the solution to your question?

6 Likes

Hi Neville, :wave:

thanks a lot for your reply.

O.K., the keyboard logger question is settled then.

As far as any other potential malware (which might access clipboard contents) is concerned…
… I hope to be on the safe side by using the sandbox mechanism

firejail --private --dns=1.1.1.1 --dns=9.9.9.9 firefox -no-remote

The /xfce4/panel/plugins/libclipman plugin I´m using seems to suggest it saves only the default (not the primary) one.

Well, apart from the way I´ve been doing it with the help of onboard.
The longer the password is the more tedious the clicking procedure gets, of course. :wink:

Thanks a lot for your views on the matter, Neville. :heart:

Cheers from Rosika :slightly_smiling_face:

3 Likes

Hi Bill, :wave:

thanks for your input.
These are some interesting thoughts.

As password manager I have keepass xc installed on my system.
No idea if it´ll do me any good in that respect.

I´ll look into it.

Thanks again and cheers from Rosika :slightly_smiling_face:

3 Likes

I think it’s better to have an uncompromised system without a keylogger :wink:
On X11 theoretically any app can access the keystrokes, even inject keypresses. Wayland is more secure in this regard.

I think that protects your host system from worms potentially climbing out of that sandbox. I don’t believe it works the other way, but I don’t know.

4 Likes

Because I understand how important security is to you, Rosika, I urge you to take a look at the protonmail.com suite of offerings–there’s even a cloud storage service coming that looks pretty safe and useful. Cheers!

5 Likes

Exactly

  • dont open any ports to the internet
  • be very careful with email
  • download from trusted sites, and check downloads
  • treat anything that comes from outside with suspicion.
  • be careful what sites your browser visits
    Anyone want to add anything?
3 Likes

Hi again, :wave:

@kovacslt :

Thanks, László, for the link. I´ll read the article in due course.

Yes, of course.

I have never had any difficulties with my system or with online-banking.

I was just asking this question out of pure interest.
Copy-and-paste would help me get things done more quickly and it would help avoid typing mistakes.
That´s all.

The way I´m using the sandbox is ideally suited for online banking (according to firefox sandboxing guide:

Private browser setup

Use this setup to access your bank account, or any other site dealing with highly sensitive private information.
The idea is you trust the site, but you don’t trust the addons and plugins installed in your browser. Use –private Firejail option to start with a factory default browser configuration, and an empty home directory.

Also, you would need to take care of your DNS setting – current home routers are ridiculously insecure, and the easiest attack is to reconfigure DNS, and redirect the traffic to a fake bank website. Use –dns Firejail option to specify a DNS configuration for your sandbox:

$ firejail --private --dns=1.1.1.1 --dns=9.9.9.9 firefox -no-remote

It´s like having a brower freshly installed and with no other site than your banking site accessed before. :wink:

@berninghausen :

thanks for providing the link to proton mail.
I´ll take a good look at it.

@nevj :

thanks Neville. These are all good tips from you. :+1:

At least this one is taken care of by firejail´s --private option.
(see my response to @kovacslt ).

Thanks again and many greetings to all.
Rosika :slightly_smiling_face:

4 Likes

Don’t use browser extensions.

Don’t use PPA’s, unless you know exactly what’s inside.
Don’t paste commands into you terminal, unless you KNOW what it does.
Don’t paste commands which look like wget && bash or pipe wget to bash like wget -q -O | bash as they execute a script which you can’t see. Download first the script, have a look into it, and decide you want it to run or not :slight_smile:

Well, I disagree on this. Sometimes you need to open ports.
But I agree, don’t open unnecessary ports.

4 Likes

https://forums.linuxmint.com/viewtopic.php?t=368224

You should at least clear the clipboard when finished.
Just copy something else… it will overwrite the passwd

4 Likes

Hi again, :wave:

@kovacslt :

Wow, that´s getting even better. Thanks, László. :heart:
You added some reallly good advice.

That´s even getting beyond the scope of my original question. :+1:

I particularly like this one, as it might not be obvious for novices.

Thanks also for the link.

@nevj :

Right.
I made it a habit of clearing my clipboard contents at the end of each session.
The context menu of the clipman extension provides this option.

Due to the fact that I´ve never used the clipboard for entering my credentials this seems to be alright with me.

Thanks for your link as well, Neville.

Many greetings to you all.
Rosika :slightly_smiling_face:

3 Likes

Hi Rosika,
Allow me to ask: for such critical passwords, why don’t you find a difficult but easy-to-remember password and write it down manually every time you need to access the bank?

I use Bitwarden and KeypassXC, but the most critical passwords are written on paper

Jorge

2 Likes

Bet my next suggestion will make everyone jump up and down and say NO !

Have you thought about google registration of user name password.

Just been on french government website, something I dont need to do often so no idea what my user name or password is… clicked the signin button and google filled it in without problem and did not show on the screen what it is part of governemt security. It is similar for uk government site but that does show the info if i click the eyeball icon by the password

Ok I can go into google security, and find the entry. But in theory I did not copy paste or key, so secure ?

Google saves the day… comments

1 Like

Saving your bank password in Google or another browser?
N                               O

4 Likes

Hi Rosika,
I slept on it. What came out was

  • do your banking browser work in a VM
  • deactivate spice-vdagent in the VM so it does not share its clipboard with the host
  • put the entire VM in firejail
  • dont use that VM for anything else … so you dont introduce any malware
  • clear the clipboard when you finish, and exit the VM

That should ensure that you can use copy/paste and the clipboard can not be compromised.
The VM could be a very small Linux like Alpine.

1 Like

I don’t let remote possibilities like this concern me overly, by remote, I mean “extremely unlikely”. In order for something like this to infect my systems, I’d probably have to be doing something risky in the first place, like open email attachments or blindly clicking popups from web sites…

One thing I will note - Keepass2 (not sure about keepassXC) removes passwords you copied into the clipboard after some “interval” or period of time - I think about 10-15 seconds… I think it just blanks the clipboard or something…

4 Likes

I think I agree with that.

3 Likes