A method for securely processing data includes: acquiring, by a first processor, security data from a second processor of a security server; and performing, by a secure element (SE) application run on the first processor, security processing on a trusted application (TA) of a trusted execution environment (TEE) using the security data. The method is simple to implement, and when combined with device network capabilities, may provide a solution that conforms to the SE while overcoming difficulty in integration and high costs of the hardware SE, thereby reducing costs of an IoT device.