SlideShare a Scribd company logo
Network Security in
Embedded devices
Serhii Korniienko - Embedded QA engineer
Examples of properties of typical
embedded computers when compared
with general-purpose counterparts are:
• low power consumption
• small size
• rugged operating ranges
• low per-unit cost
• often ‘non-standard‘ solution
Why low-level network testing is a
must in embedded:
• Often custom protocols used to reduce
CPU/RAM/ROM/bandwidth usage
• Low cost
• Timing properties of the program depend heavily
on its environment
• Environment =
+Process or & Memory Hierarchy
+ Operating System, other processes/threads, …
+ Network
+ I/O Devices
+…
Our experience:
1. Requirements
2. Approach
3. Tools
4. Test setup
5. Logs gathering and
analysis
6. Issues
7. Test cases
8. Process
1. Our requirements:
• Low cost – cheapest HW components approved by
customer (BoM < 20$)
• Http and custom UDP support
• Stack: freeRTOS + LwIP
• Rigid requirements on synchronization jitter (PTP)
• IC network switch to build daisy-chained network
structure
• Stable work in heavy loaded network (1Gb
wireshark dump file per minute)
2. Low –level testing approach:
• List of all low-level network stuff:
– Ports inventory:
– 80/tcp – http
– 554/tcp - rtsp
– 67/udp - dhcps
– 68/udp - dhcpc
– 319/udp - ptp-event
– 320/udp - ptp-general
– 2467/udp - custom protocol
– 17100/udp - custom protocol
L4 protocols inventory:
•ICMP
•UDP
•TCP
•IGMP
3. Tools:
1. NMAP – enumeration and packet sending
- sS
- sU
- sO
- sX
- sN
- sF
- sX
- sA
- sY
- --scanflags
3. Tools:
2. Ostinato –packet editing and traffic generation
- Set a value for any field of any protocol
- Open and edit PCAP files, replay and save back
- Support for the most common standard protocols
- Free, Libre, Open-Source Software
3. Tools:
3. LOIC – open-source network stress testing
and denial-of-service attack application
- IC Switch throughput test
4. Test setup
5. Logs gathering and analysis:
The key thing is to gather and analyze all available info from all
system components (switch and microcontroller) to recognize
and eliminate bottlenecks and issues:
- Buffer overflows and underflows
- Queue overflows and underflows
- Protocol/link state changes
- Tx/Rx error counters
- Switch counters
- Error messages
- Power dropdown
- Unauthorized recording
- Voltage levels
- …
6. Issues found:
Issue Web server goes
down during polite
TCP scan
Discovered/
Investigated
NMAP scan
Root cause LwIP configuration issue
Issues found:
Issue Discovered/
investigated
Root cause
Hard-fault occurs if send
fragmented UDP-packet
NMAP/
Wireshark/
Ostinato
LwIP incorrectly reassemble
fragmented UDP packets
Issues found:
Issue Discovered/
investigated
Root
cause
Device can be shutdown by specially crafted
control message
Script/fuzzing Input
validation
issue
Device can turn off it’s power supply and network chip power supply ☺
Issues found:
Issue Device hard-fault if send
abnormally large or small
message on control port -
Discovered/
investigated
LOIC/
Script/fuzzing
Root cause Input validation issue
Issues found:
Issue Discovered/
investigated
Root cause
Sending short ptp packet cause ptp
recalibration and packet loss
NMAP scan
Ostinato
LwIP issue
Issues found:
Issue Discovered/
investigated
Root cause
Network link goes down and Up
during nmap scan
NMAP/
Wireshark/
Ostinato
PSU issue for new IC
switch
Network link goes down during
nmap scan
NMAP/
Wireshark/
Ostinato
unauthorized command
on switch management
interface
Issues found:
Issue Discovered/
investigated
Root
cause
Device become unreachable if send short UDP
packet on port 319/320
NMAP scan
Ostinato
IC switch
issue
All devices in chain become unavailable if perform
UDP flood on port 319/320 of last device in chain
LOIC/Ostinato IC switch
issue
7. Test cases:
Fuzzing!
Test cases:
Test cases:
8. Process:
• Perform low-level testing to
every hardware changes
• Preform low-level testing for
every configuration changes
• Preform low-level testing for
every low-level structures
changes
• Preform low-level testing
periodically
Conclusion:
If you still hesitate about
the necessity to perform
low-level network testing
– go to the issues found
chapter!

More Related Content

PPTX
Free training on NCM - Discovery & Disaster recovery
PPTX
Network and server performance monitoring training
PPTX
Configlets, compliance, RBAC & reports - Network Configuration Manager
PPTX
Monitoring network performance- Part 3_Free OpManager training
PPSX
Theory Review II (pps)
PPT
Top 5 server performance problems and how to resolve them using OpManager
PPTX
Free OpManager training_ Part 2-server monitoring
PPTX
Free NetFlow Analyzer training - Getting the initial settings right
Free training on NCM - Discovery & Disaster recovery
Network and server performance monitoring training
Configlets, compliance, RBAC & reports - Network Configuration Manager
Monitoring network performance- Part 3_Free OpManager training
Theory Review II (pps)
Top 5 server performance problems and how to resolve them using OpManager
Free OpManager training_ Part 2-server monitoring
Free NetFlow Analyzer training - Getting the initial settings right

What's hot (20)

PPTX
OpManager training - Device discovery and classification.
PPT
Monitor and manage everything Cisco using OpManager
PPT
Microsoft Infrastructure Monitoring using OpManager
PPT
VMware monitoring must haves
PPTX
Network Maps & Reporting [Free OpManager Training - Part 5]
PPTX
Network fault management and IT automation training
PPTX
Free OpManager training_Part 1- Discovery & classification
PPTX
Season 4 [Free OpManager training] Part1- Discovery and classification
PPT
Proof of Concept Guide for ManageEngine OpManager
PPTX
[Season - 3 Free OpManager Training] Monitoring Server Performance
PPTX
Free OpManager training Part 2 Monitoring Server Performance- season#3
PPT
Chapter08
PPT
Chapter12
PPTX
Free OpManager training Part1- Discovery and classification season#3
PPTX
Gulf Chemicals & Metallurgy manages 1700 interfaces with OpManager
PPT
OpManager Major Features
PPTX
Season 3 [free OpManager training]_Part1- Discovery and classification
PPTX
Free Netflow analyzer training - diagnosing_and_troubleshooting
PPTX
Free OpManager training Part 3 - Monitoring Network Performance and Network Maps
PPTX
Understanding firewall-policies-their-effectiveness-in-defending-against-netw...
OpManager training - Device discovery and classification.
Monitor and manage everything Cisco using OpManager
Microsoft Infrastructure Monitoring using OpManager
VMware monitoring must haves
Network Maps & Reporting [Free OpManager Training - Part 5]
Network fault management and IT automation training
Free OpManager training_Part 1- Discovery & classification
Season 4 [Free OpManager training] Part1- Discovery and classification
Proof of Concept Guide for ManageEngine OpManager
[Season - 3 Free OpManager Training] Monitoring Server Performance
Free OpManager training Part 2 Monitoring Server Performance- season#3
Chapter08
Chapter12
Free OpManager training Part1- Discovery and classification season#3
Gulf Chemicals & Metallurgy manages 1700 interfaces with OpManager
OpManager Major Features
Season 3 [free OpManager training]_Part1- Discovery and classification
Free Netflow analyzer training - diagnosing_and_troubleshooting
Free OpManager training Part 3 - Monitoring Network Performance and Network Maps
Understanding firewall-policies-their-effectiveness-in-defending-against-netw...
Ad

Similar to Embedded Webinar #17 "Low-level Network Testing in Embedded Devices Development" (20)

PPTX
Opmanager Workshop - Middle East
PDF
PDF
New Generation Oracle RAC Performance
PPTX
Packet Analysis - Course Technology Computing Conference
PDF
ethercat_introduction_0905ethercat_introduction_0905.pdfethercat_introduction...
PPTX
Industrial Ethernet, Part 2: Case Studies
PPT
Basic network training2
PDF
6 profiling tools
PPTX
Realtime traffic analyser
PDF
Tech 2 Tech: Network performance
PDF
Network State Awareness & Troubleshooting
PPTX
Link labs LTE-M NB-IOT Hype Webinar slides
PDF
Data Center Network Trends - Lin Nease
PPTX
IP Signal Distribution
PPTX
ICS Performance Lab
PPTX
Accelerated development in Automotive E/E Systems using VisualSim Architect
PPTX
Mastering IoT Design: Sense, Process, Connect: Processing: Turning IoT Data i...
PPT
Open Programmable Architecture for Java-enabled Network Devices
PPT
Open programmable architecture for java enabled network devices
PPTX
ADG EOIR Focal Plane Array Sensor Systems Test Overview (1).pptx
Opmanager Workshop - Middle East
New Generation Oracle RAC Performance
Packet Analysis - Course Technology Computing Conference
ethercat_introduction_0905ethercat_introduction_0905.pdfethercat_introduction...
Industrial Ethernet, Part 2: Case Studies
Basic network training2
6 profiling tools
Realtime traffic analyser
Tech 2 Tech: Network performance
Network State Awareness & Troubleshooting
Link labs LTE-M NB-IOT Hype Webinar slides
Data Center Network Trends - Lin Nease
IP Signal Distribution
ICS Performance Lab
Accelerated development in Automotive E/E Systems using VisualSim Architect
Mastering IoT Design: Sense, Process, Connect: Processing: Turning IoT Data i...
Open Programmable Architecture for Java-enabled Network Devices
Open programmable architecture for java enabled network devices
ADG EOIR Focal Plane Array Sensor Systems Test Overview (1).pptx
Ad

More from GlobalLogic Ukraine (20)

PDF
GlobalLogic JavaScript Community Webinar #21 “Інтерв’ю без заспокійливих”
PPTX
Deadlocks in SQL - Turning Fear Into Understanding (by Sergii Stets)
PDF
GlobalLogic Java Community Webinar #18 “How to Improve Web Application Perfor...
PDF
GlobalLogic Embedded Community x ROS Ukraine Webinar "Surgical Robots"
PDF
GlobalLogic Java Community Webinar #17 “SpringJDBC vs JDBC. Is Spring a Hero?”
PDF
GlobalLogic JavaScript Community Webinar #18 “Long Story Short: OSI Model”
PPTX
Штучний інтелект як допомога в навчанні, а не замінник.pptx
PPTX
Задачі AI-розробника як застосовується штучний інтелект.pptx
PPTX
Що треба вивчати, щоб стати розробником штучного інтелекту та нейромереж.pptx
PDF
GlobalLogic Java Community Webinar #16 “Zaloni’s Architecture for Data-Driven...
PDF
JavaScript Community Webinar #14 "Why Is Git Rebase?"
PDF
GlobalLogic .NET Community Webinar #3 "Exploring Serverless with Azure Functi...
PPTX
Страх і сила помилок - IT Inside від GlobalLogic Education
PDF
GlobalLogic .NET Webinar #2 “Azure RBAC and Managed Identity”
PDF
GlobalLogic QA Webinar “What does it take to become a Test Engineer”
PDF
“How to Secure Your Applications With a Keycloak?
PDF
GlobalLogic Machine Learning Webinar “Advanced Statistical Methods for Linear...
PPTX
GlobalLogic Machine Learning Webinar “Statistical learning of linear regressi...
PDF
GlobalLogic C++ Webinar “The Minimum Knowledge to Become a C++ Developer”
PPTX
GlobalLogic Webinar "Introduction to Embedded QA"
GlobalLogic JavaScript Community Webinar #21 “Інтерв’ю без заспокійливих”
Deadlocks in SQL - Turning Fear Into Understanding (by Sergii Stets)
GlobalLogic Java Community Webinar #18 “How to Improve Web Application Perfor...
GlobalLogic Embedded Community x ROS Ukraine Webinar "Surgical Robots"
GlobalLogic Java Community Webinar #17 “SpringJDBC vs JDBC. Is Spring a Hero?”
GlobalLogic JavaScript Community Webinar #18 “Long Story Short: OSI Model”
Штучний інтелект як допомога в навчанні, а не замінник.pptx
Задачі AI-розробника як застосовується штучний інтелект.pptx
Що треба вивчати, щоб стати розробником штучного інтелекту та нейромереж.pptx
GlobalLogic Java Community Webinar #16 “Zaloni’s Architecture for Data-Driven...
JavaScript Community Webinar #14 "Why Is Git Rebase?"
GlobalLogic .NET Community Webinar #3 "Exploring Serverless with Azure Functi...
Страх і сила помилок - IT Inside від GlobalLogic Education
GlobalLogic .NET Webinar #2 “Azure RBAC and Managed Identity”
GlobalLogic QA Webinar “What does it take to become a Test Engineer”
“How to Secure Your Applications With a Keycloak?
GlobalLogic Machine Learning Webinar “Advanced Statistical Methods for Linear...
GlobalLogic Machine Learning Webinar “Statistical learning of linear regressi...
GlobalLogic C++ Webinar “The Minimum Knowledge to Become a C++ Developer”
GlobalLogic Webinar "Introduction to Embedded QA"

Recently uploaded (20)

PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PPTX
Cloud computing and distributed systems.
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Advanced IT Governance
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
PDF
Modernizing your data center with Dell and AMD
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPTX
MYSQL Presentation for SQL database connectivity
PDF
cuic standard and advanced reporting.pdf
PDF
KodekX | Application Modernization Development
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Approach and Philosophy of On baking technology
PDF
[발표본] 너의 과제는 클라우드에 있어_KTDS_김동현_20250524.pdf
PDF
Empathic Computing: Creating Shared Understanding
CIFDAQ's Market Insight: SEC Turns Pro Crypto
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
Cloud computing and distributed systems.
Advanced methodologies resolving dimensionality complications for autism neur...
Advanced IT Governance
NewMind AI Weekly Chronicles - August'25 Week I
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
Modernizing your data center with Dell and AMD
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
NewMind AI Monthly Chronicles - July 2025
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
MYSQL Presentation for SQL database connectivity
cuic standard and advanced reporting.pdf
KodekX | Application Modernization Development
Reach Out and Touch Someone: Haptics and Empathic Computing
Approach and Philosophy of On baking technology
[발표본] 너의 과제는 클라우드에 있어_KTDS_김동현_20250524.pdf
Empathic Computing: Creating Shared Understanding

Embedded Webinar #17 "Low-level Network Testing in Embedded Devices Development"

  • 1. Network Security in Embedded devices Serhii Korniienko - Embedded QA engineer
  • 2. Examples of properties of typical embedded computers when compared with general-purpose counterparts are: • low power consumption • small size • rugged operating ranges • low per-unit cost • often ‘non-standard‘ solution
  • 3. Why low-level network testing is a must in embedded: • Often custom protocols used to reduce CPU/RAM/ROM/bandwidth usage • Low cost • Timing properties of the program depend heavily on its environment • Environment = +Process or & Memory Hierarchy + Operating System, other processes/threads, … + Network + I/O Devices +…
  • 4. Our experience: 1. Requirements 2. Approach 3. Tools 4. Test setup 5. Logs gathering and analysis 6. Issues 7. Test cases 8. Process
  • 5. 1. Our requirements: • Low cost – cheapest HW components approved by customer (BoM < 20$) • Http and custom UDP support • Stack: freeRTOS + LwIP • Rigid requirements on synchronization jitter (PTP) • IC network switch to build daisy-chained network structure • Stable work in heavy loaded network (1Gb wireshark dump file per minute)
  • 6. 2. Low –level testing approach: • List of all low-level network stuff: – Ports inventory: – 80/tcp – http – 554/tcp - rtsp – 67/udp - dhcps – 68/udp - dhcpc – 319/udp - ptp-event – 320/udp - ptp-general – 2467/udp - custom protocol – 17100/udp - custom protocol
  • 8. 3. Tools: 1. NMAP – enumeration and packet sending - sS - sU - sO - sX - sN - sF - sX - sA - sY - --scanflags
  • 9. 3. Tools: 2. Ostinato –packet editing and traffic generation - Set a value for any field of any protocol - Open and edit PCAP files, replay and save back - Support for the most common standard protocols - Free, Libre, Open-Source Software
  • 10. 3. Tools: 3. LOIC – open-source network stress testing and denial-of-service attack application - IC Switch throughput test
  • 12. 5. Logs gathering and analysis: The key thing is to gather and analyze all available info from all system components (switch and microcontroller) to recognize and eliminate bottlenecks and issues: - Buffer overflows and underflows - Queue overflows and underflows - Protocol/link state changes - Tx/Rx error counters - Switch counters - Error messages - Power dropdown - Unauthorized recording - Voltage levels - …
  • 13. 6. Issues found: Issue Web server goes down during polite TCP scan Discovered/ Investigated NMAP scan Root cause LwIP configuration issue
  • 14. Issues found: Issue Discovered/ investigated Root cause Hard-fault occurs if send fragmented UDP-packet NMAP/ Wireshark/ Ostinato LwIP incorrectly reassemble fragmented UDP packets
  • 15. Issues found: Issue Discovered/ investigated Root cause Device can be shutdown by specially crafted control message Script/fuzzing Input validation issue Device can turn off it’s power supply and network chip power supply ☺
  • 16. Issues found: Issue Device hard-fault if send abnormally large or small message on control port - Discovered/ investigated LOIC/ Script/fuzzing Root cause Input validation issue
  • 17. Issues found: Issue Discovered/ investigated Root cause Sending short ptp packet cause ptp recalibration and packet loss NMAP scan Ostinato LwIP issue
  • 18. Issues found: Issue Discovered/ investigated Root cause Network link goes down and Up during nmap scan NMAP/ Wireshark/ Ostinato PSU issue for new IC switch Network link goes down during nmap scan NMAP/ Wireshark/ Ostinato unauthorized command on switch management interface
  • 19. Issues found: Issue Discovered/ investigated Root cause Device become unreachable if send short UDP packet on port 319/320 NMAP scan Ostinato IC switch issue All devices in chain become unavailable if perform UDP flood on port 319/320 of last device in chain LOIC/Ostinato IC switch issue
  • 23. 8. Process: • Perform low-level testing to every hardware changes • Preform low-level testing for every configuration changes • Preform low-level testing for every low-level structures changes • Preform low-level testing periodically
  • 24. Conclusion: If you still hesitate about the necessity to perform low-level network testing – go to the issues found chapter!