Our paper entitled resilient distributed optimization against cyber-attacks was accepted to IEEE Control Systems Letters. In this work, we propose a novel distributed optimization algorithm which ensures the convergence of local estimate of individual agents in a networked system close to the optimal solution of an optimization problem under both unknown attacks on the communication network and update rule of each agent. Moreover, the proposed distributed algorithm also facilitates attack identification in real-time and distributed manner.