Put the box over the beam. Using ladders and an assistant to help you hold the beam in place tight against the ceiling, shoot 2-inch finish nails through the sides of the box and into the beam. They have to be placed 8 inches apart down both sides and up from the bottom. Attach the holes with a crayon.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.