[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-689102-105":59,"doc-detail-689102-en":130,"doc-similar-689102":157},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","badusb-attacks-on-macos-beyond-using-the-terminal-and-shell-commands-nicolas-buzy-debat","badUSB attacks on macOS - beyond using the terminal and shell commands - Nicolas BUZY-DEBAT","","badUSB attacks on macOS explores how specialized USB devices such as Rubber Ducky or Flipper Zero operate as HID hardware to deliver device-stored scripts (e.g., DuckyScript) that effectively replay keystrokes. It contrasts Windows keyboard shortcut-driven execution with macOS protections, including Keyboard Setup Assistant and Apple Silicon USB approval, showing how device identity spoofing and physical proximity allow bypass paths. It then reviews common macOS examples like Spotlight triggering Terminal flows and highlights limitations against detection such as EDR logging.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/badusb-attacks-on-macos-beyond-using-the-terminal-and-shell-commands-nicolas-buzy-debat/689102/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/badusb-attacks-on-macos-beyond-using-the-terminal-and-shell-commands-nicolas-buzy-debat/689102.png","ImageObject",300,407,{"name":92,"@type":93},"Dewi_Sukmawati","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-12-01","2026-11-08",true,{"@type":102,"interactionType":103,"userInteractionCount":29},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"How do badUSB attacks work in practice on macOS?","Question",{"text":112,"@type":113},"They use a specialized USB device acting as an HID to send scripted keystrokes stored on the device (for example, DuckyScript), which then drive user interface actions.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What macOS features are targeted by badUSB-style approaches?",{"text":117,"@type":113},"The document focuses on Keyboard Setup Assistant and Apple Silicon USB device approval, explaining how identification and consent flows can be influenced.",{"name":119,"@type":110,"acceptedAnswer":120},"Why do Spotlight-based workflows have limitations on macOS?",{"text":121,"@type":113},"Spotlight can quickly open apps but cannot directly execute with arguments in the same way as Windows’ Run dialog, so equivalent functionality may require a different command flow.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},689102,1794096411,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":29,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":129,"read_time":144,"preview_page_count":81,"preview_urls":145},962094243415,"https://ap-avatar.wpscdn.com/davatar_3d24733baf745e90a7e4bdd5f77d97b2","badUSB attacks on macOS: beyond using the terminal and shell commands  \nNicolas BUZY-DEBAT  \nRed Team Lead at Grab  \nCOMMSEC TRACK 30 AUG  \nWhat are badUSB attacks?  \nWhat are badUSB attacks?  \n● Use of a specialized USB device (e.g. Rubber Ducky, Flipper Zero), seen as a Human Interface Device (HID)  \n● Instructions stored on the device, written in a speciﬁc language (e.g. DuckyScript)  \n● The script essentially sends a series of keystrokes  \n[https://docs](https://docs).ﬂ[ipper.net/bad-usb](ipper.net/bad-usb)  \nbadUSB attackson Windows  \n● A lot of features are accessible via keyboard shortcuts  \n● Task Manager, File Explorer, etc.  \n● The Run dialog. It can run any binary with arguments  \n○ cmd. exe (/c for specifying the command)  \n○ powershell. exe (-Command for specifying the command; the hidden window parameter is also very useful)  \nmacOS “protection” features  \nKeyboard Setup Assistant  \n● Triggers when plugging a non-Apple keyboard into a Mac  \n● It is identiﬁed as such using the advertised device ID  \n● We can advertise an Apple device ID instead  \n○ Search for a device ID of an Apple USB keyboard on sites like devicehunt or the Linux USB project under vendor ID 05AC  \n● In a FlipperZero badUSB script, we can spoof it this way:  \n○ ID 05ac:021eApple:Keyboard  \nNew USB device  \napproval (Apple Silicon only)  \n● Triggers when you ﬁrst plug a new USB/Thunderbolt device into your MacBook  \n● Initially aimed at addressing the “evil airport charging station” scenario  \n○ Allow: the accessory allows both power and data transmission  \n○ Don’t Allow: the accessory can still charge, but no data is transmitted  \n● You’re already within physical proximity, so just press“Return” on the keyboard   \n[https://support.apple.com/en-sg/guide/mac-help/mchlf779ae93/mac](https://support.apple.com/en-sg/guide/mac-help/mchlf779ae93/mac)  \nCommon examples on macOSand their pitfalls  \nSpotlight Search  \n● Spotlight “help(s) you quickly ﬁnd apps, documents, emails and other items on your Mac”  \n● We can invoke it from the keyboard using ⌘ +  SPACE  \n● Can only be used to execute apps only, without  \narguments. Not a 1to1 equivalent to Windows’ Run  \ndialog    \n[https://support.apple.com/en-sg/guide/mac-help/mchlp1008/14.0/mac/14.0](https://support.apple.com/en-sg/guide/mac-help/mchlp1008/14.0/mac/14.0)  \nCommon macOS  \nFlipperZero badUSB scripts  \n● Examples online always follow this pattern  \n● Spotlight search > open Terminal > type shell command  \n● Optionally removes entries from the shell history, or use a leading space  \n○ This won’t defeat an EDR recording process executions  \n[https://hackernoon.com/how-to-get-a-reverse-shell-on-macos-using-a-](https://hackernoon.com/how-to-get-a-reverse-shell-on-macos-using-a-)ﬂipper-zero-as-a-badusb  \n[https://github.com/narstybits/MacOS-DuckyScripts](https://github.com/narstybits/MacOS-DuckyScripts)","cbCaimQ7IyYCv0kx","https://ap.wps.com/l/cbCaimQ7IyYCv0kx","pdf",2379675,29,"English","# What are badUSB attacks?\n## badUSB attackson Windows\n## macOS “protection” features\n## Common examples on macOS and their pitfalls\n## Common macOS FlipperZero badUSB scripts","[{\"question\":\"How do badUSB attacks work in practice on macOS?\",\"answer\":\"They use a specialized USB device acting as an HID to send scripted keystrokes stored on the device (for example, DuckyScript), which then drive user interface actions.\"},{\"question\":\"What macOS features are targeted by badUSB-style approaches?\",\"answer\":\"The document focuses on Keyboard Setup Assistant and Apple Silicon USB device approval, explaining how identification and consent flows can be influenced.\"},{\"question\":\"Why do Spotlight-based workflows have limitations on macOS?\",\"answer\":\"Spotlight can quickly open apps but cannot directly execute with arguments in the same way as Windows’ Run dialog, so equivalent functionality may require a different command flow.\"}]","badUSB attacks on macOS - beyond using the terminal and shell commands - Nicolas BUZY-DEBAT | PDF",73,[146,150,153],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/3b992dfdea41478df282af1a0ea1b25c.webp",983,552,{"page_no":14,"url":151,"width":152,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/8457cd3b1f65bb6c0b887b2bd6344c0c.webp",982,{"page_no":81,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/de60d38e2f775baa1c4762ceddf6f715.webp",981,551,{"list":158,"token":66},[159,165,171,177,184,190,197,203,209,215],{"doc_id":160,"doc_title":161,"file_type":137,"home_preview_img_url":162,"slug":163,"view_count":81,"category_name":30,"create_tm":164},680573,"HID Usage Tables - Version 1.12","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229997999047/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796174819&Signature=SkKknLs4NRRTnKy9a8%2BcLfdKQYE%3D","hid-usage-tables-version-112",1793917836,{"doc_id":166,"doc_title":167,"file_type":137,"home_preview_img_url":168,"slug":169,"view_count":29,"category_name":30,"create_tm":170},687942,"Logi K950 - Getting Started","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001265712/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796174819&Signature=Mtsj4NMITJzFg44OhpCXpSQquHw%3D","logi-k950-getting-started",1794085580,{"doc_id":172,"doc_title":173,"file_type":137,"home_preview_img_url":174,"slug":175,"view_count":29,"category_name":30,"create_tm":176},688473,"Cable Matters USB-C Switch - macOS Software User Manual - Installation and Permission Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001279362/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796174819&Signature=f3V8w%2BKiIiNjVs01vRw%2BgMxUFq0%3D","cable-matters-usb-c-switch-macos-software-user-manual-installation-and-permission-guide",1794089075,{"doc_id":178,"doc_title":179,"file_type":137,"home_preview_img_url":180,"slug":181,"view_count":182,"category_name":30,"create_tm":183},505898,"DS2278 Digital Scanner - Quick Start Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229933239115/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796174819&Signature=5%2FEJbaEgEcymVobYIu6YAQTHQgQ%3D","ds2278-digital-scanner-quick-start-guide",14,1791155680,{"doc_id":185,"doc_title":186,"file_type":137,"home_preview_img_url":187,"slug":188,"view_count":34,"category_name":30,"create_tm":189},687955,"GENERAL USER GUIDE FOR LOUPEDECK CT","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001265815/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796174819&Signature=QVz%2F03Fg00iaMHRkkzDNwmXqibQ%3D","general-user-guide-for-loupedeck-ct",1794085615,{"doc_id":191,"doc_title":192,"file_type":137,"home_preview_img_url":193,"slug":194,"view_count":195,"category_name":30,"create_tm":196},269276,"Red Star Tec PR-819 Presentation Remote User Manual - Setup, Features, FAQ","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229899229771/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796174819&Signature=FDrRSTf9WMbaCRM9DeWQe5oHYlQ%3D","red-star-tec-pr-819-presentation-remote-user-manual-setup-features-faq",15,1789449938,{"doc_id":198,"doc_title":199,"file_type":137,"home_preview_img_url":200,"slug":201,"view_count":8,"category_name":30,"create_tm":202},759897,"User Guide Replay for MacOS","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044224770/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796174819&Signature=Ar9nP8QypNOeNMKYy%2BvGss3KKOg%3D","user-guide-replay-for-macos",1795897111,{"doc_id":204,"doc_title":205,"file_type":137,"home_preview_img_url":206,"slug":207,"view_count":195,"category_name":30,"create_tm":208},513087,"HID Usage Tables - Universal Serial Bus (USB) Version 1.21","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229936734262/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796174819&Signature=KcQCoRP4vYxBQ%2BiwFlxtBmCRRh8%3D","hid-usage-tables-universal-serial-bus-usb-version-121",1791279588,{"doc_id":210,"doc_title":211,"file_type":137,"home_preview_img_url":212,"slug":213,"view_count":29,"category_name":30,"create_tm":214},687287,"EPOMAKER TH80 - Quick Start Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000646945/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796174819&Signature=MBo7rYJTlSUyBS0ytF4vDSVSMxs%3D","epomaker-th80-quick-start-guide",1794082660,{"doc_id":216,"doc_title":217,"file_type":137,"home_preview_img_url":218,"slug":219,"view_count":8,"category_name":30,"create_tm":220},759996,"User Guide - Locked-down Browser for Managed Chromebooks","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044494308/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796174819&Signature=zG0IQw1bDTcr2U1pGQ9Y1iarKUQ%3D","user-guide-locked-down-browser-for-managed-chromebooks",1795897906]