A pinhole lens for M12 is a specialized miniaturized optic, which is designed to be used for the most hidden surveillance and compact imaging. What this lens provides is the capability to offer a plug-and-play setup to different devices, such as miniature drones, among others, as results of its tiny size and its M12 mount compatibility. Different from the way traditional lenses work, the M12 pinhole lens has a very tiny aperture that is used for the covert operation of such devices. Further to being its small size, it does not lose its main functionality, being a high-quality lens, thus can perform even in low light conditions. As a result, the M12 pinhole lens is, therefore, an excellent selection on such occasions where visibility, and dimension, are absolutely necessary.