To help unlicensed users utilize the maximum available licensed bandwidth an opportunistic communication technology cognitive radio is designed. A little research has been done regarding security in cognitive radio. Selfish attacks are a serious security problem because they significantly degrade the performance of a cognitive radio network. In this paper, we identified the selfish attacks using COOPON (Cooperative of Neighboring) and also we rectified the selfish attacks using Markov chain model and increased the Cognitive radio network system performance