A novel 3D Finite Element Upper Bound limit analysis approach for the evaluation of the seismic vulnerability of masonry aggregates when the collapse may occur both locally and globally is presented. The model relies on a 3D discretization of the aggregate by means of infinitely resistant hexahedron elements and rigid plastic quadrilateral interfaces, where all plastic dissipation occurs. The interface behavior is assumed isotropic, with friction, cohesion, and tension cutoff. The collapse horizontal acceleration is obtained in the discretized model solving large-scale linear programming problems with standard numerical routines. According to a consolidated literature, the vulnerability prediction should be done with pre-assigned failure me...