Skip to content
Parallax Learn

Parallax Learn

  • Welcome
  • Tutorials
        • Tutorial Series head tag

          Tutorial Series
        • Tutorial Series

          The special, classroom-ready series pages are organized collections of tutorials for our most popular hardware and/or languages. The tutorials for each topic are conveniently accessible from a single page, shown in the order it is recommended that they be completed.
        • Robotics Series Head tag

          Robotics Series
        • Robotics Series

          • Artificial Intelligence
          • Cybersecurity: Radio Data tutorialCybersecurity
          • cyber:bot + Python
          • cyber:bot + MakeCode
          • Boe-Bot Tutorial SeriesBoe-Bot
          • Arduino Shield-Bot
          • ActivityBot with C TutorialsActivityBot + C
          • ActivityBot with BlocklyProp Tutorial SeriesActivityBot + BlocklyProp
          • Scribbler 3 Tutorial SeriesScribbler 3
        • Electronics & Programming Series Head tag

          Electronics & Programming Series
          • BS2 Board of Education Tutorial SeriesBS2 Board of Education
          • Propeller C-Language BasicsPropeller C Basics
          • FLiP Try-It Kit C Tutorial SeriesFLiP Try-It Kit + C
          • FLiP Try-It Kit BlocklyProp TutorialsFLiP Try-It Kit + BlocklyProp
          • Badge WX Tutorial SeriesBadge WX
          • Propeller BlocklyProp Basics and ProjectsPropeller BlocklyProp Basics
          • View All Tutorial Series »
        • Browse Tutorials
        • Browse Tutorials

          Individual tutorials sorted by robot or kit, and language.
        • By Robot or Kit
          • ActivityBot
          • SumoBot WX
          • Boe-Bot
          • Shield-Bot
          • cyber:bot
          • Badge WX
          • ELEV-8
          • ARLO
        • By Language
        • By Language

          • Propeller C
          • Arduino
          • BlocklyProp
          • PBASIC
          • Python
          • MakeCode
          • View All Tutorials »
  • Educators
  • Reference
  • Downloads
  • Home
  • All Courses
  • Cybersecurity with AI and micro:bit

Cybersecurity with AI and micro:bit

Try This: Calculate the Benefit of Access Control

Recall Security Step 7 that ChatGPT recommended at the start of this activity:

  • 7. Access Control and Isolation:
    Utilize micro:bit’s communication features such as channel, group, and address settings to restrict communication to specific devices or groups. This helps isolate the micro:bit from unauthorized interactions, enhancing the overall security of script updates.

Since the radio has 84 options and XOR has 256 possible ciphers, how many tries maximum would it take to brute force attack this script transfer system?  To find out, simply multiply the possibilities of both. 

  • Calculate channel options x cipher options:
    • Answer: 84 x 256 = 21,504

Channel is only one way to make it more difficult for one micro:bit to monitor another.  The micro:bit also has group and address settings that give even more combinations.  So, security could be increased as follows:  

  • Channel: 0 to 83 (84 options)
  • Group: 0 to 255 (256 options)
  • Address: 0 to 4,294,967,295 (232 options)
  • XOR cipher: 0 to 255 (256 options)

 

  • How many different combinations would a brute force have to go through to if group settings are added to the script?
    • Answer: channels x groups x XOR options = 84 x 256 x 256 = 5,505,024
  • How many different combination would a brute force attack have to try now?  Multiply them all together and see.

Note:  After several attempts to get AI to supply the correct answer with a minimum of back-and-forth, it turned out to be a time saver for a human to make the calculations and write this.

 


Printer-friendly version
Test the Encrypted Scripts
Prev
Nine Security Measures
Next

DISCUSSION FORUMS | PARALLAX INC. STORE

About | Terms of Use | Feedback: learn@parallax.com | Copyright©Parallax Inc. 2024

© 2025 Parallax Learn • Built with GeneratePress