<abstract><p>Network congestion may occur naturally or intentionally caused by selfish nodes. Existing congestion control techniques designed by researchers for sensor-based networks have primarily focused on natural modes of congestion occurrence and ignored malevolent nodes' potential for purposeful congestion-like scenario creation. In light of this fact, a security attack-resistant congestion control method that takes into account both possible sources of congestion in sensor nodes has been developed. So firstly, a trust-based technique has been developed to get rid of selfish nodes' intentional attempts to cause congestion. After the elimination of malicious nodes, a congestion avoidance method has been applied which tries to prevent the natural way of congestion occurrence. For this purpose, we have applied a multi-criteria decision-making method as there are many factors responsible for congestion occurrence. The remaining energy, node potential value, node load factor, and traffic burst rate have been considered as decision factors. Simulation results show that our Security Aware Congestion Control technique using the AHP method (SACC-AHP) outperforms the existing relevant techniques LEACH, TCEER, TASRP, CARA and SACC in terms of energy efficiency, security, packet delivery ratio and network lifetime.</p></abstract>