A system for securing modular applications and associated edge devices, the system comprising: a processor ; a modular application manager coupled to the processor to: initiate an accreditation request for accrediting at least one of a modular application and an edge device hosting the modular application in a secure enclave, the edge device coupling an loT device to a cloud server; based on the initiating, receive accreditation information corresponding to the at least one of the modular application and the edge device, the accreditation information being generated by a hardware encryption device associated with the edge device; monitor accreditation status of the modular application during execution of the modular application to ascertain whether the at least one of the modular application and the edge device have been tampered; and perform a remedial action to address tampering of the at least one of the modular application and the edge device, when the tampering is detected, wherein the modular application manager includes a set of policies to implement varying levels of secure enclaves using a root of trust and the hardware encryption device, the set of policies including at least one of policies on securing the modular application, securing the edge device, and metering resource utilization by the modular application; and a security manager coupled to the processor to generate the secure enclave for executing the modular application and to meter system resource utilization by the modular application when no tampering is detected. a processor ; a modular application manager coupled to the processor to: initiate an accreditation request for accrediting at least one of a modular application and an edge device hosting the modular application in a secure enclave, the edge device coupling an loT device to a cloud server; based on the initiating, receive accreditation information corresponding to the at least one of the modular application and the edge device, the accreditation information being generated by a hardware encryption device associated with the edge device; monitor accreditation status of the modular application during execution of the modular application to ascertain whether the at least one of the modular application and the edge device have been tampered; and perform a remedial action to address tampering of the at least one of the modular application and the edge device, when the tampering is detected, initiate an accreditation request for accrediting at least one of a modular application and an edge device hosting the modular application in a secure enclave, the edge device coupling an loT device to a cloud server; based on the initiating, receive accreditation information corresponding to the at least one of the modular application and the edge device, the accreditation information being generated by a hardware encryption device associated with the edge device; monitor accreditation status of the modular application during execution of the modular application to ascertain whether the at least one of the modular application and the edge device have been tampered; and perform a remedial action to address tampering of the at least one of the modular application and the edge device, when the tampering is detected, wherein the modular application manager includes a set of policies to implement varying levels of secure enclaves using a root of trust and the hardware encryption device, the set of policies including at least one of policies on securing the modular application, securing the edge device, and metering resource utilization by the modular application; and a security manager coupled to the processor to generate the secure enclave for executing the modular application and to meter system resource utilization by the modular application when no tampering is detected. <EOS>