The disclosed embodiments include a method for tamper-proof protection of containers used for shipment of goods. The system contains a lock with electronic and mechanical components and a controller. A sensor is connected to a lock so that if forms a closed loop. The sensor can be an optical fiber or a distributed arrangement with an optical or an electrical shield. The electronics in the lock provide real time monitoring of the status of the lock. The lock cannot be opened or reproduced due to the signature of the closed loop which is stored in a remote server. Intrusions detected are relayed to an authorized recipient via a variety of communication channels. The data and control of the entire system is protected with several programs targeted to provide cybersecurity.