A burglarproof device for electronic device including a fastener, a control unit, and a lock core is provided. The fastener includes a plurality of lever arms surrounding a virtual axis. The control unit moves relative to the fastener and drives ends of the lever arms to move toward each other when approaching the fastener; the ends of the lever arms move away from each other when the control unit leaves the fastener. The lock core in an unlocked status permits the movement of the control unit relative to the fastener while the lock core in a locked status restricts the control unit from moving relative to the fastener.