cubical Earth

What am I missing here? At the edge, you have all of the mass of one side directly below you, all the rest of the mass of the rest of the cube on one side, and nothing on the other side. How do you end up with a pull that is straight down?

Very high density mass right at the edges. If you had a charged conducting metal cube, the electric field tangential to the surface of the cube must be zero, and since it’s charged, it has a non-zero field pointing away from the surface. So if you had a mass density that matched that charge density (a hollow, cubical Earth, combining the best of two current threads!) you’d have a gravitational field perpendicular to the surface everywhere on the surface. The gravitational field would also be zero everywhere in the interior.

ETA: It would rapidly become non-perpendicular near the edges as you moved away from the surface, but would change more slowly in the surface interiors.

In that case, the mass would be concentrated in the twelve edges, and especially at the eight corners, but some mass everywhere on the surface. I’d imagine the charge becomes an line charge along the edges, with point charges at the corner tips.

That’s the most extreme case, but if you only wanted a perpendicular gravitational field over the middle part of the surfaces, it would be possible with a less severe distribution.