The invention discloses a BIM building security device which comprises apre-buried frame, a fixing structure, a rotating shaft, a first gear, a supporting rod, a speed reducing structure, a speed reducing belt and a guardrail. The device has the beneficial effects that through the arranged pre-buried frame, the guardrail used for sealing the entrance and exit can be stored underground, meanwhile,the speed reducing belt is arranged at the top end of the pre-buried frame, and therefore the speed reducing belt and the guardrail can be switched according to the requirements of different situations, and when the guardrail is pulled out, the first gear can be rotated to enable the supporting rod fixedly connected with the side face of the first gear to rotate by 90 degrees, so that the bottom of the guardrail is supported through the supporting rod, at the moment, due to the supporting effect of the supporting rod on the guardrail, the guardrail can be kept in a fixed state outside the ground surface, and the function of blocking an entrance and exit is achieved; and when the guardrail is stored, the guardrail can be placed in the pre-buried frame again only by rotating the supporting rod again to abut against the inner side wall of the pre-buried frame, and use is convenient.