SlideShare a Scribd company logo
15
Most read
19
Most read
22
Most read
Hacking
Confraria de Segurança da Informação
27 Nov 2013
root@localhost:~# whoami
• Ricardo Mourato
• Pentester @ SysValue
• Former SW engineer
• Like to:
• Hack Stuff
• Code C,Python,Ruby,Java,C#
• Slackware!
• Drink:
• Stout
• Staropramen
• Stella Artois
• Hate:
• Printers, Unless networked
• Perl
root@localhost:~#
Disclaimer:
You know, i’m not responsible for your:
What this talk is about:
• An introduction to QNX RTOS
• Where Would You Expect To Find QNX
• QNX in Numbers
• More About QNX
• How it Looks
• QNX Network Services
• QNX Qnet protocol
• Exploiting QNX Weaknesses Remotley & Locally (<- demo )
What is QNX (Neutrino):
• Multiuser & Multitask Mission Critical RTOS;
• Developed by QNX Software, later acquired by
Research in Motion, Now BlackBerry;
• Targets are mostly embedded systems;
• Microkernel driven;
• This means:
• Every failure prone component lives outside
of kernelspace
• Components, such as Drivers, Protocol
Stacks, Filesystems, Applications;
What is QNX Neutrino (cont):
• Runs on Multiple Arch’s: ARM,MIPS, PowerPC, x86,
etc;
• Not Linux nor Unix;
• POSIX standard (1003.1-2001 POSIX.1) 
What is QNX Neutrino (cont):
Source: http://www.qnx.com/
Where Would You Expect To Find QNX:
“QNX is used in systems where the cost of failure
is very high“
Dan Dodge (QNX CEO)
Where Would You Expect To Find QNX (cont):
• Medical Equipment;
• Industrial Robots;
• Professional DVR’s;
• Storage Appliances;
• Network Equipment; <- Cisco CRS-1 
• RAID Controllers;
• Spacecraft & Aircraft;
• Nuclear Power Plants;
Where Would You Expect To Find QNX (cont):
• Blackberry PlayBook, Z10, Z30, Q5, Q10, etc;
• Luxury & High-end Cars (Porshe, Bentley, Lexus,
Mercedes, etc;
• University Students “Quite Expensive" NAS;
• Many Others.
QNX in Numbers:
• Shodanhq:
• 2 QNX hosts;
• Internet Census:
• ~ 74 Internet Exposed hosts;
• No Nuclear Power Plants, though 
• Private/Local networks?
More About QNX:
• Photon (GUI)
• Uses Neutrino messages in order to create
highly responsive user experience;
• Made of the following components:
• Photon server;
• graphics subsystem manager and hardware
driver;
• font support;
• input support;
• user applications;
More About QNX (cont):
• Multimedia
• “Media Player Plugins”
• Plays/Decodes:
• MPEG-1, MPEG-2, MPEG-2.5, MP3, WAV,
AIFF
• Widgets Library;
• Etc.
More About QNX (cont):
More About QNX (cont):
“By adding extra code to a digital music file,
they were able to turn a song burned to CD into a
Trojan horse. When played on the car's stereo,
this song could alter the firmware of the car's
stereo system, giving attackers an entry point to
change other components on the car”
Remember “Media Player Plugins” ? 
How it Looks:
How it Looks:
How it Looks (Pentester’s view)
QNX Network Services (Usually Default):
• Telnet
• Allows root login, if you know the password
• Unprivileged joe account? Try ./KissMyHash 
(later on demo)
• FTP
• Does not allow root login. You’re able to
travel “/”, again, if you know the password.
• QCONN
• Kind of remote debug/profiling bridge for
IDE’s
• Allows root login, even if you don’t know the
password 
QNX Qnet Protocol
• Transparent Distributed Processing Platform;
• Groups QNX systems or CPU’s (nodes) into na
integrated network;
• A QNX node can access resources on other nodes,
transparently.
• Resources can be:
• Files;
• Devices;
• Processes <- 
• Same goes for IPC
Demo
Meet the Live Demo Gremlin, he just sits and waits
Then Leaves…
References:
[1] "30 Ways QNX Touches Your Life", Internet: http://www.qnx.com/company/30ways/
[2] "Customers", Internet: http://www.qnx.com/company/customer_stories/http://www.qnx.com
[3] "QNX Neutrino RTOS", Internet: http://www.qnx.com/products/neutrino-rtos/neutrino-rtos.html
[4] "A Look At The Near Future Of In-Car Technology: QNX CAR 2", Internet:
http://www.washingtonpost.com/cars/a-look-at-the-near-future-of-in-car-technology-qnx-car-
2/2012/09/19/a3266bf0-0262-11e2-9132-f2750cd65f97_story.html
[5] "Nuclear plant powers up on real-time OS", Internet: http://www.itbusiness.ca/news/nuclear-
plant-powers-up-on-real-time-os/9084
[6] "Review: BlackBerry PlayBook (o verdadeiro tablet 2.0 :))", Internet:
http://itweb.com.br/blogs/review-blackberry-playbook-o-verdadeiro-tablet-2-0/
[7] "Pentesting QNX Neutrino RTOS", Internet: http://www.fishnetsecurity.com/6labs/blog/pentesting-
qnx-neutrino-rtos
[8] "QNX QCONN Remote Command Execution Vulnerability", Internet:
http://www.rapid7.com/db/modules/exploit/unix/misc/qnx_qconn_exec
[9] "With hacking, music can take control of your car", Internet:
http://www.itworld.com/security/139794/with-hacking-music-can-take-control-your-car
[10] "Transparent Distributed Processing Using Qnet", Internet:
http://www.qnx.com/developers/docs/6.3.2/neutrino/prog/qnet.html
[11] "on", Internet: http://www.qnx.com/developers/docs/6.3.2/neutrino/utilities/o/on.html
Q&A
Hacking QNX

More Related Content

DOCX
Qnx os
PPTX
Enable DPDK and SR-IOV for containerized virtual network functions with zun
PDF
QNX Sales Engineering Presentation
PDF
QNX Software Systems
PDF
PDF
Apresentacao sobre o QNX Neutrino
PDF
Static Partitioning with Xen, LinuxRT, and Zephyr: A Concrete End-to-end Exam...
PDF
Linux Preempt-RT Internals
Qnx os
Enable DPDK and SR-IOV for containerized virtual network functions with zun
QNX Sales Engineering Presentation
QNX Software Systems
Apresentacao sobre o QNX Neutrino
Static Partitioning with Xen, LinuxRT, and Zephyr: A Concrete End-to-end Exam...
Linux Preempt-RT Internals

What's hot (20)

PDF
Achieving the ultimate performance with KVM
PPTX
Docker Networking Overview
PDF
DevConf 2014 Kernel Networking Walkthrough
PDF
Dockerを支える技術
PDF
What’s the Best PostgreSQL High Availability Framework? PAF vs. repmgr vs. Pa...
PDF
Open shift 4 infra deep dive
PDF
Présentation docker et kubernetes
PDF
不揮発メモリ(NVDIMM)とLinuxの対応動向について
PDF
Reconnaissance of Virtio: What’s new and how it’s all connected?
PDF
A crash course in CRUSH
PDF
Backroll: Production Grade KVM Backup Solution Integrated in CloudStack
PDF
Room 2 - 3 - Nguyễn Hoài Nam & Nguyễn Việt Hùng - Terraform & Pulumi Comparin...
PDF
Terraform
PDF
Neutron packet logging framework
PDF
Embedded Android : System Development - Part IV
PPTX
QNX Neutrino RTOS
ODP
Embedded Android : System Development - Part III
ODP
Dpdk performance
PDF
OpenWrt From Top to Bottom
PDF
An Introduction to Kubernetes
Achieving the ultimate performance with KVM
Docker Networking Overview
DevConf 2014 Kernel Networking Walkthrough
Dockerを支える技術
What’s the Best PostgreSQL High Availability Framework? PAF vs. repmgr vs. Pa...
Open shift 4 infra deep dive
Présentation docker et kubernetes
不揮発メモリ(NVDIMM)とLinuxの対応動向について
Reconnaissance of Virtio: What’s new and how it’s all connected?
A crash course in CRUSH
Backroll: Production Grade KVM Backup Solution Integrated in CloudStack
Room 2 - 3 - Nguyễn Hoài Nam & Nguyễn Việt Hùng - Terraform & Pulumi Comparin...
Terraform
Neutron packet logging framework
Embedded Android : System Development - Part IV
QNX Neutrino RTOS
Embedded Android : System Development - Part III
Dpdk performance
OpenWrt From Top to Bottom
An Introduction to Kubernetes

Similar to Hacking QNX (20)

PPTX
Qnx os
PPTX
Qnx 120227023226-phpapp01
PPTX
5th
PDF
[CONFidence 2016]: Alex Plaskett, Georgi Geshev - QNX: 99 Problems but a Micr...
PPTX
Keynote at Home Automation/ IoT Telecom Council conference
PDF
Survey/analysis of the QNX Neutrino Secure Kernel
PPTX
Black Hat USA 2022 - Arsenal Labs - Vehicle Control Systems - Red vs Blue
PDF
Developing for Industrial IoT with Linux OS on DragonBoard™ 410c: Session 3
PDF
No Apology Required: Deconstructing BB10
PPTX
Learn how to addressing medical and industrial challenges with BlackBerry QNX...
 
PDF
Black berry playbook security part one
PDF
KonnexSIM middleware
PPTX
Juniper Network Automation for KrDAG
PDF
Anonguide
PPTX
Kiran 005
PPTX
Thinknx Webinar Quick Guide 2023.pptx
PDF
The Low-Risk Path to Building Autonomous Car Architectures
Qnx os
Qnx 120227023226-phpapp01
5th
[CONFidence 2016]: Alex Plaskett, Georgi Geshev - QNX: 99 Problems but a Micr...
Keynote at Home Automation/ IoT Telecom Council conference
Survey/analysis of the QNX Neutrino Secure Kernel
Black Hat USA 2022 - Arsenal Labs - Vehicle Control Systems - Red vs Blue
Developing for Industrial IoT with Linux OS on DragonBoard™ 410c: Session 3
No Apology Required: Deconstructing BB10
Learn how to addressing medical and industrial challenges with BlackBerry QNX...
 
Black berry playbook security part one
KonnexSIM middleware
Juniper Network Automation for KrDAG
Anonguide
Kiran 005
Thinknx Webinar Quick Guide 2023.pptx
The Low-Risk Path to Building Autonomous Car Architectures

Recently uploaded (20)

PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
Machine Learning_overview_presentation.pptx
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
cuic standard and advanced reporting.pdf
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Chapter 3 Spatial Domain Image Processing.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPT
Teaching material agriculture food technology
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
Spectroscopy.pptx food analysis technology
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
A comparative analysis of optical character recognition models for extracting...
Review of recent advances in non-invasive hemoglobin estimation
Machine Learning_overview_presentation.pptx
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Reach Out and Touch Someone: Haptics and Empathic Computing
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
cuic standard and advanced reporting.pdf
Assigned Numbers - 2025 - Bluetooth® Document
Chapter 3 Spatial Domain Image Processing.pdf
The AUB Centre for AI in Media Proposal.docx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Teaching material agriculture food technology
Digital-Transformation-Roadmap-for-Companies.pptx
Spectroscopy.pptx food analysis technology
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows

Hacking QNX

  • 1. Hacking Confraria de Segurança da Informação 27 Nov 2013
  • 2. root@localhost:~# whoami • Ricardo Mourato • Pentester @ SysValue • Former SW engineer • Like to: • Hack Stuff • Code C,Python,Ruby,Java,C# • Slackware! • Drink: • Stout • Staropramen • Stella Artois • Hate: • Printers, Unless networked • Perl root@localhost:~#
  • 3. Disclaimer: You know, i’m not responsible for your:
  • 4. What this talk is about: • An introduction to QNX RTOS • Where Would You Expect To Find QNX • QNX in Numbers • More About QNX • How it Looks • QNX Network Services • QNX Qnet protocol • Exploiting QNX Weaknesses Remotley & Locally (<- demo )
  • 5. What is QNX (Neutrino): • Multiuser & Multitask Mission Critical RTOS; • Developed by QNX Software, later acquired by Research in Motion, Now BlackBerry; • Targets are mostly embedded systems; • Microkernel driven; • This means: • Every failure prone component lives outside of kernelspace • Components, such as Drivers, Protocol Stacks, Filesystems, Applications;
  • 6. What is QNX Neutrino (cont): • Runs on Multiple Arch’s: ARM,MIPS, PowerPC, x86, etc; • Not Linux nor Unix; • POSIX standard (1003.1-2001 POSIX.1) 
  • 7. What is QNX Neutrino (cont): Source: http://www.qnx.com/
  • 8. Where Would You Expect To Find QNX: “QNX is used in systems where the cost of failure is very high“ Dan Dodge (QNX CEO)
  • 9. Where Would You Expect To Find QNX (cont): • Medical Equipment; • Industrial Robots; • Professional DVR’s; • Storage Appliances; • Network Equipment; <- Cisco CRS-1  • RAID Controllers; • Spacecraft & Aircraft; • Nuclear Power Plants;
  • 10. Where Would You Expect To Find QNX (cont): • Blackberry PlayBook, Z10, Z30, Q5, Q10, etc; • Luxury & High-end Cars (Porshe, Bentley, Lexus, Mercedes, etc; • University Students “Quite Expensive" NAS; • Many Others.
  • 11. QNX in Numbers: • Shodanhq: • 2 QNX hosts; • Internet Census: • ~ 74 Internet Exposed hosts; • No Nuclear Power Plants, though  • Private/Local networks?
  • 12. More About QNX: • Photon (GUI) • Uses Neutrino messages in order to create highly responsive user experience; • Made of the following components: • Photon server; • graphics subsystem manager and hardware driver; • font support; • input support; • user applications;
  • 13. More About QNX (cont): • Multimedia • “Media Player Plugins” • Plays/Decodes: • MPEG-1, MPEG-2, MPEG-2.5, MP3, WAV, AIFF • Widgets Library; • Etc.
  • 14. More About QNX (cont):
  • 15. More About QNX (cont): “By adding extra code to a digital music file, they were able to turn a song burned to CD into a Trojan horse. When played on the car's stereo, this song could alter the firmware of the car's stereo system, giving attackers an entry point to change other components on the car” Remember “Media Player Plugins” ? 
  • 18. How it Looks (Pentester’s view)
  • 19. QNX Network Services (Usually Default): • Telnet • Allows root login, if you know the password • Unprivileged joe account? Try ./KissMyHash  (later on demo) • FTP • Does not allow root login. You’re able to travel “/”, again, if you know the password. • QCONN • Kind of remote debug/profiling bridge for IDE’s • Allows root login, even if you don’t know the password 
  • 20. QNX Qnet Protocol • Transparent Distributed Processing Platform; • Groups QNX systems or CPU’s (nodes) into na integrated network; • A QNX node can access resources on other nodes, transparently. • Resources can be: • Files; • Devices; • Processes <-  • Same goes for IPC
  • 21. Demo Meet the Live Demo Gremlin, he just sits and waits Then Leaves…
  • 22. References: [1] "30 Ways QNX Touches Your Life", Internet: http://www.qnx.com/company/30ways/ [2] "Customers", Internet: http://www.qnx.com/company/customer_stories/http://www.qnx.com [3] "QNX Neutrino RTOS", Internet: http://www.qnx.com/products/neutrino-rtos/neutrino-rtos.html [4] "A Look At The Near Future Of In-Car Technology: QNX CAR 2", Internet: http://www.washingtonpost.com/cars/a-look-at-the-near-future-of-in-car-technology-qnx-car- 2/2012/09/19/a3266bf0-0262-11e2-9132-f2750cd65f97_story.html [5] "Nuclear plant powers up on real-time OS", Internet: http://www.itbusiness.ca/news/nuclear- plant-powers-up-on-real-time-os/9084 [6] "Review: BlackBerry PlayBook (o verdadeiro tablet 2.0 :))", Internet: http://itweb.com.br/blogs/review-blackberry-playbook-o-verdadeiro-tablet-2-0/ [7] "Pentesting QNX Neutrino RTOS", Internet: http://www.fishnetsecurity.com/6labs/blog/pentesting- qnx-neutrino-rtos [8] "QNX QCONN Remote Command Execution Vulnerability", Internet: http://www.rapid7.com/db/modules/exploit/unix/misc/qnx_qconn_exec [9] "With hacking, music can take control of your car", Internet: http://www.itworld.com/security/139794/with-hacking-music-can-take-control-your-car [10] "Transparent Distributed Processing Using Qnet", Internet: http://www.qnx.com/developers/docs/6.3.2/neutrino/prog/qnet.html [11] "on", Internet: http://www.qnx.com/developers/docs/6.3.2/neutrino/utilities/o/on.html
  • 23. Q&A