A Green Hag (MM, p. 177) has an Innate Spellcasting trait that includes the spell vicious mockery. The description of the vicious mockery cantrip states, in part:
[The target] must succeed on a Wisdom saving throw or take 1d4 psychic damage and have disadvantage on the next attack roll it makes before the end of its next turn.
This spell's damage increases by 1d4 when you reach 5th level (2d4), 11th level (3d4), and 17th level (4d4).
How is cantrip damage determined when cast by NPCs?
I heard somewhere that the amount of hit dice in NPCs is used as their level. A green hag has 82 (11d8 + 33) hit points. So does vicious mockery do 3d4 psychic damage on a failed save when cast by a green hag?