Hello,
I identified a security issue within the Two-Channel Auto-Type Obfuscation functionality, KeePass is using the old clipboard chain to block applications from receiving events from the clipboard chain, statements in the FAQ [1] only applies to Windows XP or lower, the protection given by the two-channel auto-type obfuscation is ineffective from Windows Vista or higher.
I have made a 18-line keylogger which is using AddClipboardFormatListener function from the win32 API [2] to bypass this protection and capture the clipboard contents from the splitted secret.
Old clipboard viewer linked list is not longer recommended since 2011 [3]
Thanks,
[1] http://keepass.info/help/v2/autotype_obfuscation.html
[2] https://msdn.microsoft.com/en-us/library/windows/desktop/ms649033(v=vs.85).aspx
[3] https://blogs.msdn.microsoft.com/oldnewthing/20110919-00/?p=9613
Isn't that the point of TCATO, clipboard spies can only get part of the password?
cheers, Paul
The point of TCATO is to split the data such that one part is transferred using the keyboard only (simulated keypresses) and one part using the clipboard. The blocking of clipboard events is just a bonus; TCATO is effective even without it.
In order to prevent confusion in the future, I've now removed the section about clipboard event blocking from the help page. As you correctly noticed, since Windows Vista there is a way to circumvent the blocking anyway.
Thanks and best regards,
Dominik
Regards,
Daniel Correa
The point of TCATO is to split the data such that one part is transferred using the keyboard only (simulated keypresses) and one part using the clipboard. The blocking of clipboard events is just a bonus; TCATO is effective even without it.
In order to prevent confusion in the future, I've now removed the section about clipboard event blocking from the help page. As you correctly noticed, since Windows Vista there is a way to circumvent the blocking anyway.
Thanks and best regards,
Dominik
[bugs:#1462] Two-Channel Auto-Type Obfuscation Bypass
Status: closed
Group: KeePass_2.x
Labels: security windows
Created: Fri Jan 08, 2016 12:33 AM UTC by Daniel Correa
Last Updated: Fri Jan 08, 2016 08:01 AM UTC
Owner: nobody
Hello,
I identified a security issue within the Two-Channel Auto-Type Obfuscation functionality, KeePass is using the old clipboard chain to block applications from receiving events from the clipboard chain, statements in the FAQ [1] only applies to Windows XP or lower, the protection given by the two-channel auto-type obfuscation is ineffective from Windows Vista or higher.
I have made a 18-line keylogger which is using AddClipboardFormatListener function from the win32 API [2] to bypass this protection and capture the clipboard contents from the splitted secret.
Old clipboard viewer linked list is not longer recommended since 2011 [3]
Thanks,
[1] http://keepass.info/help/v2/autotype_obfuscation.html
[2] https://msdn.microsoft.com/en-us/library/windows/desktop/ms649033(v=vs.85).aspx
[3] https://blogs.msdn.microsoft.com/oldnewthing/20110919-00/?p=9613
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/keepass/bugs/1462/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
Related
Bugs:
#1462Nobody said TCATO was completely secure, it's just one more tool in your arsenal.
cheers, Paul
Obviously, TCATO is useless when a spyware captures both channels (keyboard and clipboard). It is only effective against spyware that is either a standard keylogger or a clipboard spy, as mentioned in the introductory section of the TCATO help page.
Best regards,
Dominik
So, does this mean that the statement on the TCATO page that
is no longer true - or no longer relevant, in that any halfway competent script kiddie can now cobble together a homebrew program to defeat this by capturing both channels at once?
You have omitted the rest of the sentence. The sentence continues:
..., but it is theoretically possible to write a dedicated spy application that specializes on logging obfuscated auto-type.
TCATO defends against two specific types of spyware (keyloggers and clipboard spies); it doesn't make auto-type secure against everything. Also see http://keepass.info/help/base/security.html#secspecattacks and http://keepass.info/help/kb/sec_issues.html#keefarce .
Best regards,
Dominik
I agree with T. Bug Reporter, it is not theoretically possible but practically possible as I have now a dedicated software that capture both channels. It would only apply to Windows XP or lower as there is no way to capture the clipboard contents.
Specialized spyware section is just a way to protect those security concepts of KeePass from this kind of issues, but a specialized software could be converted in a standard one.
Regards,