Aircraft systems aren’t designed by idiots. Everyone is free to speculate but this wasn’t caused by some mad hacker who commandeered the plane from seat 36F.
What if a ground crew member tampered with the cockpit door lock ahead of the flight, for a passenger to breach once the flight took off? The Iranian dude on board with the Elvis hair looks suspicious to me.