Irc-Unix.net

Главная | Actual Topics | Обратная связь | Guest Book | В избранное | Сделать домашней
Категории
 System & Utilities
 Unix News
 OS Emulator
 Developing
 Learning/Education
 Games
 Humour
Каталог статей
Все статьи

Antispam
Статьи
Биллу Гейтсу тоже предлагают избавиться ...
Вымогательство в борьбе со спамом
Календарь

October, 2017
ПнВтСрЧтПтСбВс
1
2345678
9101112131415
16171819202122
23242526272829
3031
Опросы
Какой из этих ОС Вы отдаете большее предпочтение?

QNX
FreeBSD
Linux(any)
Solaris
Mac OS
Windows XP
Windows 2003
Что такое ОС? :)


Результаты
Другие опросы

Всего голосов: 325
Комментарии: 0
Ссылки

Архив Новостей
 October 2017 (8)
 September 2017 (18)
 August 2017 (13)
 February 2017 (14)
 January 2017 (19)
 December 2016 (16)
 November 2016 (16)
 October 2016 (21)
 September 2016 (18)
 August 2016 (16)
 July 2016 (16)
 June 2016 (20)
 May 2016 (18)
 April 2016 (15)
 March 2016 (22)
 February 2016 (17)
 January 2016 (15)
 December 2015 (15)
 November 2015 (22)
 October 2015 (20)
 September 2015 (17)
 August 2015 (25)
 July 2015 (20)
 June 2015 (23)
 May 2015 (21)
 April 2015 (17)
 March 2015 (19)
 February 2015 (9)
 January 2015 (23)
 December 2014 (9)
 November 2014 (13)
 October 2014 (12)
 September 2014 (18)
 August 2014 (20)
 July 2014 (10)
 June 2014 (12)
 May 2014 (12)
 April 2014 (10)
 March 2014 (22)
 February 2014 (10)
 January 2014 (8)
 December 2013 (26)
 November 2013 (53)
 October 2013 (40)
 September 2013 (48)
 August 2013 (63)
 July 2013 (56)
 June 2013 (52)
 May 2013 (49)
 April 2013 (67)
 March 2013 (74)
 February 2013 (63)
 January 2013 (62)
 December 2012 (62)
 November 2012 (66)
 October 2012 (68)
 September 2012 (48)
 August 2012 (75)
 July 2012 (60)
 June 2012 (71)
 May 2012 (69)
 April 2012 (85)
 March 2012 (86)
 February 2012 (90)
 January 2012 (81)
 December 2011 (103)
 November 2011 (118)
 October 2011 (74)
 September 2011 (2)
 June 2011 (110)
 May 2011 (118)
 April 2011 (111)
 March 2011 (112)
 February 2011 (101)
 January 2011 (119)
 December 2010 (117)
 November 2010 (118)
 October 2010 (131)
 September 2010 (117)
 August 2010 (226)
 July 2010 (351)
 June 2010 (305)
 May 2010 (319)
 April 2010 (343)
 March 2010 (329)
 February 2010 (311)
 January 2010 (312)
 December 2009 (266)
 November 2009 (156)
 July 2009 (101)
 June 2009 (279)
 May 2009 (365)
 April 2009 (348)
 March 2009 (347)
 February 2009 (323)
 January 2009 (318)
 December 2008 (237)
 November 2008 (155)
 October 2008 (334)
 September 2008 (310)
 August 2008 (343)
 July 2008 (362)
 June 2008 (322)
 May 2008 (621)
 April 2008 (1276)
 March 2008 (1658)
 February 2008 (250)
 January 2008 (6)
 November 2007 (1)
 September 2007 (1)
 June 2007 (1)
 May 2007 (1)
 March 2007 (1)
 January 2007 (2)
 December 2006 (1)
 October 2006 (2)
 September 2006 (1)
 August 2006 (2)

How KDE Connect encryption works

System & Utilities

The goal of this post is that the security experts out there find flaws in our design so we could improve the security of KDE Connect, which is an important point. Probably this will get too technical if you don’t know what RSA keys are, so proceed under your own responsibility ;) .

The first thing we need in KDE Connect is the discovery of other devices. At the moment we provide a single backend that uses network UDP broadcast to achieve this. When a devices connects to a new network, it sends a broadcast message with its unique ID and name and how reach it (that is: ip and port). Other devices will react to that broadcast sending back their own information, so both devices will know each other.  (Note: We tried Avahi instead of a manual UDP broadcast, but finally we didn’t use it because we found two main problems: the Android implementation is of extreme poor quality, plus multicast is sometimes blocked by routers :( ).

At this point the devices can ‘talk’ between them, but they don’t trust each other until the intervention of the user, so they will discard any incoming package that is not a pairing request. Each device has a unique pair of RSA public and private keys, when the user decides to start the pairing process from a device, that device sends its public key to the other device. If the other device accepts the pairing (it will show a message to the user with a timeout asking to do so), it will send back its own public key, so now both devices will be able to send encrypted packages (using their peer’s public key) to each other, that only the expected recipient will be able to read.

Pairing diagram

Note that the public key can easily be retrieved from a device, just by starting the pairing process with it. So only with that key and the device ID (also public) you would be able to fake a device and send encrypted packages to any other in its name (even though you would not be able to decrypt the answer, since you don’t have the private key of the device you are faking). To solve this issue, we will require a both-way encrypted handshaking (which is not implemented yet):

  • Device 1 sends some random number encrypted with Device 2′s key
  • Device 2 decrypts the number and encrypts it again with Device 1 public key
  • Device 1 decrypts the number and checks it is the same it originally sent (so Device 2 have the correct private key to decrypt it).
  • The same happens swapping Device 1 and Device 2

Do you think that the security this provides is enough or are we missing something? Would be better to have a different pair of public/private key for each device, instead of a single one?

Thank you all and happy hacking!






  


Разместил: Planet KDE | Дата: 19.09.2013 | Прочитано: 361 | Раздел: System & Utilities   

Рейтинг статьи

Средняя оценка: 0.00/0Средняя оценка: 0Всего голосов:0

Отлично
Хорошо Нормально Пойдёт Плохо


Смотрите также связанные темы

28.03.2011 New Articles Published for week ending 3/26/11
New Articles Published for week ending 3/26/11 VMware ESX High Availability fails to configure with error: HA agent on xxxxxx in cluster xxxxx in xxxxxxx has an error: error while running health check script (1021173) Date Published: 3/25/2011 How to set up sudo with active directory accounts (1027766) Date Published: 3/21/2011 When using NetXen 1G NX3031 or multiple 10G NX2031 devices, ESX hosts fail to boot with the error: Out of interrupt vectors error during bootup (1033299) Date Published: 3/21/2011 After upgrading to ESX/ESXi 4.1, the default pathing policy for LUNs that are used with...
04.08.2006 Building a Desktop Firewall

16.11.2015 New C++/Qt code checks in clazy static analyzer
Since then it has moved to an official KDE repo http://anongit.kde.org/clazy , got an IRC channel and also many fun new checks. Here's a quick dump of the new features : explicit ComposerLineEdit ; RecipientLineEdit::RecipientLineEdit : ComposerLineEdit <-- oops, passing pointer as firt argument, which is a bool Also, old-style-connect and qstring-ref checks got fixits, so you can fix your code just by recompiling it with clazy.
19.02.2016 Linux distros aren't updating WebKit, making web browsers and email clients vulnerable
The WebKit rendering engine used in many Linux applications is a complete security mess. That's the takeaway from a blog post by Michael Catanzaro, who works on GNOME's WebKitGTK+ project.
06.05.2008 devel/librelp - 0.1.1
Add rsyslog 3.x to ports: Rsyslog is an enhanced multi-threaded syslogd supporting, among others, syslog/tcp, permitted sender lists, filtering on any message part, and fine grain output format control. Its advanced features make it suitable for enterprise-class, encryption protected syslog relay chains while at the same time being very easy to setup for the novice user. The following features are supported through modules: logging to MySQL, PostgreSQL, any libdbi-supported backend; SNMP trap sender, GSS API, RELP. WWW: http://www.rsyslog.com/
06.05.2008 sysutils/rsyslog - 2.0.4_2
Add rsyslog 3.x to ports: Rsyslog is an enhanced multi-threaded syslogd supporting, among others, syslog/tcp, permitted sender lists, filtering on any message part, and fine grain output format control. Its advanced features make it suitable for enterprise-class, encryption protected syslog relay chains while at the same time being very easy to setup for the novice user. The following features are supported through modules: logging to MySQL, PostgreSQL, any libdbi-supported backend; SNMP trap sender, GSS API, RELP. WWW: http://www.rsyslog.com/
08.05.2008 Qt 4.4 Offers Cross-Platform WebKit, Other Treats
Long in the works, the latest version of the Qt software toolkit has finally been released.
13.05.2008 sysutils/automounter - 1.3
[new port] sysutils/automounter A script to dynamically configure amd and populate /media with appropriate links, when USB mass storage devices appear. It relies on geom labels, hence it only works for properly labeled devices. It also allows to automatically attach geli encrypted devices and images with keys polled from file systems it makes mountable. WWW: http://sourceforge.net/projects/bsdadminscripts/ - Kamikaze kamikaze@bsdforen.de PR: ports/122726 Submitted by: Dominic Fandrey <kamikaze@bsdforen.de>
07.03.2008 irc/znc - 0.052
ZNC is an advanced IRC bouncer with features that include support for multiple users, playback buffers, DCC bouncing, SASL authentication and SSL encryption. It can be extended with dynamically loaded modules written in C++ or Perl. WWW: http://znc.in/ PR: ports/121412 Submitted by: elvstone at gmail.com
07.03.2008 'fault.RestrictedVersion.
fault.RestrictedVersion.summary' error when connection console on webinterface. When I try to connect to the console of a virtual machine over the webinterface i get the error 'fault.RestrictedVersion.summary...
Нет комментариев. Почему бы Вам не оставить свой?
Вы не можете отправить комментарий анонимно, пожалуйста зарегистрируйтесь.
Google Search
Google

Web irc-unix.net

Топ Новостей
1: KDE Community announces fully open source Plasma Mobile
Hot NEWS!
Просмотров - 559


2: KWallet5 can be auto-unlocked during login again
Просмотров - 500

3: Interview with Laura
Просмотров - 471

4: Use ownCloud provided Packages, then VM, then Zip, no distro packages.
Просмотров - 467

5: Plasma Components on Android: Accelerating Subsurface Mobile Development
Просмотров - 457

6: VMware Workstation 11 and kwin - hangs and hiccups (solved?)
Просмотров - 435

7: debian/rake: Ruby DH Sequencing?
Просмотров - 435

8: Plasma 5 Powers KaOS Productivity
Просмотров - 426

9: KWrite on Mac – Application Bundle
Просмотров - 421

10: FOSDEM Desktops DevRoom 2016 Call for Participation
Просмотров - 396

11: New Year Calligra Words Sprint
Просмотров - 394

12: digiKam 5.0.0-beta2 is released
Просмотров - 393

13: Interview with Pierre Geier
Просмотров - 388

14: back in the habit
Просмотров - 378

15: Kexi 3
Просмотров - 373

Google 120X240
Ссылки

Главная | Actual Topics | Статьи | Обратная связь | Guest Book
Генерация: 0.909 сек. и 13 запросов к базе данных за 0.852 сек.
Powered by SLAED CMS © 2005-2007 SLAED. All rights reserved.