Dark Z/dark photon (Z') is one candidate of dark force carrier, which helps to interpret the properties of dark matter (DM). Other than conventional studies of DM including direct detection, indirect detection and collider simulation, in this work we take flavor physics as a complementary approach to investigate the features of dark matter. We give an exact calculation of the new type of penguin diagram induced by Z' which further modifies the well-known X, Y, Z functions in penguin-box expansion. The measurement of rare decays B -> K-(*) mu(+)mu(-) and B-s -> mu(+)mu(-) at LHC, together with direct CP violation epsilon'/epsilon in K -> pi pi as well as K-L -> mu(+)mu(-), are used to determine the parameter space. The size of coupling constant, however, is found to be O(1) which is much weaker than the known constraints.