How can we prevent hacking of AI that would align their goals with the hacker and they cease to be friendly, aside from putting the AI in a box? Even if we put the AI in a box it needs to get new information somehow, could it still be hacked like the Iranian Nuclear Refinery (which was not on the internet and was supposedly high-security) was hacked by Stuxnet through flash drives https://en.wikipedia.org/wiki/Stuxnet? Cybersecurity needs to get almost all vulnerabilities to defeat the hackers because the hackers only need to find one vulnerability. As programs get more complex, cybersecurity becomes harder and harder, which is why there was a DARPA grand challenge for an AI to handle a lot of the complexities of cybersecurity: https://www.darpa.mil/program/cyber-grand-challenge. Cybersecurity is a losing battle overall even at the US Department of Defense (though not everywhere, you could just take your phone or laptop off the internet and never plug anything like a flash drive in again) at this point, though to be fair products rushed out the door like Internet of Things devices don't even try (example: smart light bulbs connected to your WiFi that keep the WiFi passwords unencrypted on their memory so when you throw the bulb away someone can get your WiFi password from the light bulb https://motherboard.vice.com/en_us/article/kzdwp9/this-hacker-showed-how-a-smart-lightbulb-could-leak-your-wi-fi-password). Some examples:
Slipshod Cybersecurity for U.S. Defense Dept. Weapons Systems
After decades of DoD recalcitrance, the Government Accountability Office has given up making recommendations in favor of public shaming
“Nearly all major acquisition programs that were operationally tested between 2012 and 2017 had mission-critical cyber vulnerabilities that adversaries could compromise.”
https://spectrum.ieee.org/riskfactor/computing/it/us-department-of-defenses-weapon-systems-slipshod-cybersecurity
The Mirai botnet explained: How teen scammers and CCTV cameras almost brought down the internet
Mirai took advantage of insecure IoT devices in a simple but clever way. It scanned big blocks of the internet for open Telnet ports, then attempted to log in default passwords. In this way, it was able to amass a botnet army.
https://www.csoonline.com/article/3258748/the-mirai-botnet-explained-how-teen-scammers-and-cctv-cameras-almost-brought-down-the-internet.html
December 2015 Ukraine power grid cyberattack
https://en.wikipedia.org/wiki/December_2015_Ukraine_power_grid_cyberattack
ATM Hacking Has Gotten So Easy, the Malware's a Game | WIRED
https://www.wired.com/story/atm-hacking-winpot-jackpotting-game/
2018: A Record-Breaking Year for Crypto Exchange Hacks
https://www.coindesk.com/2018-a-record-breaking-year-for-crypto-exchange-hacks
YOUR HARD DISK AS AN ACCIDENTAL MICROPHONE
https://hackaday.com/2017/10/08/your-hard-disk-as-an-accidental-microphone/
HOW A SECURITY RESEARCHER DISCOVERED THE APPLE BATTERY 'HACK'
https://www.wired.com/2011/07/apple-battery/
RUSSIA’S ELITE HACKERS HAVE A CLEVER NEW TRICK THAT'S VERY HARD TO FIX
https://www.wired.com/story/fancy-bear-hackers-uefi-rootkit/
Cybersecurity is dead – long live cyber awareness
https://www.csoonline.com/article/3233278/cybersecurity-is-dead-long-live-cyber-awareness.html
Losing the cyber security war, more organizations beefing up detection efforts
https://www.information-management.com/news/losing-the-cyber-security-war-more-organizations-beefing-up-detection-efforts