Security in wireless sensor network (WSN) is an important approach in the present context as data breaching is becoming more. The data to be routed from source to destination needs more security as WSN has no specific security approach by default. This paper proposes trust based security in WSN using approach. The secure line is drawn from head node to its cluster end point called as angle to provide the security to the nodes which are transferring the data to the head node. Secure line becomes the trust worth line where mobile agent migrates to all the corresponding nodes which are along or near to the secure lines, collects the data and encrypt them. Finally, the data is sent to sink node from head node using a secure path. The agent paradigm is responsible for creating the angle from head node to cluster boundary. Multiple angles can be created if numbers of nodes are more and deployed at different locations. The result shows that the security provided is much better to combat the intruder involvement to breach data along with better network lifetime and minimum delay than compare to conventional techniques.