How to add a lattice on cube's surface?
You can either use the wireframe modifier or the skin modifier:

For Wireframe modifier:


Add Cube
Subdivide with 2 divisions
delete edge vertices
add wireframe modifier


For skin modifier:


Add Cube
Subdivide with 2 divisions
delete edge vertices
delete all faces (faces only!)
apply skin modifier
Scale with ctrla