Sy nthetic aperture radar (SAR) images play an important role in the task of small target imaging and detection. However, due to its blurred target imaging, complex image background, and challenging feature representation, SAR detection is difficult to get high precision in a complex imaging environment. Therefore, by integrating the ghost model and the Attention-Mechanism (AM), this paper presents a new feature network model based on the improved YOLOv5s for detecting small targets in SAR images efficiently. The key is to design a Ghost_AM module by integrating the ghost bottleneck with the simple AM. This Ghost_AM module is introduced into to the YOLOv5s’ network for improving the YOLOv5s’ extraction performance for small target’s feature from a complex SAR image. Furthermore, to improve the YOLOv5s’ recognition ability for the features extracted from the Ghost_AM, a bidirectional feature pyramid network is use to replace the YOLOv5s’ feature fusion network and get a precise detection. The experiments using some SAR ship image datasets have demonstrated the presented model is better than some traditional SAR target detection algorithms and the original YOLOv5s. Moreover, the presented model’s parameters are reduced by 25.1% compared with the original YOLOv5s, which contributes to its simpler implementation.