The document discusses using acoustic attenuation spectroscopy (AAS) to analyze drilling mud samples. AAS can detect gas bubbles and immiscible liquid hydrocarbons in water-based muds. It has been used to analyze muds of varying densities from 11.3 to 20.2 lb/gal. The technology offers early detection of gas kicks or fluid inflows during drilling operations. Sensors could be installed at multiple points along the drill pipe to monitor the mud stream. IBJ Technology has developed mud spectroscope solutions using AAS and has patents pending for related devices and methods.