Is bug an adjective?
No, it is not. Bug can be a verb (bother, or eavesdrop), or a
noun.
It can mean a listening device, or a programming flaw, both
named for a type of insect. Bug meaning a crawly insect is used as
a noun adjunct as in bug spray or bug light.