It is best to use concrete screws when securing something to a solid wall. These are self-tapping screws designed to go through brickwork, concrete and masonry.